AtraceCollector

public class AtraceCollector
extends BaseDeviceMetricCollector

java.lang.Object
   ↳ com.android.tradefed.device.metric.BaseDeviceMetricCollector
     ↳ com.android.tradefed.device.metric.AtraceCollector


IMetricCollector, który podczas testu uruchamia atrace, zbiera wyniki i zapisują je w wywołaniu.

Podsumowanie

Konstruktory publiczne

AtraceCollector()

Metody publiczne

void onTestEnd(DeviceMetricData testData, currentTestCaseMetrics, TestDescription test)

wywołanie zwrotne po zakończeniu testu.

void onTestStart(DeviceMetricData testData)

wywołanie zwrotne po rozpoczęciu testu.

Chronione metody

String fullLogPath()
LogDataType getLogType()
void startTracing(ITestDevice device)
void stopTracing(ITestDevice device)

Konstruktory publiczne

AtraceCollector

public AtraceCollector ()

Metody publiczne

onTestEnd

public void onTestEnd (DeviceMetricData testData, 
                 currentTestCaseMetrics, 
                TestDescription test)

wywołanie zwrotne po zakończeniu testu. Czas na porządki.

Parametry
testData DeviceMetricData: DeviceMetricData zawierający dane testowe. Będzie to ten sam obiekt co podczas onTestStart(com.android.tradefed.device.metric.DeviceMetricData).

currentTestCaseMetrics : bieżąca mapa danych przekazanych do ERROR(/#testEnded(com.android.tradefed.result.TestDescription,Map)).

test TestDescription: TestDescription elementu testowania w trakcie wykonywania.

Rzuty
DeviceNotAvailableException

onTestStart

public void onTestStart (DeviceMetricData testData)

wywołanie zwrotne po rozpoczęciu testu.

Parametry
testData DeviceMetricData: DeviceMetricData zawierający dane testowe.

Rzuty
DeviceNotAvailableException

Chronione metody

fullLogPath

protected String fullLogPath ()

Zwroty
String

getLogType

protected LogDataType getLogType ()

Zwroty
LogDataType

startTracing

protected void startTracing (ITestDevice device)

Parametry
device ITestDevice

Rzuty
DeviceNotAvailableException

stopTracing

protected void stopTracing (ITestDevice device)

Parametry
device ITestDevice

Rzuty
DeviceNotAvailableException