Home
last modified time | relevance | path

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

12345678910>>...22

/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()
DBaseHdmiCecCtsTest.java194 String dumpsys = device.executeShellCommand("dumpsys hdmi_control"); in getDumpsysLogicalAddresses()
231 String dumpsys = device.executeShellCommand("dumpsys hdmi_control"); in isSystemAudioModeOn()
321 String dumpsys = device.executeShellCommand("dumpsys hdmi_control"); in parseRequiredAddressFromDumpsys()
352 device.executeShellCommand("cmd hdmi_control cec_setting set hdmi_cec_version " + in setCecVersion()
389 device.executeShellCommand("setprop " + PROPERTY_CEC_VERSION + " \"\""); in setSystemCecVersion()
391 device.executeShellCommand("setprop " + PROPERTY_CEC_VERSION + " " + cecVersion); in setSystemCecVersion()
404 String result = device.executeShellCommand("getprop " + PROPERTY_CEC_VERSION).trim(); in getSystemCecVersion()
415 return device.executeShellCommand("getprop " + PROPERTY_LOCALE).trim(); in getSystemLocale()
424 device.executeShellCommand("setprop " + PROPERTY_LOCALE + " " + locale); in setSystemLocale()
432 return device.executeShellCommand("cmd hdmi_control cec_setting get " + setting) in getSettingsValue()
[all …]
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DAdoptableHostTest.java67 mListVolumesInitialState = getDevice().executeShellCommand("sm list-volumes"); in setUp()
75 getDevice().executeShellCommand("sm set-virtual-disk true"); in setUp()
83 result = getDevice().executeShellCommand("sm list-disks adoptable").trim(); in setUp()
97 getDevice().executeShellCommand("sm set-virtual-disk false"); in tearDown()
105 result = getDevice().executeShellCommand("sm list-disks adoptable").trim(); in tearDown()
118 result = getDevice().executeShellCommand("sm list-volumes"); in tearDown()
147 result = getDevice().executeShellCommand("sm list-volumes"); in waitForVolumeReady()
171 assertEmpty(getDevice().executeShellCommand("sm partition " + diskId + " private")); in testApps()
175 assertSuccess(getDevice().executeShellCommand( in testApps()
183 getDevice().executeShellCommand("sm unmount " + vol.volId); in testApps()
[all …]
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.java90 getDevice().executeShellCommand("appops set --user " + user + " " + PKG_STATS in setUp()
120 getDevice().executeShellCommand("sync"); in testVerifyAppStats()
210 getDevice().executeShellCommand("settings put global sys_storage_threshold_max_bytes 0"); in testCache()
211 getDevice().executeShellCommand("svc data disable"); in testCache()
212 getDevice().executeShellCommand("svc wifi disable"); in testCache()
217 getDevice().executeShellCommand("pm trim-caches 4096G"); in testCache()
220 getDevice().executeShellCommand("pm trim-caches 4096G"); in testCache()
224 … getDevice().executeShellCommand("settings delete global sys_storage_threshold_max_bytes"); in testCache()
225 getDevice().executeShellCommand("svc data enable"); in testCache()
226 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/tests/tests/provider/src/android/provider/cts/
DProviderTestUtils.java49 executeShellCommand(String.format(cmd, packageName, "WRITE_SMS", mode), uiAutomation); in setDefaultSmsApp()
50 executeShellCommand(String.format(cmd, packageName, "READ_SMS", mode), uiAutomation); in setDefaultSmsApp()
53 public static String executeShellCommand(String command) throws IOException { in executeShellCommand() method in ProviderTestUtils
54 return executeShellCommand(command, in executeShellCommand()
58 public static String executeShellCommand(String command, UiAutomation uiAutomation) in executeShellCommand() method in ProviderTestUtils
61 ParcelFileDescriptor pfd = uiAutomation.executeShellCommand(command.toString()); in executeShellCommand()
80 String output = executeShellCommand("bmgr transport " + transport, uiAutomation); in setBackupTransport()
93 String output = executeShellCommand("bmgr enabled", uiAutomation); in setBackupEnabled()
102 executeShellCommand("bmgr enable " + enable, uiAutomation); in setBackupEnabled()
108 String output = executeShellCommand("bmgr list transports", uiAutomation); in hasBackupTransport()
[all …]
/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/
DShellCommandExecutor.java68 public static String executeShellCommand(Instrumentation instrumentation, in executeShellCommand() method in ShellCommandExecutor
71 instrumentation.getUiAutomation().executeShellCommand(command); in executeShellCommand()
102 executeShellCommand(instrumentation, COMMAND_DUMP_TELECOM); in dumpTelecom()
107 return executeShellCommand(instrumentation, COMMAND_SET_DEFAULT_DIALER + packageName); in setDefaultDialer()
111 return executeShellCommand(instrumentation, COMMAND_GET_DEFAULT_DIALER); in getDefaultDialer()
115 return executeShellCommand(instrumentation, "telecom get-system-dialer"); in getSystemDialer()
120 return executeShellCommand(instrumentation, COMMAND_SET_SYSTEM_DIALER + packageName); in setSystemDialerOverride()
125 return executeShellCommand(instrumentation, COMMAND_SET_SYSTEM_DIALER + "default"); in clearSystemDialerOverride()
130 executeShellCommand(instr, COMMAND_ADD_TEST_EMERGENCY_NUMBER + testNumber); in addTestEmergencyNumber()
134 executeShellCommand(instr, COMMAND_CLEAR_TEST_EMERGENCY_NUMBERS); in clearTestEmergencyNumbers()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/
DDragDropCompatTest.java19 import static android.server.wm.ShellCommandHelper.executeShellCommand;
38 executeShellCommand("am compat enable --no-kill DOWNSCALED" + " " + PACKAGE_NAME); in setUp()
39 executeShellCommand("am compat enable --no-kill DOWNSCALE_50" + " " + PACKAGE_NAME); in setUp()
50 executeShellCommand("am compat disable --no-kill DOWNSCALED " + PACKAGE_NAME); in tearDown()
51 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/mediaprovider/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/tests/framework/base/biometrics/src/android/server/biometrics/
DCredentialSession.java29 Utils.executeShellCommand(SET_PASSWORD); in setCredential()
33 Utils.executeShellCommand(VERIFY_CREDENTIAL); in verifyCredential()
37 Utils.executeShellCommand(VERIFY_INCORRECT_CREDENTIAL); in verifyIncorrectCredential()
42 Utils.executeShellCommand(CLEAR_PASSWORD); in close()
/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/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/framework/base/windowmanager/util/src/android/server/wm/
DWindowManagerTraceMonitor.java59 String stdout = new String(executeShellCommand(command, PERFETTO_CONFIG.getBytes()), in captureDump()
66 byte[] dump = executeShellCommand("cat " + traceFile.getAbsolutePath()); in captureDump()
75 executeShellCommand("kill " + pid); in killPerfettoProcess()
94 new String(executeShellCommand("ps -p " + pid + " -o PID"), StandardCharsets.UTF_8); in isPerfettoProcessUp()
98 private byte[] executeShellCommand(String command) { in executeShellCommand() method in WindowManagerTraceMonitor
102 getInstrumentation().getUiAutomation().executeShellCommand(command); in executeShellCommand()
111 private byte[] executeShellCommand(String command, byte[] stdin) { in executeShellCommand() method in WindowManagerTraceMonitor
/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/statsdatom/src/android/cts/statsdatom/lib/
DDeviceUtils.java195 device.executeShellCommand(cmd); in allowBackgroundServices()
229 device.executeShellCommand(cmd, receiver); in getShellCommandOutput()
250 uidString = device.executeShellCommand("id -u"); in getHostUid()
284 String uidLine = device.executeShellCommand("cmd package list packages -U --user " in getAppUidForUser()
310 final String features = device.executeShellCommand("pm list features"); in hasFeature()
372 device.executeShellCommand(cmd); in withActivity()
375 device.executeShellCommand("am force-stop " + pkgName); in withActivity()
381 device.executeShellCommand("cmd battery set status " + state); in setChargingState()
392 device.executeShellCommand("cmd battery unplug"); in unplugDevice()
396 device.executeShellCommand("cmd battery set ac 1"); in plugInAc()
[all …]
/cts/hostsidetests/harmfulappwarning/src/android/harmfulappwarning/cts/
DHarmfulAppWarningTest.java101 String warning = getDevice().executeShellCommand( in verifyHarmfulAppWarningSet()
107 String warning = getDevice().executeShellCommand( in verifyHarmfulAppWarningUnset()
116 String installedPackage = getDevice().executeShellCommand( in verifySampleAppUninstalled()
122 String installedPackage = getDevice().executeShellCommand( in verifySampleAppInstalled()
142 mDevice.executeShellCommand( in testLaunchAnyway()
155 mDevice.executeShellCommand( in testUninstall()
166 mDevice.executeShellCommand( in testDismissDialog()
174 return getDevice().executeShellCommand("pm list features").contains(featureName); in hasFeature()
/cts/hostsidetests/utils/src/android/cts/host/utils/
DDeviceConfigHelper.java30 .executeShellCommand("device_config get_sync_disabled_for_tests"); in deviceDisableConfigSync()
32 device.executeShellCommand(String.format("device_config set_sync_disabled_for_tests %s", in deviceDisableConfigSync()
34 String res = device.executeShellCommand("device_config get_sync_disabled_for_tests"); in deviceDisableConfigSync()
46 device.executeShellCommand( in deviceRestoreConfigSync()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java218 mPackageVerifier = getDevice().executeShellCommand( in setUp()
220 getDevice().executeShellCommand("settings put global verifier_verify_adb_installs 0"); in setUp()
244 getDevice().executeShellCommand(" mkdir " + TEST_UPDATE_LOCATION); in setUp()
255 executeShellCommand("input keyevent KEYCODE_HOME"); in setUp()
279 while (!predicate.test(getDevice().executeShellCommand(command))) { in waitForOutput()
290 getDevice().executeShellCommand("settings put global verifier_verify_adb_installs " in tearDown()
300 getDevice().executeShellCommand(" rm -r " + TEST_UPDATE_LOCATION); in tearDown()
345 String installResult = getDevice().executeShellCommand( in installAppIncremental()
367 executeShellCommand("am force-stop --user " + userId + " " + packageName); in forceStopPackageForUser()
372 executeShellCommand("am stop-app --user " + userId + " " + packageName); in fgsStopPackageForUser()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DSecondaryLockscreenTest.java86 mUiDevice.executeShellCommand("locksettings set-disabled false"); in setUp()
87 mUiDevice.executeShellCommand("locksettings set-pin 1234"); in setUp()
104 mUiDevice.executeShellCommand("settings delete global device_policy_constants"); in tearDown()
105 mUiDevice.executeShellCommand("locksettings clear --old 1234"); in tearDown()
106 mUiDevice.executeShellCommand("locksettings set-disabled true"); in tearDown()
189 mUiDevice.executeShellCommand("input keyevent KEYCODE_SLEEP"); in enterKeyguardPin()
190 mUiDevice.executeShellCommand("input keyevent KEYCODE_WAKEUP"); in enterKeyguardPin()
195 mUiDevice.executeShellCommand("wm dismiss-keyguard"); in enterKeyguardPin()
199 mUiDevice.executeShellCommand("input text 1234"); in enterKeyguardPin()
200 mUiDevice.executeShellCommand("input keyevent KEYCODE_ENTER"); in enterKeyguardPin()
[all …]
/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>>...22