Home
last modified time | relevance | path

Searched refs:getIDevice (Results 1 – 25 of 102) sorted by relevance

12345

/tools/tradefederation/core/src/com/android/tradefed/device/
DNativeDeviceStateMonitor.java104 return getIDevice(); in waitForDeviceOnline()
112 return getIDevice(); in waitForDeviceInRecovery()
120 protected IDevice getIDevice() { in getIDevice() method in NativeDeviceStateMonitor
131 return getIDevice().getSerialNumber(); in getSerialNumber()
185 getIDevice().executeShellCommand(cmd, receiver, MAX_OP_TIME, TimeUnit.MILLISECONDS); in waitForDeviceShell()
256 String bootFlag = getIDevice().getSystemProperty("dev.bootcomplete").get(); in waitForBootComplete()
314 getIDevice().executeShellCommand(writeCmd, bitBucket, in waitForStoreMount()
317 getIDevice().executeShellCommand(checkCmd, receiver, in waitForStoreMount()
320 getIDevice().executeShellCommand(cleanupCmd, bitBucket, in waitForStoreMount()
357 String mountPoint = getIDevice().getMountPoint(mountName); in getMountPoint()
[all …]
DNativeDevice.java342 getIDevice().reboot(mRebootMode.formatRebootCommand(mReason)); in run()
409 public IDevice getIDevice() { in getIDevice() method in NativeDevice
422 if (!getIDevice().equals(newDevice)) { in setIDevice()
435 return getIDevice().getSerialNumber(); in getSerialNumber()
470 if (getIDevice() instanceof StubDevice) { in getProperty()
723 getIDevice().executeShellCommand(command, receiver, in executeShellCommand()
742 getIDevice().executeShellCommand(command, receiver, in executeShellCommand()
766 getIDevice() in executeShellCommand()
1106 syncService = getIDevice().getSyncService(); in pullFile()
1216 syncService = getIDevice().getSyncService(); in pushFile()
[all …]
DTestDevice.java168 getIDevice() in internalInstallPackage()
297 getIDevice().syncPackageToDevice(packageFile.getAbsolutePath()); in installPackage()
299 getIDevice().syncPackageToDevice(certFile.getAbsolutePath()); in installPackage()
309 getIDevice() in installPackage()
339 getIDevice().removeRemotePackage(remotePackagePath); in installPackage()
340 getIDevice().removeRemotePackage(remoteCertPath); in installPackage()
364 String result = getIDevice().uninstallPackage(packageName); in uninstallPackage()
397 getIDevice() in internalInstallPackages()
557 getIDevice() in internalInstallRemotePackages()
679 getIDevice().getScreenshot(MAX_SCREENSHOT_TIMEOUT, TimeUnit.MILLISECONDS); in run()
[all …]
DRemoteAndroidDevice.java67 if (getIDevice() instanceof TcpDevice) { in RemoteAndroidDevice()
68 mInitialIpDevice = ((TcpDevice) getIDevice()).getKnownDeviceIp(); in RemoteAndroidDevice()
121 if (!(getIDevice() instanceof TcpDevice)) { in recoverDevice()
DDeviceManager.java435 if (mGlobalDeviceFilter != null && !mGlobalDeviceFilter.matches(testDevice.getIDevice())) { in checkAndAddAvailableDevice()
664 IDevice ideviceToReturn = device.getIDevice(); in freeDevice()
748 if (!device.getIDevice().isEmulator()) { in launchEmulator()
799 EmulatorConsole console = EmulatorConsole.getConsole(device.getIDevice()); in killEmulator()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/
DPythonBinaryHostTestTest.java144 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRun()
180 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRun_failWithIncludeFilters()
242 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRun_withIncludeFilters()
303 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRun_withExcludeFilters()
344 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRun_withAdbPath()
389 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRun_withSharedLibInHostTestsDir()
434 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRun_withSharedLib()
464 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRunFail_exception()
519 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRunFail_failureOnly()
645 expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in expectRunThatWritesTestOutputFile()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DLocalAndroidVirtualDeviceTest.java355 Assert.assertEquals(ONLINE_SERIAL_NUMBER, mLocalAvd.getIDevice().getSerialNumber()); in testPreinvocationSetupSuccess()
377 assertFinalDeviceState(mLocalAvd.getIDevice()); in testPreinvocationSetupSuccess()
415 Assert.assertEquals(STUB_SERIAL_NUMBER, mLocalAvd.getIDevice().getSerialNumber()); in testPreInvocationSetupBootFailure()
426 assertFinalDeviceState(mLocalAvd.getIDevice()); in testPreInvocationSetupBootFailure()
457 Assert.assertEquals(STUB_SERIAL_NUMBER, mLocalAvd.getIDevice().getSerialNumber()); in testPreInvocationSetupFailure()
468 assertFinalDeviceState(mLocalAvd.getIDevice()); in testPreInvocationSetupFailure()
DMockDeviceManager.java70 EasyMock.expect(mockDevice.getIDevice()).andReturn(mockIDevice).anyTimes(); in setNumDevicesInternal()
112 EasyMock.expect(mockDevice.getIDevice()).andReturn(mockIDevice).anyTimes(); in setNumDevicesCustom()
136 EasyMock.expect(mockDevice.getIDevice()).andReturn(mockIDevice).anyTimes(); in setNumDevicesStub()
169 return mDeviceOptions.matches(element.getIDevice()); in matches()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/module/
DNativeBridgeModuleControllerTest.java57 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testStubDevice()
66 EasyMock.expect(mMockDevice.getIDevice()).andReturn(mMockIDevice); in testNoBridgeSupport()
80 EasyMock.expect(mMockDevice.getIDevice()).andReturn(mMockIDevice); in testBridgeSupport()
96 EasyMock.expect(mMockDevice.getIDevice()).andReturn(mMockIDevice); in testBridgeSupport_differentBitness()
112 EasyMock.expect(mMockDevice.getIDevice()).andReturn(mMockIDevice); in testBridgeSupport_differentArch()
DCarModuleControllerTest.java60 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testStubDevice()
69 EasyMock.expect(mMockDevice.getIDevice()).andReturn(mMockIDevice); in testNotAutomotive()
79 EasyMock.expect(mMockDevice.getIDevice()).andReturn(mMockIDevice); in testAutomotive()
DMinApiLevelModuleControllerTest.java62 EasyMock.expect(mMockDevice.getIDevice()).andReturn(mMockIDevice); in testDeviceApiLevelLowerThanMinApiLevel()
77 EasyMock.expect(mMockDevice.getIDevice()).andReturn(mMockIDevice); in testDeviceApiLevelHigherThanMinApiLevel()
92 EasyMock.expect(mMockDevice.getIDevice()).andReturn(mMockIDevice); in testDeviceApiLevelNotFound()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DTestInvocationTest.java235 EasyMock.expect(mMockDevice.getIDevice()).andStubReturn(null); in setUp()
695 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("stub")); in testInvoke_setupError()
1412 EasyMock.expect(device1.getIDevice()).andReturn(new StubDevice("stub")); in testLogDeviceBatteryLevel_placeholderDevice()
1429 EasyMock.expect(device1.getIDevice()).andReturn(EasyMock.createMock(IDevice.class)); in testLogDeviceBatteryLevel_physicalDevice()
1454 EasyMock.expect(device1.getIDevice()).andReturn(EasyMock.createMock(IDevice.class)); in testLogDeviceBatteryLevel_physicalDevice_multi()
1459 EasyMock.expect(device2.getIDevice()).andReturn(EasyMock.createMock(IDevice.class)); in testLogDeviceBatteryLevel_physicalDevice_multi()
1493 EasyMock.expect(device1.getIDevice()).andReturn(EasyMock.createMock(IDevice.class)); in testLogDeviceBatteryLevel_physicalDevice_stub_multi()
1498 EasyMock.expect(device2.getIDevice()).andReturn(EasyMock.createMock(IDevice.class)); in testLogDeviceBatteryLevel_physicalDevice_stub_multi()
1503 EasyMock.expect(device3.getIDevice()).andReturn(new StubDevice("stub-3")); in testLogDeviceBatteryLevel_physicalDevice_stub_multi()
1506 EasyMock.expect(device4.getIDevice()).andReturn(new TcpDevice("tcp-4")); in testLogDeviceBatteryLevel_physicalDevice_stub_multi()
DTestInvocationMultiTest.java136 EasyMock.expect(mDevice1.getIDevice()).andStubReturn(new StubDevice("serial1")); in makeTwoDeviceContext()
147 EasyMock.expect(mDevice2.getIDevice()).andStubReturn(new StubDevice("serial2")); in makeTwoDeviceContext()
258 EasyMock.expect(mDevice1.getIDevice()).andStubReturn(new StubDevice("serial1")); in testResolveDynamicFails()
260 EasyMock.expect(mDevice2.getIDevice()).andStubReturn(new StubDevice("serial1")); in testResolveDynamicFails()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/sandbox/
DParentSandboxInvocationExecutionTest.java127 verify(mMockDevice, times(0)).getIDevice(); in testDefaultSkipSetup_tearDown()
149 verify(mMockDevice, times(0)).getIDevice(); in testParentConfig()
164 doReturn(new StubDevice("stub")).when(mMockDevice).getIDevice(); in testParentConfig_errorStage()
176 verify(mMockDevice, times(1)).getIDevice(); in testParentConfig_errorStage()
197 verify(mMockDevice, times(0)).getIDevice(); in testParentConfig_exception()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DTestInvocation.java533 if (device.getIDevice() instanceof StubDevice) { in takeBugreport()
580 if (testDevice.getIDevice() instanceof StubDevice) { in logDeviceBatteryLevel()
834 if (!(context.getDevice(deviceName).getIDevice() instanceof StubDevice)) { in invoke()
949 if (!(context.getDevice(deviceName).getIDevice() instanceof StubDevice)) { in invoke()
1131 if (fds.getKey().getIDevice() instanceof TcpDevice in handleAndLogReleaseState()
1136 if (fds.getKey().getIDevice() instanceof StubDevice) { in handleAndLogReleaseState()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DRemoteAndroidVirtualDeviceTest.java105 public IDevice getIDevice() { in getIDevice() method in RemoteAndroidVirtualDeviceTest.TestableRemoteAndroidVirtualDevice
262 public IDevice getIDevice() { in testPreInvocationSetup()
491 public IDevice getIDevice() { in testDeviceNotStoreShutdownState()
594 public IDevice getIDevice() { in testDevice_skipTearDown()
681 public IDevice getIDevice() { in testDeviceBoot_offline()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DITestSuiteTest.java301 EasyMock.expect(mMockDevice.getIDevice()).andStubReturn(EasyMock.createMock(IDevice.class)); in setUp()
435 EasyMock.expect(mMockDevice.getIDevice()).andReturn(EasyMock.createMock(IDevice.class)); in testRun()
462 EasyMock.expect(mMockDevice.getIDevice()).andReturn(EasyMock.createMock(IDevice.class)); in testRun_whiteListPreparer()
1625 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new NullDevice("null-device-0")); in testNullDeviceSuite()
1646 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new NullDevice("null-device-0")); in testNullDeviceSuite_primaryAbi()
1670 EasyMock.expect(mMockDevice.getIDevice()).andStubReturn(new TcpDevice("tcp-device-0")); in testNoAbi()
1694 EasyMock.expect(mMockDevice.getIDevice()).andStubReturn(new TcpDevice("tcp-device-0")); in testNoPrimaryAbi()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/junit4/
DBaseHostJUnit4TestTest.java180 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRunDeviceTests()
203 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRunDeviceTests_assumptionFailure()
286 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRunDeviceTests_asUser()
352 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRunDeviceTests_crashedInstrumentation()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DITestSuite.java623 if (!(device.getIDevice() instanceof StubDevice)) { in run()
841 if (bugreportNeeded && !(device.getIDevice() instanceof StubDevice)) { in runPreModuleCheck()
889 if (bugreportNeeded && !(device.getIDevice() instanceof StubDevice)) { in runPostModuleCheck()
1246 if (device.getIDevice() instanceof NullDevice) { in getPrimaryAbi()
1263 if (device.getIDevice() instanceof NullDevice) { in getDeviceAbis()
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DBootstrapBuildProviderTest.java59 EasyMock.expect(mMockDevice.getIDevice()).andReturn(EasyMock.createMock(IDevice.class)); in testGetBuild()
81 EasyMock.expect(mMockDevice.getIDevice()).andReturn(EasyMock.createMock(IDevice.class)); in testGetBuild_add_extra_file()
113 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testGetBuild_stubDevice()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/recovery/
DUsbResetMultiDeviceRecoveryTest.java87 when(mDevice.getIDevice()).thenReturn(new StubDevice(SERIAL)); in testRecover_stub()
124 when(mDevice.getIDevice()).thenReturn(new FastbootDevice(SERIAL)); in testRecover_fastboot_allocated()
138 when(mDevice.getIDevice()).thenReturn(new FastbootDevice(SERIAL)); in testRecover_fastboot_unallocated()
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DDeviceDescriptor.java208 d.getIDevice()); in DeviceDescriptor()
230 d.getIDevice()); in DeviceDescriptor()
301 private IDevice getIDevice() { in getIDevice() method in DeviceDescriptor
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DFilePullerLogCollectorTest.java78 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testSkipStub()
107 EasyMock.expect(mMockDevice.getIDevice()).andReturn(mMockIDevice); in testPullAndLog()
171 EasyMock.expect(mMockDevice.getIDevice()).andReturn(mMockIDevice); in testPostProcessFiles()
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/
DClusterCommandSchedulerTest.java623 EasyMock.expect(mockTestDevice.getIDevice()).andReturn(new StubDevice(DEVICE_SERIAL));
696 EasyMock.expect(mockTestDevice.getIDevice()).andReturn(new StubDevice(DEVICE_SERIAL));
764 EasyMock.expect(mockTestDevice.getIDevice()).andReturn(new StubDevice(DEVICE_SERIAL));
808 EasyMock.expect(mockTestDevice1.getIDevice()).andReturn(new StubDevice(DEVICE_SERIAL));
812 EasyMock.expect(mockTestDevice2.getIDevice()).andReturn(new StubDevice("s2"));
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DRemoteAndroidVirtualDevice.java129 if (!DeviceState.ONLINE.equals(getIDevice().getState())) { in preInvocationSetup()
136 "AVD device booted but was in %s state", getIDevice().getState()), in preInvocationSetup()
158 if (!(getIDevice() instanceof StubDevice)) { in postInvocationTearDown()

12345