Home
last modified time | relevance | path

Searched refs:handleAllocationEvent (Results 1 – 7 of 7) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DDeviceManagerTest.java286 EasyMock.expect(mMockTestDevice.handleAllocationEvent(DeviceEvent.ALLOCATE_REQUEST)) in testAllocateDevice()
303 EasyMock.expect(mMockTestDevice.handleAllocationEvent(DeviceEvent.ALLOCATE_REQUEST)) in testAllocateDevice_match()
318 EasyMock.expect(mMockTestDevice.handleAllocationEvent(DeviceEvent.FORCE_AVAILABLE)) in testAllocateDevice_stubEmulator()
321 EasyMock.expect(mMockTestDevice.handleAllocationEvent(DeviceEvent.ALLOCATE_REQUEST)) in testAllocateDevice_stubEmulator()
337 EasyMock.expect(mMockTestDevice.handleAllocationEvent(DeviceEvent.FORCE_AVAILABLE)) in testFreeDevice_emulator()
340 EasyMock.expect(mMockTestDevice.handleAllocationEvent(DeviceEvent.ALLOCATE_REQUEST)) in testFreeDevice_emulator()
346 EasyMock.expect(mMockTestDevice.handleAllocationEvent(DeviceEvent.FREE_AVAILABLE)) in testFreeDevice_emulator()
348 EasyMock.expect(mMockTestDevice.handleAllocationEvent(DeviceEvent.ALLOCATE_REQUEST)) in testFreeDevice_emulator()
373 EasyMock.expect(mMockTestDevice.handleAllocationEvent(DeviceEvent.FORCE_AVAILABLE)) in testAllocateDevice_nullDevice()
375 EasyMock.expect(mMockTestDevice.handleAllocationEvent(DeviceEvent.ALLOCATE_REQUEST)) in testAllocateDevice_nullDevice()
[all …]
DManagedDeviceListTest.java88 d.handleAllocationEvent(DeviceEvent.FORCE_AVAILABLE); in testAllocate()
102 d.handleAllocationEvent(DeviceEvent.FORCE_ALLOCATE_REQUEST); in testHandleDeviceEvent()
106 d.handleAllocationEvent(DeviceEvent.FREE_AVAILABLE); in testHandleDeviceEvent()
143 EasyMock.expect(mockDevice.handleAllocationEvent(DeviceEvent.DISCONNECTED)).andReturn(der); in testUpdateFastbootState_gone()
DTestDeviceTest.java1944 assertNotNull(mTestDevice.handleAllocationEvent(DeviceEvent.CONNECTED_ONLINE)); in testHandleAllocationEvent()
1947 assertNotNull(mTestDevice.handleAllocationEvent(DeviceEvent.AVAILABLE_CHECK_PASSED)); in testHandleAllocationEvent()
1950 assertNotNull(mTestDevice.handleAllocationEvent(DeviceEvent.ALLOCATE_REQUEST)); in testHandleAllocationEvent()
1953 assertNotNull(mTestDevice.handleAllocationEvent(DeviceEvent.FREE_AVAILABLE)); in testHandleAllocationEvent()
1956 assertNotNull(mTestDevice.handleAllocationEvent(DeviceEvent.DISCONNECTED)); in testHandleAllocationEvent()
1959 assertNotNull(mTestDevice.handleAllocationEvent(DeviceEvent.FORCE_ALLOCATE_REQUEST)); in testHandleAllocationEvent()
1962 assertNotNull(mTestDevice.handleAllocationEvent(DeviceEvent.FREE_UNKNOWN)); in testHandleAllocationEvent()
/tools/tradefederation/core/src/com/android/tradefed/device/
DIManagedTestDevice.java111 public DeviceEventResponse handleAllocationEvent(DeviceEvent event); in handleAllocationEvent() method
DManagedDeviceList.java58 DeviceEventResponse r = element.handleAllocationEvent(DeviceEvent.ALLOCATE_REQUEST); in matches()
257 DeviceEventResponse r = d.handleAllocationEvent(event);
DDeviceManager.java508 DeviceEventResponse r = d.handleAllocationEvent(DeviceEvent.FORCE_ALLOCATE_REQUEST); in forceAllocateDevice()
DNativeDevice.java3439 public DeviceEventResponse handleAllocationEvent(DeviceEvent event) { in handleAllocationEvent() method in NativeDevice