/cts/hostsidetests/usage/src/com/android/cts/app/usage/ |
D | AppIdleHostTest.java | 43 private ITestDevice mDevice; field in AppIdleHostTest 55 mDevice = getDevice(); in setUp() 58 mDevice.uninstallPackage(TEST_APP_PACKAGE); in setUp() 61 mDevice.installPackage(mBuild.getTestApp(TEST_APP_APK), false); in setUp() 67 mDevice.uninstallPackage(TEST_APP_PACKAGE); in tearDown() 78 … String result = mDevice.executeShellCommand(String.format("am get-inactive %s", appPackage)); in isAppIdle() 88 mDevice.executeShellCommand(String.format("settings put global %s \"%s\"", in setAppIdleSettings() 97 String result = mDevice.executeShellCommand(String.format("settings get global %s", in getAppIdleSettings() 108 mDevice.executeShellCommand( in startAndStopTestApp() 116 mDevice.executeShellCommand( in startAndStopTestApp()
|
/cts/hostsidetests/usb/src/com/android/cts/usb/ |
D | TestUsbTest.java | 46 private ITestDevice mDevice; field in TestUsbTest 63 mDevice = getDevice(); in setUp() 64 mDevice.uninstallPackage(PACKAGE_NAME); in setUp() 67 mDevice.installPackage(app, false, options); in setUp() 73 mDevice.uninstallPackage(PACKAGE_NAME); in tearDown() 81 String adbSerial = mDevice.getSerialNumber().toLowerCase().trim(); in testUsbSerial() 85 if (mDevice.isAdbTcp()) { // adb over WiFi, no point checking it in testUsbSerial() 89 String roSerial = mDevice.executeShellCommand("getprop ro.serialno").toLowerCase(). in testUsbSerial() 113 mDevice.getIDevice()); in testUsbSerial() 114 mDevice.runInstrumentationTests(testRunner, listener); in testUsbSerial() [all …]
|
/cts/hostsidetests/sample/src/android/sample/cts/ |
D | SampleHostTest.java | 80 private ITestDevice mDevice; field in SampleHostTest 97 mDevice = getDevice(); in setUp() 99 mDevice.uninstallPackage(PACKAGE); in setUp() 105 mDevice.installPackage(app, false, options); in setUp() 111 mDevice.uninstallPackage(PACKAGE); in tearDown() 122 mDevice.executeAdbCommand("logcat", "-c"); in testLogcat() 124 mDevice.executeShellCommand(START_COMMAND); in testLogcat() 126 String logs = mDevice.executeAdbCommand("logcat", "-v", "brief", "-d", CLASS + ":I", "*:S"); in testLogcat()
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/ |
D | GeeTest.java | 53 private ITestDevice mDevice; field in GeeTest 131 if (!mDevice.pushFile(nativeExe, devicePath)) { in installTest() 139 if (mDevice.doesFileExist(remoteFilePath)) { in createRemoteDir() 142 if (!(mDevice.doesFileExist(NATIVE_TESTS_DIRECTORY_TMP))) { in createRemoteDir() 147 mDevice.executeShellCommand(String.format("mkdir %s", remoteFilePath)); in createRemoteDir() 148 return mDevice.doesFileExist(remoteFilePath); in createRemoteDir() 157 CLog.v("Running gtest %s %s on %s", fullPath, flags, mDevice.getSerialNumber()); in runTest() 159 CLog.v("%s", mDevice.executeShellCommand(String.format("chmod 755 %s", fullPath))); in runTest() 162 mDevice.executeShellCommand(String.format("%s %s", fullPath, flags), resultParser, in runTest() 182 mDevice = device; in setDevice() [all …]
|
D | WrappedGTest.java | 45 private ITestDevice mDevice; field in WrappedGTest 74 mDevice = device; in setDevice() 79 return mDevice; in getDevice() 96 String installCode = mDevice.installPackage(testApp, true, options); in installTest() 100 mDevice.getSerialNumber(), installCode); in installTest() 118 mDevice.executeShellCommand(command, resultParser, mMaxTestTimeMs, 0); in runTest() 129 mDevice.uninstallPackage(mAppNameSpace); in uninstallTest()
|
/cts/hostsidetests/appsecurity/src/com/android/cts/appsecurity/ |
D | KeySetHostTest.java | 206 mDevice.uninstallPackage(pkgName); in testPackageUpgrade() 208 installResult = mDevice.installPackage(getTestAppFile(firstApk), in testPackageUpgrade() 215 installResult = mDevice.installPackage(getTestAppFile(secondApk), in testPackageUpgrade() 218 mDevice.uninstallPackage(pkgName); in testPackageUpgrade() 225 private ITestDevice mDevice; field in KeySetHostTest 240 mDevice = getDevice(); in setUp() 370 mDevice.uninstallPackage(KEYSET_PKG); in testKeyRotationPerm() 371 mDevice.uninstallPackage(KEYSET_PERM_DEF_PKG); in testKeyRotationPerm() 372 mDevice.uninstallPackage(KEYSET_TEST_PKG); in testKeyRotationPerm() 375 String installResult = mDevice.installPackage( in testKeyRotationPerm() [all …]
|
/cts/suite/cts/hostTests/uihost/src/com/android/cts/uihost/ |
D | TaskSwitchingTest.java | 49 private ITestDevice mDevice; field in TaskSwitchingTest 77 mDevice = getDevice(); in setUp() 80 mDevice.uninstallPackage(PACKAGES[i]); in setUp() 82 mDevice.installPackage(app, false, options); in setUp() 90 mDevice.uninstallPackage(PACKAGES[i]); in tearDown() 98 HostReportLog report = new HostReportLog(mDevice.getSerialNumber(), mAbi.getName(), in testTaskswitching() 101 mDevice.getIDevice()); in testTaskswitching() 103 mDevice.runInstrumentationTests(testRunner, listener); in testTaskswitching() 109 CtsHostStore.storeCtsResult(mDevice.getSerialNumber(), mAbi.getName(), in testTaskswitching()
|
D | InstallTimeTest.java | 44 private ITestDevice mDevice; field in InstallTimeTest 65 mDevice = getDevice(); in setUp() 71 mDevice.uninstallPackage(PACKAGE); in tearDown() 76 HostReportLog report = new HostReportLog(mDevice.getSerialNumber(), mAbi.getName(), in testInstallTime() 80 final ITestDevice device = mDevice; in testInstallTime()
|
/cts/hostsidetests/monkey/src/com/android/cts/monkey/ |
D | AbstractMonkeyTest.java | 27 ITestDevice mDevice; field in AbstractMonkeyTest 42 mDevice = getDevice(); in setUp() 45 mDevice.uninstallPackage(PKGS[i]); in setUp() 47 mDevice.installPackage(app, false, options); in setUp() 56 mDevice.uninstallPackage(PKGS[i]); in tearDown() 61 mDevice.executeAdbCommand("logcat", "-c"); in clearLogCat()
|
D | CategoryTest.java | 22 String out = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] + " 5000"); in testDefaultCategories() 28 String out = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] in testSingleCategory() 33 out = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] in testSingleCategory() 40 String out = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] in testMultipleCategories()
|
D | SeedTest.java | 25 String out1 = mDevice.executeShellCommand(cmd1); in testSeed() 26 String out2 = mDevice.executeShellCommand(cmd1); in testSeed() 30 String out3 = mDevice.executeShellCommand(cmd2); in testSeed() 31 String out4 = mDevice.executeShellCommand(cmd2); in testSeed()
|
D | MonkeyTest.java | 29 mDevice.executeShellCommand(MONKEY_CMD + " -p " + PKGS[0] + " 500"); in testIsMonkey() 34 mDevice.executeShellCommand("am start -W -a android.intent.action.MAIN " in testNotMonkey() 40 String logs = mDevice.executeAdbCommand( in assertIsUserAMonkey()
|
D | PackageTest.java | 32 String out = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] + " 5000"); in testSinglePackage() 36 out = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[1] + " 5000"); in testSinglePackage() 42 String out = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] in testMultiplePackages()
|
D | VerbosityTest.java | 22 String v0 = mDevice.executeShellCommand(MONKEY_CMD + " -s 1337 -p " + PKGS[0] + " 500"); in testVerbosity() 29 String v1 = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] + " 500"); in testVerbosity() 36 String v2 = mDevice.executeShellCommand(MONKEY_CMD + " -v -v -p " + PKGS[0] + " 500"); in testVerbosity()
|
/cts/suite/cts/deviceTests/jank2/src/android/cts/jank/ |
D | CtsJankTestBase.java | 30 private UiDevice mDevice; field in CtsJankTestBase 55 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp() 56 mDevice.setOrientationNatural(); in setUp() 63 mDevice.unfreezeRotation(); in tearDown() 68 return mDevice; in getUiDevice()
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp/src/com/android/cts/usepermission/ |
D | UsePermissionTest.java | 35 private UiDevice mDevice; field in UsePermissionTest 87 mDevice = UiDevice.getInstance(getInstrumentation()); in testInteractiveGrant() 90 mDevice.waitForIdle(); in testInteractiveGrant() 95 mDevice.waitForIdle(); in testInteractiveGrant() 99 mDevice.waitForIdle(); in testInteractiveGrant() 131 mDevice = UiDevice.getInstance(getInstrumentation()); in testRuntimeGroupGrantSpecificity() 134 mDevice.waitForIdle(); in testRuntimeGroupGrantSpecificity() 139 mDevice.waitForIdle(); in testRuntimeGroupGrantSpecificity() 143 mDevice.waitForIdle(); in testRuntimeGroupGrantSpecificity() 167 mDevice = UiDevice.getInstance(getInstrumentation()); in testRuntimeGroupGrantExpansion() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
D | DocumentsClientTest.java | 53 private UiDevice mDevice; field in DocumentsClientTest 62 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp() 65 mDevice.waitForIdle(); in setUp() 132 mDevice.waitForIdle(); in testOpenSimple() 138 mDevice.waitForIdle(); in testOpenSimple() 141 mDevice.waitForIdle(); in testOpenSimple() 167 mDevice.waitForIdle(); in testCreateNew() 170 mDevice.waitForIdle(); in testCreateNew() 191 mDevice.waitForIdle(); in testCreateExisting() 196 mDevice.waitForIdle(); in testCreateExisting() [all …]
|
/cts/hostsidetests/theme/src/android/theme/cts/ |
D | ThemeHostTest.java | 79 private ITestDevice mDevice; field in ThemeHostTest 100 mDevice = getDevice(); in setUp() 101 mDevice.uninstallPackage(APP_PACKAGE_NAME); in setUp() 107 mDevice.installPackage(app, false, options); in setUp() 109 final String density = getDensityBucketForDevice(mDevice); in setUp() 157 mDevice.uninstallPackage(APP_PACKAGE_NAME); in tearDown() 160 mDevice.executeShellCommand(CLEAR_GENERATED_CMD); in tearDown() 167 if (checkHardwareTypeSkipTest(mDevice.executeShellCommand(HARDWARE_TYPE_CMD).trim())) { in testThemes() 183 mDevice.pullFile(GENERATED_ASSETS_ZIP, localZip); in testThemes() 208 mCompletionService.submit(new ComparisonTask(mDevice, expected, actual)); in testThemes() [all …]
|
/cts/suite/cts/hostTests/jank/src/com/android/cts/jank/ |
D | CtsHostJankTest.java | 44 protected ITestDevice mDevice; field in CtsHostJankTest 68 mDevice = getDevice(); in setUp() 71 boolean result = mDevice.pushFile(jarFile, mJarPath); in setUp() 78 mDevice.executeShellCommand("rm " + mJarPath); in tearDown() 84 mDevice.executeShellCommand("rm -r " + DEVICE_LOCATION + "*.txt"); in runUiAutomatorTest() 87 mDevice.executeShellCommand( in runUiAutomatorTest() 113 File result = mDevice.pullFile(DEVICE_LOCATION + "UiJankinessTestsOutput.txt"); in runUiAutomatorTest() 134 HostReportLog report = new HostReportLog(mDevice.getSerialNumber(), mAbi.getName(), in runUiAutomatorTest()
|
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
D | ManualPackageInstallTest.java | 102 mDevice.wait(Until.hasObject(INSTALL_BUTTON_SELECTOR), AUTOMATOR_WAIT_TIMEOUT); in automateInstallClick() 103 UiObject2 button = mDevice.findObject(INSTALL_BUTTON_SELECTOR); in automateInstallClick() 109 mDevice.wait(Until.hasObject(POPUP_TEXT_SELECTOR), AUTOMATOR_WAIT_TIMEOUT); in automateDismissInstallBlockedDialog() 110 UiObject2 text = mDevice.findObject(POPUP_TEXT_SELECTOR); in automateDismissInstallBlockedDialog() 113 UiObject2 button = mDevice.findObject(POPUP_BUTTON_SELECTOR); in automateDismissInstallBlockedDialog()
|
/cts/suite/audio_quality/lib/src/ |
D | Adb.cpp | 22 : mDevice(device) in Adb() 67 if (mDevice.empty()) { in executeCommand() 72 if (adbCommand.appendFormat("adb -s %s %s", mDevice.string(), in executeCommand()
|
/cts/hostsidetests/os/src/com/android/cts/app/os/ |
D | OsHostTests.java | 36 private ITestDevice mDevice; field in OsHostTests 47 mDevice = getDevice(); in setUp() 58 mDevice.executeShellCommand(START_NON_EXPORTED_ACTIVITY_COMMAND, outputReceiver); in testNonExportedActivities()
|
/cts/suite/cts/hostTests/jank/src/com/android/cts/jank/opengl/ |
D | CtsHostJankOpenGl.java | 37 mDevice.uninstallPackage(APK_PACKAGE); in setUp() 40 mDevice.installPackage(app, false, options); in setUp() 46 mDevice.uninstallPackage(APK_PACKAGE); in tearDown()
|
/cts/tests/leanbackjank/src/android/cts/leanbackjank/ |
D | CtsJankTestBase.java | 31 private UiDevice mDevice; field in CtsJankTestBase 89 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp() 90 mDevice.setOrientationNatural(); in setUp() 97 mDevice.unfreezeRotation(); in tearDown() 102 return mDevice; in getUiDevice()
|
/cts/hostsidetests/security/src/android/cts/security/ |
D | SELinuxHostTest.java | 73 private ITestDevice mDevice; field in SELinuxHostTest 92 mDevice = getDevice(); in setUp() 109 mDevice.pullFile("/sys/fs/selinux/policy", devicePolicyFile); in setUp() 114 mDevice.pullFile("/seapp_contexts", deviceSeappFile); in setUp() 119 mDevice.pullFile("/file_contexts", deviceFcFile); in setUp() 124 mDevice.pullFile("/property_contexts", devicePcFile); in setUp() 129 mDevice.pullFile("/service_contexts", deviceSvcFile); in setUp() 403 List<ProcessDetails> procs = ProcessDetails.getProcMap(mDevice).get(domain); in assertDomainEmpty() 419 List<ProcessDetails> procs = ProcessDetails.getProcMap(mDevice).get(domain); in assertDomainOne() 420 List<ProcessDetails> exeProcs = ProcessDetails.getExeMap(mDevice).get(executable); in assertDomainOne() [all …]
|