Home
last modified time | relevance | path

Searched refs:NOT_AVAILABLE (Results 1 – 14 of 14) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DDeviceManagerTest.java591 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 …]
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()
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()
DDeviceStateMonitorTest.java70 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()
DBackgroundDeviceActionTest.java100 mDeviceState = TestDeviceState.NOT_AVAILABLE; in testBackgroundAction_shellException()
113 assertEquals(TestDeviceState.NOT_AVAILABLE, mDeviceState); in testBackgroundAction_shellException()
147 mDeviceState = TestDeviceState.NOT_AVAILABLE; in testwaitForDeviceRecovery_blockOffline()
DTestDeviceTest.java983 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()
DManagedDeviceListTest.java149 mockDevice.setDeviceState(TestDeviceState.NOT_AVAILABLE); in testUpdateFastbootState_gone()
/tools/tradefederation/core/remote/src/com/android/tradefed/device/
DTestDeviceState.java33 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/
DManagedTestDeviceFactory.java79 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()
DDeviceManager.java698 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()
DManagedDeviceList.java151 d.setDeviceState(TestDeviceState.NOT_AVAILABLE);
DNativeDeviceStateMonitor.java151 boolean result = waitForDeviceState(TestDeviceState.NOT_AVAILABLE, waitTime); in waitForDeviceNotAvailable()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandSchedulerTest.java873 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/
DScreenshotOnFailureCollectorTest.java95 EasyMock.expect(mMockDevice.getDeviceState()).andReturn(TestDeviceState.NOT_AVAILABLE); in testCollect_skipOffline()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DTestInvocationTest.java237 EasyMock.expect(mMockDevice.getDeviceState()).andStubReturn(TestDeviceState.NOT_AVAILABLE); in setUp()