Home
last modified time | relevance | path

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

123

/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DLogcatTimingMetricCollector.java140 for (ITestDevice device : getDevices()) { in onTestFail()
152 for (ITestDevice device : getDevices()) { in startCollection()
163 boolean isMultiDevice = getDevices().size() > 1; in collectMetrics()
164 for (ITestDevice device : getDevices()) { in collectMetrics()
188 for (ITestDevice device : getDevices()) { in stopCollection()
DAtraceCollector.java189 for (ITestDevice device : getDevices()) { in onTestStart()
207 for (ITestDevice device : getDevices()) { in onTestStart()
293 for (ITestDevice device : getDevices()) { in onTestEnd()
DHostStatsdMetricCollector.java133 for (ITestDevice device : getDevices()) { in startCollection()
149 for (ITestDevice device : getDevices()) { in stopCollection()
/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 onTestRunFailed()
DBugreportzOnTestCaseFailureCollector.java48 for (ITestDevice device : getDevices()) { in onTestRunEnd()
/tools/tradefederation/core/javatests/com/android/tradefed/device/metric/
DRuntimeRestartCollectorTest.java124 doReturn(Arrays.asList(testDevice)).when(mContext).getDevices(); in testStatsdInteractions_singleDevice()
161 doReturn(Arrays.asList(testDevice1, testDevice2)).when(mContext).getDevices(); in testStatsdInteractions_multiDevice()
205 doReturn(Arrays.asList(testDevice)).when(mContext).getDevices(); in testAddingMetrics_noRuntimeRestart_noPriorRuntimeRestart()
242 doReturn(Arrays.asList(testDevice)).when(mContext).getDevices(); in testAddingMetrics_noRuntimeRestart_withPriorRuntimeRestart()
285 doReturn(Arrays.asList(testDevice)).when(mContext).getDevices(); in testAddingMetrics_withRuntimeRestart_noPriorRuntimeRestart()
343 doReturn(Arrays.asList(testDevice)).when(mContext).getDevices(); in testAddingMetrics_withRuntimeRestart_withPriorRuntimeRestart()
404 doReturn(Arrays.asList(testDevice)).when(mContext).getDevices(); in testAddingMetrics_withRuntimeRestart_reportsSystemServerCrashesOnly()
455 doReturn(Arrays.asList(testDevice)).when(mContext).getDevices(); in testAddingMetrics_withRuntimeRestart_useStatsdMetadataResultsForCount()
493 doReturn(Arrays.asList(testDevice1, testDevice2)).when(mContext).getDevices(); in testAddingMetrics_includesSerialForMultipleDevices()
DRebootReasonCollectorTest.java74 when(mContext.getDevices()).thenReturn(Arrays.asList(testDevice)); in testStatsdInteractions_singleDevice()
98 when(mContext.getDevices()).thenReturn(Arrays.asList(testDevice)); in testAddingMetrics_singleDevice()
170 doReturn(Arrays.asList(testDevice1, testDevice2)).when(mContext).getDevices(); in testStatsdInteractions_multiDevice()
204 doReturn(Arrays.asList(testDevice1, testDevice2)).when(mContext).getDevices(); in testAddingMetrics_multiDevice()
292 when(mContext.getDevices()).thenReturn(Arrays.asList(testDevice)); in testCountOnlyWhenNoReboots()
DBluetoothHciSnoopLogCollectorTest.java81 doReturn(mDevices).when(mContext).getDevices(); in setUp()
84 when(mContext.getDevices()).thenReturn(mDevices); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DTestInvocation.java367 for (ITestDevice device : context.getDevices()) { in performInvocation()
395 exception = bareMinimumResponsiveness(context.getDevices()); in performInvocation()
408 if (context.getDevices().size() == 1 || badDevice != null) { in performInvocation()
411 collectBugreport = context.getDevices().get(0); in performInvocation()
419 } else if (context.getDevices().size() > 1) { in performInvocation()
421 new ParallelDeviceExecutor<>(context.getDevices().size()); in performInvocation()
424 for (ITestDevice device : context.getDevices()) { in performInvocation()
444 reportRecoveryLogs(context.getDevices(), listener); in performInvocation()
448 logExecuteShellCommand(context.getDevices(), listener); in performInvocation()
456 exception = checkDevicesAvailable(context.getDevices(), listener); in performInvocation()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/retry/
DBaseRetryDecision.java212 recoverStateOfDevices(getDevices(), attempt, module); in shouldRetryPreparation()
277 recoverStateOfDevices(getDevices(), attemptJustExecuted, module); in shouldRetry()
295 recoverStateOfDevices(getDevices(), attemptJustExecuted, module); in shouldRetry()
334 recoverStateOfDevices(getDevices(), attemptJustExecuted, module); in shouldRetry()
342 recoverStateOfDevices(getDevices(), attemptJustExecuted, module); in shouldRetry()
656 private List<ITestDevice> getDevices() { in getDevices() method in BaseRetryDecision
657 List<ITestDevice> listDevices = new ArrayList<>(mContext.getDevices()); in getDevices()
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/invoker/
DTestInformation.java101 return mContext.getDevices().get(mPrimaryDeviceIndex); in getDevice()
105 public List<ITestDevice> getDevices() { in getDevices() method in TestInformation
106 return mContext.getDevices(); in getDevices()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/multi/
DMergeMultiBuildTargetPreparer.java76 context.getDevices().get(0).getDeviceDescriptor()); in setUp()
84 context.getDevices().get(0).getDeviceDescriptor()); in setUp()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/suite/module/
DKernelTestModuleController.java105 for (ITestDevice device : context.getDevices()) { in deviceLowMem()
131 for (ITestDevice device : context.getDevices()) { in deviceWithHwasan()
DCarModuleController.java31 for (ITestDevice device : context.getDevices()) { in shouldRun()
/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()
DIAndroidDebugBridge.java33 IDevice[] getDevices(); in getDevices() method
/tools/tradefederation/core/javatests/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()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterCommandScheduler.java223 for (ITestDevice device : context.getDevices()) { in invocationInitiated()
234 for (ITestDevice device : context.getDevices()) { in invocationInitiated()
542 devices = getDevices(manager, false); in processReadyCommands()
563 return getDevices(manager, true); in getAvailableDevices()
573 MultiMap<String, DeviceDescriptor> getDevices(IDeviceManager manager, boolean availableOnly) { in getDevices() method in ClusterCommandScheduler
DClusterCommandLauncher.java162 mEnvVars.put(TF_DEVICE_COUNT, String.valueOf(mInvocationContext.getDevices().size())); in run()
387 for (final ITestDevice device : mInvocationContext.getDevices()) { in buildJavaCommandArgs()
408 List<ITestDevice> devices = mInvocationContext.getDevices(); in resetDevices()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DModuleListener.java308 if (mModuleContext == null || mModuleContext.getDevices().isEmpty()) { in getSerial()
311 return mModuleContext.getDevices().get(0).getSerialNumber(); in getSerial()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/module/
DSkipHWASanModuleController.java29 for (ITestDevice device : context.getDevices()) { in shouldRun()
DPackageInstalledModuleController.java38 for (ITestDevice device : context.getDevices()) { in shouldRun()
DMinSdkModuleController.java43 for (ITestDevice device : context.getDevices()) { in shouldRun()
/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()

123