| /cts/tests/tests/role/src/android/app/role/cts/ |
| D | RoleShellCommandTest.kt | 26 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow 86 assertThat(runShellCommandOrThrow("cmd role help")).isNotEmpty() in helpPrintsNonEmpty() 120 runShellCommandOrThrow("cmd role add-role-holder --user $userId $ROLE_NAME invalid") in addInvalidRoleHolderThenFails() 128 assertThat(runShellCommandOrThrow("dumpsys role")).contains(APP_PACKAGE_NAME) in addRoleHolderThenAppearsInDumpsys() 135 runShellCommandOrThrow("cmd role set-bypassing-role-qualification true") in setBypassingRoleQualificationToTrueThenSetsToTrue() 144 runShellCommandOrThrow("cmd role set-bypassing-role-qualification false") in setBypassingRoleQualificationToFalseThenSetsToFalse() 150 runShellCommandOrThrow("cmd role add-role-holder --user $userId $ROLE_NAME $packageName") in addRoleHolder() 154 runShellCommandOrThrow("cmd role remove-role-holder --user $userId $ROLE_NAME $packageName") in removeRoleHolder() 158 runShellCommandOrThrow("cmd role clear-role-holders --user $userId $ROLE_NAME") in clearRoleHolders() 163 runShellCommandOrThrow("cmd role get-role-holders --user $userId $ROLE_NAME") in getRoleHolders() [all …]
|
| /cts/libs/input/src/com/android/cts/input/ |
| D | DebugInputRule.kt | 59 SystemUtil.runShellCommandOrThrow("getprop log.tag.$tag")!!.trim() in starting() 60 SystemUtil.runShellCommandOrThrow("setprop log.tag.$tag DEBUG") in starting() 68 SystemUtil.runShellCommandOrThrow( in finished()
|
| /cts/tests/tests/hibernation/src/android/hibernation/cts/ |
| D | AppHibernationUtils.kt | 45 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow in <lambda>() 135 runShellCommandOrThrow("cmd tare set-vip $userId $permissionControllerPackageName true") in bypassBatterySavingRestrictions() 144 runShellCommandOrThrow("cmd tare set-vip $userId $permissionControllerPackageName default") in resetBatterySavingRestrictions() 152 runShellCommandOrThrow("cmd jobscheduler reset-execution-quota -u " + in resetJob() 154 runShellCommandOrThrow("cmd jobscheduler reset-schedule-quota") in resetJob() 169 runShellCommandOrThrow("cmd jobscheduler run -u " + in runAppHibernationJobInternal() 174 val jobState = runShellCommandOrThrow("cmd jobscheduler get-job-state -u " + in runAppHibernationJobInternal() 184 runShellCommandOrThrow("cmd jobscheduler run -u " + in runPermissionEventCleanupJob() 278 runShellCommandOrThrow("input keyevent KEYCODE_HOME") in goHome() 287 runShellCommandOrThrow(CMD_CLEAR_NOTIFS) in clearNotifications() [all …]
|
| D | AutoRevokeTest.kt | 54 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow in <lambda>() 136 runShellCommandOrThrow("cmd statusbar collapse"), in <lambda>() 140 runShellCommandOrThrow("input keyevent KEYCODE_WAKEUP") in <lambda>() 141 if ("false".equals(runShellCommandOrThrow("cmd lock_settings get-disabled"))) { in <lambda>() 144 runShellCommandOrThrow("input keyevent 82") in <lambda>() 582 runShellCommandOrThrow("input keyevent KEYCODE_BACK") in <lambda>() 593 runShellCommandOrThrow("am force-stop " + pkg), in <lambda>() 755 assertThat(runShellCommandOrThrow("pm uninstall $packageName"), containsString("Success")) in uninstallApp() 759 runShellCommandOrThrow("pm uninstall $packageName") in uninstallAppWithoutAssertion() 763 assertThat(runShellCommandOrThrow("pm install -r $apk"), containsString("Success")) in installApk()
|
| D | AppHibernationIntegrationTest.kt | 52 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow in <lambda>() 124 runShellCommandOrThrow("cmd statusbar collapse"), in <lambda>() 129 runShellCommandOrThrow("input keyevent KEYCODE_WAKEUP") in <lambda>() 130 runShellCommandOrThrow("input keyevent 82") in <lambda>() 377 runShellCommandOrThrow(String.format(CMD_KILL, packageName)) in <lambda>()
|
| /cts/tests/tests/permission3/src/android/permission3/cts/ |
| D | PermissionReviewTapjackingTest.kt | 47 SystemUtil.runShellCommandOrThrow( in installApp22AndApprovePermissionReview() 53 SystemUtil.runShellCommandOrThrow( in uninstallPackages() 55 SystemUtil.runShellCommandOrThrow( in uninstallPackages()
|
| D | PermissionTest30WithBluetooth.kt | 36 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow 193 private fun enableTestMode() = runShellCommandOrThrow("dumpsys activity service" + 196 private fun disableTestMode() = runShellCommandOrThrow("dumpsys activity service" +
|
| D | SafetyLabelChangesJobServiceTest.kt | 383 SystemUtil.runShellCommandOrThrow( in getNotification() 432 SystemUtil.runShellCommandOrThrow(runJobCmd) in startJob()
|
| D | MediaPermissionTest.kt | 159 fun setRevokeWhenRequested(permission: String) = SystemUtil.runShellCommandOrThrow( in testWhenA30AppRequestsStorageWhenMediaPermsHaveRWRFlag()
|
| /cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
| D | ShellCommandHelper.java | 30 SystemUtil.runShellCommandOrThrow(command); in executeShellCommand() 45 return SystemUtil.runShellCommandOrThrow(command); in executeShellCommandAndGetStdout()
|
| /cts/tests/appcloning/src/android/appcloning/cts/ |
| D | AppCloningDeviceTestBase.java | 51 SystemUtil.runShellCommandOrThrow("am start-user -w " + userId); in createAndStartUser() 61 SystemUtil.runShellCommandOrThrow("pm remove-user " + userId); in removeUser()
|
| /cts/tests/input/src/android/input/cts/ |
| D | VirtualDisplayActivityScenarioRule.kt | 110 SystemUtil.runShellCommandOrThrow("wm user-rotation -d $displayId")!! in runInDisplayOrientation() 111 SystemUtil.runShellCommandOrThrow("wm user-rotation -d $displayId lock $orientation") in runInDisplayOrientation() 117 SystemUtil.runShellCommandOrThrow( in runInDisplayOrientation()
|
| D | StylusButtonInputEventTest.kt | 83 SystemUtil.runShellCommandOrThrow("settings get $SETTING_NAMESPACE_KEY") in <lambda>() 96 SystemUtil.runShellCommandOrThrow( in <lambda>() 274 SystemUtil.runShellCommandOrThrow("settings put $SETTING_NAMESPACE_KEY 1") in <lambda>() 278 SystemUtil.runShellCommandOrThrow("settings put $SETTING_NAMESPACE_KEY 0") in <lambda>()
|
| /cts/common/device-side/bedstead/eventlib/ |
| D | Android.bp | 39 "compatibility-device-util-axt", // used for SystemUtil.runShellCommandOrThrow
|
| /cts/tests/tests/permission/src/android/permission/cts/ |
| D | NearbyDevicesRenouncePermissionTest.java | 24 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 292 runShellCommandOrThrow("dumpsys activity service" in enableTestMode() 297 runShellCommandOrThrow("dumpsys activity service" in disableTestMode()
|
| D | NearbyDevicesPermissionTest.java | 28 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 317 runShellCommandOrThrow("dumpsys activity service" in enableTestMode() 322 runShellCommandOrThrow("dumpsys activity service" in disableTestMode()
|
| /cts/tests/tests/sensorprivacy/src/android/sensorprivacy/cts/ |
| D | SensorPrivacyBaseTest.kt | 42 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow in <lambda>() 104 runShellCommandOrThrow("wm dismiss-keyguard") in <lambda>() 186 runShellCommandOrThrow("am broadcast" + in <lambda>() 553 runShellCommandOrThrow("am broadcast" + in <lambda>()
|
| /cts/tests/framework/base/windowmanager/backgroundactivity/src/android/server/wm/ |
| D | BackgroundActivityLaunchTest.java | 29 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 711 String cmdResult = runShellCommandOrThrow(cmd); in testDeviceOwner() 717 String cmdResult = runShellCommandOrThrow("pm list user"); in testDeviceOwner() 719 cmdResult = runShellCommandOrThrow("dpm list-owner"); in testDeviceOwner() 863 runShellCommandOrThrow("cmd appops set " + APP_A.APP_PACKAGE_NAME in testManageSpacePendingIntentNoBalAllowed()
|
| /cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/ |
| D | TestUtils.java | 23 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 210 runShellCommandOrThrow("am force-stop " + pkg); in forceStopPackage()
|
| /cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
| D | SystemUtil.java | 134 public static String runShellCommandOrThrow(String cmd) { in runShellCommandOrThrow() method in SystemUtil
|
| /cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/ |
| D | InstallConstraintsTest.kt | 461 SystemUtil.runShellCommandOrThrow( in <lambda>()
|