Home
last modified time | relevance | path

Searched refs:mManagedDeviceList (Results 1 – 2 of 2) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/device/
DManagedDeviceListTest.java40 private ManagedDeviceList mManagedDeviceList; field in ManagedDeviceListTest
44 mManagedDeviceList = in setUp()
75 assertNull(mManagedDeviceList.find("foo")); in testFindOrCreate()
77 ITestDevice d = mManagedDeviceList.findOrCreate(new StubDevice("foo")); in testFindOrCreate()
80 assertEquals(d, mManagedDeviceList.find("foo")); in testFindOrCreate()
82 assertEquals(d, mManagedDeviceList.findOrCreate(new StubDevice("foo"))); in testFindOrCreate()
83 assertEquals(1, mManagedDeviceList.size()); in testFindOrCreate()
92 assertNull(mManagedDeviceList.findOrCreate(new StubDevice("????"))); in testFindOrCreate_invalidSerial()
99 assertNull(mManagedDeviceList.allocate(DeviceManager.ANY_DEVICE_OPTIONS)); in testAllocate()
100 IManagedTestDevice d = mManagedDeviceList.findOrCreate(new StubDevice("foo")); in testAllocate()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/
DDeviceManager.java124 private ManagedDeviceList mManagedDeviceList; field in DeviceManager
255 mManagedDeviceList = new ManagedDeviceList(deviceFactory); in init()
453 mManagedDeviceList.handleDeviceEvent(testDevice, DeviceEvent.AVAILABLE_CHECK_IGNORED); in checkAndAddAvailableDevice()
464 DeviceEventResponse r = mManagedDeviceList.handleDeviceEvent(testDevice, in checkAndAddAvailableDevice()
474 DeviceEventResponse r = mManagedDeviceList.handleDeviceEvent(testDevice, in checkAndAddAvailableDevice()
577 IManagedTestDevice d = mManagedDeviceList.findOrCreateFastboot(fastbootDevice); in addFastbootDevice()
579 mManagedDeviceList.handleDeviceEvent(d, DeviceEvent.FASTBOOT_DETECTED); in addFastbootDevice()
586 IManagedTestDevice d = mManagedDeviceList.findOrCreate(stubDevice); in addAvailableDevice()
588 mManagedDeviceList.handleDeviceEvent(d, DeviceEvent.FORCE_AVAILABLE); in addAvailableDevice()
663 ITestDevice device = mManagedDeviceList.allocate(options); in allocateDevice()
[all …]