Home
last modified time | relevance | path

Searched refs:DeviceEvent (Results 1 – 10 of 10) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DDeviceManagerTest.java307 EasyMock.expect(mMockTestDevice.handleAllocationEvent(DeviceEvent.ALLOCATE_REQUEST)) in testAllocateDevice()
325 DeviceEvent.EXPLICIT_ALLOCATE_REQUEST)) in testAllocateDevice_match()
341 EasyMock.expect(mMockTestDevice.handleAllocationEvent(DeviceEvent.FORCE_AVAILABLE)) in testAllocateDevice_match_temporary()
346 DeviceEvent.EXPLICIT_ALLOCATE_REQUEST)) in testAllocateDevice_match_temporary()
352 EasyMock.expect(mMockTestDevice.handleAllocationEvent(DeviceEvent.FREE_UNKNOWN)) in testAllocateDevice_match_temporary()
380 EasyMock.expect(mMockTestDevice.handleAllocationEvent(DeviceEvent.FORCE_AVAILABLE)) in testAllocateDevice_stubEmulator()
383 EasyMock.expect(mMockTestDevice.handleAllocationEvent(DeviceEvent.ALLOCATE_REQUEST)) in testAllocateDevice_stubEmulator()
420 EasyMock.expect(mMockTestDevice.handleAllocationEvent(DeviceEvent.FORCE_AVAILABLE)) in testFreeDevice_emulator()
423 EasyMock.expect(mMockTestDevice.handleAllocationEvent(DeviceEvent.ALLOCATE_REQUEST)) in testFreeDevice_emulator()
429 EasyMock.expect(mMockTestDevice.handleAllocationEvent(DeviceEvent.FREE_AVAILABLE)) in testFreeDevice_emulator()
[all …]
DManagedDeviceListTest.java94 d.handleAllocationEvent(DeviceEvent.FORCE_AVAILABLE); in testAllocate()
109 d.handleAllocationEvent(DeviceEvent.FORCE_ALLOCATE_REQUEST); in testHandleDeviceEvent()
111 mManagedDeviceList.handleDeviceEvent(d, DeviceEvent.DISCONNECTED); in testHandleDeviceEvent()
113 d.handleAllocationEvent(DeviceEvent.FREE_AVAILABLE); in testHandleDeviceEvent()
115 mManagedDeviceList.handleDeviceEvent(d, DeviceEvent.DISCONNECTED); in testHandleDeviceEvent()
152 EasyMock.expect(mockDevice.handleAllocationEvent(DeviceEvent.DISCONNECTED)).andReturn(der); in testUpdateFastbootState_gone()
DTestDeviceTest.java2482 assertNotNull(mTestDevice.handleAllocationEvent(DeviceEvent.CONNECTED_ONLINE)); in testHandleAllocationEvent()
2485 assertNotNull(mTestDevice.handleAllocationEvent(DeviceEvent.AVAILABLE_CHECK_PASSED)); in testHandleAllocationEvent()
2488 assertNotNull(mTestDevice.handleAllocationEvent(DeviceEvent.ALLOCATE_REQUEST)); in testHandleAllocationEvent()
2491 assertNotNull(mTestDevice.handleAllocationEvent(DeviceEvent.FREE_AVAILABLE)); in testHandleAllocationEvent()
2494 assertNotNull(mTestDevice.handleAllocationEvent(DeviceEvent.DISCONNECTED)); in testHandleAllocationEvent()
2497 assertNotNull(mTestDevice.handleAllocationEvent(DeviceEvent.FORCE_ALLOCATE_REQUEST)); in testHandleAllocationEvent()
2500 assertNotNull(mTestDevice.handleAllocationEvent(DeviceEvent.FREE_UNKNOWN)); in testHandleAllocationEvent()
/tools/tradefederation/core/src/com/android/tradefed/device/
DDeviceManager.java438 mManagedDeviceList.handleDeviceEvent(testDevice, DeviceEvent.AVAILABLE_CHECK_IGNORED); in checkAndAddAvailableDevice()
450 DeviceEvent.AVAILABLE_CHECK_PASSED); in checkAndAddAvailableDevice()
460 DeviceEvent.AVAILABLE_CHECK_FAILED); in checkAndAddAvailableDevice()
554 mManagedDeviceList.handleDeviceEvent(d, DeviceEvent.FORCE_AVAILABLE); in addAvailableDevice()
635 DeviceEventResponse r = d.handleAllocationEvent(DeviceEvent.FORCE_ALLOCATE_REQUEST); in forceAllocateDevice()
670 managedDevice, DeviceEvent.FREE_UNKNOWN); in freeDevice()
714 private DeviceEvent getEventFromFree( in getEventFromFree()
718 return DeviceEvent.FREE_UNRESPONSIVE; in getEventFromFree()
720 return DeviceEvent.FREE_AVAILABLE; in getEventFromFree()
731 return DeviceEvent.FREE_UNKNOWN; in getEventFromFree()
[all …]
DManagedDeviceList.java58 DeviceEvent event = DeviceEvent.ALLOCATE_REQUEST; in matches()
60 event = DeviceEvent.EXPLICIT_ALLOCATE_REQUEST; in matches()
160 handleDeviceEvent(d, DeviceEvent.DISCONNECTED);
283 public DeviceEventResponse handleDeviceEvent(IManagedTestDevice d, DeviceEvent event) {
DNativeDevice.java4018 public DeviceEventResponse handleAllocationEvent(DeviceEvent event) { in handleAllocationEvent()
/tools/tradefederation/core/remote/src/com/android/tradefed/device/
DDeviceAllocationEventHandler.java24 DeviceAllocationState handleDeviceEvent(DeviceEvent event); in handleDeviceEvent()
41 public DeviceAllocationState handleDeviceEvent(DeviceEvent event) { in handleDeviceEvent()
77 public DeviceAllocationState handleDeviceEvent(DeviceEvent event) { in handleDeviceEvent()
112 public DeviceAllocationState handleDeviceEvent(DeviceEvent event) { in handleDeviceEvent()
142 public DeviceAllocationState handleDeviceEvent(DeviceEvent event) { in handleDeviceEvent()
170 public DeviceAllocationState handleDeviceEvent(DeviceEvent event) { in handleDeviceEvent()
194 public DeviceAllocationState handleDeviceEvent(DeviceEvent event) { in handleDeviceEvent()
DDeviceEvent.java21 enum DeviceEvent { enum
DDeviceAllocationState.java42 public DeviceAllocationState handleDeviceEvent(DeviceEvent event) { in handleDeviceEvent()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DIManagedTestDevice.java117 public DeviceEventResponse handleAllocationEvent(DeviceEvent event); in handleAllocationEvent()