Home
last modified time | relevance | path

Searched refs:executeShellCommand (Results 1 – 25 of 453) sorted by relevance

12345678910>>...19

/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/
DAudioManagerHelper.java50 device.executeShellCommand(CLEAR_COMMAND); in muteDevice()
54 device.executeShellCommand(START_COMMAND + "android.hdmicec.app.MUTE"); in muteDevice()
62 device.executeShellCommand(CLEAR_COMMAND); in unmuteDevice()
64 device.executeShellCommand(START_COMMAND + "android.hdmicec.app.UNMUTE"); in unmuteDevice()
72 device.executeShellCommand(CLEAR_COMMAND); in unmuteDevice()
74 device.executeShellCommand(START_COMMAND + "android.hdmicec.app.UNMUTE"); in unmuteDevice()
79 device.executeShellCommand(CLEAR_COMMAND); in isDeviceMuted()
83 device.executeShellCommand(START_COMMAND + "android.hdmicec.app.REPORT_VOLUME"); in isDeviceMuted()
89 device.executeShellCommand(CLEAR_COMMAND); in lowerVolume()
91 device.executeShellCommand(START_COMMAND + "android.hdmicec.app.LOWER_VOLUME"); in lowerVolume()
[all …]
DWakeLockHelper.java48 device.executeShellCommand(CLEAR_COMMAND); in acquirePartialWakeLock()
50 device.executeShellCommand(START_COMMAND + ACQUIRE_LOCK); in acquirePartialWakeLock()
59 device.executeShellCommand(START_COMMAND + RELEASE_LOCK); in releasePartialWakeLock()
61 device.executeShellCommand(CLEAR_COMMAND); in releasePartialWakeLock()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DAdoptableHostTest.java65 mListVolumesInitialState = getDevice().executeShellCommand("sm list-volumes"); in setUp()
73 getDevice().executeShellCommand("sm set-virtual-disk true"); in setUp()
81 result = getDevice().executeShellCommand("sm list-disks adoptable").trim(); in setUp()
95 getDevice().executeShellCommand("sm set-virtual-disk false"); in tearDown()
103 result = getDevice().executeShellCommand("sm list-disks adoptable").trim(); in tearDown()
116 result = getDevice().executeShellCommand("sm list-volumes"); in tearDown()
145 result = getDevice().executeShellCommand("sm list-volumes"); in waitForVolumeReady()
169 assertEmpty(getDevice().executeShellCommand("sm partition " + diskId + " private")); in testApps()
173 assertSuccess(getDevice().executeShellCommand( in testApps()
181 getDevice().executeShellCommand("sm unmount " + vol.volId); in testApps()
[all …]
DAuthBoundKeyTest.java59 getDevice().executeShellCommand("cmd lock_settings set-pin 1234"); in useInvalidatedAuthBoundKey()
61 getDevice().executeShellCommand("cmd lock_settings clear --old 1234"); in useInvalidatedAuthBoundKey()
63 getDevice().executeShellCommand("cmd lock_settings set-pin 2345"); in useInvalidatedAuthBoundKey()
64 getDevice().executeShellCommand("input keyevent 26"); // Screen on in useInvalidatedAuthBoundKey()
65 getDevice().executeShellCommand("input keyevent 82"); // Bring up lock screen in useInvalidatedAuthBoundKey()
66 getDevice().executeShellCommand("input text 2345"); // Input password in useInvalidatedAuthBoundKey()
67 getDevice().executeShellCommand("input keyevent 66"); // Submit input in useInvalidatedAuthBoundKey()
70 getDevice().executeShellCommand("cmd lock_settings clear --old 1234"); in useInvalidatedAuthBoundKey()
71 getDevice().executeShellCommand("cmd lock_settings clear --old 2345"); in useInvalidatedAuthBoundKey()
DPrivilegedUpdateTests.java87 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in setUp()
96 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in tearDown()
135 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in testDisableSystemApp()
137 getDevice().executeShellCommand("pm disable-user " + SHIM_PKG); in testDisableSystemApp()
147 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in testDisableUpdatedSystemApp()
152 getDevice().executeShellCommand("pm disable-user " + SHIM_PKG); in testDisableUpdatedSystemApp()
154 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in testDisableUpdatedSystemApp()
167 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in testUpdatedSystemAppPreservedOnReboot()
172 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in testUpdatedSystemAppPreservedOnReboot()
189 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in testUninstallDisabledUpdatedSystemApp_remainingDisabled()
[all …]
DStorageHostTest.java77 getDevice().executeShellCommand("appops set --user " + user + " " + PKG_STATS in setUp()
107 getDevice().executeShellCommand("sync"); in testVerifyAppStats()
188 getDevice().executeShellCommand("settings put global sys_storage_threshold_max_bytes 0"); in testCache()
189 getDevice().executeShellCommand("svc data disable"); in testCache()
190 getDevice().executeShellCommand("svc wifi disable"); in testCache()
195 getDevice().executeShellCommand("pm trim-caches 4096G"); in testCache()
198 getDevice().executeShellCommand("pm trim-caches 4096G"); in testCache()
202 … getDevice().executeShellCommand("settings delete global sys_storage_threshold_max_bytes"); in testCache()
203 getDevice().executeShellCommand("svc data enable"); in testCache()
204 getDevice().executeShellCommand("svc wifi enable"); in testCache()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/media/
DMediaCapabilitiesTests.java81 getDevice().executeShellCommand( in testSurroundSoundCapabilities()
83 getDevice().executeShellCommand( in testSurroundSoundCapabilities()
85 getDevice().executeShellCommand("cmd audio set-encoded-surround-mode 2"); in testSurroundSoundCapabilities()
117 getDevice().executeShellCommand( in testDisplayCapabilities()
119 getDevice().executeShellCommand("cmd display set-match-content-frame-rate-pref 2"); in testDisplayCapabilities()
120 getDevice().executeShellCommand("cmd display set-user-disabled-hdr-types 1 2"); in testDisplayCapabilities()
153 mIsDtsEnabled = getDevice().executeShellCommand( in cacheOriginalSettings()
155 mIsDolbyTrueHdEnabled = getDevice().executeShellCommand( in cacheOriginalSettings()
157 mEncodedSurroundMode = getDevice().executeShellCommand( in cacheOriginalSettings()
161 mUserPrefDisplayMode = getDevice().executeShellCommand( in cacheOriginalSettings()
[all …]
/cts/hostsidetests/testharness/src/android/testharness/cts/
DTestHarnessModeDeviceTest.java51 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/
DBatteryStatsValidationTest.java96 getDevice().executeShellCommand("dumpsys batterystats enable pretend-screen-off"); in screenOff()
103 getDevice().executeShellCommand("input keyevent KEYCODE_WAKEUP"); in turnScreenOnForReal()
104 getDevice().executeShellCommand("wm dismiss-keyguard"); in turnScreenOnForReal()
111 getDevice().executeShellCommand("input keyevent KEYCODE_SLEEP"); in turnScreenOffForReal()
115 getDevice().executeShellCommand("dumpsys battery unplug"); in batteryOnScreenOn()
116 getDevice().executeShellCommand("dumpsys battery set status " + BATTERY_STATUS_DISCHARGING); in batteryOnScreenOn()
117 getDevice().executeShellCommand("dumpsys batterystats disable pretend-screen-off"); in batteryOnScreenOn()
121 getDevice().executeShellCommand("dumpsys battery unplug"); in batteryOnScreenOff()
122 getDevice().executeShellCommand("dumpsys battery set status " + BATTERY_STATUS_DISCHARGING); in batteryOnScreenOff()
123 getDevice().executeShellCommand("dumpsys batterystats enable pretend-screen-off"); in batteryOnScreenOff()
[all …]
/cts/hostsidetests/os/src/android/os/cts/
DPowerManagerTests.java72 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()
DInattentiveSleepTests.java88 mDevice.executeShellCommand(CMD_GET_STAY_ON).trim()); in setUp()
95 mDevice.executeShellCommand(CMD_DISABLE_STAY_ON); in setUp()
103 mDevice.executeShellCommand( in tearDown()
105 mDevice.executeShellCommand(CMD_DELETE_TIMEOUT_SETTING); in tearDown()
110 mDevice.executeShellCommand(CMD_KEYEVENT_HOME); in wakeUpToHome()
114 mDevice.executeShellCommand(CMD_KEYEVENT_WAKEUP); in wakeUp()
118 mDevice.executeShellCommand( in startPartialWakeLockService()
123 mDevice.executeShellCommand( in stopPartialWakeLockService()
128 mDevice.executeShellCommand( in startKeepScreenOnActivity()
133 mDevice.executeShellCommand(String.format(CMD_SET_TIMEOUT_TEMPLATE, timeoutMs)); in setInattentiveSleepTimeout()
[all …]
/cts/hostsidetests/wifibroadcasts/src/android/wifibroadcasts/cts/
DWifiBroadcastsHostJUnit4Test.java113 device.executeShellCommand(CLEAR_COMMAND); in testCleanLogcat()
115 device.executeShellCommand("svc data disable; svc wifi disable"); in testCleanLogcat()
119 device.executeShellCommand("input keyevent KEYCODE_WAKEUP"); in testCleanLogcat()
121 device.executeShellCommand(START_COMMAND); in testCleanLogcat()
123 device.executeShellCommand("svc wifi enable; sleep 1"); in testCleanLogcat()
131 device.executeShellCommand("svc wifi disable; sleep 1; svc wifi enable; sleep 3"); in testCleanLogcat()
145 device.executeShellCommand("svc wifi disable"); in testCleanLogcat()
166 device.executeShellCommand("svc wifi enable; sleep 1"); in testCleanLogcat()
/cts/tests/tests/provider/preconditions/src/android/provider/cts/preconditions/
DExternalStoragePreparer.java38 device.executeShellCommand("sm set-virtual-disk false"); in setUp()
39 device.executeShellCommand("sm set-virtual-disk true"); in setUp()
43 device.executeShellCommand("sm partition " + diskId + " public"); in setUp()
51 device.executeShellCommand("sm set-virtual-disk false"); in tearDown()
56 String disks = device.executeShellCommand("sm list-disks"); in getVirtualDisk()
62 disks = device.executeShellCommand("sm list-disks"); in getVirtualDisk()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/lib/
DDeviceUtils.java155 device.executeShellCommand(cmd); in allowBackgroundServices()
188 device.executeShellCommand(cmd, receiver); in getShellCommandOutput()
203 uidString = device.executeShellCommand("id -u"); in getHostUid()
229 String uidLine = device.executeShellCommand("cmd package list packages -U --user " in getAppUid()
246 final String features = device.executeShellCommand("pm list features"); in hasFeature()
308 device.executeShellCommand(cmd); in withActivity()
311 device.executeShellCommand("am force-stop " + pkgName); in withActivity()
317 device.executeShellCommand("cmd battery set status " + state); in setChargingState()
328 device.executeShellCommand("cmd battery unplug"); in unplugDevice()
332 device.executeShellCommand("cmd battery set ac 1"); in plugInAc()
[all …]
/cts/hostsidetests/calllog/src/android/provider/cts/contacts/hostside/
DShadowCallLogTest.java67 String fbeMode = getDevice().executeShellCommand("sm get-fbe-mode").trim(); in testDirectBootCallLog()
89 final String res = getDevice().executeShellCommand("sm set-emulate-fbe true"); in testDirectBootCallLog()
114 getDevice().executeShellCommand("sm set-emulate-fbe false"); in testDirectBootCallLog()
128 device.executeShellCommand("settings put global require_password_to_decrypt 0"); in setupDevicePassword()
129 device.executeShellCommand("locksettings set-disabled false"); in setupDevicePassword()
130 device.executeShellCommand("locksettings set-pin 12345"); in setupDevicePassword()
136 device.executeShellCommand("locksettings clear --old 12345"); in removeDevicePassword()
137 device.executeShellCommand("locksettings set-disabled true"); in removeDevicePassword()
138 device.executeShellCommand("settings delete global require_password_to_decrypt"); in removeDevicePassword()
159 device.getIDevice().executeShellCommand("getprop sys.boot_completed", receiver); in isBootCompleted()
/cts/hostsidetests/harmfulappwarning/src/android/harmfulappwarning/cts/
DHarmfulAppWarningTest.java97 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/tests/tests/os/src/android/os/storage/cts/
DStorageManagerHelper.java61 executeShellCommand("sm set-virtual-disk false"); in removeVirtualDisk()
73 executeShellCommand("sm set-force-adoptable " + (visible ? "on" : "off")); in createDiskAndGetVolumeName()
74 executeShellCommand("sm set-virtual-disk true"); in createDiskAndGetVolumeName()
83 List<String> diskNames = executeShellCommand("sm list-disks"); in partitionDisks()
85 executeShellCommand("sm partition " + Iterables.getLast(diskNames) + " public"); in partitionDisks()
108 List<String> volumes = executeShellCommand("sm list-volumes"); in getPublicVolumeExcluding()
126 private static List<String> executeShellCommand(String command) throws Exception { in executeShellCommand() method in StorageManagerHelper
128 .getUiAutomation().executeShellCommand(command); in executeShellCommand()
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/
DScopedStorageCoreHostTest.java58 executeShellCommand("mkdir /sdcard/Android/data/com.android.shell -m 2770"); in setup()
59 executeShellCommand("mkdir /sdcard/Android/data/com.android.shell/files -m 2770"); in setup()
74 executeShellCommand("rm -r /sdcard/Android/data/com.android.shell"); in tearDown()
183 executeShellCommand("pm grant --user %d android.scopedstorage.cts %s", in grantPermissions()
191 executeShellCommand("pm revoke --user %d android.scopedstorage.cts %s", in revokePermissions()
198 executeShellCommand("cmd appops set --uid android.scopedstorage.cts %s allow", op); in allowAppOps()
204 executeShellCommand("cmd appops set --uid android.scopedstorage.cts %s deny", op); in denyAppOps()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DSecondaryLockscreenTest.java73 mUiDevice.executeShellCommand("settings put global device_policy_constants " in setUp()
75 mUiDevice.executeShellCommand("locksettings set-disabled false"); in setUp()
76 mUiDevice.executeShellCommand("locksettings set-pin 1234"); in setUp()
90 mUiDevice.executeShellCommand("settings delete global device_policy_constants"); in tearDown()
91 mUiDevice.executeShellCommand("locksettings clear --old 1234"); in tearDown()
92 mUiDevice.executeShellCommand("locksettings set-disabled true"); in tearDown()
149 mUiDevice.executeShellCommand("input keyevent KEYCODE_SLEEP"); in enterKeyguardPin()
150 mUiDevice.executeShellCommand("input keyevent KEYCODE_WAKEUP"); in enterKeyguardPin()
155 mUiDevice.executeShellCommand("wm dismiss-keyguard"); in enterKeyguardPin()
159 mUiDevice.executeShellCommand("input text 1234"); in enterKeyguardPin()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DDeviceAtomTestCase.java170 String uidLine = getDevice().executeShellCommand("cmd package list packages -U --user " in getUid()
208 getDevice().executeShellCommand(String.format( in allowBackgroundServices()
218 getDevice().executeShellCommand(String.format( in executeBackgroundService()
260 getDevice().executeShellCommand( in withActivity()
263 getDevice().executeShellCommand( in withActivity()
268 getDevice().executeShellCommand( in withActivity()
275 getDevice().executeShellCommand("dumpsys batterystats --reset"); in resetBatteryStats()
279 getDevice().executeShellCommand("dumpsys procstats --clear"); in clearProcStats()
283 getDevice().executeShellCommand("dumpsys procstats --start-testing"); in startProcStatsTesting()
287 getDevice().executeShellCommand("dumpsys procstats --stop-testing"); in stopProcStatsTesting()
[all …]
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java223 mPackageVerifier = getDevice().executeShellCommand( in setUp()
225 getDevice().executeShellCommand("settings put global verifier_verify_adb_installs 0"); in setUp()
258 getDevice().executeShellCommand(" mkdir " + TEST_UPDATE_LOCATION); in setUp()
269 executeShellCommand("input keyevent KEYCODE_HOME"); in setUp()
293 while (!predicate.test(getDevice().executeShellCommand(command))) { in waitForOutput()
304 getDevice().executeShellCommand("settings put global verifier_verify_adb_installs " in tearDown()
314 getDevice().executeShellCommand(" rm -r " + TEST_UPDATE_LOCATION); in tearDown()
356 String installResult = getDevice().executeShellCommand( in installAppIncremental()
385 executeShellCommand("am force-stop --user " + userId + " " + packageName); in forceStopPackageForUser()
390 executeShellCommand("am stop-app --user " + userId + " " + packageName); in fgsStopPackageForUser()
[all …]
/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DCredentialSession.java26 Utils.executeShellCommand(SET_PASSWORD); in setCredential()
30 Utils.executeShellCommand(VERIFY_CREDENTIAL); in verifyCredential()
35 Utils.executeShellCommand(CLEAR_PASSWORD); in close()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DIgnoreOrientationRequestSession.java45 executeShellCommand(WM_GET_IGNORE_ORIENTATION_REQUEST)); in IgnoreOrientationRequestSession()
50 executeShellCommand(WM_SET_IGNORE_ORIENTATION_REQUEST + (enable ? "true" : "false")); in IgnoreOrientationRequestSession()
55 executeShellCommand(WM_SET_IGNORE_ORIENTATION_REQUEST + mInitialIgnoreOrientationRequest); in close()
58 private static String executeShellCommand(String command) { in executeShellCommand() method in IgnoreOrientationRequestSession
/cts/hostsidetests/usage/src/android/app/usage/cts/
DAppIdleHostTest.java63 … String result = mDevice.executeShellCommand(String.format("am get-inactive %s", appPackage)); in isAppIdle()
73 mDevice.executeShellCommand( in startAndStopTestApp()
81 mDevice.executeShellCommand( in startAndStopTestApp()
95 mDevice.executeShellCommand( in setAppStandbyBucket()
100 final String result = mDevice.executeShellCommand( in isAppStandbyEnabled()
106 String bucketString = mDevice.executeShellCommand( in getAppStandbyBucket()
132 mDevice.executeShellCommand(command); in testSetAppStandbyBuckets()
/cts/hostsidetests/backup/src/android/cts/backup/
DBaseBackupHostSideTest.java68 protected InputStream executeShellCommand(String command) throws IOException {
75 protected InputStream executeShellCommand(String command) throws IOException {
113 getDevice().executeShellCommand(String.format( in startActivityInPackageAndWait()
126 getDevice().executeShellCommand( in clearBackupDataInLocalTransport()
134 getDevice().executeShellCommand(String.format("pm clear %s", packageName)); in clearPackageData()
138 String output = getDevice().executeShellCommand("bmgr list transports"); in getCurrentTransport()
149 getDevice().executeShellCommand("settings put secure backup_local_transport_parameters " in setLocalTransportParameters()
154 return getDevice().executeShellCommand( in getLocalTransportParameters()
169 String result = device.executeShellCommand(command); in executeDeviceShellCommand()

12345678910>>...19