Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DWaitDeviceRecoveryTest.java80 EasyMock.expect(mMockMonitor.getDeviceState()).andReturn(TestDeviceState.NOT_AVAILABLE); in testRecoverDevice_success()
100 EasyMock.expect(mMockMonitor.getDeviceState()).andStubReturn(TestDeviceState.NOT_AVAILABLE); in testRecoverDevice_unavailable()
117 EasyMock.expect(mMockMonitor.getDeviceState()).andStubReturn(TestDeviceState.NOT_AVAILABLE); in testRecoverDevice_unavailable_recovers()
138 EasyMock.expect(mMockMonitor.getDeviceState()).andStubReturn(TestDeviceState.RECOVERY); in testRecoverDevice_unavailable_recovery()
163 EasyMock.expect(mMockMonitor.getDeviceState()).andReturn(TestDeviceState.RECOVERY).times(3); in testRecoverDevice_unavailable_recovery_fail()
187 EasyMock.expect(mMockMonitor.getDeviceState()).andStubReturn(TestDeviceState.FASTBOOT); in testRecoverDevice_unavailable_fastboot()
220 EasyMock.expect(mMockMonitor.getDeviceState()).andReturn(TestDeviceState.ONLINE); in testRecoverDevice_unresponsive()
246 EasyMock.expect(mMockMonitor.getDeviceState()).andReturn(TestDeviceState.FASTBOOT); in testRecoverDevice_fastboot()
298 EasyMock.expect(mMockMonitor.getDeviceState()).andReturn(TestDeviceState.NOT_AVAILABLE); in testRecoverDeviceBootloader_unavailable()
325 EasyMock.expect(mMockMonitor.getDeviceState()).andReturn(TestDeviceState.ONLINE); in testRecoverDeviceBootloader_online()
[all …]
DTestDeviceFuncTest.java527 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testExecuteFastbootCommand_deviceInAdb()
532 assertEquals(TestDeviceState.FASTBOOT, mMonitor.getDeviceState()); in testExecuteFastbootCommand_deviceInAdb()
536 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testExecuteFastbootCommand_deviceInAdb()
555 assertEquals(TestDeviceState.FASTBOOT, mMonitor.getDeviceState()); in testExecuteFastbootCommand_badCommand()
566 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testExecuteFastbootCommand_badCommand()
580 assertEquals(TestDeviceState.FASTBOOT, mMonitor.getDeviceState()); in testRebootIntoBootloader()
583 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testRebootIntoBootloader()
592 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testReboot()
607 assertEquals(TestDeviceState.RECOVERY, mMonitor.getDeviceState()); in testRebootIntoRecovery()
DBackgroundDeviceActionTest.java68 EasyMock.expect(mMockTestDevice.getDeviceState()).andReturn(TestDeviceState.ONLINE) in testBackgroundActionComplete()
91 EasyMock.expect(mMockTestDevice.getDeviceState()).andStubReturn(mDeviceState); in testBackgroundAction_shellException()
123 EasyMock.expect(mMockTestDevice.getDeviceState()).andReturn(mDeviceState); in testwaitForDeviceRecovery_online()
148 EasyMock.expect(mMockTestDevice.getDeviceState()).andReturn(mDeviceState).anyTimes(); in testwaitForDeviceRecovery_blockOffline()
DNativeDeviceTest.java1605 public TestDeviceState getDeviceState() { in testDoReboot()
1624 public TestDeviceState getDeviceState() { in testDoReboot_skipped()
1644 public TestDeviceState getDeviceState() { in testDoReboot_fastboot()
1666 public TestDeviceState getDeviceState() { in testRebootIntoSideload()
1686 public TestDeviceState getDeviceState() { in testRebootIntoBootloader()
1709 public TestDeviceState getDeviceState() { in testRebootIntoBootloader_forceFastboot()
1736 public TestDeviceState getDeviceState() { in testRebootIntoFastbootd()
1759 public TestDeviceState getDeviceState() { in testRebootIntoFastbootd_forceFastboot()
DTestDeviceStressTest.java77 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testManyReboots()
85 assertEquals(TestDeviceState.FASTBOOT, mMonitor.getDeviceState()); in testManyRebootBootloaders()
87 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testManyRebootBootloaders()
DMockDeviceManager.java71 EasyMock.expect(mockDevice.getDeviceState()).andReturn( in setNumDevicesInternal()
113 EasyMock.expect(mockDevice.getDeviceState()).andReturn( in setNumDevicesCustom()
137 EasyMock.expect(mockDevice.getDeviceState()).andReturn( in setNumDevicesStub()
DDeviceManagerTest.java959 EasyMock.expect(mMockTestDevice.getDeviceState()) in testFreeDevice_tcpDevice()
977 assertTrue(tcp.getDeviceState() == TestDeviceState.NOT_AVAILABLE); in testFreeDevice_tcpDevice()
DTestDeviceTest.java989 assertEquals(TestDeviceState.FASTBOOT, mTestDevice.getDeviceState()); in testExecuteFastbootCommand_state()
1010 assertEquals(TestDeviceState.FASTBOOT, mTestDevice.getDeviceState()); in testExecuteFastbootCommand_state()
1018 assertEquals(TestDeviceState.NOT_AVAILABLE, mTestDevice.getDeviceState()); in testExecuteFastbootCommand_state()
/tools/tradefederation/core/src/com/android/tradefed/device/
DWaitDeviceRecovery.java132 TestDeviceState state = monitor.getDeviceState(); in recoverDevice()
280 } else if (monitor.getDeviceState() == TestDeviceState.ONLINE) { in recoverDeviceBootloader()
309 } else if (monitor.getDeviceState() == TestDeviceState.ONLINE) { in recoverDeviceFastbootd()
484 TestDeviceState state = monitor.getDeviceState(); in attemptDeviceUnavailableRecovery()
510 if (TestDeviceState.RECOVERY.equals(monitor.getDeviceState())) { in attemptDeviceUnavailableRecovery()
DNativeDeviceStateMonitor.java381 public TestDeviceState getDeviceState() { in getDeviceState() method in NativeDeviceStateMonitor
445 if (getDeviceState() == state) { in waitForDeviceState()
450 state, getDeviceState()); in waitForDeviceState()
464 return getDeviceState().equals(state); in waitForDeviceState()
DNativeDevice.java473 if (!TestDeviceState.ONLINE.equals(getDeviceState())) { in getProperty()
2975 getSerialNumber(), getDeviceState(), mode); in rebootIntoFastbootInternal()
2999 return TestDeviceState.FASTBOOT.equals(getDeviceState()) in isStateBootloaderOrFastbootd()
3000 || TestDeviceState.FASTBOOTD.equals(getDeviceState()); in isStateBootloaderOrFastbootd()
3188 CLog.i("device %s in %s. Rebooting to userspace.", getSerialNumber(), getDeviceState()); in doReboot()
3755 if (!deviceState.equals(getDeviceState())) { in setDeviceState()
3771 public TestDeviceState getDeviceState() { in getDeviceState() method in NativeDevice
4465 if (TestDeviceState.ONLINE.equals(getDeviceState())) { in postInvocationTearDown()
4536 getDeviceState(), in getDeviceDescriptor()
DDeviceManager.java724 if (TestDeviceState.NOT_AVAILABLE.equals(managedDevice.getDeviceState())) { in getEventFromFree()
752 if (!device.getDeviceState().equals(TestDeviceState.NOT_AVAILABLE)) { in launchEmulator()
755 device.getDeviceState(), TestDeviceState.NOT_AVAILABLE)); in launchEmulator()
1171 desc.getDeviceState().toString(), in addDevicesInfo()
DTestDevice.java982 if (!TestDeviceState.ONLINE.equals(getDeviceState()) in doAdbReboot()
1735 if (!TestDeviceState.ONLINE.equals(getDeviceState())) { in postInvocationTearDown()
/tools/tradefederation/core/tests/src/com/android/tradefed/presubmit/
DDeviceStateTransitionFuncTests.java45 assertEquals(TestDeviceState.ONLINE, getDevice().getDeviceState()); in testFastbootTransition()
47 assertEquals(TestDeviceState.FASTBOOT, getDevice().getDeviceState()); in testFastbootTransition()
50 assertEquals(TestDeviceState.ONLINE, getDevice().getDeviceState()); in testFastbootTransition()
54 assertEquals(TestDeviceState.ONLINE, getDevice().getDeviceState()); in testFastbootTransition()
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DDeviceDescriptor.java195 d.getDeviceState(), in DeviceDescriptor()
217 d.getDeviceState(), in DeviceDescriptor()
245 public DeviceState getDeviceState() { in getDeviceState() method in DeviceDescriptor
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DFastbootDeviceFlasherTest.java152 EasyMock.expect(mMockDevice.getDeviceState()).andReturn(TestDeviceState.FASTBOOT); in testGetCurrentSlot_fastboot()
165 EasyMock.expect(mMockDevice.getDeviceState()).andReturn(TestDeviceState.ONLINE); in testGetCurrentSlot_adb()
181 EasyMock.expect(mMockDevice.getDeviceState()).andReturn(TestDeviceState.ONLINE); in testGetCurrentSlot_null()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DScreenshotOnFailureCollectorTest.java69 EasyMock.expect(mMockDevice.getDeviceState()).andReturn(TestDeviceState.ONLINE); in testCollect()
95 EasyMock.expect(mMockDevice.getDeviceState()).andReturn(TestDeviceState.NOT_AVAILABLE); in testCollect_skipOffline()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandSchedulerFuncTest.java276 EasyMock.expect(mockDevice.getDeviceState()).andReturn( in testBatteryLowLevel()
319 EasyMock.expect(mockDevice.getDeviceState()).andReturn( in testBatteryLowLevel_interruptible()
DCommandSchedulerTest.java356 EasyMock.expect(mockDevice.getDeviceState()).andStubReturn(TestDeviceState.ONLINE); in testExecCommand()
1269 EasyMock.expect(mockDevice.getDeviceState()).andStubReturn(TestDeviceState.ONLINE); in testExecCommand_versioning()
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandScheduler.java717 if (TestDeviceState.ONLINE.equals(device.getDeviceState())) { in stopInvocation()
814 TestDeviceState deviceState = device.getDeviceState(); in createReleaseMap()
1615 allocatedDevice.getDeviceState())) { in allocateDevices()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DIDeviceStateMonitor.java153 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/tests/src/com/android/tradefed/util/
DDeviceRecoveryModeUtilTest.java50 EasyMock.expect(mMockManagedDevice.getDeviceState()).andReturn(TestDeviceState.RECOVERY); in testBootOutOfRecovery()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DScreenshotOnFailureCollector.java51 TestDeviceState state = device.getDeviceState(); in shouldCollect()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DUsbResetTest.java57 TestDeviceState state = device.getDeviceState(); in run()

12