Searched refs:getAllocationState (Results 1 – 12 of 12) sorted by relevance
/tools/tradefederation/core/javatests/com/android/tradefed/device/recovery/ |
D | UsbResetMultiDeviceRecoveryTest.java | 98 when(mDevice.getAllocationState()).thenReturn(DeviceAllocationState.Available); in testRecover_available() 111 when(mDevice.getAllocationState()).thenReturn(DeviceAllocationState.Unavailable); in testRecover_unavailable() 125 when(mDevice.getAllocationState()).thenReturn(DeviceAllocationState.Allocated); in testRecover_fastboot_allocated() 140 when(mDevice.getAllocationState()).thenReturn(DeviceAllocationState.Ignored); in testRecover_fastboot_unallocated() 165 when(mDevice.getAllocationState()).thenReturn(DeviceAllocationState.Unknown); in testRecover_notConnected()
|
D | RunConfigDeviceRecoveryTest.java | 80 when(mMockTestDevice.getAllocationState()).thenReturn(DeviceAllocationState.Allocated); in testRecoverDevice_allocated() 88 when(mMockTestDevice.getAllocationState()).thenReturn(DeviceAllocationState.Available); in testRecoverDevice_offline() 105 when(mMockTestDevice.getAllocationState()).thenReturn(DeviceAllocationState.Available); in testRecoverDevice_fastboot() 118 when(mMockTestDevice.getAllocationState()).thenReturn(DeviceAllocationState.Available); in testRecoverDevice_run()
|
D | UsbResetRunConfigRecoveryTest.java | 66 doReturn(DeviceAllocationState.Available).when(mockDevice).getAllocationState(); in testShouldSkip_available()
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/ |
D | IManagedTestDevice.java | 112 public DeviceAllocationState getAllocationState(); in getAllocationState() method
|
/tools/tradefederation/core/src/com/android/tradefed/device/recovery/ |
D | UsbResetRunConfigRecovery.java | 40 if (!res && DeviceAllocationState.Available.equals(device.getAllocationState())) { in shouldSkip()
|
D | UsbResetMultiDeviceRecovery.java | 123 DeviceAllocationState state = device.getAllocationState(); in shouldReset()
|
D | RunConfigDeviceRecovery.java | 69 if (DeviceAllocationState.Allocated.equals(device.getAllocationState())) { in recoverDevices()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/ |
D | DeviceManagerTest.java | 497 when(mMockTestDevice.getAllocationState()).thenReturn(DeviceAllocationState.Available); in testSetIDevice() 605 when(mMockTestDevice.getAllocationState()).thenReturn(DeviceAllocationState.Allocated); in testSetState_offline() 659 when(mMockTestDevice.getAllocationState()).thenReturn(DeviceAllocationState.Allocated); in testConnectToTcpDevice_alreadyAllocated() 1285 when(mMockTestDevice.getAllocationState()).thenReturn(DeviceAllocationState.Allocated); in testExecCmdOnAvailableDevice_deviceNotAvailable() 1300 when(mMockTestDevice.getAllocationState()).thenReturn(DeviceAllocationState.Available); in testExecCmdOnAvailableDevice_longRunCmd() 1316 when(mMockTestDevice.getAllocationState()).thenReturn(DeviceAllocationState.Available); in testExecCmdOnAvailableDevice_success()
|
D | TestDeviceTest.java | 2837 assertEquals(DeviceAllocationState.Unknown, mTestDevice.getAllocationState()); in testHandleAllocationEvent() 2840 assertEquals(DeviceAllocationState.Checking_Availability, mTestDevice.getAllocationState()); in testHandleAllocationEvent() 2843 assertEquals(DeviceAllocationState.Available, mTestDevice.getAllocationState()); in testHandleAllocationEvent() 2846 assertEquals(DeviceAllocationState.Allocated, mTestDevice.getAllocationState()); in testHandleAllocationEvent() 2849 assertEquals(DeviceAllocationState.Available, mTestDevice.getAllocationState()); in testHandleAllocationEvent() 2852 assertEquals(DeviceAllocationState.Unknown, mTestDevice.getAllocationState()); in testHandleAllocationEvent() 2855 assertEquals(DeviceAllocationState.Allocated, mTestDevice.getAllocationState()); in testHandleAllocationEvent() 2858 assertEquals(DeviceAllocationState.Unknown, mTestDevice.getAllocationState()); in testHandleAllocationEvent()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | ManagedDeviceList.java | 306 if (d == null || DeviceAllocationState.Unavailable.equals(d.getAllocationState())) {
|
D | NativeDevice.java | 4771 public DeviceAllocationState getAllocationState() { in getAllocationState() method in NativeDevice 5398 if (DeviceAllocationState.Allocated.equals(getAllocationState())) { in getCachedDeviceDescriptor() 5434 getAllocationState(), in getDeviceDescriptor() 5466 getAllocationState(), in getDeviceDescriptor()
|
D | DeviceManager.java | 810 if (!device.getAllocationState().equals(DeviceAllocationState.Available)) { in executeCmdOnAvailableDevice()
|