/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | DeviceWiperFuncTest.java | 10 getDevice().enableAdbRoot(); in testWipe() 11 getDevice().executeShellCommand("rm /data/local/tmp/foo.txt"); in testWipe() 12 getDevice().pushString("blargh", "/data/local/tmp/foo.txt"); in testWipe() 13 assertTrue(getDevice().doesFileExist("/data/local/tmp/foo.txt")); in testWipe() 14 new DeviceWiper().setUp(getDevice(), null); in testWipe() 15 assertTrue(getDevice().getDeviceState().equals(TestDeviceState.ONLINE)); in testWipe() 16 assertFalse(getDevice().doesFileExist("/data/local/tmp/foo.txt")); in testWipe()
|
D | DeviceSetupFuncTest.java | 48 public ITestDevice getDevice() { in getDevice() method in DeviceSetupFuncTest 68 getDevice().executeShellCommand("setprop ro.audio.silent 0"); in testSetup() 69 mDeviceSetup.setUp(getDevice(), mMockBuildInfo); in testSetup() 70 assertTrue(getDevice().executeShellCommand("getprop ro.audio.silent").contains("1")); in testSetup() 71 assertTrue(getDevice().executeShellCommand("getprop ro.monkey").contains("1")); in testSetup() 72 assertTrue(getDevice().executeShellCommand("getprop ro.test_harness").contains("1")); in testSetup() 74 assertTrue(getDevice().executeShellCommand("id").contains("root")); in testSetup()
|
D | AppSetupFuncTest.java | 52 public ITestDevice getDevice() { in getDevice() method in AppSetupFuncTest 60 getDevice().uninstallPackage(WifiHelper.INSTRUMENTATION_PKG); in testSetupTeardown() 69 appSetup.setUp(getDevice(), appBuild); in testSetupTeardown() 70 assertTrue(getDevice().getUninstallablePackageNames().contains( in testSetupTeardown() 72 appSetup.tearDown(getDevice(), appBuild, null); in testSetupTeardown() 73 assertFalse(getDevice().getUninstallablePackageNames().contains( in testSetupTeardown()
|
/tools/tradefederation/core/prod-tests/src/com/android/stability/tests/ |
D | RebootStressTest.java | 132 public ITestDevice getDevice() { in getDevice() method in RebootStressTest 187 Assert.assertNotNull(getDevice()); in run() 196 getDevice().rebootIntoBootloader(); in run() 200 getDevice().executeFastbootCommand("reboot"); in run() 203 getDevice().reboot(); in run() 205 getDevice().waitForDeviceAvailable(); in run() 208 getDevice().getSerialNumber(), actualIterations+1, mIterations); in run() 217 listener.testLog(String.format("last_kmsg_%s", getDevice().getSerialNumber()), in run() 222 listener.testLog(String.format("dmesg_%s", getDevice().getSerialNumber()), in run() 226 getDevice().getSerialNumber(), actualIterations, mIterations); in run() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | InstrumentationTestFuncTest.java | 68 public ITestDevice getDevice() { in getDevice() method in InstrumentationTestFuncTest 76 mInstrumentationTest.setDevice(getDevice()); in setUp() 82 getDevice().disableKeyguard(); in setUp() 141 if (getDevice().getApiLevel() <= 23) { in testRun_testCrash() 164 getDevice().waitForDeviceAvailable(); in testRun_testCrash() 172 RecoveryMode initMode = getDevice().getRecoveryMode(); in testRun_testTimeout() 173 getDevice().setRecoveryMode(RecoveryMode.NONE); in testRun_testTimeout() 195 getDevice().setRecoveryMode(initMode); in testRun_testTimeout() 221 getDevice().reboot(); in testRun_deviceReboot() 246 getDevice().waitForDeviceAvailable(); in testRun_deviceReboot() [all …]
|
D | GTestFuncTest.java | 53 mGTest.setDevice(getDevice()); in setUp() 154 String.format("adb -s %s reboot", getDevice().getIDevice() in testRun_deviceReboot() 165 getDevice().waitForDeviceAvailable(); in testRun_deviceReboot() 186 getDevice().waitForDeviceAvailable(); in testRun_timeout()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | TestDeviceFuncTest.java | 76 public ITestDevice getDevice() { in getDevice() method in TestDeviceFuncTest 604 getDevice().getIDevice().reboot(null); in testRebootIntoRecovery() 624 getDevice().reboot(); in testClearErrorDialogs_crash() 634 getDevice().executeShellCommand("am start -n " + TestAppConstants.CRASH_ACTIVITY); in testClearErrorDialogs_crash() 640 assertTrue("Clear dialogs did not clear anything", getDevice().clearErrorDialogs()); in testClearErrorDialogs_crash() 654 getDevice().reboot(); in testDisableKeyguard() 685 InputStreamSource source = getDevice().getScreenshot(); in testGetScreenshot() 713 getDevice().executeShellCommand(String.format("log testGetLogcat_size log dump %d", i)); in testGetLogcat_size() 718 try (InputStreamSource source = getDevice().getLogcatDump()) { in testGetLogcat_size() 747 if (!getDevice().isEncryptionSupported()) { in testEncryption() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | LogFilesReporter.java | 67 public ITestDevice getDevice() { in getDevice() method in LogFilesReporter 99 final DeviceFileReporter reporter = new DeviceFileReporter(getDevice(), listener); in uploadFilesOnDeviceToLogs() 113 final DeviceFileReporter reporter = new DeviceFileReporter(getDevice(), listener); in uploadFolderOnDeviceToLogs() 115 IFileEntry outputDir = getDevice().getFileEntry(dir); in uploadFolderOnDeviceToLogs() 143 getDevice().executeShellCommand(String.format("rm %s", pattern)); in cleanFilesOnDevice() 155 IFileEntry outputDir = getDevice().getFileEntry(folder); in doesDirectoryExistOnDevice()
|
/tools/tradefederation/contrib/src/com/android/example/ |
D | RebootTest.java | 58 getDevice().nonBlockingReboot(); in run() 59 if (((IManagedTestDevice) getDevice()).getMonitor().waitForDeviceOnline() in run() 62 ((IManagedTestDevice) getDevice()).recoverDevice(); in run() 87 public ITestDevice getDevice() { in getDevice() method in RebootTest
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/junit4/ |
D | BaseHostJUnit4Test.java | 78 public final ITestDevice getDevice() { in getDevice() method in BaseHostJUnit4Test 134 installPackage(getDevice(), apkFileName, options); in installPackage() 170 installPackageAsUser(getDevice(), apkFileName, grantPermission, userId, options); in installPackageAsUser() 214 return runDeviceTests(getDevice(), pkgName, testClassName, null); in runDeviceTests() 229 getDevice(), in runDeviceTests() 256 getDevice(), in runDeviceTests() 280 return runDeviceTests(getDevice(), pkgName, testClassName, testMethodName); in runDeviceTests() 297 getDevice(), in runDeviceTests() 449 options.getDevice() == null ? getDevice() : options.getDevice(), in runDeviceTests() 631 return getDevice().uninstallPackage(pkgName); in uninstallPackage() [all …]
|
/tools/tradefederation/core/prod-tests/src/com/android/framework/tests/ |
D | PackageManagerHostTests.java | 141 mPMHostUtils = new PackageManagerHostTestUtils(getDevice()); in setUp() 169 getDevice().uninstallPackage(SIMPLE_PKG); in testPushAppPrivate() 170 getDevice().executeShellCommand("stop"); in testPushAppPrivate() 171 getDevice().pushFile(getTestAppFilePath(SIMPLE_APK), apkAppPrivatePath); in testPushAppPrivate() 174 assertTrue(getDevice().doesFileExist(apkAppPrivatePath)); in testPushAppPrivate() 175 getDevice().executeShellCommand("start"); in testPushAppPrivate() 728 getDevice().reboot(); in testInstallAndLaunchFLPermsAppOnSD_Reboot() 763 getDevice().reboot(); in testInstallAndLaunchSharedPermsAppOnSD_Reboot() 789 if (!ARM64_V8A.equals(getDevice().getProperty(ABI_PROPERTY))) { in testInstallApk64bit() 803 assertEquals(getDevice().getProperty(ABI_PROPERTY), in testInstallApkDualAbi() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | UiAutomatorTest.java | 146 public ITestDevice getDevice() { in getDevice() method in UiAutomatorTest 197 getDevice().runInstrumentationTests(getTestRunner(), mListeners); in run() 199 getDevice().runInstrumentationTests(getTestRunner(), mListeners); in run() 219 getDevice().getIDevice()); in createTestRunner() 222 return new UiAutomatorRunner(getDevice().getIDevice(), in createTestRunner() 230 getDevice().executeShellCommand(String.format("ls %s", SHELL_EXE_BASE)); in buildJarPaths() 261 if (!getDevice().doesFileExist(runnerPath)) { in preTestSetup() 268 if (!getDevice().doesFileExist(jarPath)) { in preTestSetup() 384 onScreenshotAndBugreport(getDevice(), mListener, String.format("%s_%s_failure", in captureFailureLog() 394 onScreenshotAndBugreport(getDevice(), mListener, "test_run_failure"); in testRunFailed() [all …]
|
D | InstrumentationFileTest.java | 82 mInstrumentationTest.setDevice(instrumentationTest.getDevice()); in InstrumentationFileTest() 99 if (mInstrumentationTest.getDevice() == null) { in run() 244 return mInstrumentationTest.getDevice().pushFile(file, destinationPath); in pushFileToTestDevice() 251 if (mInstrumentationTest.getDevice().doesFileExist(pathToFile)) { in deleteTestFileFromDevice() 252 mInstrumentationTest.getDevice() in deleteTestFileFromDevice()
|
D | CodeCoverageTest.java | 76 if (getDevice().doesFileExist(mCoverageFile)) { in run() 77 coverageFile = getDevice().pullFile(mCoverageFile); in run() 91 try (InputStreamSource s = getDevice().getLogcat(500 * 1024)) { in run()
|
D | InstalledInstrumentationsTest.java | 187 public ITestDevice getDevice() { in getDevice() method in InstalledInstrumentationsTest 240 if (getDevice() == null) { in run() 260 String pmListOutput = getDevice().executeShellCommand(PM_LIST_CMD); in buildTests() 266 "No instrumentations were found on device %s - <%s>", getDevice() in buildTests() 315 CLog.d("Running test %s on %s", test.getPackageName(), getDevice().getSerialNumber()); in doRun() 320 test.setDevice(getDevice()); in doRun()
|
D | INativeDeviceTest.java | 37 public INativeDevice getDevice(); in getDevice() method
|
/tools/tradefederation/core/prod-tests/src/com/android/tradefed/ |
D | HelloWorldMultiDevices.java | 78 mContext.getDevice(deviceName).getSerialNumber(), deviceName); in run() 82 Assert.assertNotNull(mContext.getDevice("device1")); in run() 85 mContext.getDevice("device1").getSerialNumber()); in run()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | AdbScreenrecordTest.java | 111 public ITestDevice getDevice() { in getDevice() method in AdbScreenrecordTest 168 getDevice().executeShellCommand(cmd, receiver, timeout, TimeUnit.MILLISECONDS, 3); in runTest() 174 if (!waitForFile(getDevice(), timeout, deviceFileName)) { in runTest() 241 getDevice().executeShellCommand("rm -f " + deviceFileName); in deleteFileFromDevice() 255 IFileEntry video = getDevice().getFileEntry(deviceFileName); in extractDurationAndBitrateFromVideoFileUsingAvprobe() 260 final File recordedVideo = getDevice().pullFile(deviceFileName); in extractDurationAndBitrateFromVideoFileUsingAvprobe() 362 getDevice().disableKeyguard(); in initializeTest() 363 getDevice().waitForDeviceAvailable(DEVICE_SYNC_MS); in initializeTest() 366 getDevice().setDate(new Date()); in initializeTest()
|
D | AudioLoopbackTest.java | 312 public ITestDevice getDevice() { in getDevice() method in AudioLoopbackTest 335 getDevice().stopLogcat(); in run() 359 getDevice().startLogcat(); in run() 501 getDevice().disableKeyguard(); in initializeTest() 502 getDevice().waitForDeviceAvailable(DEVICE_SYNC_MS); in initializeTest() 504 getDevice().setDate(new Date()); in initializeTest() 520 getDevice().executeAdbCommand("logcat", "-c"); in runTest() 521 final long deviceTestStartTime = getDevice().getDeviceDate(); in runTest() 523 getDevice() in runTest() 536 if (getDevice().doesFileExist(resultFilename)) { in runTest() [all …]
|
D | Camera2StressTest.java | 110 IFileEntry screenshotDir = getDevice().getFileEntry(FAILURE_SCREENSHOT_DIR); in postScreenshotOnFailure() 123 if (!getDevice().pullFile(remoteFile.getFullPath(), screenshot)) { in postScreenshotOnFailure() 146 getDevice().pullFile(RESULT_FILE, outputFile); in parseLog() 149 + "file: %s", RESULT_FILE), getDevice().getSerialNumber()); in parseLog()
|
D | VideoMultimeterTest.java | 138 public ITestDevice getDevice() { in getDevice() method in VideoMultimeterTest 144 if (!getDevice().getProductType().contains("manta")) { in rotateScreen() 145 getDevice().executeShellCommand(ROTATE_LANDSCAPE); in rotateScreen() 159 getDevice().executeShellCommand(String.format( in startPlayback() 203 getDevice().executeShellCommand(mCmdStopVideo); in doCalibration() 212 getDevice().setDate(new Date()); in setupTestEnv() 244 getDevice().clearErrorDialogs(); in doMeasurement() 268 getDevice().executeShellCommand(mCmdStopVideo); in doMeasurement() 269 getDevice().clearErrorDialogs(); in doMeasurement()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/testdefs/ |
D | XmlDefsTest.java | 128 public ITestDevice getDevice() { in getDevice() method in XmlDefsTest 190 if (getDevice() == null) { in run() 225 test.setDevice(getDevice()); in buildTests() 282 getDevice().getSerialNumber())); in doRun() 287 test.setDevice(getDevice()); in doRun() 317 if (getDevice() == null) { in getRemoteFile() 324 getDevice().pullFile(remoteFilePath, tmpFile); in getRemoteFile()
|
/tools/tradefederation/core/prod-tests/src/com/android/app/tests/ |
D | AppLaunchTest.java | 64 public ITestDevice getDevice() { in getDevice() method in AppLaunchTest 123 String result = getDevice().installPackage(apkFile, true); in performInstallTest() 136 i.setDevice(getDevice()); in performLaunchTest() 139 try (InputStreamSource s = getDevice().getScreenshot()) { in performLaunchTest()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/proto/ |
D | PlatformProtosFuncTest.java | 56 public ITestDevice getDevice() { in getDevice() method in PlatformProtosFuncTest 67 getDevice().executeShellCommand(CMD_DUMP_BATTERYSTATS, receiver); in testDumpAndReadBatteryStatsProto()
|
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
D | FsInfoSector.java | 63 new FsInfoSector(bs.getDevice(), offset(bs)); in read() 86 new FsInfoSector(bs.getDevice(), offset(bs)); in create()
|