Home
last modified time | relevance | path

Searched refs:idevice (Results 1 – 10 of 10) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/device/
DManagedTestDeviceFactory.java71 public IManagedTestDevice createDevice(IDevice idevice) { in createDevice() argument
73 if (idevice instanceof VmRemoteDevice) { in createDevice()
76 idevice, in createDevice()
77 new DeviceStateMonitor(mDeviceManager, idevice, mFastbootEnabled), in createDevice()
80 } else if (idevice instanceof RemoteAvdIDevice) { in createDevice()
83 idevice, in createDevice()
84 new DeviceStateMonitor(mDeviceManager, idevice, mFastbootEnabled), in createDevice()
87 } else if (idevice instanceof StubLocalAndroidVirtualDevice) { in createDevice()
91 idevice, in createDevice()
92 new DeviceStateMonitor(mDeviceManager, idevice, mFastbootEnabled), in createDevice()
[all …]
DDeviceManager.java1194 public void deviceChanged(IDevice idevice, int changeMask) { in deviceChanged() argument
1196 IManagedTestDevice testDevice = mManagedDeviceList.findOrCreate(idevice); in deviceChanged()
1200 TestDeviceState newState = TestDeviceState.getStateByDdms(idevice.getState()); in deviceChanged()
1209 } else if (DeviceState.OFFLINE.equals(idevice.getState()) || in deviceChanged()
1210 DeviceState.UNAUTHORIZED.equals(idevice.getState())) { in deviceChanged()
1222 public void deviceConnected(IDevice idevice) { in deviceConnected() argument
1223 CLog.d("Detected device connect %s, id %d", idevice.getSerialNumber(), in deviceConnected()
1224 idevice.hashCode()); in deviceConnected()
1225 String threadName = String.format("Connected device %s", idevice.getSerialNumber()); in deviceConnected()
1231 mManagedDeviceList.findOrCreate(idevice); in deviceConnected()
[all …]
DNativeDevice.java4522 IDevice idevice = getIDevice(); in getDeviceDescriptor() local
4525 if (idevice instanceof NullDevice) { in getDeviceDescriptor()
4526 isTemporary = ((NullDevice) idevice).isTemporary(); in getDeviceDescriptor()
4531 idevice.getSerialNumber(), in getDeviceDescriptor()
4533 idevice instanceof StubDevice, in getDeviceDescriptor()
4534 idevice.getState(), in getDeviceDescriptor()
4537 getDisplayString(selector.getDeviceProductType(idevice)), in getDeviceDescriptor()
4538 getDisplayString(selector.getDeviceProductVariant(idevice)), in getDeviceDescriptor()
4539 getDisplayString(idevice.getProperty(DeviceProperties.SDK_VERSION)), in getDeviceDescriptor()
4540 getDisplayString(idevice.getProperty(DeviceProperties.BUILD_ALIAS)), in getDeviceDescriptor()
[all …]
DManagedDeviceList.java227 public IManagedTestDevice findOrCreate(IDevice idevice) {
228 if (!isValidDeviceSerial(idevice.getSerialNumber())) {
233 IManagedTestDevice d = find(idevice.getSerialNumber());
236 d = mDeviceFactory.createDevice(idevice);
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DDeviceManagerTest.java181 public IManagedTestDevice createDevice(IDevice idevice) { in setUp()
182 mMockTestDevice.setIDevice(idevice); in setUp()
1008 public IManagedTestDevice createDevice(IDevice idevice) { in testFreeDevice_unavailable()
1009 mMockTestDevice.setIDevice(idevice); in testFreeDevice_unavailable()
1069 public IManagedTestDevice createDevice(IDevice idevice) { in testFreeDevice_recovery()
1070 mMockTestDevice.setIDevice(idevice); in testFreeDevice_recovery()
1134 public IManagedTestDevice createDevice(IDevice idevice) { in testFreeDevice_unknown()
1135 mMockTestDevice.setIDevice(idevice); in testFreeDevice_unknown()
1199 public IManagedTestDevice createDevice(IDevice idevice) { in testFreeDevice_unknown_subName()
1200 mMockTestDevice.setIDevice(idevice); in testFreeDevice_unknown_subName()
DMockDeviceManager.java121 IDevice idevice) { in setNumDevicesStub() argument
122 if (idevice instanceof TcpDevice) { in setNumDevicesStub()
124 } else if (idevice instanceof NullDevice) { in setNumDevicesStub()
126 } else if (idevice instanceof StubDevice) { in setNumDevicesStub()
134 IDevice mockIDevice = idevice; in setNumDevicesStub()
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DDeviceDescriptor.java96 IDevice idevice) { in DeviceDescriptor() argument
114 idevice); in DeviceDescriptor()
131 IDevice idevice) { in DeviceDescriptor() argument
149 idevice); in DeviceDescriptor()
169 IDevice idevice) { in DeviceDescriptor() argument
186 mIDevice = idevice; in DeviceDescriptor()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DInvocationExecution.java657 IDevice idevice = device.getIDevice(); in reportLogs() local
659 if (!(idevice instanceof StubDevice)) { in reportLogs()
670 if (idevice != null && idevice.isEmulator()) { in reportLogs()
/tools/tradefederation/core/src/com/android/tradefed/device/battery/
DBatteryController.java59 IDevice idevice = device.getIDevice(); in getDeviceChargingState() local
60 if (idevice instanceof StubDevice) { in getDeviceChargingState()
/tools/tradefederation/core/src/com/android/tradefed/device/helper/
DTelephonyHelper.java158 private static IRemoteAndroidTestRunner createTestRunner(IDevice idevice) { in createTestRunner() argument
159 return new DefaultRemoteAndroidTestRunner(PACKAGE_NAME, AJUR_RUNNER, idevice); in createTestRunner()