Home
last modified time | relevance | path

Searched refs:getAllocationState (Results 1 – 12 of 12) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/device/recovery/
DUsbResetMultiDeviceRecoveryTest.java98 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()
DRunConfigDeviceRecoveryTest.java80 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()
DUsbResetRunConfigRecoveryTest.java66 doReturn(DeviceAllocationState.Available).when(mockDevice).getAllocationState(); in testShouldSkip_available()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DIManagedTestDevice.java112 public DeviceAllocationState getAllocationState(); in getAllocationState() method
/tools/tradefederation/core/src/com/android/tradefed/device/recovery/
DUsbResetRunConfigRecovery.java40 if (!res && DeviceAllocationState.Available.equals(device.getAllocationState())) { in shouldSkip()
DUsbResetMultiDeviceRecovery.java123 DeviceAllocationState state = device.getAllocationState(); in shouldReset()
DRunConfigDeviceRecovery.java69 if (DeviceAllocationState.Allocated.equals(device.getAllocationState())) { in recoverDevices()
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DDeviceManagerTest.java497 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()
DTestDeviceTest.java2837 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/
DManagedDeviceList.java306 if (d == null || DeviceAllocationState.Unavailable.equals(d.getAllocationState())) {
DNativeDevice.java4771 public DeviceAllocationState getAllocationState() { in getAllocationState() method in NativeDevice
5398 if (DeviceAllocationState.Allocated.equals(getAllocationState())) { in getCachedDeviceDescriptor()
5434 getAllocationState(), in getDeviceDescriptor()
5466 getAllocationState(), in getDeviceDescriptor()
DDeviceManager.java810 if (!device.getAllocationState().equals(DeviceAllocationState.Available)) { in executeCmdOnAvailableDevice()