Home
last modified time | relevance | path

Searched refs:mTestDevice (Results 1 – 25 of 38) sorted by relevance

12

/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceFuncTest.java65 private TestDevice mTestDevice; field in TestDeviceFuncTest
72 mTestDevice = (TestDevice) device; in setDevice()
77 return mTestDevice; in getDevice()
82 mMonitor = mTestDevice.getDeviceStateMonitor(); in setUp()
84 mTestDevice.waitForDeviceAvailable(); in setUp()
90 InputStreamSource bugreport = mTestDevice.getBugreport(); in testBugreport()
106 if (mTestDevice.getApiLevel() < 24) { in testBugreportz()
112 f = (FileInputStreamSource) mTestDevice.getBugreportz(); in testBugreportz()
143 final String output = mTestDevice.executeShellCommand("ls"); in assertSimpleShellCommand()
166 mTestDevice.uninstallPackage(WifiHelper.INSTRUMENTATION_PKG); in assertWifiApkInstall()
[all …]
DTestDeviceTest.java86 private TestDevice mTestDevice; field in TestDeviceTest
140 mTestDevice = in setUp()
152 mTestDevice.setRecovery(mMockRecovery); in setUp()
153 mTestDevice.setCommandTimeout(100); in setUp()
154 mTestDevice.setLogStartDelay(-1); in setUp()
176 assertTrue(mTestDevice.enableAdbRoot()); in testEnableAdbRoot_alreadyRoot()
185 assertTrue(mTestDevice.enableAdbRoot()); in testEnableAdbRoot_notRoot()
192 boolean enableRoot = mTestDevice.getOptions().isEnableAdbRoot(); in testEnableAdbRoot_noEnableRoot()
193 OptionSetter setter = new OptionSetter(mTestDevice.getOptions()); in testEnableAdbRoot_noEnableRoot()
196 assertFalse(mTestDevice.enableAdbRoot()); in testEnableAdbRoot_noEnableRoot()
[all …]
DNativeDeviceTest.java77 private TestableAndroidNativeDevice mTestDevice; field in NativeDeviceTest
123 mTestDevice = new TestableAndroidNativeDevice() { in setUp()
139 mTestDevice.setRecovery(mMockRecovery); in setUp()
140 mTestDevice.setCommandTimeout(100); in setUp()
141 mTestDevice.setLogStartDelay(-1); in setUp()
150 mTestDevice.installPackage(new File(""), false); in testInstallPackages_exception()
165 mTestDevice.uninstallPackage(""); in testUninstallPackages_exception()
180 mTestDevice.installPackage(new File(""), false, false); in testInstallPackagesBool_exception()
195 mTestDevice.installPackageForUser(new File(""), false, 0); in testInstallPackagesForUser_exception()
210 mTestDevice.installPackageForUser(new File(""), false, false, 0); in testInstallPackagesForUserWithPermission_exception()
[all …]
DTestDeviceStressTest.java48 private TestDevice mTestDevice; field in TestDeviceStressTest
54 mTestDevice = (TestDevice)getDevice(); in setUp()
55 mMonitor = mTestDevice.getDeviceStateMonitor(); in setUp()
76 mTestDevice.reboot(); in testManyReboots()
84 mTestDevice.rebootIntoBootloader(); in testManyRebootBootloaders()
86 mTestDevice.reboot(); in testManyRebootBootloaders()
96 mTestDevice.reboot(); in testManyDisableKeyguard()
113 String externalStorePath = mTestDevice.getMountPoint(IDevice.MNT_EXTERNAL_STORAGE); in testPushFolderWithManyFiles()
123 mTestDevice.executeShellCommand(String.format("rm -r %s", deviceFilePath)); in testPushFolderWithManyFiles()
125 mTestDevice.doesFileExist(deviceFilePath)); in testPushFolderWithManyFiles()
[all …]
DRemoteAndroidDeviceTest.java38 private RemoteAndroidDevice mTestDevice; field in RemoteAndroidDeviceTest
68 mTestDevice = new TestableRemoteAndroidDevice(); in setUp()
69 mTestDevice.setRecovery(mMockRecovery); in setUp()
89 assertTrue(mTestDevice.adbTcpConnect("localhost", "1234")); in testAdbConnect()
105 assertFalse(mTestDevice.adbTcpConnect("localhost", "1234")); in testAdbConnect_fails()
123 assertFalse(mTestDevice.adbTcpConnect("localhost", "1234")); in testAdbConnect_fails_confirmation()
136 assertTrue(mTestDevice.adbTcpDisconnect("localhost", "1234")); in testAdbDisconnect()
149 assertFalse(mTestDevice.adbTcpDisconnect("localhost", "1234")); in testAdbDisconnect_fails()
154 assertEquals("localhost", mTestDevice.getHostName()); in testCheckSerial()
155 assertEquals("1234", mTestDevice.getPortNum()); in testCheckSerial()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DDeviceBatteryLevelChecker.java45 private ITestDevice mTestDevice = null; field in DeviceBatteryLevelChecker
109 Assert.assertNotNull(mTestDevice); in run()
111 Integer batteryLevel = checkBatteryLevel(mTestDevice); in run()
115 mTestDevice.getSerialNumber()); in run()
120 "to level %d", batteryLevel, mMaxBattery, mTestDevice.getSerialNumber(), in run()
125 mMaxBattery, mTestDevice.getSerialNumber()); in run()
131 CLog.d("Rebooting device %s prior to holding", mTestDevice.getSerialNumber()); in run()
132 mTestDevice.reboot(); in run()
136 turnScreenOff(mTestDevice); in run()
148 Integer newLevel = checkBatteryLevel(mTestDevice); in run()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/
DBackgroundDeviceAction.java46 private ITestDevice mTestDevice; field in BackgroundDeviceAction
66 mTestDevice = device; in BackgroundDeviceAction()
86 mTestDevice.getSerialNumber()); in run()
94 CLog.d("Starting %s for %s.", mDescriptor, mTestDevice.getSerialNumber()); in run()
97 mTestDevice.getIDevice().executeShellCommand(mCommand, mReceiver, in run()
113 mDescriptor, mTestDevice.getSerialNumber()); in waitForDeviceRecovery()
142 CLog.d("Waiting for device %s online before starting.", mTestDevice.getSerialNumber()); in blockUntilOnlineNoThrow()
145 if ((mTestDevice.getIDevice() instanceof StubDevice) in blockUntilOnlineNoThrow()
146 || !TestDeviceState.ONLINE.equals(mTestDevice.getDeviceState())) { in blockUntilOnlineNoThrow()
149 CLog.d("Device %s now online.", mTestDevice.getSerialNumber()); in blockUntilOnlineNoThrow()
/tools/tradefederation/contrib/src/com/android/media/tests/
DPanoramaBenchMarkTest.java42 private ITestDevice mTestDevice = null; field in PanoramaBenchMarkTest
55 Assert.assertNotNull(mTestDevice); in run()
57 String dataStore = mTestDevice.getMountPoint(IDevice.MNT_DATA); in run()
58 String externalStore = mTestDevice.getMountPoint(IDevice.MNT_EXTERNAL_STORAGE); in run()
60 mTestDevice.executeShellCommand(String.format("chmod 777 %s/local/tmp/panorama_bench", in run()
63 String shellOutput = mTestDevice.executeShellCommand( in run()
91 mTestDevice = device; in setDevice()
99 return mTestDevice; in getDevice()
109 String externalStore = mTestDevice.getMountPoint(IDevice.MNT_EXTERNAL_STORAGE); in cleanupDevice()
110 mTestDevice.executeShellCommand(String.format("rm -r %s/panorama_input", externalStore)); in cleanupDevice()
[all …]
DCameraShotToShotLatencyTest.java60 ITestDevice mTestDevice = null; field in CameraShotToShotLatencyTest
67 Assert.assertNotNull(mTestDevice); in run()
70 TEST_RUNNER_NAME, mTestDevice.getIDevice()); in run()
73 BugreportCollector bugListener = new BugreportCollector(listener, mTestDevice); in run()
76 Assert.assertTrue(mTestDevice.runInstrumentationTests(runner, bugListener)); in run()
88 mTestDevice = device; in setDevice()
96 return mTestDevice; in getDevice()
106 String extStore = mTestDevice.getMountPoint(IDevice.MNT_EXTERNAL_STORAGE); in cleanupDevice()
107 mTestDevice.executeShellCommand(String.format("rm -r %s/DCIM", extStore)); in cleanupDevice()
108 mTestDevice.executeShellCommand(String.format("rm %s/%s", extStore, mOutputPath)); in cleanupDevice()
[all …]
DVideoEditingMemoryTest.java67 ITestDevice mTestDevice = null; field in VideoEditingMemoryTest
104 Assert.assertNotNull(mTestDevice); in run()
107 TEST_PACKAGE_NAME, TEST_RUNNER_NAME, mTestDevice.getIDevice()); in run()
115 mTestDevice); in run()
119 mTestDevice.runInstrumentationTests(runner, bugListener); in run()
130 mTestDevice.getMountPoint(IDevice.MNT_EXTERNAL_STORAGE); in cleanResultFile()
132 mTestDevice.executeShellCommand(String.format("rm %s/%s", extStore, in cleanResultFile()
136 mTestDevice.executeShellCommand(String.format("rm %s/%s", extStore, in cleanResultFile()
148 mTestDevice.getMountPoint(IDevice.MNT_EXTERNAL_STORAGE); in uploadHeapDumpFiles()
150 String out = mTestDevice.executeShellCommand(String.format("ls %s/%s", in uploadHeapDumpFiles()
[all …]
DMediaMemoryTest.java67 ITestDevice mTestDevice = null; field in MediaMemoryTest
108 Assert.assertNotNull(mTestDevice); in run()
111 TEST_RUNNER_NAME, mTestDevice.getIDevice()); in run()
122 mTestDevice); in run()
129 mTestDevice.runInstrumentationTests(runner, bugListener); in run()
132 mTestDevice.runInstrumentationTests(runner, bugListener); in run()
142 String extStore = mTestDevice.getMountPoint(IDevice.MNT_EXTERNAL_STORAGE); in cleanResultFile()
144 mTestDevice.executeShellCommand(String.format("rm %s/%s", extStore, outputPath)); in cleanResultFile()
147 mTestDevice.executeShellCommand(String.format("rm %s/%s", extStore, "*.dump")); in cleanResultFile()
157 String extStore = mTestDevice.getMountPoint(IDevice.MNT_EXTERNAL_STORAGE); in uploadHeapDumpFiles()
[all …]
DCameraSettingsTest.java75 ITestDevice mTestDevice = null; field in CameraSettingsTest
82 Assert.assertNotNull(mTestDevice); in run()
85 TEST_RUNNER_NAME, mTestDevice.getIDevice()); in run()
93 BugreportCollector bugListener = new BugreportCollector(listener, mTestDevice); in run()
96 Assert.assertTrue(mTestDevice.runInstrumentationTests(runner, bugListener)); in run()
108 mTestDevice = device; in setDevice()
116 return mTestDevice; in getDevice()
126 String extStore = mTestDevice.getMountPoint(IDevice.MNT_EXTERNAL_STORAGE); in cleanupDevice()
127 mTestDevice.executeShellCommand(String.format("rm %s/%s", extStore, mOutputPath)); in cleanupDevice()
151 outputFile = mTestDevice.pullFileFromExternal(mOutputPath); in parseOutputFile()
[all …]
DVideoEditingPerformanceTest.java64 ITestDevice mTestDevice = null; field in VideoEditingPerformanceTest
137 Assert.assertNotNull(mTestDevice); in run()
140 TEST_PACKAGE_NAME, TEST_RUNNER_NAME, mTestDevice.getIDevice()); in run()
145 mTestDevice); in run()
149 mTestDevice.runInstrumentationTests(runner, bugListener); in run()
160 mTestDevice.getMountPoint(IDevice.MNT_EXTERNAL_STORAGE); in cleanResultFile()
161 mTestDevice.executeShellCommand(String.format("rm %s/%s", extStore, OUTPUT_PATH)); in cleanResultFile()
173 outputFile = mTestDevice.pullFileFromExternal(OUTPUT_PATH); in logOutputFiles()
251 mTestDevice = device; in setDevice()
256 return mTestDevice; in getDevice()
DMediaPlayerStressTest.java67 ITestDevice mTestDevice = null; field in MediaPlayerStressTest
96 Assert.assertNotNull(mTestDevice); in run()
98 TEST_RUNNER_NAME, mTestDevice.getIDevice()); in run()
103 mTestDevice); in run()
109 mTestDevice.runInstrumentationTests(runner, bugListener); in run()
119 String extStore = mTestDevice.getMountPoint(IDevice.MNT_EXTERNAL_STORAGE); in cleanResultFile()
120 mTestDevice.executeShellCommand(String.format("rm %s/%s", extStore, mOutputPath)); in cleanResultFile()
132 outputFile = mTestDevice.pullFileFromExternal(mOutputPath); in logOutputFile()
206 mTestDevice = device; in setDevice()
211 return mTestDevice; in getDevice()
DMediaStressTest.java58 ITestDevice mTestDevice = null; field in MediaStressTest
79 Assert.assertNotNull(mTestDevice); in run()
82 TEST_RUNNER_NAME, mTestDevice.getIDevice()); in run()
87 mTestDevice.runInstrumentationTests(runner, listener); in run()
96 String extStore = mTestDevice.getMountPoint(IDevice.MNT_EXTERNAL_STORAGE); in cleanTmpFiles()
97 mTestDevice.executeShellCommand(String.format("rm %s/temp*.3gp", extStore)); in cleanTmpFiles()
98 mTestDevice.executeShellCommand(String.format("rm %s/%s", extStore, OUTPUT_PATH)); in cleanTmpFiles()
110 outputFile = mTestDevice.pullFileFromExternal(OUTPUT_PATH); in logOutputFile()
219 mTestDevice = device; in setDevice()
224 return mTestDevice; in getDevice()
DCameraLatencyTest.java62 ITestDevice mTestDevice = null; field in CameraLatencyTest
147 Assert.assertNotNull(mTestDevice); in run()
161 mTestDevice.getIDevice()); in executeTest()
169 mTestDevice.runInstrumentationTests(runner, listener, auxListener); in executeTest()
175 InputStreamSource bugreport = mTestDevice.getBugreport(); in executeTest()
188 String extStore = mTestDevice.getMountPoint(IDevice.MNT_EXTERNAL_STORAGE); in cleanTmpFiles()
190 mTestDevice.executeShellCommand(String.format("rm %s/DCIM/Camera/*", extStore)); in cleanTmpFiles()
191 mTestDevice.executeShellCommand(String.format("rm %s/%s", extStore, mOutputPath)); in cleanTmpFiles()
203 outputFile = mTestDevice.pullFileFromExternal(mOutputPath); in logOutputFile()
282 mTestDevice = device; in setDevice()
[all …]
/tools/tradefederation/core/prod-tests/src/com/android/graphics/tests/
DUiPerformanceTest.java53 private ITestDevice mTestDevice = null; field in UiPerformanceTest
80 mTestDevice = testDevice; in setDevice()
85 return mTestDevice; in getDevice()
90 String extStore = mTestDevice.getMountPoint(IDevice.MNT_EXTERNAL_STORAGE); in setupDevice()
93 if (!mTestDevice.doesFileExist(rawFileDir)) { in setupDevice()
95 mTestDevice.executeShellCommand(String.format("mkdir \"%s\"", rawFileDir)); in setupDevice()
98 mTestDevice.executeShellCommand(String.format("rm %s/*", rawFileDir)); in setupDevice()
109 Assert.assertNotNull(mTestDevice); in run()
114 TEST_PACKAGE_NAME, TEST_RUNNER_NAME, mTestDevice.getIDevice()); in run()
118 BugreportCollector(standardListener, mTestDevice); in run()
[all …]
DImageProcessingTest.java48 private ITestDevice mTestDevice = null; field in ImageProcessingTest
70 Assert.assertNotNull(mTestDevice); in run()
76 TEST_PACKAGE_NAME, TEST_RUNNER_NAME, mTestDevice.getIDevice()); in run()
81 BugreportCollector(standardListener, mTestDevice); in run()
87 mTestDevice.runInstrumentationTests(runner, collectListener, bugListener, standardListener); in run()
90 try (InputStreamSource bugreport = mTestDevice.getBugreport()) { in run()
142 mTestDevice = testDevice; in setDevice()
147 return mTestDevice; in getDevice()
/tools/tradefederation/core/prod-tests/src/com/android/performance/tests/
DStartupMetricsTest.java63 ITestDevice mTestDevice = null; field in StartupMetricsTest
67 Assert.assertNotNull(mTestDevice); in run()
87 mTestDevice.rebootIntoBootloader(); in executeRebootTest()
88 mTestDevice.setUseFastbootErase(false); in executeRebootTest()
89 mTestDevice.fastbootWipePartition("userdata"); in executeRebootTest()
90 mTestDevice.executeFastbootCommand("reboot"); in executeRebootTest()
91 mTestDevice.waitForDeviceOnline(10 * 60 * 1000); in executeRebootTest()
93 Assert.assertTrue(waitForBootComplete(mTestDevice, mBootTimeMs, mBootPoolTimeMs)); in executeRebootTest()
98 mTestDevice.setRecoveryMode(RecoveryMode.NONE); in executeRebootTest()
100 mTestDevice.nonBlockingReboot(); in executeRebootTest()
[all …]
DHermeticMemoryTest.java86 private ITestDevice mTestDevice = null; field in HermeticMemoryTest
96 String preMemInfo = mTestDevice.executeShellCommand(PROC_MEMINFO); in run()
109 mTestDevice.executeShellCommand(DROP_CACHE); in run()
113 mTestDevice.executeShellCommand(String.format(AM_START, mComponentName)); in run()
116 String postMemInfo = mTestDevice.executeShellCommand(PROC_MEMINFO); in run()
118 String dumpsysMemInfo = mTestDevice.executeShellCommand( in run()
120 String mapsInfo = mTestDevice.executeShellCommand( in run()
122 String sMapsInfo = mTestDevice.executeShellCommand( in run()
124 String statusInfo = mTestDevice.executeShellCommand( in run()
173 ProcessInfo processData = mTestDevice.getProcessByName(pkgActivitySplit[0]); in getProcessId()
[all …]
DEmmcPerformanceTest.java110 ITestDevice mTestDevice = null; field in EmmcPerformanceTest
257 output = mTestDevice.executeShellCommand(command).split("\n"); in runDdIteration()
288 output = mTestDevice.executeShellCommand(command); in runRandomIteration()
330 mTestDevice.executeShellCommand("echo 3 > /proc/sys/vm/drop_caches"); in dropCache()
357 mTestDevice.executeShellCommand("umount /sdcard"); in setUp()
358 mTestDevice.executeShellCommand("umount /data"); in setUp()
359 mTestDevice.executeShellCommand("umount /cache"); in setUp()
361 mTestDevice.executeShellCommand( in setUp()
363 mTestDevice.executeShellCommand( in setUp()
367 mSpUtil = SimplePerfUtil.newInstance(mTestDevice, SimplePerfType.STAT); in setUp()
[all …]
/tools/tradefederation/core/prod-tests/src/com/android/framework/tests/
DDataIdleTest.java47 ITestDevice mTestDevice = null; field in DataIdleTest
75 Assert.assertNotNull(mTestDevice); in run()
76 mTestHelper = new DataIdleTestHelper(mTestDevice); in run()
79 mMobileDataOnly, !mTestDevice.isWifiEnabled()); in run()
89 mTestDevice.getIDevice()); in run()
99 Assert.assertTrue(mTestDevice.runInstrumentationTests(runner, collectingListener)); in run()
123 try (InputStreamSource bugreport = mTestDevice.getBugreport()) { in logBugReport()
134 String output = mTestDevice.executeShellCommand("dumpsys netstats detail full"); in logNetStats()
156 mTestDevice = device; in setDevice()
161 return mTestDevice; in getDevice()
DFrameworkStressTest.java52 ITestDevice mTestDevice = null; field in FrameworkStressTest
80 Assert.assertNotNull(mTestDevice); in run()
82 mTestDevice.executeShellCommand(mSetupShellCommand); in run()
85 mTestDevice.getIDevice()); in run()
88 mTestDevice.runInstrumentationTests(runner, collectingListener, listener); in run()
124 mTestDevice = device; in setDevice()
129 return mTestDevice; in getDevice()
148 try (InputStreamSource bugSource = mTestDevice.getBugreport()) { in testEnded()
156 + "%s", mTestDevice.getSerialNumber(), e)); in testEnded()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DBugreportzMetricCollectorTest.java42 @Mock ITestDevice mTestDevice; field in BugreportzMetricCollectorTest
52 doReturn(Arrays.asList(mTestDevice)).when(mContext).getDevices(); in setup()
54 when(mTestDevice.logBugreport(anyString(), any(ITestInvocationListener.class))) in setup()
65 when(mTestDevice.logBugreport("bugreportz-1", mForwarder)).thenReturn(true); in testCollect_success()
69 mBugreportzMetricCollector.collect(mTestDevice, runData); in testCollect_success()
71 verify(mTestDevice).logBugreport(eq("bugreport-1"), eq(mForwarder)); in testCollect_success()
/tools/tradefederation/core/prod-tests/src/com/android/wireless/tests/
DWifiStressTest.java57 private ITestDevice mTestDevice = null; field in WifiStressTest
182 mTestDevice.executeShellCommand(command); in setDeviceScreenTimeout()
185 mTestDevice.reboot(); in setDeviceScreenTimeout()
195 mTestDevice.executeShellCommand("svc power stayon " + on); in setScreenProperty()
200 mTestDevice = testDevice; in setDevice()
205 return mTestDevice; in getDevice()
215 Assert.assertNotNull(mTestDevice); in run()
223 final RadioHelper radioHelper = new RadioHelper(mTestDevice); in run()
229 TEST_PACKAGE_NAME, TEST_RUNNER_NAME, mTestDevice.getIDevice()); in run()
242 BugreportCollector(standardListener, mTestDevice); in run()
[all …]

12