/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | ManagedDeviceList.java | 20 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 …]
|
D | DeviceManager.java | 31 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 …]
|
D | ManagedTestDeviceFactory.java | 71 public IManagedTestDevice createDevice(IDevice idevice) { in createDevice() 72 IManagedTestDevice testDevice = null; in createDevice()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | DeviceManagerTest.java | 32 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 …]
|
D | ManagedDeviceListTest.java | 23 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()
|
D | ManagedTestDeviceFactoryTest.java | 95 IManagedTestDevice result = mFactory.createDevice(mMockIDevice); in testNestedDevice()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/recovery/ |
D | UsbResetRunConfigRecoveryTest.java | 23 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()
|
D | RunConfigDeviceRecoveryTest.java | 26 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()
|
D | BatteryUnavailableDeviceRecoveryTest.java | 22 import com.android.tradefed.device.IManagedTestDevice; 34 private IManagedTestDevice mMockDevice; 40 mMockDevice = EasyMock.createMock(IManagedTestDevice.class); in setUp()
|
D | UsbResetMultiDeviceRecoveryTest.java | 31 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/ |
D | UsbResetMultiDeviceRecovery.java | 28 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()
|
D | RunConfigDeviceRecovery.java | 28 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()
|
D | UsbResetRunConfigRecovery.java | 20 import com.android.tradefed.device.IManagedTestDevice; 32 public boolean shouldSkip(IManagedTestDevice device) { in shouldSkip() 45 private boolean checkRanBefore(IManagedTestDevice device) { in checkRanBefore()
|
D | BatteryUnavailableDeviceRecovery.java | 20 import com.android.tradefed.device.IManagedTestDevice; 27 public boolean shouldSkip(IManagedTestDevice device) { in shouldSkip()
|
D | BatteryRechargeDeviceRecovery.java | 20 import com.android.tradefed.device.IManagedTestDevice; 34 public boolean shouldSkip(IManagedTestDevice device) { in shouldSkip()
|
/tools/tradefederation/contrib/src/com/android/fastboot/tests/ |
D | FastbootTest.java | 24 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/ |
D | DeviceRecoveryModeUtil.java | 22 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/ |
D | DeviceRecoveryModeUtilTest.java | 20 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/ |
D | GceSshTunnelMonitorTest.java | 29 import com.android.tradefed.device.IManagedTestDevice; 153 IManagedTestDevice mockDevice = EasyMock.createMock(IManagedTestDevice.class); in testCreateSshTunnel()
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | GceSshTunnelMonitor.java | 19 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/ |
D | FastbootDeviceFlasher.java | 22 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/ |
D | CommandScheduler.java | 55 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/ |
D | IManagedTestDeviceFactory.java | 32 IManagedTestDevice createDevice(IDevice stubDevice); in createDevice()
|
D | IMultiDeviceRecovery.java | 34 void recoverDevices(List<IManagedTestDevice> managedDevices); in recoverDevices()
|
D | IManagedTestDevice.java | 23 public interface IManagedTestDevice extends ITestDevice { interface
|