Home
last modified time | relevance | path

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

123

/tools/tradefederation/core/javatests/com/android/tradefed/presubmit/
DDeviceStateTransitionFuncTests.java42 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/
DWaitDeviceRecoveryTest.java92 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 …]
DBackgroundDeviceActionTest.java75 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()
DTestDeviceFuncTest.java555 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()
DMockDeviceManager.java76 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/
DDeviceDescriptor.java213 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/
DRunCommandTargetPreparerTest.java239 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/
DWaitDeviceRecovery.java134 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/
DFilePullerDeviceMetricCollector.java139 if (!TestDeviceState.ONLINE.equals(device.getDeviceState())) { in processMetricRequest()
142 device.getSerialNumber(), device.getDeviceState()); in processMetricRequest()
283 TestDeviceState state = device.getDeviceState(); in shouldCollect()
DScreenshotOnFailureCollector.java72 TestDeviceState state = device.getDeviceState(); in shouldCollect()
/tools/tradefederation/core/src/com/android/tradefed/device/recovery/
DBatteryUnavailableDeviceRecovery.java32 if (TestDeviceState.RECOVERY.equals(device.getDeviceState())) { in shouldSkip()
DBatteryRechargeDeviceRecovery.java39 TestDeviceState state = device.getDeviceState(); in shouldSkip()
DUsbResetRunConfigRecovery.java34 if (TestDeviceState.RECOVERY.equals(device.getDeviceState())) { in shouldSkip()
/tools/tradefederation/core/javatests/com/android/tradefed/device/metric/
DScreenshotOnFailureCollectorTest.java66 when(mMockDevice.getDeviceState()).thenReturn(TestDeviceState.ONLINE); in testCollect()
92 when(mMockDevice.getDeviceState()).thenReturn(TestDeviceState.NOT_AVAILABLE); in testCollect_skipOffline()
DFilePullerLogCollectorTest.java110 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/
DKillExistingEmulatorPreparer.java38 testInformation.getDevice().getDeviceState() == TestDeviceState.ONLINE); in setUp()
DRecoveryLogPreparer.java52 if (TestDeviceState.RECOVERY.equals(device.getDeviceState())) { in setUp()
DDeviceCleaner.java95 if (TestDeviceState.ONLINE.equals(device.getDeviceState())) { in clean()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DIDeviceStateMonitor.java171 public TestDeviceState getDeviceState(); in getDeviceState() method
/tools/tradefederation/core/src/com/android/tradefed/util/
DDeviceRecoveryModeUtil.java55 if (managedDevice.getDeviceState().equals(TestDeviceState.RECOVERY)) { in bootOutOfRecovery()
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DDeviceRecoveryModeUtilTest.java51 when(mMockManagedDevice.getDeviceState()).thenReturn(TestDeviceState.RECOVERY); in testBootOutOfRecovery()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DUsbResetTest.java57 TestDeviceState state = device.getDeviceState(); in run()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/companion/
DCompanionDeviceTracker.java87 if (!TestDeviceState.ONLINE.equals(companion.getDeviceState())) { in freeCompanionDevice()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/host/
DPrettyTestEventLogger.java89 if (!TestDeviceState.ONLINE.equals(device.getDeviceState())) { in logOnAllDevices()
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DRuntimeRestartCollector.java139 if (!TestDeviceState.ONLINE.equals(device.getDeviceState())) { in onTestRunEnd()
142 device.getSerialNumber(), device.getDeviceState()); in onTestRunEnd()

123