/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | ManagedDeviceList.java | 21 import com.android.tradefed.device.IManagedTestDevice.DeviceEventResponse; 49 class ManagedDeviceList implements Iterable<IManagedTestDevice> { 63 private static class AllocationMatcher implements IMatcher<IManagedTestDevice> { 71 public boolean matches(IManagedTestDevice element) { in matches() 97 private List<IManagedTestDevice> mList = new LinkedList<IManagedTestDevice>(); 108 public Iterator<IManagedTestDevice> iterator() { in iterator() 115 List<IManagedTestDevice> getCopy() { in getCopy() 118 List<IManagedTestDevice> l = new ArrayList<IManagedTestDevice>(size()); in getCopy() 144 public IManagedTestDevice find(final String serialNumber) { in find() 145 return find(new IMatcher<IManagedTestDevice>() { in find() [all …]
|
D | DeviceManager.java | 31 import com.android.tradefed.device.IManagedTestDevice.DeviceEventResponse; 443 private void checkAndAddAvailableDevice(final IManagedTestDevice testDevice) { in checkAndAddAvailableDevice() 577 IManagedTestDevice d = mManagedDeviceList.findOrCreateFastboot(fastbootDevice); in addFastbootDevice() 586 IManagedTestDevice d = mManagedDeviceList.findOrCreate(stubDevice); in addAvailableDevice() 681 IManagedTestDevice d = mManagedDeviceList.forceAllocate(serial); in forceAllocateDevice() 709 IManagedTestDevice managedDevice = (IManagedTestDevice) device; in freeDevice() 762 IManagedTestDevice managedDevice, FreeDeviceState deviceState) { in getEventFromFree() 803 IManagedTestDevice device = mManagedDeviceList.find(serial); in executeCmdOnAvailableDevice() 904 Process emulatorProcess = ((IManagedTestDevice) device).getEmulatorProcess(); in killEmulator() 922 ((IManagedTestDevice) device).setIDevice(new EmulatorDevice(device.getSerialNumber())); in killEmulator() [all …]
|
D | ManagedTestDeviceFactory.java | 66 public IManagedTestDevice createRequestedDevice(IDevice idevice, IDeviceSelection options) { in createRequestedDevice() 67 IManagedTestDevice testDevice = null; in createRequestedDevice() 91 public IManagedTestDevice createDevice(IDevice idevice) { in createDevice() 92 IManagedTestDevice testDevice = null; in createDevice()
|
/tools/tradefederation/core/javatests/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 | 29 import com.android.tradefed.device.IManagedTestDevice; 47 private IManagedTestDevice mMockTestDevice; 54 mMockTestDevice = mock(IManagedTestDevice.class); in setup() 78 List<IManagedTestDevice> devices = new ArrayList<>(); in testRecoverDevice_allocated() 86 List<IManagedTestDevice> devices = new ArrayList<>(); in testRecoverDevice_offline() 103 List<IManagedTestDevice> devices = new ArrayList<>(); in testRecoverDevice_fastboot() 116 List<IManagedTestDevice> devices = new ArrayList<>(); in testRecoverDevice_run()
|
D | BatteryUnavailableDeviceRecoveryTest.java | 23 import com.android.tradefed.device.IManagedTestDevice; 35 private IManagedTestDevice mMockDevice; 41 mMockDevice = Mockito.mock(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/javatests/com/android/tradefed/device/ |
D | ManagedDeviceListTest.java | 25 import com.android.tradefed.device.IManagedTestDevice.DeviceEventResponse; 49 public IManagedTestDevice createDevice(IDevice stubDevice) { in setUp() 56 public IManagedTestDevice createRequestedDevice( in setUp() 100 IManagedTestDevice d = mManagedDeviceList.findOrCreate(new StubDevice("foo")); in testAllocate() 117 IManagedTestDevice d = mManagedDeviceList.findOrCreate(new StubDevice("foo")); in testHandleDeviceEvent() 135 IManagedTestDevice mockDevice = Mockito.mock(IManagedTestDevice.class); in testUpdateFastbootState() 154 IManagedTestDevice mockDevice = Mockito.mock(IManagedTestDevice.class); in testUpdateFastbootState_gone()
|
D | DeviceManagerTest.java | 39 import com.android.tradefed.device.IManagedTestDevice.DeviceEventResponse; 82 @Mock IManagedTestDevice mMockTestDevice; 147 public IManagedTestDevice createDevice(IDevice idevice) { in setUp() 390 IManagedTestDevice emulator = in testFreeDevice_emulator() 391 (IManagedTestDevice) manager.allocateDevice(mDeviceSelections, false); in testFreeDevice_emulator() 481 IManagedTestDevice testDevice = mock(IManagedTestDevice.class); in testFreeDevice_noop() 634 IManagedTestDevice device = (IManagedTestDevice) manager.connectToTcpDevice(ipAndPort); in testConnectToTcpDevice() 662 IManagedTestDevice device = (IManagedTestDevice) manager.connectToTcpDevice(ipAndPort); in testConnectToTcpDevice_alreadyAllocated() 871 IManagedTestDevice tcpDevice = in testFreeDevice_tcpDevice() 872 (IManagedTestDevice) manager.allocateDevice(mDeviceSelections, false); in testFreeDevice_tcpDevice() [all …]
|
/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() 138 public boolean shouldSkip(IManagedTestDevice device) { in shouldSkip() 168 if (device instanceof IManagedTestDevice) { in invocationComplete() 170 ((IManagedTestDevice) device).setFastbootPath(mDeviceManager.getFastbootPath()); in invocationComplete()
|
D | UsbResetRunConfigRecovery.java | 20 import com.android.tradefed.device.IManagedTestDevice; 33 public boolean shouldSkip(IManagedTestDevice device) { in shouldSkip() 50 private boolean checkRanBefore(IManagedTestDevice device) { in checkRanBefore()
|
D | BatteryUnavailableDeviceRecovery.java | 20 import com.android.tradefed.device.IManagedTestDevice; 28 public boolean shouldSkip(IManagedTestDevice device) { in shouldSkip()
|
D | BatteryRechargeDeviceRecovery.java | 20 import com.android.tradefed.device.IManagedTestDevice; 35 public boolean shouldSkip(IManagedTestDevice device) { in shouldSkip()
|
/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/device_build_interfaces/com/android/tradefed/device/ |
D | IManagedTestDeviceFactory.java | 32 IManagedTestDevice createDevice(IDevice stubDevice); in createDevice() 35 public IManagedTestDevice createRequestedDevice(IDevice idevice, IDeviceSelection options); in createRequestedDevice()
|
D | IMultiDeviceRecovery.java | 34 void recoverDevices(List<IManagedTestDevice> managedDevices); in recoverDevices()
|
D | IManagedTestDevice.java | 23 public interface IManagedTestDevice extends ITestDevice { interface
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | EmulatorMemoryCpuCapturer.java | 19 import com.android.tradefed.device.IManagedTestDevice; 44 IManagedTestDevice managedTestDevice = (IManagedTestDevice) device; in EmulatorMemoryCpuCapturer()
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | DeviceRecoveryModeUtilTest.java | 24 import com.android.tradefed.device.IManagedTestDevice; 38 @Mock IManagedTestDevice mMockManagedDevice;
|
/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/contrib/src/com/android/performance/tests/ |
D | EmulatorStartupPerfTest.java | 20 import com.android.tradefed.device.IManagedTestDevice; 56 ((IManagedTestDevice) device).setEmulatorProcess(p); in launchEmulator()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/cloud/ |
D | GceSshTunnelMonitorTest.java | 30 import com.android.tradefed.device.IManagedTestDevice; 150 IManagedTestDevice mockDevice = Mockito.mock(IManagedTestDevice.class); in testCreateSshTunnel()
|
/tools/tradefederation/core/src/com/android/tradefed/device/connection/ |
D | AdbSshConnection.java | 23 import com.android.tradefed.device.IManagedTestDevice; 163 if (((IManagedTestDevice) getDevice()) in initializeConnection() 273 if (!((IManagedTestDevice) getDevice()) in tearDownConnection() 345 ((IManagedTestDevice) getDevice()) in tearDownConnection() 348 ((IManagedTestDevice) getDevice()) in tearDownConnection() 351 ((IManagedTestDevice) getDevice()) in tearDownConnection() 359 CLog.d("Release as idevice: %s", ((IManagedTestDevice) getDevice()).getIDevice()); in tearDownConnection() 611 ((IManagedTestDevice) getDevice()).getMonitor().waitForDeviceAvailable(); in powerwashGce()
|
/tools/tradefederation/core/javatests/com/android/tradefed/service/management/ |
D | DeviceManagementGrpcServerTest.java | 31 import com.android.tradefed.device.IManagedTestDevice; 137 IManagedTestDevice mockedDevice = Mockito.mock(IManagedTestDevice.class); in testReserveAndRelease_freeDevice()
|