/cts/hostsidetests/appsecurity/src/com/android/cts/appsecurity/ |
D | AdoptableHostTest.java | 87 assertEmpty(getDevice().executeShellCommand("sm partition " + diskId + " private")); in testApps() 91 … assertSuccess(getDevice().executeShellCommand("pm move-package " + PKG + " " + vol.uuid)); in testApps() 97 getDevice().executeShellCommand("sm unmount " + vol.volId); in testApps() 98 getDevice().executeShellCommand("sm mount " + vol.volId); in testApps() 104 assertSuccess(getDevice().executeShellCommand("pm move-package " + PKG + " internal")); in testApps() 110 getDevice().executeShellCommand("sm partition " + diskId + " public"); in testApps() 125 .executeShellCommand("sm get-primary-storage-uuid").trim(); in testPrimaryStorage() 146 assertEmpty(getDevice().executeShellCommand("sm partition " + diskId + " private")); in verifyPrimaryInternal() 150 assertSuccess(getDevice().executeShellCommand("pm move-primary-storage " + vol.uuid)); in verifyPrimaryInternal() 155 getDevice().executeShellCommand("sm unmount " + vol.volId); in verifyPrimaryInternal() [all …]
|
D | Utils.java | 107 final String output = device.executeShellCommand("pm get-max-users"); in isMultiUserSupportedOnDevice() 141 final String output = device.executeShellCommand("pm create-user " + name); in createUserOnDevice() 146 device.executeShellCommand("am start-user " + userId); in createUserOnDevice() 159 final String output = device.executeShellCommand("pm remove-user " + userId); in removeUserOnDevice()
|
D | PermissionsHostTest.java | 132 assertEmpty(getDevice().executeShellCommand("pm grant " + pkg + " " + permission)); in grantPermission() 136 assertEmpty(getDevice().executeShellCommand("pm revoke " + pkg + " " + permission)); in revokePermission() 140 assertEmpty(getDevice().executeShellCommand("appops set " + pkg + " " + op + " " + mode)); in setAppOps()
|
/cts/hostsidetests/monkey/src/com/android/cts/monkey/ |
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 | 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()
|
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()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | TestUtils.java | 72 return executeShellCommand(instrumentation, COMMAND_SET_DEFAULT_DIALER + packageName); in setDefaultDialer() 76 return executeShellCommand(instrumentation, COMMAND_GET_DEFAULT_DIALER); in getDefaultDialer() 80 return executeShellCommand(instrumentation, COMMAND_GET_SYSTEM_DIALER); in getSystemDialer() 86 executeShellCommand(instrumentation, COMMAND_ENABLE in enablePhoneAccount() 94 executeShellCommand(instrumentation, COMMAND_REGISTER_SIM in registerSimPhoneAccount() 104 public static String executeShellCommand(Instrumentation instrumentation, in executeShellCommand() method in TestUtils 107 instrumentation.getUiAutomation().executeShellCommand(command); in executeShellCommand()
|
/cts/hostsidetests/usage/src/com/android/cts/app/usage/ |
D | AppIdleHostTest.java | 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/devicepolicy/src/com/android/cts/devicepolicy/ |
D | BaseDevicePolicyTest.java | 69 mPackageVerifier = getDevice().executeShellCommand( in setUp() 71 getDevice().executeShellCommand("settings put global package_verifier_enable 0"); in setUp() 77 getDevice().executeShellCommand("settings put global package_verifier_enable " in tearDown() 100 final String result = device.executeShellCommand( in installAppAsUser() 109 String commandOutput = getDevice().executeShellCommand(command); in startUser() 118 String commandOutput = getDevice().executeShellCommand(command); in getMaxNumberOfUsersSupported() 131 String commandOutput = getDevice().executeShellCommand(command); in listUsers() 155 + getDevice().executeShellCommand(stopUserCommand)); in removeUser() 159 + getDevice().executeShellCommand(removeUserCommand)); in removeUser() 246 getDevice().executeShellCommand(command, parser); in doRunTestsAsUser() [all …]
|
D | ManagedProfileTest.java | 173 + getDevice().executeShellCommand(command)); in testCrossProfileIntentFilters() 583 getDevice().executeShellCommand("appwidget grantbind --user 0 --package " in testCrossProfileWidgets() 624 + getDevice().executeShellCommand(command)); in disableActivityForUser() 634 String commandOutput = getDevice().executeShellCommand(adbCommand); in changeUserRestrictionForUser() 647 String commandOutput = getDevice().executeShellCommand(adbCommand); in changeCrossProfileWidgetForUser() 658 + getDevice().executeShellCommand(command)); in changeVerificationStatus() 667 + getDevice().executeShellCommand(command)); in startWidgetHostService()
|
D | DeviceAndProfileOwnerTest.java | 192 + getDevice().executeShellCommand(command)); in testAccountManagement() 253 getDevice().executeShellCommand(command); in testPackageInstallUserRestrictions() 278 String commandOutput = getDevice().executeShellCommand(adbCommand); in changeUserRestrictionForUser()
|
D | MixedProfileOwnerTest.java | 71 getDevice().executeShellCommand(command); in testScreenCaptureDisabled_allowedPrimaryUser()
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/targetprep/ |
D | SettingsToggler.java | 32 device.executeShellCommand( in setString() 55 device.executeShellCommand( in setInt() 76 device.executeShellCommand( in updateString() 95 device.executeShellCommand( in updateInt() 114 device.executeShellCommand( in deleteSetting()
|
/cts/hostsidetests/atrace/src/android/atrace/cts/ |
D | AtraceHostTest.java | 157 String output = getDevice().executeShellCommand("atrace"); in testSimpleRun() 172 String output = getDevice().executeShellCommand("atrace --list_categories"); in testCategories() 213 getDevice().executeShellCommand("atrace --async_stop " + atraceArgs); in testTracingContent() 214 getDevice().executeShellCommand("atrace --async_start " + atraceArgs); in testTracingContent() 215 getDevice().executeShellCommand("am start " + TEST_PKG); in testTracingContent() 216 getDevice().executeShellCommand("sleep 1"); in testTracingContent() 217 atraceOutput = getDevice().executeShellCommand("atrace --async_stop " + atraceArgs); in testTracingContent()
|
/cts/hostsidetests/aadb/src/com/android/cts/aadb/ |
D | TestDeviceFuncTest.java | 89 final String output = mTestDevice.executeShellCommand("ls"); in assertSimpleShellCommand() 110 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_normal() 124 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_normal() 148 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_extStorageVariable() 169 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_extStorageVariable() 272 String origTmpFileStamp = mTestDevice.executeShellCommand(String.format("ls -l %s", in doTestSyncFiles() 283 String unchangedTmpFileStamp = mTestDevice.executeShellCommand(String.format("ls -l %s", in doTestSyncFiles() 305 String tmpFileContents = mTestDevice.executeShellCommand(String.format("cat %s", in doTestSyncFiles() 311 mTestDevice.executeShellCommand(String.format("rm -r %s", expectedDeviceFilePath)); in doTestSyncFiles() 338 mTestDevice.executeShellCommand(String.format("rm -r %s/%s", externalStorePath, in testPushDir() [all …]
|
D | TestDeviceStressTest.java | 83 mTestDevice.executeShellCommand(String.format("rm -r %s", deviceFilePath)); in testPushFolderWithManyFiles() 93 mTestDevice.executeShellCommand(String.format("rm -r %s", deviceFilePath)); in testPushFolderWithManyFiles()
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/ |
D | VMHostTest.java | 107 device.executeShellCommand(String.format("rm -r %s", VM_TEST_TEMP_DIR)); in cleanupDeviceFiles() 126 device.executeShellCommand(String.format("mkdir %s", VM_TEST_TEMP_DIR)); in createRemoteDir() 127 device.executeShellCommand(String.format("mkdir %s", remoteFilePath)); in createRemoteDir()
|
D | GeeTest.java | 147 mDevice.executeShellCommand(String.format("mkdir %s", remoteFilePath)); in createRemoteDir() 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()
|
/cts/tests/tests/calllog/src/android/calllog/cts/ |
D | TestUtils.java | 39 public static String executeShellCommand(Instrumentation instrumentation, in executeShellCommand() method in TestUtils 60 instrumentation.getUiAutomation().executeShellCommand(command); in executeStreamedShellCommand()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | Utils.java | 52 instrumentation.getUiAutomation().executeShellCommand(cmd.toString()); in setAppOps() 64 ParcelFileDescriptor pfd = instrumentation.getUiAutomation().executeShellCommand( in setAppOps()
|
/cts/suite/cts/hostTests/jank/src/com/android/cts/jank/ |
D | CtsHostJankTest.java | 78 mDevice.executeShellCommand("rm " + mJarPath); in tearDown() 84 mDevice.executeShellCommand("rm -r " + DEVICE_LOCATION + "*.txt"); in runUiAutomatorTest() 87 mDevice.executeShellCommand( in runUiAutomatorTest()
|
/cts/hostsidetests/jdwpsecurity/src/android/jdwpsecurity/cts/ |
D | JdwpSecurityHostTest.java | 85 getDevice().executeShellCommand("chmod 755 " + getDeviceScriptFilepath()); in setUp() 96 getDevice().executeShellCommand(String.format("rm -r %s", DEVICE_LOCATION)); in tearDown() 281 getDevice().executeShellCommand(String.format("mkdir %s", remoteFilePath)); in createRemoteDir()
|
/cts/hostsidetests/theme/src/android/theme/cts/ |
D | ThemeHostTest.java | 160 mDevice.executeShellCommand(CLEAR_GENERATED_CMD); in tearDown() 167 if (checkHardwareTypeSkipTest(mDevice.executeShellCommand(HARDWARE_TYPE_CMD).trim())) { in testThemes() 236 mDevice.executeShellCommand(STOP_CMD); in generateDeviceImages() 239 mDevice.executeShellCommand(START_CMD); in generateDeviceImages()
|