Searched refs:getAllocationState (Results 1 – 11 of 11) sorted by relevance
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()139 when(mDevice.getAllocationState()).thenReturn(DeviceAllocationState.Ignored); in testRecover_fastboot_unallocated()164 when(mDevice.getAllocationState()).thenReturn(DeviceAllocationState.Unknown); in testRecover_notConnected()
77 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()
66 doReturn(DeviceAllocationState.Available).when(mockDevice).getAllocationState(); in testShouldSkip_available()
2480 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()
580 EasyMock.expect(mMockTestDevice.getAllocationState()) in testSetIDevice()691 EasyMock.expect(mMockTestDevice.getAllocationState()) in testSetState_offline()733 EasyMock.expect(mMockTestDevice.getAllocationState()) in testConnectToTcpDevice_alreadyAllocated()
4006 public DeviceAllocationState getAllocationState() { in getAllocationState() method in NativeDevice4502 if (DeviceAllocationState.Allocated.equals(getAllocationState())) { in getCachedDeviceDescriptor()4535 getAllocationState(), in getDeviceDescriptor()
234 if (d == null || DeviceAllocationState.Unavailable.equals(d.getAllocationState())) {
111 public DeviceAllocationState getAllocationState(); in getAllocationState() method
35 if (!res && DeviceAllocationState.Available.equals(device.getAllocationState())) { in shouldSkip()
123 DeviceAllocationState state = device.getAllocationState(); in shouldReset()
69 if (DeviceAllocationState.Allocated.equals(device.getAllocationState())) { in recoverDevices()