Home
last modified time | relevance | path

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

/tools/tradefederation/core/tests/src/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()
139 when(mDevice.getAllocationState()).thenReturn(DeviceAllocationState.Ignored); in testRecover_fastboot_unallocated()
164 when(mDevice.getAllocationState()).thenReturn(DeviceAllocationState.Unknown); in testRecover_notConnected()
DRunConfigDeviceRecoveryTest.java77 EasyMock.expect(mMockTestDevice.getAllocationState()) in testRecoverDevice_allocated()
88 EasyMock.expect(mMockTestDevice.getAllocationState()) in testRecoverDevice_offline()
108 EasyMock.expect(mMockTestDevice.getAllocationState()) in testRecoverDevice_fastboot()
124 EasyMock.expect(mMockTestDevice.getAllocationState()) in testRecoverDevice_run()
DUsbResetRunConfigRecoveryTest.java66 doReturn(DeviceAllocationState.Available).when(mockDevice).getAllocationState(); in testShouldSkip_available()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceTest.java2480 assertEquals(DeviceAllocationState.Unknown, mTestDevice.getAllocationState()); in testHandleAllocationEvent()
2483 assertEquals(DeviceAllocationState.Checking_Availability, mTestDevice.getAllocationState()); in testHandleAllocationEvent()
2486 assertEquals(DeviceAllocationState.Available, mTestDevice.getAllocationState()); in testHandleAllocationEvent()
2489 assertEquals(DeviceAllocationState.Allocated, mTestDevice.getAllocationState()); in testHandleAllocationEvent()
2492 assertEquals(DeviceAllocationState.Available, mTestDevice.getAllocationState()); in testHandleAllocationEvent()
2495 assertEquals(DeviceAllocationState.Unknown, mTestDevice.getAllocationState()); in testHandleAllocationEvent()
2498 assertEquals(DeviceAllocationState.Allocated, mTestDevice.getAllocationState()); in testHandleAllocationEvent()
2501 assertEquals(DeviceAllocationState.Unknown, mTestDevice.getAllocationState()); in testHandleAllocationEvent()
DDeviceManagerTest.java580 EasyMock.expect(mMockTestDevice.getAllocationState()) in testSetIDevice()
691 EasyMock.expect(mMockTestDevice.getAllocationState()) in testSetState_offline()
733 EasyMock.expect(mMockTestDevice.getAllocationState()) in testConnectToTcpDevice_alreadyAllocated()
/tools/tradefederation/core/src/com/android/tradefed/device/
DNativeDevice.java4006 public DeviceAllocationState getAllocationState() { in getAllocationState() method in NativeDevice
4502 if (DeviceAllocationState.Allocated.equals(getAllocationState())) { in getCachedDeviceDescriptor()
4535 getAllocationState(), in getDeviceDescriptor()
DManagedDeviceList.java234 if (d == null || DeviceAllocationState.Unavailable.equals(d.getAllocationState())) {
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DIManagedTestDevice.java111 public DeviceAllocationState getAllocationState(); in getAllocationState() method
/tools/tradefederation/core/src/com/android/tradefed/device/recovery/
DUsbResetRunConfigRecovery.java35 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()