Home
last modified time | relevance | path

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

12345678910>>...20

/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()
DRemoteControlPassthrough.java52 device.executeShellCommand(CLEAR_COMMAND); in checkUserControlPressAndRelease()
56 device.executeShellCommand(START_COMMAND); in checkUserControlPressAndRelease()
89 device.executeShellCommand(CLEAR_COMMAND); in checkUserControlPressAndHold()
93 device.executeShellCommand(START_COMMAND); in checkUserControlPressAndHold()
126 device.executeShellCommand(CLEAR_COMMAND); in checkUserControlPressAndHoldWithNoRelease()
130 device.executeShellCommand(START_COMMAND); in checkUserControlPressAndHoldWithNoRelease()
163 device.executeShellCommand(CLEAR_COMMAND); in checkUserControlInterruptedPressAndHoldWithNoRelease()
167 device.executeShellCommand(START_COMMAND); in checkUserControlInterruptedPressAndHoldWithNoRelease()
223 device.executeShellCommand(CLEAR_COMMAND); in checkUserControlPressAndReleaseWithAdditionalParams()
227 device.executeShellCommand(START_COMMAND); in checkUserControlPressAndReleaseWithAdditionalParams()
[all …]
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DAdoptableHostTest.java66 mListVolumesInitialState = getDevice().executeShellCommand("sm list-volumes"); in setUp()
74 getDevice().executeShellCommand("sm set-virtual-disk true"); in setUp()
82 result = getDevice().executeShellCommand("sm list-disks adoptable").trim(); in setUp()
96 getDevice().executeShellCommand("sm set-virtual-disk false"); in tearDown()
104 result = getDevice().executeShellCommand("sm list-disks adoptable").trim(); in tearDown()
117 result = getDevice().executeShellCommand("sm list-volumes"); in tearDown()
146 result = getDevice().executeShellCommand("sm list-volumes"); in waitForVolumeReady()
170 assertEmpty(getDevice().executeShellCommand("sm partition " + diskId + " private")); in testApps()
174 assertSuccess(getDevice().executeShellCommand( in testApps()
182 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.java75 getDevice().executeShellCommand("appops set --user " + user + " " + PKG_STATS in setUp()
104 getDevice().executeShellCommand("sync"); in testVerifyAppStats()
186 getDevice().executeShellCommand("settings put global sys_storage_threshold_max_bytes 0"); in testCache()
187 getDevice().executeShellCommand("svc data disable"); in testCache()
188 getDevice().executeShellCommand("svc wifi disable"); in testCache()
193 getDevice().executeShellCommand("pm trim-caches 4096G"); in testCache()
196 getDevice().executeShellCommand("pm trim-caches 4096G"); in testCache()
200 … getDevice().executeShellCommand("settings delete global sys_storage_threshold_max_bytes"); in testCache()
201 getDevice().executeShellCommand("svc data enable"); in testCache()
202 getDevice().executeShellCommand("svc wifi enable"); in testCache()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/media/
DMediaCapabilitiesTests.java82 getDevice().executeShellCommand( in testSurroundSoundCapabilities()
84 getDevice().executeShellCommand( in testSurroundSoundCapabilities()
86 getDevice().executeShellCommand("cmd audio set-encoded-surround-mode 2"); in testSurroundSoundCapabilities()
118 getDevice().executeShellCommand( in testDisplayCapabilities()
120 getDevice().executeShellCommand("cmd display set-match-content-frame-rate-pref 2"); in testDisplayCapabilities()
121 getDevice().executeShellCommand("cmd display set-user-disabled-hdr-types 1 2"); in testDisplayCapabilities()
154 mIsDtsEnabled = getDevice().executeShellCommand( in cacheOriginalSettings()
156 mIsDolbyTrueHdEnabled = getDevice().executeShellCommand( in cacheOriginalSettings()
158 mEncodedSurroundMode = getDevice().executeShellCommand( in cacheOriginalSettings()
162 mUserPrefDisplayMode = getDevice().executeShellCommand( in cacheOriginalSettings()
[all …]
/cts/hostsidetests/testharness/src/android/testharness/cts/
DTestHarnessModeDeviceTest.java52 getDevice().executeShellCommand("touch /sdcard/test.txt"); in testHarnessModeDeletesFiles()
53 getDevice().executeShellCommand("touch /data/local/tmp/test.txt"); in testHarnessModeDeletesFiles()
76 getDevice().executeShellCommand("settings get global transition_animation_scale"); in testHarnessModeRemovesAndResetsSettings()
78 getDevice().executeShellCommand("settings put global test_harness_test 1234"); in testHarnessModeRemovesAndResetsSettings()
79 getDevice().executeShellCommand("settings put secure test_harness_test 1234"); in testHarnessModeRemovesAndResetsSettings()
80 getDevice().executeShellCommand("settings put system test_harness_test 1234"); in testHarnessModeRemovesAndResetsSettings()
81 getDevice().executeShellCommand("settings put global transition_animation_scale 2.0"); in testHarnessModeRemovesAndResetsSettings()
88 getDevice().executeShellCommand("settings get global test_harness_test").trim()); in testHarnessModeRemovesAndResetsSettings()
92 getDevice().executeShellCommand("settings get secure test_harness_test").trim()); in testHarnessModeRemovesAndResetsSettings()
96 getDevice().executeShellCommand("settings get system test_harness_test").trim()); in testHarnessModeRemovesAndResetsSettings()
[all …]
/cts/hostsidetests/incident/src/com/android/server/cts/
DBatteryStatsValidationTest.java97 getDevice().executeShellCommand("dumpsys batterystats enable pretend-screen-off"); in screenOff()
104 getDevice().executeShellCommand("input keyevent KEYCODE_WAKEUP"); in turnScreenOnForReal()
105 getDevice().executeShellCommand("wm dismiss-keyguard"); in turnScreenOnForReal()
112 getDevice().executeShellCommand("input keyevent KEYCODE_SLEEP"); in turnScreenOffForReal()
116 getDevice().executeShellCommand("dumpsys battery unplug"); in batteryOnScreenOn()
117 getDevice().executeShellCommand("dumpsys battery set status " + BATTERY_STATUS_DISCHARGING); in batteryOnScreenOn()
118 getDevice().executeShellCommand("dumpsys batterystats disable pretend-screen-off"); in batteryOnScreenOn()
122 getDevice().executeShellCommand("dumpsys battery unplug"); in batteryOnScreenOff()
123 getDevice().executeShellCommand("dumpsys battery set status " + BATTERY_STATUS_DISCHARGING); in batteryOnScreenOff()
124 getDevice().executeShellCommand("dumpsys batterystats enable pretend-screen-off"); in batteryOnScreenOff()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DDragDropCompatTest.java19 import static android.server.wm.ShellCommandHelper.executeShellCommand;
37 executeShellCommand("am compat enable --no-kill DOWNSCALED" + " " + PACKAGE_NAME); in setUp()
38 executeShellCommand("am compat enable --no-kill DOWNSCALE_50" + " " + PACKAGE_NAME); in setUp()
47 executeShellCommand("am compat disable --no-kill DOWNSCALED " + PACKAGE_NAME); in tearDown()
48 executeShellCommand("am compat disable --no-kill DOWNSCALE_50" + " " + PACKAGE_NAME); in tearDown()
/cts/hostsidetests/os/src/android/os/cts/
DPowerManagerTests.java73 mDevice.executeShellCommand("input keyevent 26; input keyevent 82"); in testCachedProcessReleasesWakeLock()
77 String processes = mDevice.executeShellCommand(CHECK_CACHED_CMD); in testCachedProcessReleasesWakeLock()
80 String wakelocks = mDevice.executeShellCommand(GET_WAKE_LOCKS_CMD); in testCachedProcessReleasesWakeLock()
87 mDevice.executeShellCommand("am make-uid-idle " + PACKAGE_NAME); in testCachedProcessReleasesWakeLock()
89 wakelocks = mDevice.executeShellCommand(GET_WAKE_LOCKS_CMD); in testCachedProcessReleasesWakeLock()
99 mDevice.executeShellCommand(String.format(startAppTemplate, packageName)); in makeCachedProcess()
101 mDevice.executeShellCommand(String.format(viewUriTemplate, "mailto:")); in makeCachedProcess()
102 mDevice.executeShellCommand(String.format(viewUriTemplate, "tel:")); in makeCachedProcess()
DInattentiveSleepTests.java89 mDevice.executeShellCommand(CMD_GET_STAY_ON).trim()); in setUp()
96 mDevice.executeShellCommand(CMD_DISABLE_STAY_ON); in setUp()
104 mDevice.executeShellCommand( in tearDown()
106 mDevice.executeShellCommand(CMD_DELETE_TIMEOUT_SETTING); in tearDown()
111 mDevice.executeShellCommand(CMD_KEYEVENT_HOME); in wakeUpToHome()
115 mDevice.executeShellCommand(CMD_KEYEVENT_WAKEUP); in wakeUp()
119 mDevice.executeShellCommand( in startPartialWakeLockService()
124 mDevice.executeShellCommand( in stopPartialWakeLockService()
129 mDevice.executeShellCommand( in startKeepScreenOnActivity()
134 mDevice.executeShellCommand(String.format(CMD_SET_TIMEOUT_TEMPLATE, timeoutMs)); in setInattentiveSleepTimeout()
[all …]
/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/wifibroadcasts/src/android/wifibroadcasts/cts/
DWifiBroadcastsHostJUnit4Test.java114 device.executeShellCommand(CLEAR_COMMAND); in testCleanLogcat()
116 device.executeShellCommand("svc data disable; svc wifi disable"); in testCleanLogcat()
120 device.executeShellCommand("input keyevent KEYCODE_WAKEUP"); in testCleanLogcat()
122 device.executeShellCommand(START_COMMAND); in testCleanLogcat()
124 device.executeShellCommand("svc wifi enable; sleep 1"); in testCleanLogcat()
132 device.executeShellCommand("svc wifi disable; sleep 1; svc wifi enable; sleep 3"); in testCleanLogcat()
146 device.executeShellCommand("svc wifi disable"); in testCleanLogcat()
167 device.executeShellCommand("svc wifi enable; sleep 1"); in testCleanLogcat()
/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/hostsidetests/statsdatom/src/android/cts/statsdatom/lib/
DDeviceUtils.java193 device.executeShellCommand(cmd); in allowBackgroundServices()
227 device.executeShellCommand(cmd, receiver); in getShellCommandOutput()
248 uidString = device.executeShellCommand("id -u"); in getHostUid()
282 String uidLine = device.executeShellCommand("cmd package list packages -U --user " in getAppUidForUser()
299 final String features = device.executeShellCommand("pm list features"); in hasFeature()
361 device.executeShellCommand(cmd); in withActivity()
364 device.executeShellCommand("am force-stop " + pkgName); in withActivity()
370 device.executeShellCommand("cmd battery set status " + state); in setChargingState()
381 device.executeShellCommand("cmd battery unplug"); in unplugDevice()
385 device.executeShellCommand("cmd battery set ac 1"); in plugInAc()
[all …]
/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/tests/tests/os/src/android/os/storage/cts/
DStorageManagerHelper.java67 executeShellCommand("sm set-virtual-disk false"); in removeVirtualDisk()
79 executeShellCommand("sm set-force-adoptable " + (visible ? "on" : "off")); in createDiskAndGetVolumeName()
80 executeShellCommand("sm set-virtual-disk true"); in createDiskAndGetVolumeName()
89 List<String> diskNames = executeShellCommand("sm list-disks"); in partitionDisks()
91 executeShellCommand("sm partition " + Iterables.getLast(diskNames) + " public"); in partitionDisks()
114 List<String> volumes = executeShellCommand("sm list-volumes"); in getPublicVolumeExcluding()
137 List<String> hasAdoptable = executeShellCommand("sm has-adoptable"); in hasAdoptableStorageFstab()
149 private static List<String> executeShellCommand(String command) throws Exception { in executeShellCommand() method in StorageManagerHelper
151 .getUiAutomation().executeShellCommand(command); in executeShellCommand()
/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/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java219 mPackageVerifier = getDevice().executeShellCommand( in setUp()
221 getDevice().executeShellCommand("settings put global verifier_verify_adb_installs 0"); in setUp()
252 getDevice().executeShellCommand(" mkdir " + TEST_UPDATE_LOCATION); in setUp()
263 executeShellCommand("input keyevent KEYCODE_HOME"); in setUp()
287 while (!predicate.test(getDevice().executeShellCommand(command))) { in waitForOutput()
298 getDevice().executeShellCommand("settings put global verifier_verify_adb_installs " in tearDown()
308 getDevice().executeShellCommand(" rm -r " + TEST_UPDATE_LOCATION); in tearDown()
350 String installResult = getDevice().executeShellCommand( in installAppIncremental()
379 executeShellCommand("am force-stop --user " + userId + " " + packageName); in forceStopPackageForUser()
384 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/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()
/cts/hostsidetests/usage/src/android/app/usage/cts/
DAppIdleHostTest.java65 … String result = mDevice.executeShellCommand(String.format("am get-inactive %s", appPackage)); in isAppIdle()
75 mDevice.executeShellCommand( in startAndStopTestApp()
83 mDevice.executeShellCommand( in startAndStopTestApp()
97 mDevice.executeShellCommand( in setAppStandbyBucket()
102 final String result = mDevice.executeShellCommand( in isAppStandbyEnabled()
108 String bucketString = mDevice.executeShellCommand( in getAppStandbyBucket()
134 mDevice.executeShellCommand(command); in testSetAppStandbyBuckets()

12345678910>>...20