Home
last modified time | relevance | path

Searched refs:collector (Results 1 – 16 of 16) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/device/helper/
DTelephonyHelperTest.java69 ITestInvocationListener collector = in testGetSimInfo()
71 collector.testRunStarted("android.telephony.utility", 1); in testGetSimInfo()
72 collector.testStarted(TelephonyHelper.SIM_TEST); in testGetSimInfo()
78 collector.testEnded(TelephonyHelper.SIM_TEST, testMetrics); in testGetSimInfo()
79 collector.testRunEnded(500L, new HashMap<String, Metric>()); in testGetSimInfo()
118 ITestInvocationListener collector = in testGetSimInfo_instrumentationFailed()
120 collector.testRunStarted("android.telephony.utility", 1); in testGetSimInfo_instrumentationFailed()
121 collector.testRunFailed("Couldn't run the instrumentation."); in testGetSimInfo_instrumentationFailed()
122 collector.testRunEnded(500L, new HashMap<String, Metric>()); in testGetSimInfo_instrumentationFailed()
146 ITestInvocationListener collector = in testGetSimInfo_simTest_not_run()
[all …]
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/testtype/
DGameQualificationHostsideController.java171 for (IMetricCollector collector : list) { in setMetricCollectors()
172 if (collector instanceof BaseGameQualificationMetricCollector) { in setMetricCollectors()
173 mAGQMetricCollectors.add((BaseGameQualificationMetricCollector) collector); in setMetricCollectors()
225 for (IMetricCollector collector : mCollectors) { in run()
226 listener = collector.init(mContext, listener); in run()
229 for (BaseGameQualificationMetricCollector collector : mAGQMetricCollectors) { in run()
230 collector.setDevice(getDevice()); in run()
250 for (BaseGameQualificationMetricCollector collector : mAGQMetricCollectors) { in run()
251 collector.setApkInfo(apk); in run()
252 collector.setCertificationRequirements( in run()
[all …]
/tools/test/graphicsbenchmark/performance_tests/hostside/test/com/android/game/qualification/metric/
DBaseGameQualificationMetricCollectorTest.java29 … BaseGameQualificationMetricCollector collector = new BaseGameQualificationMetricCollector() { in onTestStartHasErrorOnException() local
36 collector.onTestStart(null); in onTestStartHasErrorOnException()
39 assertTrue(collector.hasError()); in onTestStartHasErrorOnException()
40 assertEquals("foo", collector.getErrorMessage()); in onTestStartHasErrorOnException()
46 … BaseGameQualificationMetricCollector collector = new BaseGameQualificationMetricCollector() { in onTestEndHasErrorOnException() local
53 collector.onTestEnd(null, null); in onTestEndHasErrorOnException()
56 assertTrue(collector.hasError()); in onTestEndHasErrorOnException()
57 assertEquals("foo", collector.getErrorMessage()); in onTestEndHasErrorOnException()
DGameQualificationScheduledMetricCollectorTest.java32 GameQualificationScheduledMetricCollector collector = in checkConcurrency() local
63 collector.mIntervalMs = 1; in checkConcurrency()
64 collector.enable(); in checkConcurrency()
66 collector.onTestStart(null); in checkConcurrency()
67 collector.onTestEnd(null, null); in checkConcurrency()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DInstrumentationTest.java868 for (IMetricCollector collector : mCollectors) { in doTestRun()
869 if (collector.isDisabled()) { in doTestRun()
870 CLog.d("%s has been disabled. Skipping.", collector); in doTestRun()
874 collector.getClass().getCanonicalName()); in doTestRun()
875 listener = collector.init(mContext, listener); in doTestRun()
913 BugreportCollector collector = new BugreportCollector(listener, getDevice()); in addBugreportListenerIfEnabled() local
914 collector.addPredicate(pred); in addBugreportListenerIfEnabled()
915 listener = collector; in addBugreportListenerIfEnabled()
1078 CollectingTestListener collector = new CollectingTestListener(); in collectTestsAndRetry() local
1083 instrResult = mDevice.runInstrumentationTests(runner, collector); in collectTestsAndRetry()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DGranularRetriableTestWrapper.java207 for (IMetricCollector collector : mModuleConfiguration.getMetricCollectors()) { in initializeListeners()
208 if (collector.isDisabled()) { in initializeListeners()
209 CLog.d("%s has been disabled. Skipping.", collector); in initializeListeners()
211 runListener = collector.init(mModuleInvocationContext, runListener); in initializeListeners()
406 for (IMetricCollector collector : clonedCollectors) { in intraModuleRun()
407 if (collector.isDisabled()) { in intraModuleRun()
408 CLog.d("%s has been disabled. Skipping.", collector); in intraModuleRun()
410 runListener = collector.init(mModuleInvocationContext, runListener); in intraModuleRun()
DValidateSuiteConfigHelper.java113 for (IMetricCollector collector : config.getMetricCollectors()) { in validateConfig()
115 if (!ALLOWED_COLLECTOR_IN_MODULE.contains(collector.getClass().getCanonicalName())) { in validateConfig()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DCollectorHelper.java41 for (IMetricCollector collector : originalCollectors) { in cloneCollectors()
44 IMetricCollector clone = collector.getClass().newInstance(); in cloneCollectors()
45 OptionCopier.copyOptionsNoThrow(collector, clone); in cloneCollectors()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DFilePullerLogCollectorTest.java128 PostProcessingFilePullerLogCollector collector = new PostProcessingFilePullerLogCollector(); in testPostProcessFiles() local
129 OptionSetter setter = new OptionSetter(collector); in testPostProcessFiles()
132 ITestInvocationListener listener = collector.init(mContext, mMockListener); in testPostProcessFiles()
152 assertTrue(collector.isPostProcessed()); in testPostProcessFiles()
DAutoLogCollectorTest.java32 BaseDeviceMetricCollector collector = value.getInstanceForValue(); in testGetInstance() local
33 assertNotNull(collector); in testGetInstance()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/
DShardHelperTest.java270 BaseDeviceMetricCollector collector = new BaseDeviceMetricCollector(); in testCloneMetricCollector() local
272 createTmpConfig(Configuration.DEVICE_METRICS_COLLECTOR_TYPE_NAME, collector); in testCloneMetricCollector()
280 mConfig.setDeviceMetricCollectors(Arrays.asList(collector)); in testCloneMetricCollector()
301 collector, in testCloneMetricCollector()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DInvocationExecution.java485 for (IMetricCollector collector : clonedCollectors) { in runTests()
486 if (collector.isDisabled()) { in runTests()
487 CLog.d("%s has been disabled. Skipping.", collector); in runTests()
490 collector.init(context, listenerWithCollectors); in runTests()
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/test/
DPerformanceTest.java186 for (BaseGameQualificationMetricCollector collector : mCollectors) { in run()
187 collector.setDeviceResultData(resultData); in run()
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DTestsPoolPoller.java185 for (IMetricCollector collector : mCollectors) { in run()
186 listenerWithCollectors = collector.init(mContext, listenerWithCollectors); in run()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DInvocationExecutionTest.java167 for (IMetricCollector collector : mCollectors) { in run()
168 collector.init(new InvocationContext(), new ITestInvocationListener() {}); in run()
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfiguration.java1469 for (IMetricCollector collector : getMetricCollectors()) { in dumpXml()
1473 collector, in dumpXml()