AtraceCollector

public class AtraceCollector
extends BaseDeviceMetricCollector

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


IMetricCollector שמופעל במהלך בדיקה, אוסף את התוצאה ומתעד אותה ביומן של הקריאה.

סיכום

‫constructors ציבוריים

AtraceCollector()

‫methods ציבוריים

void onTestEnd(DeviceMetricData testData, Map<String, MetricMeasurement.Metric> currentTestCaseMetrics, TestDescription test)

קריאה חוזרת כשמקרה בדיקה מסתיים.

void onTestStart(DeviceMetricData testData)

קריאה חוזרת כשמתחילים תרחיש בדיקה.

שיטות מוגנות

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

‫constructors ציבוריים

AtraceCollector

public AtraceCollector ()

‫methods ציבוריים

onTestEnd

public void onTestEnd (DeviceMetricData testData, 
                Map<String, MetricMeasurement.Metric> currentTestCaseMetrics, 
                TestDescription test)

קריאה חוזרת כשמקרה בדיקה מסתיים. זה הזמן לנקות את המידע.

פרמטרים
testData DeviceMetricData: DeviceMetricData שמכיל את הנתונים של תרחיש הבדיקה. יהיה אותו אובייקט כמו במהלך onTestStart(DeviceMetricData).

currentTestCaseMetrics Map: המפה הנוכחית של המדדים שמועברים אל testEnded(TestDescription,Map).

test TestDescription: TestDescription של מקרה הבדיקה שנמצא בתהליך.

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException

onTestStart

public void onTestStart (DeviceMetricData testData)

קריאה חוזרת כשמתחילים תרחיש בדיקה.

פרמטרים
testData DeviceMetricData: DeviceMetricData שמכיל את הנתונים של תרחיש הבדיקה.

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException

שיטות מוגנות

fullLogPath

protected String fullLogPath ()

החזרות
String

getLogType

protected LogDataType getLogType ()

החזרות
LogDataType

startTracing

protected void startTracing (ITestDevice device)

פרמטרים
device ITestDevice

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException

stopTracing

protected void stopTracing (ITestDevice device)

פרמטרים
device ITestDevice

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException