/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | TestInvocation.java | 302 for (ITestDevice device : context.getDevices()) { in performInvocation() 317 if (context.getDevices().size() == 1 || badDevice != null) { in performInvocation() 320 collectBugreport = context.getDevices().get(0); in performInvocation() 324 } else if (context.getDevices().size() > 1) { in performInvocation() 326 new ParallelDeviceExecutor<>(context.getDevices().size()); in performInvocation() 329 for (ITestDevice device : context.getDevices()) { in performInvocation() 342 logExecuteShellCommand(context.getDevices(), listener); in performInvocation() 375 for (ITestDevice device : context.getDevices()) { in performInvocation() 576 for (ITestDevice testDevice : context.getDevices()) { in logDeviceBatteryLevel() 648 for (ITestDevice device : testInfo.getContext().getDevices()) { in invokeFetchBuild() [all …]
|
D | InvocationContext.java | 136 public List<ITestDevice> getDevices() { in getDevices() method in InvocationContext 303 for (ITestDevice device : getDevices()) { in setRecoveryModeForAllDevices()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | RuntimeRestartCollectorTest.java | 121 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()
|
D | RebootReasonCollectorTest.java | 73 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()
|
D | BaseDeviceMetricCollectorTest.java | 119 Assert.assertEquals(0, mBase.getDevices().size()); in testInitAndForwarding() 205 Assert.assertEquals(0, mBase.getDevices().size()); in testForwarding_withException() 354 Assert.assertEquals(0, mBase.getDevices().size()); in verifyFiltering()
|
D | AtraceCollectorTest.java | 79 EasyMock.expect(mMockInvocationContext.getDevices()) in setUp() 359 EasyMock.expect(mockInvocationContext.getDevices()) in testMultipleDeviceBehavior()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/ |
D | LogcatTimingMetricCollector.java | 142 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()
|
D | HostStatsdMetricCollector.java | 131 for (ITestDevice device : getDevices()) { in startCollection() 146 for (ITestDevice device : getDevices()) { in stopCollection()
|
D | AtraceCollector.java | 172 for (ITestDevice device : getDevices()) { in onTestStart() 253 for (ITestDevice device : getDevices()) { in onTestEnd()
|
D | ProcessMaxMemoryCollector.java | 67 for (ITestDevice device : getDevices()) { in onStart() 131 for (ITestDevice device : getDevices()) { in onEnd()
|
/tools/tradefederation/core/src/com/android/tradefed/cluster/ |
D | ClusterCommandScheduler.java | 203 for (ITestDevice device : context.getDevices()) { in invocationInitiated() 214 for (ITestDevice device : context.getDevices()) { in invocationInitiated() 458 devices = getDevices(manager, false); in processReadyCommands() 474 return getDevices(manager, true); in getAvailableDevices() 484 MultiMap<String, DeviceDescriptor> getDevices(IDeviceManager manager, boolean availableOnly) { in getDevices() method in ClusterCommandScheduler
|
/tools/tradefederation/core/src/com/android/tradefed/retry/ |
D | BaseRetryDecision.java | 146 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/loganalysis/test_framework/com/android/tradefed/device/metric/ |
D | LogcatTimingMetricCollector.java | 105 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/command/ |
D | CommandScheduler.java | 491 for (ITestDevice device : context.getDevices()) { in releaseDevices() 716 for (ITestDevice device : mInvocationContext.getDevices()) { in stopInvocation() 804 for (ITestDevice device : context.getDevices()) { in createReleaseMap() 808 for (ITestDevice device : context.getDevices()) { in createReleaseMap() 1650 throwIfDeviceInInvocationThread(context.getDevices()); in startInvocation() 1653 for (ITestDevice device : context.getDevices()) { in startInvocation() 1695 if (context.getDevices().contains(device)) { in throwIfDeviceInInvocationThread()
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | DeviceMetricData.java | 56 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()
|
D | BaseDeviceMetricCollector.java | 107 public final List<ITestDevice> getDevices() { in getDevices() method in BaseDeviceMetricCollector 108 return mContext.getDevices(); in getDevices() 115 mContext.getDevices() in getRealDevices()
|
D | FilePullerDeviceMetricCollector.java | 149 for (ITestDevice device : getDevices()) { in pullMetricFile() 206 for (ITestDevice device : getDevices()) { in pullMetricDirectory()
|
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/invoker/ |
D | TestInformation.java | 93 return mContext.getDevices().get(mPrimaryDeviceIndex); in getDevice() 97 public List<ITestDevice> getDevices() { in getDevices() method in TestInformation 98 return mContext.getDevices(); in getDevices()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/recovery/ |
D | UsbResetMultiDeviceRecoveryTest.java | 65 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/cluster/ |
D | ClusterCommandSchedulerTest.java | 269 mScheduler.getDevices(mMockDeviceManager, false); 293 mScheduler.getDevices(mMockDeviceManager, true); 320 mScheduler.getDevices(mMockDeviceManager, true); 339 mScheduler.getDevices(mMockDeviceManager, true);
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/multi/ |
D | MergeMultiBuildTargetPreparer.java | 70 context.getDevices().get(0).getDeviceDescriptor()); in setUp() 78 context.getDevices().get(0).getDeviceDescriptor()); in setUp()
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/ |
D | AndroidDebugBridgeWrapper.java | 54 public IDevice[] getDevices() { in getDevices() method in AndroidDebugBridgeWrapper 58 return mAdbBridge.getDevices(); in getDevices()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | ITestSuite.java | 622 for (ITestDevice device : mContext.getDevices()) { in run() 635 mContext.getDevices(), mBugReportOnFailure, mRebootOnFailure); in run() 715 ITestDevice device = context.getDevices().get(0); in moduleIsolation()
|
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/metric/ |
D | LoopSummary.java | 336 if (context.getDevices().size() > 1) { in getActualMetricKey() 337 String deviceName = context.getDeviceName(context.getDevices().get(0)); in getActualMetricKey()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/command/ |
D | CommandSchedulerTest.java | 785 for (ITestDevice device : context.getDevices()) { in testDeviceReleasedEarly() 838 for (ITestDevice device : context.getDevices()) { in testDeviceReleasedEarly_conflict()
|