Searched refs:runShellCommandOrThrow (Results 1 – 14 of 14) sorted by relevance
26 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow86 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 …]
47 SystemUtil.runShellCommandOrThrow( in installApp22AndApprovePermissionReview()53 SystemUtil.runShellCommandOrThrow( in uninstallPackages()55 SystemUtil.runShellCommandOrThrow( in uninstallPackages()
36 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow189 private fun enableTestMode() = runShellCommandOrThrow("dumpsys activity service" +192 private fun disableTestMode() = runShellCommandOrThrow("dumpsys activity service" +
158 fun setRevokeWhenRequested(permission: String) = SystemUtil.runShellCommandOrThrow( in testWhenA30AppRequestsStorageWhenMediaPermsHaveRWRFlag()
49 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()
46 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()
49 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>()
44 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow116 runShellCommandOrThrow( in cleanUp()205 return runShellCommandOrThrow("cmd companiondevice list ${user.identifier}") in getAssociatedDevices()
36 "compatibility-device-util-axt", // used for SystemUtil.runShellCommandOrThrow
24 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow;282 runShellCommandOrThrow("dumpsys activity service" in enableTestMode()287 runShellCommandOrThrow("dumpsys activity service" in disableTestMode()
28 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow;293 runShellCommandOrThrow("dumpsys activity service" in enableTestMode()298 runShellCommandOrThrow("dumpsys activity service" in disableTestMode()
42 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>()
20 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow;187 runShellCommandOrThrow("am force-stop " + pkg); in forceStopPackage()
136 public static String runShellCommandOrThrow(String cmd) { in runShellCommandOrThrow() method in SystemUtil