/aosp_15_r20/packages/modules/AdServices/adservices/tests/jetpack/src/com/android/adservices/ |
D | TestUtil.java | 48 private void runShellCommand(String command) { in runShellCommand() method in TestUtil 58 runShellCommand("device_config put adservices global_kill_switch " + false); in overrideKillSwitches() 59 runShellCommand("device_config put adservices topics_kill_switch " + false); in overrideKillSwitches() 61 runShellCommand("device_config put adservices global_kill_switch " + null); in overrideKillSwitches() 62 runShellCommand("device_config put adservices topics_kill_switch " + null); in overrideKillSwitches() 67 runShellCommand("device_config put adservices disable_topics_enrollment_check " + enable); in enableEnrollmentCheck() 72 runShellCommand( in overrideEpochPeriod() 78 runShellCommand( in overridePercentageForRandomTopic() 85 runShellCommand( in forceEpochComputationJob() 91 runShellCommand("setprop debug.adservices.consent_manager_debug_mode " + overrideStr); in overrideConsentManagerDebugMode() [all …]
|
/aosp_15_r20/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
H A D | BaseJobSchedulerTest.java | 116 SystemUtil.runShellCommand(getInstrumentation(), "cmd activity set-inactive " in injectInstrumentation() 136 SystemUtil.runShellCommand("cmd jobscheduler cache-config-changes on"); in setUp() 164 SystemUtil.runShellCommand("cmd jobscheduler cache-config-changes off"); in tearDown() 165 SystemUtil.runShellCommand(getInstrumentation(), "cmd jobscheduler monitor-battery off"); in tearDown() 166 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery reset"); in tearDown() 171 SystemUtil.runShellCommand(getInstrumentation(), "cmd devicestoragemonitor reset"); in tearDown() 174 SystemUtil.runShellCommand(getInstrumentation(), in tearDown() 223 final String output = SystemUtil.runShellCommand("cmd deviceidle enabled deep").trim(); in isDeviceIdleEnabled() 228 final String output = SystemUtil.runShellCommand("cmd deviceidle enabled light").trim(); in isDeviceLightIdleEnabled() 235 SystemUtil.runShellCommand(getInstrumentation(), in isJsStorageStateLow() [all …]
|
H A D | TestAppInterface.java | 108 SystemUtil.runShellCommand( in TestAppInterface() 112 SystemUtil.runShellCommand( in TestAppInterface() 116 SystemUtil.runShellCommand("am set-standby-bucket " + TEST_APP_PACKAGE + " rare"); in TestAppInterface() 119 SystemUtil.runShellCommand("cmd deviceidle whitelist -" + TEST_APP_PACKAGE); in TestAppInterface() 120 SystemUtil.runShellCommand("cmd netpolicy start-watching " + mTestPackageUid); in TestAppInterface() 144 SystemUtil.runShellCommand("am compat reset-all " + TEST_APP_PACKAGE); in cleanup() 146 SystemUtil.runShellCommand("cmd deviceidle whitelist -" + TEST_APP_PACKAGE); in cleanup() 149 SystemUtil.runShellCommand("cmd netpolicy stop-watching"); in cleanup() 150 SystemUtil.runShellCommand( in cleanup() 244 SystemUtil.runShellCommand("am stop-app " + TEST_APP_PACKAGE); in kill() [all …]
|
/aosp_15_r20/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/ |
D | ThreadNetworkShellCommandTest.java | 117 private void runShellCommand(String... args) { in runShellCommand() method in ThreadNetworkShellCommandTest 130 runShellCommand("get-country-code"); in getCountryCode_testingPermissionIsChecked() 141 runShellCommand("get-country-code"); in getCountryCode_currentCountryCodePrinted() 148 runShellCommand("force-country-code", "enabled", "US"); in forceSetCountryCodeEnabled_testingPermissionIsChecked() 157 runShellCommand("force-country-code", "enabled", "US"); in forceSetCountryCodeEnabled_countryCodeIsOverridden() 164 runShellCommand("force-country-code", "disabled"); in forceSetCountryCodeDisabled_overriddenCountryCodeIsCleared() 171 runShellCommand("force-stop-ot-daemon", "enabled"); in forceStopOtDaemon_testingPermissionIsChecked() 184 runShellCommand("force-stop-ot-daemon", "enabled"); in forceStopOtDaemon_serviceThrows_failed() 194 runShellCommand("force-stop-ot-daemon", "enabled"); in forceStopOtDaemon_serviceApiTimeout_failedWithTimeoutError() 205 runShellCommand("join", DEFAULT_ACTIVE_DATASET_TLVS); in join_controllerServiceJoinIsCalled() [all …]
|
/aosp_15_r20/cts/tests/tests/companion/common/src/android/companion/cts/common/ |
H A D | AppHelper.kt | 30 runShellCommand("cmd companiondevice associate $userId $packageName $macAddress $role") in associate() 33 runShellCommand("cmd companiondevice disassociate $userId $packageName $macAddress") in associate() 36 runShellCommand("cmd companiondevice disassociate-all $userId $packageName") in associate() 39 runShellCommand("pm list packages --user $userId $packageName").isNotBlank() in associate() 41 fun install() = apkPath?.let { runShellCommand("pm install --user $userId $apkPath") } in associate() 44 fun uninstall() = runShellCommand("pm uninstall --user $userId $packageName") in uninstall() 46 fun clearData() = runShellCommand("pm clear --user $userId $packageName") in uninstall() 49 runShellCommand("cmd role get-role-holders --user $userId $role").contains(packageName) in uninstall() 52 runShellCommand("cmd role add-role-holder --user $userId $role $packageName") in uninstall() 55 runShellCommand("cmd role remove-role-holder --user $userId $role $packageName") in uninstall() [all …]
|
H A D | TestBase.kt | 157 protected fun runShellCommand(cmd: String) = instrumentation.runShellCommand(cmd) in runShellCommand() method 186 runShellCommand("cmd companiondevice simulate-device-event $associationId $event") in simulateDeviceEvent() 189 runShellCommand( in simulateDeviceEvent() 195 runShellCommand( in simulateDeviceEvent() 202 runShellCommand("cmd companiondevice simulate-device-event-device-unlocked $userId") in simulateDeviceEventDeviceUnlocked() 206 runShellCommand( in startObservingDevicePresenceByUuid() 213 runShellCommand( in stopObservingDevicePresenceByUuid() 390 fun Instrumentation.runShellCommand(cmd: String): String { in runShellCommand() method 393 val out = SystemUtil.runShellCommand(this, cmd) in runShellCommand() 403 runShellCommand("setprop $name $value") in setSystemProp() [all …]
|
/aosp_15_r20/cts/tests/input/src/android/input/cts/ |
H A D | InputShellCommandTest.kt | 70 ShellUtils.runShellCommand("input -d $displayId tap $x $y") in testDefaultTapToolType() 81 ShellUtils.runShellCommand("input touchscreen -d $displayId tap $x $y") in testTapToolType() 84 ShellUtils.runShellCommand("input touchpad -d $displayId tap $x $y") in testTapToolType() 87 ShellUtils.runShellCommand("input touchnavigation -d $displayId tap $x $y") in testTapToolType() 90 ShellUtils.runShellCommand("input stylus -d $displayId tap $x $y") in testTapToolType() 93 ShellUtils.runShellCommand("input mouse -d $displayId tap $x $y") in testTapToolType() 96 ShellUtils.runShellCommand("input trackball -d $displayId tap $x $y") in testTapToolType() 99 ShellUtils.runShellCommand("input joystick -d $displayId tap $x $y") in testTapToolType() 105 ShellUtils.runShellCommand("input -d $displayId scroll") in testDefaultScroll() 116 ShellUtils.runShellCommand("input mouse -d $displayId scroll $x $y --axis VSCROLL,-1") in testPointerScroll() [all …]
|
/aosp_15_r20/cts/tests/wearable/src/android/wearable/cts/ |
H A D | CtsWearableSensingServiceDeviceTest.java | 25 import static com.android.compatibility.common.util.ShellUtils.runShellCommand; 491 return runShellCommand("cmd wearable_sensing get-bound-package %d", USER_ID); in getWearableSensingServiceComponent() 495 runShellCommand( in setTestableWearableSensingService() 501 runShellCommand("cmd wearable_sensing set-temporary-service %d", USER_ID); in clearTestableWearableSensingService() 505 runShellCommand( in callStartDetection() 510 runShellCommand( in callStartDetectionMixed() 515 runShellCommand("cmd ambient_context start-detection %d %s", USER_ID, FAKE_APP_PACKAGE); in callStartDetectionDefault() 519 runShellCommand("cmd wearable_sensing create-data-stream"); in createDataStream() 523 runShellCommand("cmd wearable_sensing destroy-data-stream"); in destroyDataStream() 527 runShellCommand("cmd ambient_context stop-detection %d %s", USER_ID, FAKE_APP_PACKAGE); in callStopDetection() [all …]
|
/aosp_15_r20/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
H A D | SystemUtil.java | 74 public static String runShellCommand(Instrumentation instrumentation, String cmd) in runShellCommand() method in SystemUtil 76 return runShellCommand(instrumentation.getUiAutomation(), cmd); in runShellCommand() 88 public static String runShellCommand(UiAutomation automation, String cmd) in runShellCommand() method in SystemUtil 123 public static String runShellCommand(String cmd) { in runShellCommand() method in SystemUtil 125 return runShellCommand(InstrumentationRegistry.getInstrumentation(), cmd); in runShellCommand() 138 return runShellCommand(cmd); in runShellCommandOrThrow() 182 public static String runShellCommand(String cmd, Predicate<String> resultChecker) { in runShellCommand() method in SystemUtil 183 final String result = runShellCommand(cmd); in runShellCommand() 196 final String result = runShellCommand(cmd); in runShellCommandForNoOutput() 208 final String output = runShellCommand(cmd); in runCommandAndPrintOnLogcat() [all …]
|
/aosp_15_r20/cts/tests/attentionservice/src/android/attentionservice/cts/ |
H A D | CtsAttentionServiceDeviceTest.java | 22 import static com.android.compatibility.common.util.ShellUtils.runShellCommand; 205 return runShellCommand("cmd attention getAttentionServiceComponent"); in getAttentionServiceComponent() 209 return Integer.parseInt(runShellCommand("cmd attention getLastTestCallbackCode")); in getLastTestCallbackCode() 214 runShellCommand("cmd attention getLastTestProximityUpdateCallbackCode")); in getLastTestProximityUpdateCallbackCode() 225 Boolean isSuccess = runShellCommand("cmd attention call checkAttention") in callCheckAttention() 232 runShellCommand("cmd attention call cancelCheckAttention"); in callCancelAttention() 238 Boolean isSuccess = runShellCommand("cmd attention call onStartProximityUpdates") in callStartProximityUpdates() 245 runShellCommand("cmd attention call onStopProximityUpdates"); in callStopProximityUpdates() 250 return runShellCommand("cmd attention setTestableAttentionService " + service) in setTestableAttentionService() 255 runShellCommand("cmd attention clearTestableAttentionService"); in clearTestableAttentionService() [all …]
|
/aosp_15_r20/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/ |
D | RevokeSelfPermissionTest.java | 34 import static com.android.compatibility.common.util.SystemUtil.runShellCommand; 85 SystemUtil.runShellCommand("input keyevent KEYCODE_WAKEUP"); in wakeUpScreen() 86 SystemUtil.runShellCommand("input keyevent 82"); in wakeUpScreen() 87 mOldScreenOffTimeoutValue = SystemUtil.runShellCommand( in wakeUpScreen() 89 mOldSleepTimeoutValue = SystemUtil.runShellCommand("settings get secure sleep_timeout"); in wakeUpScreen() 90 SystemUtil.runShellCommand("settings put system screen_off_timeout -1"); in wakeUpScreen() 91 SystemUtil.runShellCommand("settings put secure sleep_timeout -1"); in wakeUpScreen() 106 runShellCommand("pm uninstall " + APP_PKG_NAME); in uninstallApp() 115 SystemUtil.runShellCommand("settings put system screen_off_timeout " in restoreDeviceForOneTime() 117 SystemUtil.runShellCommand("settings put secure sleep_timeout " + mOldSleepTimeoutValue); in restoreDeviceForOneTime() [all …]
|
/aosp_15_r20/cts/hostsidetests/packagemanager/domainverification/lib/constants/android/src/com/android/cts/packagemanager/verify/domain/android/ |
H A D | SharedVerifications.kt | 38 ShellUtils.runShellCommand(DomainUtils.setAppLinks(it, "STATE_NO_RESPONSE", "all")) in reset() 39 ShellUtils.runShellCommand(DomainUtils.resetAppLinks(it)) in reset() 40 ShellUtils.runShellCommand(DomainUtils.setAppLinksAllowed(it, context.userId, true)) in reset() 41 ShellUtils.runShellCommand( in reset() 49 ShellUtils.runShellCommand("$enablePrefix $DECLARING_PKG_NAME_1") in reset() 50 ShellUtils.runShellCommand("$enablePrefix $DECLARING_PKG_NAME_2") in reset() 51 ShellUtils.runShellCommand( in reset() 54 ShellUtils.runShellCommand( in reset() 80 ShellUtils.runShellCommand( in verifyDomains() 98 ShellUtils.runShellCommand( in verifyDomains() [all …]
|
/aosp_15_r20/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
H A D | ActivityManagerTest.java | 228 final String result = runShellCommand( in targetPackageIsRunning() 233 private static String runShellCommand(String cmd) { in runShellCommand() method in ActivityManagerTest 303 runShellCommand("cmd deviceidle whitelist +" + TEST_APP1); in testFgsProcStatsTracker() 342 runShellCommand("cmd deviceidle whitelist -" + TEST_APP1); in testFgsProcStatsTracker() 391 runShellCommand("cmd deviceidle whitelist +" + TEST_APP1); in testAppFreezerWithAllowOomAdj() 392 runShellCommand("cmd deviceidle whitelist +" + TEST_APP2); in testAppFreezerWithAllowOomAdj() 471 runShellCommand("cmd deviceidle whitelist -" + TEST_APP1); in testAppFreezerWithAllowOomAdj() 472 runShellCommand("cmd deviceidle whitelist -" + TEST_APP2); in testAppFreezerWithAllowOomAdj() 490 final String output = runShellCommand("dumpsys activity settings"); in isFreezerEnabled() 500 final String output = runShellCommand("dumpsys activity p " + packageName); in isAppFrozen() [all …]
|
/aosp_15_r20/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/fledge/ |
D | FledgeAppNotAllowedMemoryTest.java | 40 ShellUtils.runShellCommand("setprop debug.adservices.consent_manager_debug_mode false"); in ca_testNoUserConsent() 42 ShellUtils.runShellCommand("setprop debug.adservices.consent_manager_debug_mode true"); in ca_testNoUserConsent() 47 ShellUtils.runShellCommand("device_config put adservices ppapi_app_allow_list \"\""); in ca_testAppNotAllowed() 49 ShellUtils.runShellCommand("device_config delete adservices ppapi_app_allow_list"); in ca_testAppNotAllowed() 54 ShellUtils.runShellCommand("setprop debug.adservices.consent_manager_debug_mode false"); in adSelection_testNoUserConsent() 56 ShellUtils.runShellCommand("setprop debug.adservices.consent_manager_debug_mode true"); in adSelection_testNoUserConsent() 61 ShellUtils.runShellCommand("device_config put adservices ppapi_app_allow_list \"\""); in adSelection_testAppNotAllowed() 63 ShellUtils.runShellCommand("device_config delete adservices ppapi_app_allow_list"); in adSelection_testAppNotAllowed()
|
/aosp_15_r20/cts/tests/app/src/android/app/cts/android/app/cts/tools/ |
H A D | ServiceProcessController.java | 113 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in denyBackgroundOp() 123 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in allowBackgroundOp() 130 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in denyAnyInBackgroundOp() 136 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in allowAnyInBackgroundOp() 141 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in makeUidIdle() 146 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in removeFromWhitelist() 151 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in addToWhitelist() 157 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in tempWhitelist() 163 SystemUtil.runShellCommand(mInstrumentation, cmd); in removeFromTempWhitelist() 169 SystemUtil.runShellCommand(mInstrumentation, cmd); in setAppOpMode()
|
/aosp_15_r20/test/cts-root/tests/bugreport/src/android/bugreport/cts_root/ |
H A D | BugreportManagerTest.java | 22 import static com.android.compatibility.common.util.SystemUtil.runShellCommand; 109 runShellCommand("settings put global auto_time 0"); in classSetup() 110 runShellCommand("svc power stayon true"); in classSetup() 112 runShellCommand("setprop ctl.stop bugreportd"); in classSetup() 118 runShellCommand("settings put global auto_time 1"); in classTearDown() 119 runShellCommand("svc power stayon false"); in classTearDown() 121 runShellCommand("setprop ctl.stop bugreportd"); in classTearDown() 170 SystemUtil.runShellCommand("rm -f -rR -v /bugreports/"); in testRetrieveBugreportConsentGranted() 222 SystemUtil.runShellCommand("rm -f -rR -v /bugreports/"); in testRetrieveBugreportConsentDenied() 290 SystemUtil.runShellCommand("rm -f -rR -v /bugreports/"); in testBugreportsLimitReached() [all …]
|
/aosp_15_r20/cts/tests/tests/appenumeration/src/android/appenumeration/cts/ |
H A D | Utils.java | 19 import static com.android.compatibility.common.util.ShellUtils.runShellCommand; 110 final String result = runShellCommand(cmd.toString()).trim(); in installPackageForUser() 124 final String result = runShellCommand(cmd.toString()); in installExistPackageForUser() 145 runShellCommand(cmd.toString()); in uninstallPackageForUser() 165 runShellCommand(cmd.toString()); in forceStopPackageForUser() 178 runShellCommand(cmd.toString()); in clearAppDataForUser() 208 runShellCommand(cmd.toString()); in suspendPackagesForUser() 215 runShellCommand("pm install -R " + apkPath); in ensurePackageIsInstalled() 290 final String result = runShellCommand(cmd.toString()).trim(); in allowTestApiAccess() 300 final String result = runShellCommand(cmd.toString()).trim(); in resetTestApiAccess()
|
/aosp_15_r20/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/device/ |
D | AbstractDeviceGatewayTest.java | 34 assertThrows(NullPointerException.class, () -> mDeviceGateway.runShellCommand(null)); in testRunShellCommand_nullArgs() 41 () -> mDeviceGateway.runShellCommand("whatever")); in testRunShellCommand_realRunShellCommandReturned_null() 48 String result = mDeviceGateway.runShellCommand("%s %s", "I", "am"); in testRunShellCommand_withFormatting_noErr() 57 String result = mDeviceGateway.runShellCommand("I am"); in testRunShellCommand_noFormatting_noErr() 71 () -> mDeviceGateway.runShellCommand("%s %s", "annoyed", "grunt")); in testRunShellCommand_withFormatting_errOnly() 86 () -> mDeviceGateway.runShellCommand("annoyed grunt")); in testRunShellCommand_noFormatting_errOnly() 102 () -> mDeviceGateway.runShellCommand("%s %s", "annoyed", "grunt")); in testRunShellCommand_withFormatting_outAndErr() 118 () -> mDeviceGateway.runShellCommand("annoyed grunt")); in testRunShellCommand_noFormatting_outAndErr()
|
/aosp_15_r20/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
H A D | AutofillRestrictionsTest.java | 86 runShellCommand("settings put secure --user %d %s %d default", in enableService() 90 runShellCommand("settings put secure %s %s default", AUTOFILL_SERVICE, SERVICE_NAME); in enableService() 92 runShellCommand("settings put --user %d secure %s %s default", in enableService() 100 runShellCommand("settings delete secure %s", AUTOFILL_SERVICE); in disableService() 102 runShellCommand("settings delete --user %d secure %s", mUserId, AUTOFILL_SERVICE); in disableService() 111 actual = runShellCommand("settings get secure %s", AUTOFILL_SERVICE); in waitForServiceSettingSaved() 113 actual = runShellCommand("settings get --user %d secure %s", mUserId, in waitForServiceSettingSaved()
|
/aosp_15_r20/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
H A D | PackageManagerServiceTest.java | 19 import static com.android.compatibility.common.util.ShellUtils.runShellCommand; 472 runShellCommand("pm install --install-reason 3 " + testApk); in testInstallReason_afterUpdate_keepUnchanged() 479 runShellCommand("pm install --install-reason 4 " + testApk); in testInstallReason_afterUpdate_keepUnchanged() 485 runShellCommand("pm uninstall " + TEST_PKG_NAME); in testInstallReason_afterUpdate_keepUnchanged() 498 runShellCommand("pm install --install-reason 3 " + testApk); in testInstallReason_userRemainsUninstalled_keepUnknown() 506 runShellCommand("am start-user -w " + userId); in testInstallReason_userRemainsUninstalled_keepUnknown() 514 runShellCommand("pm uninstall " + TEST_PKG_NAME); in testInstallReason_userRemainsUninstalled_keepUnknown() 531 runShellCommand("am start-user -w " + userId); in testInstallReason_installForAllUsers_sameReason() 534 runShellCommand("pm install --install-reason 3 " + testApk); in testInstallReason_installForAllUsers_sameReason() 540 runShellCommand("pm uninstall " + TEST_PKG_NAME); in testInstallReason_installForAllUsers_sameReason() [all …]
|
/aosp_15_r20/platform_testing/libraries/sts-common-util/device-side/src/com/android/sts/common/ |
H A D | LockSettingsUtil.java | 138 ShellUtils.runShellCommand(format("locksettings set-pin %s", lockScreenCode)); in withLockScreen() 141 ShellUtils.runShellCommand(format("locksettings set-password %s", lockScreenCode)); in withLockScreen() 144 ShellUtils.runShellCommand(format("locksettings set-pattern %s", lockScreenCode)); in withLockScreen() 147 ShellUtils.runShellCommand("locksettings set-disabled false"); in withLockScreen() 157 String disabled = ShellUtils.runShellCommand("locksettings get-disabled"); in withLockScreen() 170 ShellUtils.runShellCommand("locksettings set-disabled true"); in withLockScreen() 172 ShellUtils.runShellCommand("locksettings clear --old %s", lockScreenCode); in withLockScreen()
|
/aosp_15_r20/cts/tests/tests/security/src/android/security/cts/CVE_2021_0472/ |
H A D | CVE_2021_0472.java | 115 SystemUtil.runShellCommand(instrumentation, "am task lock " + mTaskId); in testPocCVE_2021_0472() 130 SystemUtil.runShellCommand( in testPocCVE_2021_0472() 134 SystemUtil.runShellCommand(instrumentation, "am task lock stop"); in testPocCVE_2021_0472() 157 SystemUtil.runShellCommand(instrumentation, "am task lock stop"); in testPocCVE_2021_0472() 161 SystemUtil.runShellCommand(instrumentation, "input keyevent KEYCODE_HOME"); in testPocCVE_2021_0472() 162 SystemUtil.runShellCommand(instrumentation, "input keyevent KEYCODE_WAKEUP"); in testPocCVE_2021_0472() 163 SystemUtil.runShellCommand(instrumentation, "wm dismiss-keyguard"); in testPocCVE_2021_0472() 164 SystemUtil.runShellCommand(instrumentation, "input keyevent KEYCODE_POWER"); in testPocCVE_2021_0472()
|
/aosp_15_r20/cts/tests/tests/os/src/android/os/cts/ |
H A D | BatteryChangedBroadcastTest.java | 51 SystemUtil.runShellCommand("cmd battery get -f current_now"); in setUpClass() 61 SystemUtil.runShellCommand("cmd battery set level " + updatedBatteryLevel); in batteryLevelUpdated_broadcastSentImmediately() 67 SystemUtil.runShellCommand("cmd battery set level " + newUpdatedBatteryLevel); in batteryLevelUpdated_broadcastSentImmediately() 70 SystemUtil.runShellCommand("cmd battery reset"); in batteryLevelUpdated_broadcastSentImmediately() 82 SystemUtil.runShellCommand("cmd battery set status " + updatedStatus); in batteryStatusUpdated_broadcastSentImmediately() 90 SystemUtil.runShellCommand("cmd battery set status " + newUpdatedStatus); in batteryStatusUpdated_broadcastSentImmediately() 93 SystemUtil.runShellCommand("cmd battery reset"); in batteryStatusUpdated_broadcastSentImmediately()
|
/aosp_15_r20/packages/modules/AdServices/shared/testing-libraries/host-side/java/com/android/adservices/shared/testing/ |
D | TestDeviceHelper.java | 71 public static String runShellCommand( in runShellCommand() method in TestDeviceHelper 73 return runShellCommand(getTestDevice(), cmdFmt, cmdArgs); in runShellCommand() 80 public static String runShellCommand( in runShellCommand() method in TestDeviceHelper 152 String startActivityMsg = runShellCommand("am start -a %s", intent); in startActivity() 166 runShellCommand("am start -W -n %s/.%s", packageName, className); in startActivityWaitUntilCompletion() 171 return runShellCommand("pm enable %s/%s", packageName, className); in enableComponent() 179 return runShellCommand("pm enable --user %d %s/%s", userId, packageName, className); in enableComponent() 186 String receivers = runShellCommand("pm query-receivers --components -a %s", intent); in isActiveReceiver()
|
/aosp_15_r20/cts/tests/tests/security/src/android/security/cts/ |
H A D | CVE_2024_34719.java | 21 import static com.android.compatibility.common.util.ShellUtils.runShellCommand; 110 runShellCommand("settings get secure bluetooth_name") in testPocCVE_2024_34719() 128 if (runShellCommand("settings get global bluetooth_on").contains("1")) { in withBluetoothEnabled() 133 runShellCommand("svc bluetooth enable"); in withBluetoothEnabled() 136 return () -> runShellCommand("svc bluetooth disable"); in withBluetoothEnabled() 141 final String defaultBluetoothName = runShellCommand("settings get secure bluetooth_name"); in withDefaultBluetoothName() 145 runShellCommand( in withDefaultBluetoothName()
|