/tools/tradefederation/core/javatests/com/android/tradefed/presubmit/ |
D | DeviceStateTransitionFuncTests.java | 42 assertEquals(TestDeviceState.ONLINE, getDevice().getDeviceState()); in testFastbootTransition() 44 assertEquals(TestDeviceState.FASTBOOT, getDevice().getDeviceState()); in testFastbootTransition() 47 assertEquals(TestDeviceState.ONLINE, getDevice().getDeviceState()); in testFastbootTransition() 51 assertEquals(TestDeviceState.ONLINE, getDevice().getDeviceState()); in testFastbootTransition()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/ |
D | WaitDeviceRecoveryTest.java | 92 when(mMockMonitor.getDeviceState()).thenReturn(TestDeviceState.NOT_AVAILABLE); in testRecoverDevice_success() 112 when(mMockMonitor.getDeviceState()).thenReturn(TestDeviceState.NOT_AVAILABLE); in testRecoverDevice_unavailable() 130 when(mMockMonitor.getDeviceState()).thenReturn(TestDeviceState.NOT_AVAILABLE); in testRecoverDevice_unavailable_recovers() 149 when(mMockMonitor.getDeviceState()).thenReturn(TestDeviceState.RECOVERY); in testRecoverDevice_unavailable_recovery_fail() 158 verify(mMockMonitor, times(2)).getDeviceState(); in testRecoverDevice_unavailable_recovery_fail() 167 when(mMockMonitor.getDeviceState()).thenReturn(TestDeviceState.FASTBOOT); in testRecoverDevice_unavailable_fastboot() 201 when(mMockMonitor.getDeviceState()).thenReturn(TestDeviceState.ONLINE); in testRecoverDevice_unresponsive() 224 when(mMockMonitor.getDeviceState()).thenReturn(TestDeviceState.ONLINE); in testRecoverDevice_unavailable_usb_exception() 247 when(mMockMonitor.getDeviceState()).thenReturn(TestDeviceState.FASTBOOT); in testRecoverDevice_fastboot() 309 when(mMockMonitor.getDeviceState()).thenReturn(TestDeviceState.NOT_AVAILABLE); in testRecoverDeviceBootloader_unavailable() [all …]
|
D | BackgroundDeviceActionTest.java | 75 when(mMockTestDevice.getDeviceState()).thenReturn(TestDeviceState.ONLINE); in testBackgroundActionComplete() 95 when(mMockTestDevice.getDeviceState()).thenReturn(mDeviceState); in testBackgroundAction_shellException() 133 when(mMockTestDevice.getDeviceState()).thenReturn(mDeviceState); in testwaitForDeviceRecovery_online() 161 when(mMockTestDevice.getDeviceState()).thenReturn(mDeviceState); in testwaitForDeviceRecovery_blockOffline()
|
D | TestDeviceFuncTest.java | 555 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testExecuteFastbootCommand_deviceInAdb() 561 assertEquals(TestDeviceState.FASTBOOT, mMonitor.getDeviceState()); in testExecuteFastbootCommand_deviceInAdb() 565 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testExecuteFastbootCommand_deviceInAdb() 587 assertEquals(TestDeviceState.FASTBOOT, mMonitor.getDeviceState()); in testExecuteFastbootCommand_badCommand() 598 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testExecuteFastbootCommand_badCommand() 615 assertEquals(TestDeviceState.FASTBOOT, mMonitor.getDeviceState()); in testRebootIntoBootloader() 618 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testRebootIntoBootloader() 627 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testReboot() 645 assertEquals(TestDeviceState.RECOVERY, mMonitor.getDeviceState()); in testRebootIntoRecovery()
|
D | MockDeviceManager.java | 76 when(mockDevice.getDeviceState()).thenReturn(TestDeviceState.ONLINE); in setNumDevicesInternal() 115 when(mockDevice.getDeviceState()).thenReturn(state); in setNumDevicesCustom() 137 when(mockDevice.getDeviceState()).thenReturn(state); in setNumDevicesStub()
|
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/ |
D | DeviceDescriptor.java | 213 d.getDeviceState(), in DeviceDescriptor() 238 d.getDeviceState(), in DeviceDescriptor() 263 d.getDeviceState(), in DeviceDescriptor() 294 public DeviceState getDeviceState() { in getDeviceState() method in DeviceDescriptor
|
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | RunCommandTargetPreparerTest.java | 239 when(mMockDevice.getDeviceState()).thenReturn(ONLINE_STATE); in testBgCmd() 251 verify(mMockDevice, atLeastOnce()).getDeviceState(); in testBgCmd() 293 when(mMockDevice.getDeviceState()).thenReturn(ONLINE_STATE); in testBgCmd_withTestUserToken_propertyNotSet() 305 verify(mMockDevice, atLeastOnce()).getDeviceState(); in testBgCmd_withTestUserToken_propertyNotSet() 347 when(mMockDevice.getDeviceState()).thenReturn(ONLINE_STATE); in testBgCmd_withTestUserToken() 354 verify(mMockDevice, atLeastOnce()).getDeviceState(); in testBgCmd_withTestUserToken()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | WaitDeviceRecovery.java | 134 TestDeviceState state = monitor.getDeviceState(); in recoverDevice() 288 } else if (monitor.getDeviceState() == TestDeviceState.ONLINE) { in recoverDeviceBootloader() 313 } else if (monitor.getDeviceState() == TestDeviceState.ONLINE) { in recoverDeviceFastbootd() 503 TestDeviceState state = monitor.getDeviceState(); in attemptDeviceUnavailableRecovery() 547 if (TestDeviceState.RECOVERY.equals(monitor.getDeviceState())) { in attemptDeviceUnavailableRecovery()
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | FilePullerDeviceMetricCollector.java | 139 if (!TestDeviceState.ONLINE.equals(device.getDeviceState())) { in processMetricRequest() 142 device.getSerialNumber(), device.getDeviceState()); in processMetricRequest() 283 TestDeviceState state = device.getDeviceState(); in shouldCollect()
|
D | ScreenshotOnFailureCollector.java | 72 TestDeviceState state = device.getDeviceState(); in shouldCollect()
|
/tools/tradefederation/core/src/com/android/tradefed/device/recovery/ |
D | BatteryUnavailableDeviceRecovery.java | 32 if (TestDeviceState.RECOVERY.equals(device.getDeviceState())) { in shouldSkip()
|
D | BatteryRechargeDeviceRecovery.java | 39 TestDeviceState state = device.getDeviceState(); in shouldSkip()
|
D | UsbResetRunConfigRecovery.java | 34 if (TestDeviceState.RECOVERY.equals(device.getDeviceState())) { in shouldSkip()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/metric/ |
D | ScreenshotOnFailureCollectorTest.java | 66 when(mMockDevice.getDeviceState()).thenReturn(TestDeviceState.ONLINE); in testCollect() 92 when(mMockDevice.getDeviceState()).thenReturn(TestDeviceState.NOT_AVAILABLE); in testCollect_skipOffline()
|
D | FilePullerLogCollectorTest.java | 110 when(mMockDevice.getDeviceState()).thenReturn(TestDeviceState.ONLINE); in testPullAndLog() 177 when(mMockDevice.getDeviceState()).thenReturn(TestDeviceState.ONLINE); in testPostProcessFiles() 215 when(mMockDevice.getDeviceState()).thenReturn(TestDeviceState.ONLINE); in testCompressDirectoryBeforeUpload()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | KillExistingEmulatorPreparer.java | 38 testInformation.getDevice().getDeviceState() == TestDeviceState.ONLINE); in setUp()
|
D | RecoveryLogPreparer.java | 52 if (TestDeviceState.RECOVERY.equals(device.getDeviceState())) { in setUp()
|
D | DeviceCleaner.java | 95 if (TestDeviceState.ONLINE.equals(device.getDeviceState())) { in clean()
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/ |
D | IDeviceStateMonitor.java | 171 public TestDeviceState getDeviceState(); in getDeviceState() method
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | DeviceRecoveryModeUtil.java | 55 if (managedDevice.getDeviceState().equals(TestDeviceState.RECOVERY)) { in bootOutOfRecovery()
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | DeviceRecoveryModeUtilTest.java | 51 when(mMockManagedDevice.getDeviceState()).thenReturn(TestDeviceState.RECOVERY); in testBootOutOfRecovery()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | UsbResetTest.java | 57 TestDeviceState state = device.getDeviceState(); in run()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/companion/ |
D | CompanionDeviceTracker.java | 87 if (!TestDeviceState.ONLINE.equals(companion.getDeviceState())) { in freeCompanionDevice()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/host/ |
D | PrettyTestEventLogger.java | 89 if (!TestDeviceState.ONLINE.equals(device.getDeviceState())) { in logOnAllDevices()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/ |
D | RuntimeRestartCollector.java | 139 if (!TestDeviceState.ONLINE.equals(device.getDeviceState())) { in onTestRunEnd() 142 device.getSerialNumber(), device.getDeviceState()); in onTestRunEnd()
|