Home
last modified time | relevance | path

Searched refs:getDevices (Results 1 – 25 of 63) sorted by relevance

123

/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DDeviceMetricData.java56 if (mContext.getDevices().size() > 1) { in addMetric()
58 String deviceName = mContext.getDeviceName(mContext.getDevices().get(0)); in addMetric()
77 if (mContext.getDevices().size() > 1) { in addMetricForDevice()
DBugreportzOnFailureCollector.java29 for (ITestDevice device : getDevices()) { in onTestFail()
DFilePullerDeviceMetricCollector.java149 for (ITestDevice device : getDevices()) { in pullMetricFile()
206 for (ITestDevice device : getDevices()) { in pullMetricDirectory()
DIMetricCollector.java58 public List<ITestDevice> getDevices(); in getDevices() method
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DLogcatTimingMetricCollector.java142 for (ITestDevice device : getDevices()) { in onTestFail()
154 for (ITestDevice device : getDevices()) { in startCollection()
172 boolean isMultiDevice = getDevices().size() > 1; in collectMetrics()
173 for (ITestDevice device : getDevices()) { in collectMetrics()
197 for (ITestDevice device : getDevices()) { in stopCollection()
DHostStatsdMetricCollector.java131 for (ITestDevice device : getDevices()) { in startCollection()
146 for (ITestDevice device : getDevices()) { in stopCollection()
DAtraceCollector.java172 for (ITestDevice device : getDevices()) { in onTestStart()
253 for (ITestDevice device : getDevices()) { in onTestEnd()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/multi/
DMergeMultiBuildTargetPreparer.java70 context.getDevices().get(0).getDeviceDescriptor()); in setUp()
78 context.getDevices().get(0).getDeviceDescriptor()); in setUp()
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/invoker/
DTestInformation.java93 return mContext.getDevices().get(mPrimaryDeviceIndex); in getDevice()
97 public List<ITestDevice> getDevices() { in getDevices() method in TestInformation
98 return mContext.getDevices(); in getDevices()
/tools/loganalysis/test_framework/com/android/tradefed/device/metric/
DLogcatTimingMetricCollector.java105 for (ITestDevice device : getDevices()) { in onTestRunStart()
125 boolean isMultiDevice = getDevices().size() > 1; in onTestRunEnd()
126 for (ITestDevice device : getDevices()) { in onTestRunEnd()
153 for (ITestDevice device : getDevices()) { in onTestFail()
/tools/tradefederation/core/src/com/android/tradefed/retry/
DBaseRetryDecision.java146 recoverStateOfDevices(getDevices(), attemptJustExecuted); in shouldRetry()
154 autoRetryTest.recoverStateOfDevices(getDevices(), attemptJustExecuted); in shouldRetry()
288 private List<ITestDevice> getDevices() { in getDevices() method in BaseRetryDecision
289 List<ITestDevice> listDevices = new ArrayList<>(mContext.getDevices()); in getDevices()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DTestInvocation.java294 for (ITestDevice device : context.getDevices()) { in performInvocation()
309 if (context.getDevices().size() == 1 || badDevice != null) { in performInvocation()
312 collectBugreport = context.getDevices().get(0); in performInvocation()
316 } else if (context.getDevices().size() > 1) { in performInvocation()
318 new ParallelDeviceExecutor<>(context.getDevices()); in performInvocation()
321 for (ITestDevice device : context.getDevices()) { in performInvocation()
334 logExecuteShellCommand(context.getDevices(), listener); in performInvocation()
367 for (ITestDevice device : context.getDevices()) { in performInvocation()
564 for (ITestDevice testDevice : context.getDevices()) { in logDeviceBatteryLevel()
636 for (ITestDevice device : testInfo.getContext().getDevices()) { in invokeFetchBuild()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/device/recovery/
DUsbResetMultiDeviceRecoveryTest.java65 when(mFastboot.getDevices()).thenReturn(new HashSet<>()); in setUp()
123 when(mFastboot.getDevices()).thenReturn(Sets.newHashSet(SERIAL)); in testRecover_fastboot_allocated()
137 when(mFastboot.getDevices()).thenReturn(ImmutableSet.of(SERIAL)); in testRecover_fastboot_unallocated()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DRuntimeRestartCollectorTest.java121 doReturn(Arrays.asList(testDevice)).when(mContext).getDevices(); in testStatsdInteractions_singleDevice()
158 doReturn(Arrays.asList(testDevice1, testDevice2)).when(mContext).getDevices(); in testStatsdInteractions_multiDevice()
198 doReturn(Arrays.asList(testDevice)).when(mContext).getDevices(); in testAddingMetrics_noRuntimeRestart_noPriorRuntimeRestart()
235 doReturn(Arrays.asList(testDevice)).when(mContext).getDevices(); in testAddingMetrics_noRuntimeRestart_withPriorRuntimeRestart()
278 doReturn(Arrays.asList(testDevice)).when(mContext).getDevices(); in testAddingMetrics_withRuntimeRestart_noPriorRuntimeRestart()
336 doReturn(Arrays.asList(testDevice)).when(mContext).getDevices(); in testAddingMetrics_withRuntimeRestart_withPriorRuntimeRestart()
397 doReturn(Arrays.asList(testDevice)).when(mContext).getDevices(); in testAddingMetrics_withRuntimeRestart_reportsSystemServerCrashesOnly()
448 doReturn(Arrays.asList(testDevice)).when(mContext).getDevices(); in testAddingMetrics_withRuntimeRestart_useStatsdMetadataResultsForCount()
486 doReturn(Arrays.asList(testDevice1, testDevice2)).when(mContext).getDevices(); in testAddingMetrics_includesSerialForMultipleDevices()
DRebootReasonCollectorTest.java73 when(mContext.getDevices()).thenReturn(Arrays.asList(testDevice)); in testStatsdInteractions_singleDevice()
97 when(mContext.getDevices()).thenReturn(Arrays.asList(testDevice)); in testAddingMetrics_singleDevice()
169 doReturn(Arrays.asList(testDevice1, testDevice2)).when(mContext).getDevices(); in testStatsdInteractions_multiDevice()
199 doReturn(Arrays.asList(testDevice1, testDevice2)).when(mContext).getDevices(); in testAddingMetrics_multiDevice()
283 when(mContext.getDevices()).thenReturn(Arrays.asList(testDevice)); in testCountOnlyWhenNoReboots()
DBugreportzMetricCollectorTest.java52 doReturn(Arrays.asList(mTestDevice)).when(mContext).getDevices(); in setup()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DAndroidDebugBridgeWrapper.java54 public IDevice[] getDevices() { in getDevices() method in AndroidDebugBridgeWrapper
58 return mAdbBridge.getDevices(); in getDevices()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/suite/module/
DCarModuleController.java31 for (ITestDevice device : context.getDevices()) { in shouldRun()
DNativeBridgeModuleController.java37 for (ITestDevice device : context.getDevices()) { in shouldRun()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/module/
DDeviceFeatureModuleController.java33 for (ITestDevice device : context.getDevices()) { in shouldRun()
DMinSdkModuleController.java42 for (ITestDevice device : context.getDevices()) { in shouldRun()
DMainlineTestModuleController.java61 for (ITestDevice device : context.getDevices()) { in shouldRun()
/tools/tradefederation/contrib/src/com/android/tradefed/
DHelloWorldMultiDevices.java43 for (ITestDevice device : context.getDevices()) { in run()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/multi/
DHelloWorldMultiTargetPreparer.java36 ITestDevice device = testInfo.getContext().getDevices().get(0); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/command/remote/
DExecCommandTracker.java52 mState = devicesStates.get(metadata.getDevices().get(0)); in invocationComplete()

123