Home
last modified time | relevance | path

Searched refs:IManagedTestDevice (Results 1 – 13 of 13) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/device/
DManagedDeviceList.java20 import com.android.tradefed.device.IManagedTestDevice.DeviceEventResponse;
42 class ManagedDeviceList implements Iterable<IManagedTestDevice> {
48 private static class AllocationMatcher implements IMatcher<IManagedTestDevice> {
56 public boolean matches(IManagedTestDevice element) { in matches()
67 private List<IManagedTestDevice> mList = new LinkedList<IManagedTestDevice>();
78 public Iterator<IManagedTestDevice> iterator() { in iterator()
85 List<IManagedTestDevice> getCopy() { in getCopy()
88 List<IManagedTestDevice> l = new ArrayList<IManagedTestDevice>(size()); in getCopy()
114 public IManagedTestDevice find(final String serialNumber) { in find()
115 return find(new IMatcher<IManagedTestDevice>() { in find()
[all …]
DTestDeviceMutator.java30 ((IManagedTestDevice)testDevice).setIDevice(device); in setIDevice()
39 ((IManagedTestDevice)testDevice).setFastbootEnabled(fastbootEnabled); in setFastbootEnabled()
DDeviceManager.java31 import com.android.tradefed.device.IManagedTestDevice.DeviceEventResponse;
372 private void checkAndAddAvailableDevice(final IManagedTestDevice testDevice) { in checkAndAddAvailableDevice()
449 IManagedTestDevice d = mManagedDeviceList.findOrCreate(stubDevice); in addAvailableDevice()
506 IManagedTestDevice d = mManagedDeviceList.findOrCreate(new StubDevice(serial, false)); in forceAllocateDevice()
532 IManagedTestDevice managedDevice = (IManagedTestDevice)device; in freeDevice()
572 IManagedTestDevice managedDevice, FreeDeviceState deviceState) { in getEventFromFree()
682 Process emulatorProcess = ((IManagedTestDevice) device).getEmulatorProcess(); in killEmulator()
752 if (usbDevice instanceof IManagedTestDevice) { in reconnectDeviceToTcp()
753 IManagedTestDevice managedUsbDevice = (IManagedTestDevice) usbDevice; in reconnectDeviceToTcp()
869 for (IManagedTestDevice device : mManagedDeviceList) { in terminateHard()
[all …]
DIManagedTestDeviceFactory.java32 IManagedTestDevice createDevice(IDevice stubDevice); in createDevice()
DIManagedTestDevice.java23 public interface IManagedTestDevice extends ITestDevice { interface
DManagedTestDeviceFactory.java64 public IManagedTestDevice createDevice(IDevice idevice) { in createDevice()
65 IManagedTestDevice testDevice = null; in createDevice()
DNativeDevice.java96 public class NativeDevice implements IManagedTestDevice {
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DManagedDeviceListTest.java19 import com.android.tradefed.device.IManagedTestDevice.DeviceEventResponse;
40 public IManagedTestDevice createDevice(IDevice stubDevice) { in setUp()
84 IManagedTestDevice d = mManagedDeviceList.findOrCreate(new StubDevice("foo")); in testAllocate()
100 IManagedTestDevice d = mManagedDeviceList.findOrCreate(new StubDevice("foo")); in testHandleDeviceEvent()
117 IManagedTestDevice mockDevice = EasyMock.createMock(IManagedTestDevice.class); in testUpdateFastbootState()
137 IManagedTestDevice mockDevice = EasyMock.createMock(IManagedTestDevice.class); in testUpdateFastbootState_gone()
DDeviceManagerTest.java25 import com.android.tradefed.device.IManagedTestDevice.DeviceEventResponse;
63 private IManagedTestDevice mMockTestDevice;
169 mMockTestDevice = EasyMock.createMock(IManagedTestDevice.class); in setUp()
172 public IManagedTestDevice createDevice(IDevice idevice) { in setUp()
355 IManagedTestDevice emulator = (IManagedTestDevice) manager.allocateDevice(options); in testFreeDevice_emulator()
486 IManagedTestDevice testDevice = EasyMock.createNiceMock(IManagedTestDevice.class); in testFreeDevice_noop()
648 IManagedTestDevice device = (IManagedTestDevice) manager.connectToTcpDevice(ipAndPort); in testConnectToTcpDevice()
667 IManagedTestDevice device = (IManagedTestDevice) manager.connectToTcpDevice(ipAndPort); in testConnectToTcpDevice_alreadyAllocated()
902 IManagedTestDevice tcpDevice = (IManagedTestDevice) manager.allocateDevice(options); in testFreeDevice_tcpDevice()
933 IManagedTestDevice testDevice = new TestDevice(mMockIDevice, mMockStateMonitor, null); in testFreeDevice_unavailable()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DDeviceRecoveryModeUtil.java22 import com.android.tradefed.device.IManagedTestDevice;
37 public static void bootOutOfRecovery(IManagedTestDevice device, long timeoutMs) in bootOutOfRecovery()
52 public static void bootOutOfRecovery(IManagedTestDevice managedDevice, in bootOutOfRecovery()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DDeviceRecoveryModeUtilTest.java20 import com.android.tradefed.device.IManagedTestDevice;
32 private IManagedTestDevice mMockManagedDevice;
37 mMockManagedDevice = EasyMock.createMock(IManagedTestDevice.class); in setUp()
/tools/tradefederation/contrib/src/com/android/example/
DRebootTest.java21 import com.android.tradefed.device.IManagedTestDevice;
59 if (((IManagedTestDevice) getDevice()).getMonitor().waitForDeviceOnline() in run()
62 ((IManagedTestDevice) getDevice()).recoverDevice(); in run()
/tools/tradefederation/core/prod-tests/src/com/android/ota/tests/
DSideloadOtaStabilityTest.java31 import com.android.tradefed.device.IManagedTestDevice;
226 IManagedTestDevice managedDevice = (IManagedTestDevice) mDevice; in run()
232 DeviceRecoveryModeUtil.bootOutOfRecovery((IManagedTestDevice) mDevice, in run()