/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | AdoptableHostTest.java | 63 getDevice().executeShellCommand("sm set-virtual-disk true"); in setUp() 72 getDevice().executeShellCommand("sm set-virtual-disk false"); in tearDown() 107 assertEmpty(getDevice().executeShellCommand("sm partition " + diskId + " private")); in testApps() 111 assertSuccess(getDevice().executeShellCommand( in testApps() 118 getDevice().executeShellCommand("sm unmount " + vol.volId); in testApps() 119 getDevice().executeShellCommand("sm mount " + vol.volId); in testApps() 122 String pkgPath = getDevice().executeShellCommand("pm path " + PKG); in testApps() 125 pkgPath = getDevice().executeShellCommand("pm path " + PKG); in testApps() 137 assertSuccess(getDevice().executeShellCommand("pm move-package " + PKG + " internal")); in testApps() 143 getDevice().executeShellCommand("sm partition " + diskId + " public"); in testApps() [all …]
|
D | AuthBoundKeyTest.java | 53 getDevice().executeShellCommand("cmd lock_settings set-pin 1234"); in useInvalidatedAuthBoundKey() 55 getDevice().executeShellCommand("cmd lock_settings clear --old 1234 --user 0"); in useInvalidatedAuthBoundKey() 57 getDevice().executeShellCommand("cmd lock_settings set-pin 12345"); in useInvalidatedAuthBoundKey() 58 getDevice().executeShellCommand("input keyevent 26"); // Screen on in useInvalidatedAuthBoundKey() 59 getDevice().executeShellCommand("input keyevent 82"); // Bring up lock screen in useInvalidatedAuthBoundKey() 60 getDevice().executeShellCommand("input text 12345"); // Input password in useInvalidatedAuthBoundKey() 61 getDevice().executeShellCommand("input keyevent 66"); // Submit input in useInvalidatedAuthBoundKey() 66 getDevice().executeShellCommand("cmd lock_settings clear --old 12345 --user 0"); in useInvalidatedAuthBoundKey()
|
D | StorageHostTest.java | 62 getDevice().executeShellCommand("appops set --user " + user + " " + PKG_STATS in setUp() 91 getDevice().executeShellCommand("sync"); in testVerifyAppStats() 166 getDevice().executeShellCommand("settings put global sys_storage_threshold_max_bytes 0"); in testCache() 167 getDevice().executeShellCommand("settings put global sys_storage_cache_max_bytes 0"); in testCache() 168 getDevice().executeShellCommand("svc data disable"); in testCache() 169 getDevice().executeShellCommand("svc wifi disable"); in testCache() 174 getDevice().executeShellCommand("pm trim-caches 4096G"); in testCache() 177 getDevice().executeShellCommand("pm trim-caches 4096G"); in testCache() 181 … getDevice().executeShellCommand("settings delete global sys_storage_threshold_max_bytes"); in testCache() 182 getDevice().executeShellCommand("settings delete global sys_storage_cache_max_bytes"); in testCache() [all …]
|
D | PrivilegedUpdateTests.java | 84 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in setUp() 93 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in tearDown() 128 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in testDisableSystemApp() 130 getDevice().executeShellCommand("pm disable-user " + SHIM_PKG); in testDisableSystemApp() 140 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in testDisableUpdatedSystemApp() 145 getDevice().executeShellCommand("pm disable-user " + SHIM_PKG); in testDisableUpdatedSystemApp() 147 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in testDisableUpdatedSystemApp()
|
/cts/hostsidetests/testharness/src/android/testharness/cts/ |
D | TestHarnessModeDeviceTest.java | 51 getDevice().executeShellCommand("touch /sdcard/test.txt"); in testHarnessModeDeletesFiles() 52 getDevice().executeShellCommand("touch /data/local/tmp/test.txt"); in testHarnessModeDeletesFiles() 75 getDevice().executeShellCommand("settings get global transition_animation_scale"); in testHarnessModeRemovesAndResetsSettings() 77 getDevice().executeShellCommand("settings put global test_harness_test 1234"); in testHarnessModeRemovesAndResetsSettings() 78 getDevice().executeShellCommand("settings put secure test_harness_test 1234"); in testHarnessModeRemovesAndResetsSettings() 79 getDevice().executeShellCommand("settings put system test_harness_test 1234"); in testHarnessModeRemovesAndResetsSettings() 80 getDevice().executeShellCommand("settings put global transition_animation_scale 2.0"); in testHarnessModeRemovesAndResetsSettings() 87 getDevice().executeShellCommand("settings get global test_harness_test").trim()); in testHarnessModeRemovesAndResetsSettings() 91 getDevice().executeShellCommand("settings get secure test_harness_test").trim()); in testHarnessModeRemovesAndResetsSettings() 95 getDevice().executeShellCommand("settings get system test_harness_test").trim()); in testHarnessModeRemovesAndResetsSettings() [all …]
|
/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() 110 getDevice().executeShellCommand("input keyevent KEYCODE_SLEEP"); in turnScreenOffForReal() 114 getDevice().executeShellCommand("dumpsys battery unplug"); in batteryOnScreenOn() 115 getDevice().executeShellCommand("dumpsys battery set status " + BATTERY_STATUS_DISCHARGING); in batteryOnScreenOn() 116 getDevice().executeShellCommand("dumpsys batterystats disable pretend-screen-off"); in batteryOnScreenOn() 120 getDevice().executeShellCommand("dumpsys battery unplug"); in batteryOnScreenOff() 121 getDevice().executeShellCommand("dumpsys battery set status " + BATTERY_STATUS_DISCHARGING); in batteryOnScreenOff() 122 getDevice().executeShellCommand("dumpsys batterystats enable pretend-screen-off"); in batteryOnScreenOff() [all …]
|
/cts/hostsidetests/securitybulletin/src/android/security/cts/ |
D | AdbUtils.java | 47 return device.executeShellCommand(command); in runCommandLine() 58 device.executeShellCommand("chmod +x /data/local/tmp/" + pocName); in runPoc() 59 return device.executeShellCommand("/data/local/tmp/" + pocName); in runPoc() 71 device.executeShellCommand("chmod +x /data/local/tmp/" + pocName); in runPoc() 73 … device.executeShellCommand("/data/local/tmp/" + pocName, receiver, timeout, TimeUnit.SECONDS, 0); in runPoc() 87 device.executeShellCommand("chmod +x /data/local/tmp/" + pocName); in runPocNoOutput() 89 device.executeShellCommand("/data/local/tmp/" + pocName, receiver, timeout, in runPocNoOutput() 101 device.executeShellCommand("setprop libc.debug.malloc.program " + processName); in enableLibcMallocDebug() 102 device.executeShellCommand("setprop libc.debug.malloc.options \"backtrace guard\""); in enableLibcMallocDebug() 111 String cmdOut = device.executeShellCommand("ps -A | grep '[^]]" + processName + "'"); in enableLibcMallocDebug() [all …]
|
/cts/hostsidetests/statsd/src/android/cts/statsd/atom/ |
D | AtomTestCase.java | 190 String tracing_on = getDevice().executeShellCommand("cat " + path); in isSystemTracingEnabled() 224 getDevice().executeShellCommand( in uploadConfig() 227 getDevice().executeShellCommand("rm " + remotePath); in uploadConfig() 231 getDevice().executeShellCommand( in removeConfig() 698 strUid = getDevice().executeShellCommand("id -u"); in getHostUid() 712 return getDevice().executeShellCommand("getprop " + prop).replace("\n", ""); in getProperty() 716 getDevice().executeShellCommand("input keyevent KEYCODE_WAKEUP"); in turnScreenOn() 717 getDevice().executeShellCommand("wm dismiss-keyguard"); in turnScreenOn() 721 getDevice().executeShellCommand("input keyevent KEYCODE_SLEEP"); in turnScreenOff() 725 getDevice().executeShellCommand("cmd battery set status " + state); in setChargingState() [all …]
|
D | DeviceAtomTestCase.java | 164 String uidLine = getDevice().executeShellCommand("cmd package list packages -U --user " in getUid() 194 getDevice().executeShellCommand(String.format( in allowBackgroundServices() 204 getDevice().executeShellCommand(String.format( in executeBackgroundService() 213 getDevice().executeShellCommand("am set-standby-bucket " in allowImmediateSyncs() 253 getDevice().executeShellCommand( in withActivity() 256 getDevice().executeShellCommand( in withActivity() 261 getDevice().executeShellCommand( in withActivity() 268 getDevice().executeShellCommand("dumpsys batterystats --reset"); in resetBatteryStats() 272 getDevice().executeShellCommand("dumpsys procstats --clear"); in clearProcStats() 276 getDevice().executeShellCommand("dumpsys procstats --start-testing"); in startProcStatsTesting() [all …]
|
/cts/tests/tests/provider/preconditions/src/android/provider/cts/preconditions/ |
D | ExternalStoragePreparer.java | 39 device.executeShellCommand("sm set-virtual-disk false"); in setUp() 40 device.executeShellCommand("sm set-virtual-disk true"); in setUp() 44 device.executeShellCommand("sm partition " + diskId + " public"); in setUp() 53 device.executeShellCommand("sm set-virtual-disk false"); in tearDown() 57 return device.executeShellCommand("getprop sys.isolated_storage_snapshot") in hasIsolatedStorage() 63 String disks = device.executeShellCommand("sm list-disks"); in getVirtualDisk() 69 disks = device.executeShellCommand("sm list-disks"); in getVirtualDisk()
|
/cts/hostsidetests/os/src/android/os/cts/ |
D | PowerManagerTests.java | 72 mDevice.executeShellCommand("input keyevent 26; input keyevent 82"); in testCachedProcessReleasesWakeLock() 76 String processes = mDevice.executeShellCommand(CHECK_CACHED_CMD); in testCachedProcessReleasesWakeLock() 79 String wakelocks = mDevice.executeShellCommand(GET_WAKE_LOCKS_CMD); in testCachedProcessReleasesWakeLock() 86 mDevice.executeShellCommand("am make-uid-idle " + PACKAGE_NAME); in testCachedProcessReleasesWakeLock() 88 wakelocks = mDevice.executeShellCommand(GET_WAKE_LOCKS_CMD); in testCachedProcessReleasesWakeLock() 98 mDevice.executeShellCommand(String.format(startAppTemplate, packageName)); in makeCachedProcess() 100 mDevice.executeShellCommand(String.format(viewUriTemplate, "mailto:")); in makeCachedProcess() 101 mDevice.executeShellCommand(String.format(viewUriTemplate, "tel:")); in makeCachedProcess()
|
/cts/hostsidetests/harmfulappwarning/src/android/harmfulappwarning/cts/ |
D | HarmfulAppWarningTest.java | 97 String warning = getDevice().executeShellCommand(GET_HARMFUL_APP_WARNING_COMMAND); in verifyHarmfulAppWarningSet() 102 String warning = getDevice().executeShellCommand(GET_HARMFUL_APP_WARNING_COMMAND); in verifyHarmfulAppWarningUnset() 110 String installedPackage = getDevice().executeShellCommand( in verifySampleAppUninstalled() 116 String installedPackage = getDevice().executeShellCommand( in verifySampleAppInstalled() 136 mDevice.executeShellCommand(SET_HARMFUL_APP_WARNING_COMMAND); in testLaunchAnyway() 148 mDevice.executeShellCommand(SET_HARMFUL_APP_WARNING_COMMAND); in testUninstall() 158 mDevice.executeShellCommand(SET_HARMFUL_APP_WARNING_COMMAND); in testDismissDialog() 165 return getDevice().executeShellCommand("pm list features").contains(featureName); in hasFeature()
|
/cts/hostsidetests/usage/src/android/app/usage/cts/ |
D | AppIdleHostTest.java | 65 … String result = mDevice.executeShellCommand(String.format("am get-inactive %s", appPackage)); in isAppIdle() 75 mDevice.executeShellCommand(String.format("settings put global %s \"%s\"", in setAppIdleSettings() 84 String result = mDevice.executeShellCommand(String.format("settings get global %s", in getAppIdleSettings() 95 mDevice.executeShellCommand( in startAndStopTestApp() 103 mDevice.executeShellCommand( in startAndStopTestApp() 124 mDevice.executeShellCommand( in setAppStandbyBucket() 129 final String result = mDevice.executeShellCommand( in isAppStandbyEnabled() 135 String bucketString = mDevice.executeShellCommand( in getAppStandbyBucket() 161 mDevice.executeShellCommand(command); in testSetAppStandbyBuckets()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | ProviderTestUtils.java | 92 executeShellCommand(String.format(cmd, packageName, "WRITE_SMS", mode), uiAutomation); in setDefaultSmsApp() 93 executeShellCommand(String.format(cmd, packageName, "READ_SMS", mode), uiAutomation); in setDefaultSmsApp() 96 static String executeShellCommand(String command) throws IOException { in executeShellCommand() method in ProviderTestUtils 97 return executeShellCommand(command, in executeShellCommand() 101 static String executeShellCommand(String command, UiAutomation uiAutomation) in executeShellCommand() method in ProviderTestUtils 104 ParcelFileDescriptor pfd = uiAutomation.executeShellCommand(command.toString()); in executeShellCommand() 123 String output = executeShellCommand("bmgr transport " + transport, uiAutomation); in setBackupTransport() 136 String output = executeShellCommand("bmgr enabled", uiAutomation); in setBackupEnabled() 145 executeShellCommand("bmgr enable " + enable, uiAutomation); in setBackupEnabled() 151 String output = executeShellCommand("bmgr list transports", uiAutomation); in hasBackupTransport() [all …]
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | BaseDevicePolicyTest.java | 165 mPackageVerifier = getDevice().executeShellCommand( in setUp() 167 getDevice().executeShellCommand("settings put global package_verifier_enable 0"); in setUp() 193 executeShellCommand("input keyevent KEYCODE_HOME"); in setUp() 199 getDevice().executeShellCommand("settings put global package_verifier_enable " in tearDown() 224 executeShellCommand("am force-stop --user " + userId + " " + packageName); in forceStopPackageForUser() 227 protected void executeShellCommand(final String command) throws Exception { in executeShellCommand() method in BaseDevicePolicyTest 229 String commandOutput = getDevice().executeShellCommand(command); in executeShellCommand() 247 executeShellCommand("am switch-user " + userId); in switchUser() 260 String commandOutput = getDevice().executeShellCommand(command); in getUserFlags() 308 + getDevice().executeShellCommand(stopUserCommand)); in stopUserAsync() [all …]
|
/cts/hostsidetests/backup/src/android/cts/backup/ |
D | BaseBackupHostSideTest.java | 59 protected InputStream executeShellCommand(String command) throws IOException { 66 protected InputStream executeShellCommand(String command) throws IOException { 114 getDevice().executeShellCommand(String.format( in startActivityInPackageAndWait() 127 getDevice().executeShellCommand( in clearBackupDataInLocalTransport() 135 getDevice().executeShellCommand(String.format("pm clear %s", packageName)); in clearPackageData() 139 String output = getDevice().executeShellCommand("bmgr list transports"); in getCurrentTransport() 150 getDevice().executeShellCommand("settings put secure backup_local_transport_parameters " in setLocalTransportParameters() 165 String result = device.executeShellCommand(command); in executeDeviceShellCommand()
|
/cts/hostsidetests/jvmti/attaching/host/src/android/jvmti/cts/ |
D | JvmtiAttachingHostTest.java | 88 String pwd = device.executeShellCommand( in testJvmtiAttachEarly() 116 device.executeShellCommand(setAgentAppCmd); in testJvmtiAgentAppInternal() 135 String pwd = device.executeShellCommand( in testJvmtiAgentAppExternal() 154 device.executeShellCommand(setAgentAppCmd); in testJvmtiAgentAppExternal() 191 device.executeShellCommand("input keyevent KEYCODE_WAKEUP"); in runJvmtiAgentLoadTest() 192 device.executeShellCommand("wm dismiss-keyguard"); in runJvmtiAgentLoadTest() 193 device.executeShellCommand("input keyevent KEYCODE_HOME"); in runJvmtiAgentLoadTest() 199 String abi = device.executeShellCommand("getprop ro.product.cpu.abi").replace("\n", ""); in getDeviceBaseArch() 211 device.executeShellCommand(attachCmd, NullOutputReceiver.getReceiver(), 10, in runAttachTestCmd() 234 String runAsCp = device.executeShellCommand( in installLibToDataData() [all …]
|
/cts/hostsidetests/wifibroadcasts/src/android/wifibroadcasts/cts/ |
D | WifiBroadcastsHostJUnit4Test.java | 108 device.executeShellCommand(CLEAR_COMMAND); in testCleanLogcat() 110 device.executeShellCommand("svc data disable; svc wifi disable; svc bluetooth disable"); in testCleanLogcat() 114 device.executeShellCommand("input keyevent KEYCODE_WAKEUP"); in testCleanLogcat() 116 device.executeShellCommand(START_COMMAND); in testCleanLogcat() 118 device.executeShellCommand("svc wifi enable; sleep 1"); in testCleanLogcat() 136 device.executeShellCommand("svc wifi disable"); in testCleanLogcat()
|
/cts/hostsidetests/sustainedperf/src/android/SustainedPerformance/cts/ |
D | SustainedPerformanceHostTest.java | 78 device.executeShellCommand("cd " + DHRYSTONE + " ; chmod 777 dhry"); in run() 80 String result = device.executeShellCommand("echo " + loopCount in run() 166 device.executeShellCommand("settings put global airplane_mode_on 1"); in setUpEnvironment() 167 … device.executeShellCommand("am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true"); in setUpEnvironment() 178 device.executeShellCommand(START_TEST_COMMAND); in testShader() 205 device.executeShellCommand(START_COMMAND_MODE); in testShader() 211 device.executeShellCommand(STOP_COMMAND); in testShader() 221 device.executeShellCommand("settings put global airplane_mode_on 0"); in testShader() 222 …device.executeShellCommand("am broadcast -a android.intent.action.AIRPLANE_MODE --ez state false"); in testShader()
|
/cts/hostsidetests/monkey/src/com/android/cts/monkey/ |
D | SeedTest.java | 25 String out1 = mDevice.executeShellCommand(cmd1); in testSeed() 26 String out2 = mDevice.executeShellCommand(cmd1); in testSeed() 32 String out3 = mDevice.executeShellCommand(cmd2); in testSeed2() 33 String out4 = mDevice.executeShellCommand(cmd2); in testSeed2()
|
/cts/tests/tests/keystore/src/android/server/am/ |
D | ActivityManagerTestBase.java | 135 executeShellCommand(AM_FORCE_STOP_TEST_PACKAGE); in tearDown() 136 executeShellCommand(AM_FORCE_STOP_SECOND_TEST_PACKAGE); in tearDown() 137 executeShellCommand(AM_FORCE_STOP_THIRD_TEST_PACKAGE); in tearDown() 141 public static String executeShellCommand(String command) { in executeShellCommand() method in ActivityManagerTestBase 154 executeShellCommand(getAmStartCmd(activityName, keyValuePairs)); in launchActivity() 163 executeShellCommand(AM_START_HOME_ACTIVITY_COMMAND); in launchHomeActivity() 169 executeShellCommand(getAmStartCmd(activityName, keyValuePairs) in launchActivity() 188 final String output = executeShellCommand(AM_STACK_LIST); in getActivityTaskId() 248 final String output = executeShellCommand("dumpsys power"); in isDisplayOn() 379 final String output = executeShellCommand(command); in runCommandAndPrintOutput() [all …]
|
/cts/hostsidetests/trustedvoice/src/android/trustedvoice/cts/ |
D | TrustedVoiceHostTest.java | 99 getDevice().executeShellCommand(SLEEP_COMMAND); in testUnlock() 103 getDevice().executeShellCommand(START_COMMAND); in testUnlock() 130 getDevice().executeShellCommand(AWAKE_COMMAND); in testUnlock() 131 getDevice().executeShellCommand(DISMISS_KEYGUARD_COMMAND); in testUnlock()
|
/cts/hostsidetests/deviceidle/src/com/android/cts/deviceidle/ |
D | DeviceIdleWhitelistTest.java | 49 getDevice().executeShellCommand(RESET_SYS_WHITELIST_COMMAND); in setUp() 59 getDevice().executeShellCommand(RESET_SYS_WHITELIST_COMMAND); in tearDown() 65 getDevice().executeShellCommand(DEVICE_IDLE_COMMAND_PREFIX + "-" + packageToRemove); in testRemoveFromSysWhitelist() 75 getDevice().executeShellCommand( in testRemovesPersistedAcrossReboots() 90 final String output = getDevice().executeShellCommand(SHOW_SYS_WHITELIST_COMMAND).trim(); in getSystemWhitelist()
|
/cts/hostsidetests/media/src/android/media/cts/ |
D | BaseMultiUserTest.java | 112 executeShellCommand("am switch-user " + primaryUserId); in setUp() 113 executeShellCommand("wm dismiss-keyguard"); in setUp() 175 protected @Nonnull String executeShellCommand(final String command) throws Exception { in executeShellCommand() method in BaseMultiUserTest 177 String commandOutput = getDevice().executeShellCommand(command); in executeShellCommand() 184 String commandOutput = executeShellCommand(command); in createAndStartUser() 234 getDevice().executeShellCommand(stopUserCommand); in removeUser() 316 String commandOutput = executeShellCommand( in getSettings() 340 executeShellCommand("settings delete " + namespace + " " + name); in putSettings() 343 executeShellCommand("settings" + userFlag + " put " + namespace + " " + name in putSettings() 352 String commandOutput = getDevice().executeShellCommand(command); in hasDeviceFeature()
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | AbstractRestrictBackgroundNetworkTestCase.java | 164 executeShellCommand("settings put global app_idle_constants " + appIdleConstants); in setUp() 166 executeShellCommand("settings get global app_idle_constants"); in setUp() 454 executeShellCommand("settings get global app_idle_constants"); in dumpOnFailure() 537 protected String executeShellCommand(String command) throws Exception { in executeShellCommand() method in AbstractRestrictBackgroundNetworkTestCase 547 final String result = executeShellCommand(command); in executeSilentShellCommand() 583 result = executeShellCommand(command).trim(); in assertDelayedShellCommand() 740 executeShellCommand("cmd netpolicy set restrict-background " + enabled); in setRestrictBackground() 741 final String output = executeShellCommand("cmd netpolicy get restrict-background "); in setRestrictBackground() 749 executeShellCommand("cmd netpolicy add restrict-background-whitelist " + uid); in addRestrictBackgroundWhitelist() 757 executeShellCommand("cmd netpolicy remove restrict-background-whitelist " + uid); in removeRestrictBackgroundWhitelist() [all …]
|