/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | WaitDeviceRecoveryTest.java | 80 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 …]
|
D | TestDeviceFuncTest.java | 527 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()
|
D | BackgroundDeviceActionTest.java | 68 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()
|
D | NativeDeviceTest.java | 1605 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()
|
D | TestDeviceStressTest.java | 77 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testManyReboots() 85 assertEquals(TestDeviceState.FASTBOOT, mMonitor.getDeviceState()); in testManyRebootBootloaders() 87 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testManyRebootBootloaders()
|
D | MockDeviceManager.java | 71 EasyMock.expect(mockDevice.getDeviceState()).andReturn( in setNumDevicesInternal() 113 EasyMock.expect(mockDevice.getDeviceState()).andReturn( in setNumDevicesCustom() 137 EasyMock.expect(mockDevice.getDeviceState()).andReturn( in setNumDevicesStub()
|
D | DeviceManagerTest.java | 959 EasyMock.expect(mMockTestDevice.getDeviceState()) in testFreeDevice_tcpDevice() 977 assertTrue(tcp.getDeviceState() == TestDeviceState.NOT_AVAILABLE); in testFreeDevice_tcpDevice()
|
D | TestDeviceTest.java | 989 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/ |
D | WaitDeviceRecovery.java | 132 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()
|
D | NativeDeviceStateMonitor.java | 381 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()
|
D | NativeDevice.java | 473 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()
|
D | DeviceManager.java | 724 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()
|
D | TestDevice.java | 982 if (!TestDeviceState.ONLINE.equals(getDeviceState()) in doAdbReboot() 1735 if (!TestDeviceState.ONLINE.equals(getDeviceState())) { in postInvocationTearDown()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/presubmit/ |
D | DeviceStateTransitionFuncTests.java | 45 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/ |
D | DeviceDescriptor.java | 195 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/ |
D | FastbootDeviceFlasherTest.java | 152 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/ |
D | ScreenshotOnFailureCollectorTest.java | 69 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/ |
D | CommandSchedulerFuncTest.java | 276 EasyMock.expect(mockDevice.getDeviceState()).andReturn( in testBatteryLowLevel() 319 EasyMock.expect(mockDevice.getDeviceState()).andReturn( in testBatteryLowLevel_interruptible()
|
D | CommandSchedulerTest.java | 356 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/ |
D | CommandScheduler.java | 717 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/ |
D | IDeviceStateMonitor.java | 153 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/tests/src/com/android/tradefed/util/ |
D | DeviceRecoveryModeUtilTest.java | 50 EasyMock.expect(mMockManagedDevice.getDeviceState()).andReturn(TestDeviceState.RECOVERY); in testBootOutOfRecovery()
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | ScreenshotOnFailureCollector.java | 51 TestDeviceState state = device.getDeviceState(); in shouldCollect()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | UsbResetTest.java | 57 TestDeviceState state = device.getDeviceState(); in run()
|