Home
last modified time | relevance | path

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

12

/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()
71 private List<IManagedTestDevice> mList = new LinkedList<IManagedTestDevice>();
82 public Iterator<IManagedTestDevice> iterator() { in iterator()
89 List<IManagedTestDevice> getCopy() { in getCopy()
92 List<IManagedTestDevice> l = new ArrayList<IManagedTestDevice>(size()); in getCopy()
118 public IManagedTestDevice find(final String serialNumber) { in find()
119 return find(new IMatcher<IManagedTestDevice>() { in find()
[all …]
DDeviceManager.java31 import com.android.tradefed.device.IManagedTestDevice.DeviceEventResponse;
434 private void checkAndAddAvailableDevice(final IManagedTestDevice testDevice) { in checkAndAddAvailableDevice()
552 IManagedTestDevice d = mManagedDeviceList.findOrCreate(stubDevice); in addAvailableDevice()
633 IManagedTestDevice d = mManagedDeviceList.forceAllocate(serial); in forceAllocateDevice()
661 IManagedTestDevice managedDevice = (IManagedTestDevice)device; in freeDevice()
715 IManagedTestDevice managedDevice, FreeDeviceState deviceState) { in getEventFromFree()
809 Process emulatorProcess = ((IManagedTestDevice) device).getEmulatorProcess(); in killEmulator()
854 IManagedTestDevice tcpDevice = mManagedDeviceList.findOrCreate(new StubDevice(ipAndPort)); in connectToTcpDevice()
886 if (usbDevice instanceof IManagedTestDevice) { in reconnectDeviceToTcp()
887 IManagedTestDevice managedUsbDevice = (IManagedTestDevice) usbDevice; in reconnectDeviceToTcp()
[all …]
DManagedTestDeviceFactory.java71 public IManagedTestDevice createDevice(IDevice idevice) { in createDevice()
72 IManagedTestDevice testDevice = null; in createDevice()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DDeviceManagerTest.java32 import com.android.tradefed.device.IManagedTestDevice.DeviceEventResponse;
75 private IManagedTestDevice mMockTestDevice;
178 mMockTestDevice = EasyMock.createMock(IManagedTestDevice.class); in setUp()
181 public IManagedTestDevice createDevice(IDevice idevice) { in setUp()
438 IManagedTestDevice emulator = in testFreeDevice_emulator()
439 (IManagedTestDevice) manager.allocateDevice(mDeviceSelections, false); in testFreeDevice_emulator()
562 IManagedTestDevice testDevice = EasyMock.createNiceMock(IManagedTestDevice.class); in testFreeDevice_noop()
719 IManagedTestDevice device = (IManagedTestDevice) manager.connectToTcpDevice(ipAndPort); in testConnectToTcpDevice()
739 IManagedTestDevice device = (IManagedTestDevice) manager.connectToTcpDevice(ipAndPort); in testConnectToTcpDevice_alreadyAllocated()
968 IManagedTestDevice tcpDevice = in testFreeDevice_tcpDevice()
[all …]
DManagedDeviceListTest.java23 import com.android.tradefed.device.IManagedTestDevice.DeviceEventResponse;
45 public IManagedTestDevice createDevice(IDevice stubDevice) { in setUp()
90 IManagedTestDevice d = mManagedDeviceList.findOrCreate(new StubDevice("foo")); in testAllocate()
107 IManagedTestDevice d = mManagedDeviceList.findOrCreate(new StubDevice("foo")); in testHandleDeviceEvent()
125 IManagedTestDevice mockDevice = EasyMock.createMock(IManagedTestDevice.class); in testUpdateFastbootState()
146 IManagedTestDevice mockDevice = EasyMock.createMock(IManagedTestDevice.class); in testUpdateFastbootState_gone()
DManagedTestDeviceFactoryTest.java95 IManagedTestDevice result = mFactory.createDevice(mMockIDevice); in testNestedDevice()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/recovery/
DUsbResetRunConfigRecoveryTest.java23 import com.android.tradefed.device.IManagedTestDevice;
42 IManagedTestDevice mockDevice = Mockito.mock(IManagedTestDevice.class); in testShouldSkip()
55 IManagedTestDevice mockDevice = Mockito.mock(IManagedTestDevice.class); in testShouldSkip_fastboot()
63 IManagedTestDevice mockDevice = Mockito.mock(IManagedTestDevice.class); in testShouldSkip_available()
DRunConfigDeviceRecoveryTest.java26 import com.android.tradefed.device.IManagedTestDevice;
44 private IManagedTestDevice mMockTestDevice;
51 mMockTestDevice = EasyMock.createMock(IManagedTestDevice.class); in setup()
75 List<IManagedTestDevice> devices = new ArrayList<>(); in testRecoverDevice_allocated()
86 List<IManagedTestDevice> devices = new ArrayList<>(); in testRecoverDevice_offline()
106 List<IManagedTestDevice> devices = new ArrayList<>(); in testRecoverDevice_fastboot()
122 List<IManagedTestDevice> devices = new ArrayList<>(); in testRecoverDevice_run()
DBatteryUnavailableDeviceRecoveryTest.java22 import com.android.tradefed.device.IManagedTestDevice;
34 private IManagedTestDevice mMockDevice;
40 mMockDevice = EasyMock.createMock(IManagedTestDevice.class); in setUp()
DUsbResetMultiDeviceRecoveryTest.java31 import com.android.tradefed.device.IManagedTestDevice;
55 private IManagedTestDevice mDevice;
61 mDevice = mock(IManagedTestDevice.class); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/device/recovery/
DUsbResetMultiDeviceRecovery.java28 import com.android.tradefed.device.IManagedTestDevice;
62 public void recoverDevices(List<IManagedTestDevice> devices) { in recoverDevices()
67 Map<String, IManagedTestDevice> managedDeviceMap = in recoverDevices()
83 for (IManagedTestDevice device : devices) { in recoverDevices()
115 private boolean shouldReset(IManagedTestDevice device) { in shouldReset()
129 private void tryReboot(IManagedTestDevice device) { in tryReboot()
DRunConfigDeviceRecovery.java28 import com.android.tradefed.device.IManagedTestDevice;
63 public void recoverDevices(List<IManagedTestDevice> managedDevices) { in recoverDevices()
68 for (IManagedTestDevice device : managedDevices) { in recoverDevices()
137 public boolean shouldSkip(IManagedTestDevice device) { in shouldSkip()
167 if (device instanceof IManagedTestDevice) { in invocationComplete()
169 ((IManagedTestDevice) device).setFastbootPath(mDeviceManager.getFastbootPath()); in invocationComplete()
DUsbResetRunConfigRecovery.java20 import com.android.tradefed.device.IManagedTestDevice;
32 public boolean shouldSkip(IManagedTestDevice device) { in shouldSkip()
45 private boolean checkRanBefore(IManagedTestDevice device) { in checkRanBefore()
DBatteryUnavailableDeviceRecovery.java20 import com.android.tradefed.device.IManagedTestDevice;
27 public boolean shouldSkip(IManagedTestDevice device) { in shouldSkip()
DBatteryRechargeDeviceRecovery.java20 import com.android.tradefed.device.IManagedTestDevice;
34 public boolean shouldSkip(IManagedTestDevice device) { in shouldSkip()
/tools/tradefederation/contrib/src/com/android/fastboot/tests/
DFastbootTest.java24 import com.android.tradefed.device.IManagedTestDevice;
118 String originalFastbootpath = ((IManagedTestDevice) mDevice).getFastbootPath(); in run()
123 ((IManagedTestDevice) mDevice).setFastbootPath(originalFastbootpath); in run()
178 ((IManagedTestDevice) mDevice).setFastbootPath(fastboot.getAbsolutePath()); in testFastboot()
/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/core/tests/src/com/android/tradefed/device/cloud/
DGceSshTunnelMonitorTest.java29 import com.android.tradefed.device.IManagedTestDevice;
153 IManagedTestDevice mockDevice = EasyMock.createMock(IManagedTestDevice.class); in testCreateSshTunnel()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DGceSshTunnelMonitor.java19 import com.android.tradefed.device.IManagedTestDevice;
354 ((IManagedTestDevice) device).setIDevice(new RemoteAvdIDevice(serial)); in createSshTunnel()
355 ((IManagedTestDevice) device).setFastbootEnabled(false); in createSshTunnel()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DFastbootDeviceFlasher.java22 import com.android.tradefed.device.IManagedTestDevice;
156 if (device instanceof IManagedTestDevice) { in flash()
157 String fastbootVersion = ((IManagedTestDevice) device).getFastbootVersion(); in flash()
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandScheduler.java55 import com.android.tradefed.device.IManagedTestDevice;
494 if (device instanceof IManagedTestDevice) { in releaseDevices()
496 ((IManagedTestDevice)device).setFastbootPath(mDeviceManager.getFastbootPath()); in releaseDevices()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DIManagedTestDeviceFactory.java32 IManagedTestDevice createDevice(IDevice stubDevice); in createDevice()
DIMultiDeviceRecovery.java34 void recoverDevices(List<IManagedTestDevice> managedDevices); in recoverDevices()
DIManagedTestDevice.java23 public interface IManagedTestDevice extends ITestDevice { interface

12