Searched refs:NOT_AVAILABLE (Results 1 – 14 of 14) sorted by relevance
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | DeviceManagerTest.java | 591 mMockTestDevice.setDeviceState(TestDeviceState.NOT_AVAILABLE); in testSetIDevice() 679 mMockTestDevice.setDeviceState(TestDeviceState.NOT_AVAILABLE); in testSetState_disconnected() 695 mMockTestDevice.setDeviceState(TestDeviceState.NOT_AVAILABLE); in testSetState_offline() 960 .andReturn(TestDeviceState.NOT_AVAILABLE).times(2); in testFreeDevice_tcpDevice() 963 mMockTestDevice.setDeviceState(TestDeviceState.NOT_AVAILABLE); in testFreeDevice_tcpDevice() 977 assertTrue(tcp.getDeviceState() == TestDeviceState.NOT_AVAILABLE); in testFreeDevice_tcpDevice() 991 mMockStateMonitor.setState(TestDeviceState.NOT_AVAILABLE); in testFreeDevice_unavailable() 1034 device.setDeviceState(TestDeviceState.NOT_AVAILABLE); in testFreeDevice_unavailable() 1052 mMockStateMonitor.setState(TestDeviceState.NOT_AVAILABLE); in testFreeDevice_recovery() 1095 device.setDeviceState(TestDeviceState.NOT_AVAILABLE); in testFreeDevice_recovery() [all …]
|
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() 298 EasyMock.expect(mMockMonitor.getDeviceState()).andReturn(TestDeviceState.NOT_AVAILABLE); in testRecoverDeviceBootloader_unavailable() 345 EasyMock.expect(mMockMonitor.getDeviceState()).andReturn(TestDeviceState.NOT_AVAILABLE); in testRecoverDeviceBootloader_unavailable_online() 368 EasyMock.expect(mMockMonitor.getDeviceState()).andStubReturn(TestDeviceState.NOT_AVAILABLE); in testRecoverDeviceBootloader_unavailable_failure()
|
D | DeviceStateMonitorTest.java | 70 mMonitor.setState(TestDeviceState.NOT_AVAILABLE); in testWaitForDeviceOnline() 89 mMonitor.setState(TestDeviceState.NOT_AVAILABLE); in testWaitForDeviceOnline_timeout() 122 mMonitor.setState(TestDeviceState.NOT_AVAILABLE); in testWaitForDeviceOffline_alreadyOffline() 138 mMonitor.setState(TestDeviceState.NOT_AVAILABLE); in testWaitForDeviceOffline()
|
D | BackgroundDeviceActionTest.java | 100 mDeviceState = TestDeviceState.NOT_AVAILABLE; in testBackgroundAction_shellException() 113 assertEquals(TestDeviceState.NOT_AVAILABLE, mDeviceState); in testBackgroundAction_shellException() 147 mDeviceState = TestDeviceState.NOT_AVAILABLE; in testwaitForDeviceRecovery_blockOffline()
|
D | TestDeviceTest.java | 983 mMockStateMonitor.setState(TestDeviceState.NOT_AVAILABLE); in testExecuteFastbootCommand_state() 1009 mTestDevice.setDeviceState(TestDeviceState.NOT_AVAILABLE); in testExecuteFastbootCommand_state() 1017 mTestDevice.setDeviceState(TestDeviceState.NOT_AVAILABLE); in testExecuteFastbootCommand_state() 1018 assertEquals(TestDeviceState.NOT_AVAILABLE, mTestDevice.getDeviceState()); in testExecuteFastbootCommand_state()
|
D | ManagedDeviceListTest.java | 149 mockDevice.setDeviceState(TestDeviceState.NOT_AVAILABLE); in testUpdateFastbootState_gone()
|
/tools/tradefederation/core/remote/src/com/android/tradefed/device/ |
D | TestDeviceState.java | 33 NOT_AVAILABLE; enumConstant 57 return TestDeviceState.NOT_AVAILABLE; in getStateByDdms() 64 return TestDeviceState.NOT_AVAILABLE; in getStateByDdms() 70 return TestDeviceState.NOT_AVAILABLE; in getStateByDdms() 76 return TestDeviceState.NOT_AVAILABLE; in getStateByDdms()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | ManagedTestDeviceFactory.java | 79 testDevice.setDeviceState(TestDeviceState.NOT_AVAILABLE); in createDevice() 86 testDevice.setDeviceState(TestDeviceState.NOT_AVAILABLE); in createDevice() 99 testDevice.setDeviceState(TestDeviceState.NOT_AVAILABLE); in createDevice() 116 testDevice.setDeviceState(TestDeviceState.NOT_AVAILABLE); in createDevice() 139 testDevice.setDeviceState(TestDeviceState.NOT_AVAILABLE); in createDevice()
|
D | DeviceManager.java | 698 managedDevice.setDeviceState(TestDeviceState.NOT_AVAILABLE); in freeDevice() 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() 1285 d.setDeviceState(TestDeviceState.NOT_AVAILABLE); in deviceDisconnected()
|
D | ManagedDeviceList.java | 151 d.setDeviceState(TestDeviceState.NOT_AVAILABLE);
|
D | NativeDeviceStateMonitor.java | 151 boolean result = waitForDeviceState(TestDeviceState.NOT_AVAILABLE, waitTime); in waitForDeviceNotAvailable()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/command/ |
D | CommandSchedulerTest.java | 873 mMockManager.setNumDevicesCustom(1, TestDeviceState.NOT_AVAILABLE, IDevice.class); in testDeviceReleased_unavailable() 893 mMockManager.setNumDevicesCustom(2, TestDeviceState.NOT_AVAILABLE, IDevice.class); in testDeviceReleased_unavailableMulti() 911 mMockManager.setNumDevicesStub(1, TestDeviceState.NOT_AVAILABLE, new TcpDevice("serial")); in testTcpDevice_NotReleased() 929 mMockManager.setNumDevicesStub(2, TestDeviceState.NOT_AVAILABLE, new TcpDevice("serial")); in testTcpDevice_NotReleasedMulti() 948 mMockManager.setNumDevicesStub(1, TestDeviceState.NOT_AVAILABLE, stub); in testStubDevice_NotReleased()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | ScreenshotOnFailureCollectorTest.java | 95 EasyMock.expect(mMockDevice.getDeviceState()).andReturn(TestDeviceState.NOT_AVAILABLE); in testCollect_skipOffline()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/ |
D | TestInvocationTest.java | 237 EasyMock.expect(mMockDevice.getDeviceState()).andStubReturn(TestDeviceState.NOT_AVAILABLE); in setUp()
|