Home
last modified time | relevance | path

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

123

/tools/tradefederation/core/src/com/android/tradefed/invoker/
DTestInvocation.java302 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 …]
DInvocationContext.java136 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/
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()
DBaseDeviceMetricCollectorTest.java119 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()
DAtraceCollectorTest.java79 EasyMock.expect(mMockInvocationContext.getDevices()) in setUp()
359 EasyMock.expect(mockInvocationContext.getDevices()) in testMultipleDeviceBehavior()
/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()
DProcessMaxMemoryCollector.java67 for (ITestDevice device : getDevices()) { in onStart()
131 for (ITestDevice device : getDevices()) { in onEnd()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterCommandScheduler.java203 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/
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/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/command/
DCommandScheduler.java491 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/
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()
DBaseDeviceMetricCollector.java107 public final List<ITestDevice> getDevices() { in getDevices() method in BaseDeviceMetricCollector
108 return mContext.getDevices(); in getDevices()
115 mContext.getDevices() in getRealDevices()
DFilePullerDeviceMetricCollector.java149 for (ITestDevice device : getDevices()) { in pullMetricFile()
206 for (ITestDevice device : getDevices()) { in pullMetricDirectory()
/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/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/cluster/
DClusterCommandSchedulerTest.java269 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/
DMergeMultiBuildTargetPreparer.java70 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/
DAndroidDebugBridgeWrapper.java54 public IDevice[] getDevices() { in getDevices() method in AndroidDebugBridgeWrapper
58 return mAdbBridge.getDevices(); in getDevices()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DITestSuite.java622 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/
DLoopSummary.java336 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/
DCommandSchedulerTest.java785 for (ITestDevice device : context.getDevices()) { in testDeviceReleasedEarly()
838 for (ITestDevice device : context.getDevices()) { in testDeviceReleasedEarly_conflict()

123