Home
last modified time | relevance | path

Searched refs:runShellCommandOrThrow (Results 1 – 14 of 14) sorted by relevance

/cts/tests/tests/role/src/android/app/role/cts/
DRoleShellCommandTest.kt26 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()
174 assertThat(runShellCommandOrThrow("pm install -r --user $userId $apkPath").trim()) in installPackage()
[all …]
/cts/tests/tests/permission3/src/android/permission3/cts/
DPermissionReviewTapjackingTest.kt47 SystemUtil.runShellCommandOrThrow( in installApp22AndApprovePermissionReview()
53 SystemUtil.runShellCommandOrThrow( in uninstallPackages()
55 SystemUtil.runShellCommandOrThrow( in uninstallPackages()
DPermissionTest30WithBluetooth.kt36 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow
189 private fun enableTestMode() = runShellCommandOrThrow("dumpsys activity service" +
192 private fun disableTestMode() = runShellCommandOrThrow("dumpsys activity service" +
DMediaPermissionTest.kt158 fun setRevokeWhenRequested(permission: String) = SystemUtil.runShellCommandOrThrow( in testWhenA30AppRequestsStorageWhenMediaPermsHaveRWRFlag()
/cts/tests/tests/os/src/android/os/cts/
DAutoRevokeTest.kt49 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow in <lambda>()
119 runShellCommandOrThrow("cmd statusbar collapse"), in <lambda>()
123 runShellCommandOrThrow("input keyevent KEYCODE_WAKEUP") in <lambda>()
124 if ("false".equals(runShellCommandOrThrow("cmd lock_settings get-disabled"))) { in <lambda>()
127 runShellCommandOrThrow("input keyevent 82") in <lambda>()
431 runShellCommandOrThrow("input keyevent KEYCODE_BACK") in <lambda>()
442 runShellCommandOrThrow("am force-stop " + pkg), in <lambda>()
603 assertThat(runShellCommandOrThrow("pm uninstall $packageName"), containsString("Success")) in uninstallApp()
607 runShellCommandOrThrow("pm uninstall $packageName") in uninstallAppWithoutAssertion()
611 assertThat(runShellCommandOrThrow("pm install -r $apk"), containsString("Success")) in installApk()
DAppHibernationUtils.kt46 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow in <lambda>()
133 runShellCommandOrThrow("cmd jobscheduler run -u " + in runAppHibernationJob()
222 runShellCommandOrThrow("input keyevent KEYCODE_HOME") in goHome()
237 runShellCommandOrThrow(CMD_EXPAND_NOTIFICATIONS) in openUnusedAppsNotification()
267 runShellCommandOrThrow(CMD_COLLAPSE) in resetNotifications()
269 runShellCommandOrThrow(CMD_EXPAND_NOTIFICATIONS) in resetNotifications()
DAppHibernationIntegrationTest.kt49 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow in <lambda>()
122 runShellCommandOrThrow("cmd statusbar collapse"), in <lambda>()
126 runShellCommandOrThrow("input keyevent KEYCODE_WAKEUP") in <lambda>()
127 runShellCommandOrThrow("input keyevent 82") in <lambda>()
342 runShellCommandOrThrow(String.format(CMD_KILL, packageName)) in <lambda>()
DCompanionDeviceManagerTest.kt44 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow
116 runShellCommandOrThrow( in cleanUp()
205 return runShellCommandOrThrow("cmd companiondevice list ${user.identifier}") in getAssociatedDevices()
/cts/common/device-side/bedstead/eventlib/
DAndroid.bp36 "compatibility-device-util-axt", // used for SystemUtil.runShellCommandOrThrow
/cts/tests/tests/permission/src/android/permission/cts/
DNearbyDevicesRenouncePermissionTest.java24 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow;
282 runShellCommandOrThrow("dumpsys activity service" in enableTestMode()
287 runShellCommandOrThrow("dumpsys activity service" in disableTestMode()
DNearbyDevicesPermissionTest.java28 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow;
293 runShellCommandOrThrow("dumpsys activity service" in enableTestMode()
298 runShellCommandOrThrow("dumpsys activity service" in disableTestMode()
/cts/tests/tests/sensorprivacy/src/android/sensorprivacy/cts/
DSensorPrivacyBaseTest.kt42 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow in <lambda>()
106 runShellCommandOrThrow("wm dismiss-keyguard") in <lambda>()
181 runShellCommandOrThrow("am broadcast" + in <lambda>()
518 runShellCommandOrThrow("am broadcast" + in <lambda>()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DTestUtils.java20 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow;
187 runShellCommandOrThrow("am force-stop " + pkg); in forceStopPackage()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DSystemUtil.java136 public static String runShellCommandOrThrow(String cmd) { in runShellCommandOrThrow() method in SystemUtil