/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | StorageHostTest.java | 55 getDevice().executeShellCommand("appops set --user " + user + " " + PKG_STATS in setUp() 81 getDevice().executeShellCommand("sync"); in testVerifyAppStats() 156 getDevice().executeShellCommand("settings put global sys_storage_threshold_max_bytes 0"); in testCache() 157 getDevice().executeShellCommand("settings put global sys_storage_cache_max_bytes 0"); in testCache() 158 getDevice().executeShellCommand("svc data disable"); in testCache() 159 getDevice().executeShellCommand("svc wifi disable"); in testCache() 164 getDevice().executeShellCommand("pm trim-caches 4096G"); in testCache() 167 getDevice().executeShellCommand("pm trim-caches 4096G"); in testCache() 171 … getDevice().executeShellCommand("settings delete global sys_storage_threshold_max_bytes"); in testCache() 172 getDevice().executeShellCommand("settings delete global sys_storage_cache_max_bytes"); in testCache() [all …]
|
D | AdoptableHostTest.java | 88 assertEmpty(getDevice().executeShellCommand("sm partition " + diskId + " private")); in testApps() 92 assertSuccess(getDevice().executeShellCommand( in testApps() 99 getDevice().executeShellCommand("sm unmount " + vol.volId); in testApps() 100 getDevice().executeShellCommand("sm mount " + vol.volId); in testApps() 106 assertSuccess(getDevice().executeShellCommand("pm move-package " + PKG + " internal")); in testApps() 112 getDevice().executeShellCommand("sm partition " + diskId + " public"); in testApps() 127 .executeShellCommand("sm get-primary-storage-uuid").trim(); in testPrimaryStorage() 148 assertEmpty(getDevice().executeShellCommand("sm partition " + diskId + " private")); in verifyPrimaryInternal() 153 getDevice().executeShellCommand("pm move-primary-storage " + vol.uuid, out, 2, in verifyPrimaryInternal() 160 getDevice().executeShellCommand("sm unmount " + vol.volId); in verifyPrimaryInternal() [all …]
|
D | PrivilegedUpdateTests.java | 74 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in setUp() 83 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in tearDown() 113 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in testDisableSystemApp() 115 getDevice().executeShellCommand("pm disable-user " + SHIM_PKG); in testDisableSystemApp() 120 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in testDisableUpdatedSystemApp() 125 getDevice().executeShellCommand("pm disable-user " + SHIM_PKG); in testDisableUpdatedSystemApp() 127 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in testDisableUpdatedSystemApp()
|
D | PackageVisibilityTest.java | 43 getDevice().executeShellCommand("settings get global package_verifier_enable"); in setUp() 44 getDevice().executeShellCommand("settings put global package_verifier_enable 0"); in setUp() 53 getDevice().executeShellCommand("settings put global package_verifier_enable " in tearDown() 130 getDevice().executeShellCommand(command); in uninstallWithKeepDataForUser()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | ProviderTestUtils.java | 45 executeShellCommand(command, uiAutomation); in setDefaultSmsApp() 48 static String executeShellCommand(String command, UiAutomation uiAutomation) in executeShellCommand() method in ProviderTestUtils 50 ParcelFileDescriptor pfd = uiAutomation.executeShellCommand(command.toString()); in executeShellCommand() 68 String output = executeShellCommand("bmgr transport " + transport, uiAutomation); in setBackupTransport() 81 String output = executeShellCommand("bmgr enabled", uiAutomation); in setBackupEnabled() 90 executeShellCommand("bmgr enable " + enable, uiAutomation); in setBackupEnabled() 96 String output = executeShellCommand("bmgr list transports", uiAutomation); in hasBackupTransport() 109 executeShellCommand("bmgr backupnow " + packageName, uiAutomation); in runBackup() 114 executeShellCommand("bmgr restore 1 " + packageName, uiAutomation); in runRestore() 120 executeShellCommand("bmgr wipe " + backupTransport + " " + packageName, uiAutomation); in wipeBackup()
|
/cts/hostsidetests/services/activityandwindowmanager/windowmanager/src/android/server/cts/ |
D | CrossAppDragAndDropTests.java | 138 mDevice.executeShellCommand(AM_FORCE_STOP + mSourcePackageName); in tearDown() 139 mDevice.executeShellCommand(AM_FORCE_STOP + mTargetPackageName); in tearDown() 142 private String executeShellCommand(String command) throws DeviceNotAvailableException { in executeShellCommand() method in CrossAppDragAndDropTests 143 return mDevice.executeShellCommand(command); in executeShellCommand() 147 executeShellCommand("logcat -c"); in clearLogs() 173 executeShellCommand(AM_FORCE_STOP + SOURCE_PACKAGE_NAME); in cleanupState() 174 executeShellCommand(AM_FORCE_STOP + TARGET_PACKAGE_NAME); in cleanupState() 175 executeShellCommand(AM_FORCE_STOP + TARGET_23_PACKAGE_NAME); in cleanupState() 182 executeShellCommand(getStartCommand(componentName, null) + " --stack " + in cleanupState() 187 executeShellCommand(getMoveTaskCommand(taskId, DOCKED_STACK_ID)); in cleanupState() [all …]
|
/cts/hostsidetests/security/src/android/security/cts/ |
D | AdbUtils.java | 46 return device.executeShellCommand(command); in runCommandLine() 57 device.executeShellCommand("chmod +x /data/local/tmp/" + pocName); in runPoc() 58 return device.executeShellCommand("/data/local/tmp/" + pocName); in runPoc() 70 device.executeShellCommand("chmod +x /data/local/tmp/" + pocName); in runPoc() 72 … device.executeShellCommand("/data/local/tmp/" + pocName, receiver, timeout, TimeUnit.SECONDS, 0); in runPoc() 86 device.executeShellCommand("chmod +x /data/local/tmp/" + pocName); in runPocNoOutput() 88 device.executeShellCommand("/data/local/tmp/" + pocName, receiver, timeout, in runPocNoOutput() 146 String logcatOutput = device.executeShellCommand("logcat -d"); in detectInformationDisclosure()
|
D | SecurityTestCase.java | 36 Integer.parseInt(getDevice().executeShellCommand("cut -f1 -d. /proc/uptime").trim()); in setUp() 52 String result = mDevice.executeShellCommand("ls -Zl " + driver); in containsDriver() 68 Integer.parseInt(getDevice().executeShellCommand("cut -f1 -d. /proc/uptime").trim()) in tearDown()
|
/cts/hostsidetests/services/activityandwindowmanager/activitymanager/src/android/server/cts/ |
D | DisplaySizeTest.java | 97 mDevice.executeShellCommand("input keyevent 4"); in testCompatibilityDialogAfterReturn() 127 mDevice.executeShellCommand("wm density " + targetDensity); in setDensity() 130 final String output = mDevice.executeShellCommand("wm density"); in setDensity() 137 mDevice.executeShellCommand("wm density reset"); in resetDensity() 142 mDevice.executeShellCommand(forceStopCmd); in forceStopPackage() 147 mDevice.executeShellCommand(getStartCommand(packageName, activityName)); in startActivity() 154 mDevice.executeShellCommand(startCmd); in startOtherActivityOnTop() 168 final String output = mDevice.executeShellCommand("dumpsys window"); in verifyWindowDisplayed()
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | BatteryStatsValidationTest.java | 95 getDevice().executeShellCommand("dumpsys batterystats enable pretend-screen-off"); in screenOff() 102 getDevice().executeShellCommand("input keyevent KEYCODE_WAKEUP"); in turnScreenOnForReal() 103 getDevice().executeShellCommand("wm dismiss-keyguard"); in turnScreenOnForReal() 107 getDevice().executeShellCommand("dumpsys battery unplug"); in batteryOnScreenOn() 108 getDevice().executeShellCommand("dumpsys batterystats disable pretend-screen-off"); in batteryOnScreenOn() 112 getDevice().executeShellCommand("dumpsys battery unplug"); in batteryOnScreenOff() 113 getDevice().executeShellCommand("dumpsys batterystats enable pretend-screen-off"); in batteryOnScreenOff() 117 getDevice().executeShellCommand("dumpsys battery reset"); in batteryOffScreenOn() 118 getDevice().executeShellCommand("dumpsys batterystats disable pretend-screen-off"); in batteryOffScreenOn() 122 getDevice().executeShellCommand("am force-stop " + DEVICE_SIDE_TEST_PACKAGE); in forceStop() [all …]
|
/cts/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/targetprep/ |
D | SettingsPreparerTest.java | 56 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n3\n").once(); in testCorrectOneExpected() 63 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n3\n").once(); in testCorrectManyExpected() 73 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n0\n").once(); in testIncorrectOneExpected() 85 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n0\n").once(); in testIncorrectManyExpected() 100 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_PUT_7)).andReturn("\n"); in testCommandRun() 107 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_PUT_8)).andReturn("\n"); in testCommandRunWrongSetValue() 120 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n0\n").once(); in testIncorrectOneExpectedCommandRun() 121 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_PUT_7)).andReturn("\n"); in testIncorrectOneExpectedCommandRun()
|
/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 | 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 | PackageTest.java | 33 String out = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] + " 5000"); in testSinglePackage() 38 out = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[1] + " 5000"); in testSinglePackage() 45 String out = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] in testMultiplePackages()
|
/cts/hostsidetests/usage/src/android/app/usage/cts/ |
D | AppIdleHostTest.java | 50 … String result = mDevice.executeShellCommand(String.format("am get-inactive %s", appPackage)); in isAppIdle() 60 mDevice.executeShellCommand(String.format("settings put global %s \"%s\"", in setAppIdleSettings() 69 String result = mDevice.executeShellCommand(String.format("settings get global %s", in getAppIdleSettings() 80 mDevice.executeShellCommand( in startAndStopTestApp() 88 mDevice.executeShellCommand( in startAndStopTestApp()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | BaseDevicePolicyTest.java | 125 mPackageVerifier = getDevice().executeShellCommand( in setUp() 127 getDevice().executeShellCommand("settings put global package_verifier_enable 0"); in setUp() 145 getDevice().executeShellCommand("settings put global package_verifier_enable " in tearDown() 170 executeShellCommand("am force-stop --user " + userId + " " + packageName); in forceStopPackageForUser() 173 protected void executeShellCommand(final String command) throws Exception { in executeShellCommand() method in BaseDevicePolicyTest 175 String commandOutput = getDevice().executeShellCommand(command); in executeShellCommand() 186 executeShellCommand("am switch-user " + userId); in switchUser() 195 String commandOutput = getDevice().executeShellCommand(command); in getUserFlags() 235 + getDevice().executeShellCommand(stopUserCommand)); in stopUser() 239 getDevice().executeShellCommand("am wait-for-broadcast-idle"); in waitForBroadcastIdle() [all …]
|
/cts/hostsidetests/trustedvoice/src/android/trustedvoice/cts/ |
D | TrustedVoiceHostTest.java | 99 getDevice().executeShellCommand(SLEEP_COMMAND); in testUnlock() 101 getDevice().executeShellCommand(START_COMMAND); in testUnlock() 127 getDevice().executeShellCommand(AWAKE_COMMAND); in testUnlock() 128 getDevice().executeShellCommand(DISMISS_KEYGUARD_COMMAND); in testUnlock()
|
/cts/hostsidetests/services/activityandwindowmanager/util/src/android/server/cts/ |
D | ActivityManagerTestBase.java | 239 mDevice.executeShellCommand("wm surface-trace", mSurfaceTraceReceiver); in installSurfaceObserver() 274 executeShellCommand(AM_FORCE_STOP_TEST_PACKAGE); in tearDown() 275 executeShellCommand(AM_FORCE_STOP_SECOND_TEST_PACKAGE); in tearDown() 276 executeShellCommand(AM_FORCE_STOP_THIRD_TEST_PACKAGE); in tearDown() 292 executeShellCommand(AM_REMOVE_STACK + stackId); in removeStacks() 298 protected String executeShellCommand(String command) throws DeviceNotAvailableException { in executeShellCommand() method in ActivityManagerTestBase 299 return executeShellCommand(mDevice, command); in executeShellCommand() 302 protected static String executeShellCommand(ITestDevice device, String command) in executeShellCommand() method in ActivityManagerTestBase 305 return device.executeShellCommand(command); in executeShellCommand() 308 protected void executeShellCommand(String command, CollectingOutputReceiver outputReceiver) in executeShellCommand() method in ActivityManagerTestBase [all …]
|
/cts/hostsidetests/sustainedperf/src/android/SustainedPerformance/cts/ |
D | SustainedPerformanceHostTest.java | 76 device.executeShellCommand("cd " + DHRYSTONE + " ; chmod 777 dhry"); in run() 78 String result = device.executeShellCommand("echo " + loopCount in run() 164 device.executeShellCommand("settings put global airplane_mode_on 1"); in setUpEnvironment() 165 … device.executeShellCommand("am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true"); in setUpEnvironment() 176 device.executeShellCommand(START_TEST_COMMAND); in testShader() 203 device.executeShellCommand(START_COMMAND_MODE); in testShader() 209 device.executeShellCommand(STOP_COMMAND); in testShader() 219 device.executeShellCommand("settings put global airplane_mode_on 0"); in testShader() 220 …device.executeShellCommand("am broadcast -a android.intent.action.AIRPLANE_MODE --ez state false"); in testShader()
|
/cts/hostsidetests/backup/src/android/cts/backup/ |
D | BaseBackupHostSideTest.java | 61 return mDevice.executeShellCommand("bmgr backupnow " + packageName); in backupNow() 86 return mDevice.executeShellCommand("bmgr restore " + packageName); in restore() 135 mDevice.executeShellCommand(String.format( in startActivityInPackageAndWait() 148 mDevice.executeShellCommand(String.format("bmgr wipe %s %s", LOCAL_TRANSPORT, packageName)); in clearBackupDataInLocalTransport() 155 mDevice.executeShellCommand(String.format("pm clear %s", packageName)); in clearPackageData()
|
/cts/hostsidetests/media/src/android/media/cts/ |
D | BaseMultiUserTest.java | 117 executeShellCommand("am switch-user " + primaryUserId); in setUp() 118 executeShellCommand("wm dismiss-keyguard"); in setUp() 178 protected @Nonnull String executeShellCommand(final String command) throws Exception { in executeShellCommand() method in BaseMultiUserTest 180 String commandOutput = getDevice().executeShellCommand(command); in executeShellCommand() 187 String commandOutput = executeShellCommand(command); in createAndStartUser() 237 getDevice().executeShellCommand(stopUserCommand); in removeUser() 319 String commandOutput = executeShellCommand( in getSettings() 343 executeShellCommand("settings delete " + namespace + " " + name); in putSettings() 346 executeShellCommand("settings" + userFlag + " put " + namespace + " " + name in putSettings() 355 String commandOutput = getDevice().executeShellCommand(command); in hasDeviceFeature()
|
/cts/hostsidetests/atrace/src/android/atrace/cts/ |
D | AtraceHostTest.java | 158 String output = getDevice().executeShellCommand("atrace"); in testSimpleRun() 173 String output = getDevice().executeShellCommand("atrace --list_categories"); in testCategories() 215 getDevice().executeShellCommand("atrace --async_stop " + atraceArgs); in testTracingContent() 216 getDevice().executeShellCommand("atrace --async_start " + atraceArgs); in testTracingContent() 217 getDevice().executeShellCommand("am start " + TEST_PKG); in testTracingContent() 218 getDevice().executeShellCommand("sleep 5"); in testTracingContent() 219 atraceOutput = getDevice().executeShellCommand("atrace --async_stop " + atraceArgs); in testTracingContent()
|
/cts/hostsidetests/aadb/src/android/aadb/cts/ |
D | TestDeviceFuncTest.java | 88 final String output = mTestDevice.executeShellCommand("ls /"); in assertSimpleShellCommand() 109 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_normal() 123 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_normal() 147 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_extStorageVariable() 168 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() 296 String tmpFileContents = mTestDevice.executeShellCommand(String.format("cat %s", in doTestSyncFiles() 302 mTestDevice.executeShellCommand(String.format("rm -r %s", expectedDeviceFilePath)); in doTestSyncFiles() 329 mTestDevice.executeShellCommand(String.format("rm -r %s/%s", externalStorePath, in testPushDir() [all …]
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | AbstractRestrictBackgroundNetworkTestCase.java | 422 protected String executeShellCommand(String command) throws Exception { in executeShellCommand() method in AbstractRestrictBackgroundNetworkTestCase 432 final String result = executeShellCommand(command); in executeSilentShellCommand() 468 result = executeShellCommand(command).trim(); in assertDelayedShellCommand() 621 executeShellCommand("cmd netpolicy set restrict-background " + enabled); in setRestrictBackground() 622 final String output = executeShellCommand("cmd netpolicy get restrict-background "); in setRestrictBackground() 630 executeShellCommand("cmd netpolicy add restrict-background-whitelist " + uid); in addRestrictBackgroundWhitelist() 638 executeShellCommand("cmd netpolicy remove restrict-background-whitelist " + uid); in removeRestrictBackgroundWhitelist() 647 executeShellCommand("cmd netpolicy add restrict-background-blacklist " + uid); in addRestrictBackgroundBlacklist() 655 executeShellCommand("cmd netpolicy remove restrict-background-blacklist " + uid); in removeRestrictBackgroundBlacklist() 670 executeShellCommand("cmd netpolicy list " + list); in assertRestrictBackground() [all …]
|