Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/src/com/android/tradefed/device/
DManagedDeviceList.java21 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 …]
DDeviceManager.java31 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 …]
DManagedTestDeviceFactory.java66 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/
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.java29 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()
DBatteryUnavailableDeviceRecoveryTest.java23 import com.android.tradefed.device.IManagedTestDevice;
35 private IManagedTestDevice mMockDevice;
41 mMockDevice = Mockito.mock(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/javatests/com/android/tradefed/device/
DManagedDeviceListTest.java25 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()
DDeviceManagerTest.java39 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/
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()
138 public boolean shouldSkip(IManagedTestDevice device) { in shouldSkip()
168 if (device instanceof IManagedTestDevice) { in invocationComplete()
170 ((IManagedTestDevice) device).setFastbootPath(mDeviceManager.getFastbootPath()); in invocationComplete()
DUsbResetRunConfigRecovery.java20 import com.android.tradefed.device.IManagedTestDevice;
33 public boolean shouldSkip(IManagedTestDevice device) { in shouldSkip()
50 private boolean checkRanBefore(IManagedTestDevice device) { in checkRanBefore()
DBatteryUnavailableDeviceRecovery.java20 import com.android.tradefed.device.IManagedTestDevice;
28 public boolean shouldSkip(IManagedTestDevice device) { in shouldSkip()
DBatteryRechargeDeviceRecovery.java20 import com.android.tradefed.device.IManagedTestDevice;
35 public boolean shouldSkip(IManagedTestDevice device) { in shouldSkip()
/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/device_build_interfaces/com/android/tradefed/device/
DIManagedTestDeviceFactory.java32 IManagedTestDevice createDevice(IDevice stubDevice); in createDevice()
35 public IManagedTestDevice createRequestedDevice(IDevice idevice, IDeviceSelection options); in createRequestedDevice()
DIMultiDeviceRecovery.java34 void recoverDevices(List<IManagedTestDevice> managedDevices); in recoverDevices()
DIManagedTestDevice.java23 public interface IManagedTestDevice extends ITestDevice { interface
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DEmulatorMemoryCpuCapturer.java19 import com.android.tradefed.device.IManagedTestDevice;
44 IManagedTestDevice managedTestDevice = (IManagedTestDevice) device; in EmulatorMemoryCpuCapturer()
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DDeviceRecoveryModeUtilTest.java24 import com.android.tradefed.device.IManagedTestDevice;
38 @Mock IManagedTestDevice mMockManagedDevice;
/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/contrib/src/com/android/performance/tests/
DEmulatorStartupPerfTest.java20 import com.android.tradefed.device.IManagedTestDevice;
56 ((IManagedTestDevice) device).setEmulatorProcess(p); in launchEmulator()
/tools/tradefederation/core/javatests/com/android/tradefed/device/cloud/
DGceSshTunnelMonitorTest.java30 import com.android.tradefed.device.IManagedTestDevice;
150 IManagedTestDevice mockDevice = Mockito.mock(IManagedTestDevice.class); in testCreateSshTunnel()
/tools/tradefederation/core/src/com/android/tradefed/device/connection/
DAdbSshConnection.java23 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/
DDeviceManagementGrpcServerTest.java31 import com.android.tradefed.device.IManagedTestDevice;
137 IManagedTestDevice mockedDevice = Mockito.mock(IManagedTestDevice.class); in testReserveAndRelease_freeDevice()

12