/aosp_15_r20/packages/modules/Permission/tests/cts/role/src/android/app/role/cts/ |
D | RoleShellCommandTest.kt | 28 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow 102 assertThat(runShellCommandOrThrow("cmd role help")).isNotEmpty() in helpPrintsNonEmpty() 136 runShellCommandOrThrow("cmd role add-role-holder --user $userId $ROLE_NAME invalid") in addInvalidRoleHolderThenFails() 144 assertThat(runShellCommandOrThrow("dumpsys role")).contains(APP_PACKAGE_NAME) in addRoleHolderThenAppearsInDumpsys() 151 runShellCommandOrThrow("cmd role set-bypassing-role-qualification true") in setBypassingRoleQualificationToTrueThenSetsToTrue() 160 runShellCommandOrThrow("cmd role set-bypassing-role-qualification false") in setBypassingRoleQualificationToFalseThenSetsToFalse() 191 runShellCommandOrThrow("cmd role add-role-holder --user $userId $ROLE_NAME $packageName") in addRoleHolder() 195 runShellCommandOrThrow("cmd role remove-role-holder --user $userId $ROLE_NAME $packageName") in removeRoleHolder() 199 runShellCommandOrThrow("cmd role clear-role-holders --user $userId $ROLE_NAME") in clearRoleHolders() 204 runShellCommandOrThrow("cmd role get-role-holders --user $userId $ROLE_NAME") in getRoleHolders() [all …]
|
/aosp_15_r20/cts/tests/inputmethod/installtests/src/android/view/inputmethod/cts/installtests/ |
H A D | MultiUserTest.java | 21 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 113 runShellCommandOrThrow(ShellCommandUtils.resetImesForAllUsers()); in tearDown() 115 runShellCommandOrThrow(ShellCommandUtils.wakeUp()); in tearDown() 116 runShellCommandOrThrow(ShellCommandUtils.dismissKeyguard()); in tearDown() 117 runShellCommandOrThrow(ShellCommandUtils.closeSystemDialog()); in tearDown() 147 runShellCommandOrThrow(ShellCommandUtils.enableIme(Ime1Constants.IME_ID, additionalUserId)); in testAdditionalUser() 148 runShellCommandOrThrow( in testAdditionalUser() 206 runShellCommandOrThrow(ShellCommandUtils.waitForBroadcastBarrier()); in testProfileUser() 211 runShellCommandOrThrow(ShellCommandUtils.enableIme(Ime1Constants.IME_ID, currentUserId)); in testProfileUser() 212 runShellCommandOrThrow( in testProfileUser() [all …]
|
H A D | ForceStopTest.java | 20 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 86 runShellCommandOrThrow(ShellCommandUtils.resetImesForAllUsers()); in tearDown() 88 runShellCommandOrThrow(ShellCommandUtils.wakeUp()); in tearDown() 89 runShellCommandOrThrow(ShellCommandUtils.dismissKeyguard()); in tearDown() 90 runShellCommandOrThrow(ShellCommandUtils.closeSystemDialog()); in tearDown() 134 runShellCommandOrThrow(ShellCommandUtils.enableIme(Ime1Constants.IME_ID, userId)); in testImeRemainsEnabledAfterForceStopMain() 137 runShellCommandOrThrow( in testImeRemainsEnabledAfterForceStopMain()
|
H A D | InputMethodServiceSwitchingTest.java | 19 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 68 runShellCommandOrThrow(ShellCommandUtils.resetImesForAllUsers()); in tearDown() 81 runShellCommandOrThrow(ShellCommandUtils.enableIme(Ime1Constants.IME_ID, currentUserId)); in testUninstallCurrentIme() 82 runShellCommandOrThrow( in testUninstallCurrentIme() 102 runShellCommandOrThrow(ShellCommandUtils.enableIme(Ime1Constants.IME_ID, currentUserId)); in testDisableCurrentIme() 103 runShellCommandOrThrow( in testDisableCurrentIme()
|
H A D | MultiUserMockImeTest.java | 20 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 85 runShellCommandOrThrow(ShellCommandUtils.resetImesForAllUsers()); in tearDown() 117 runShellCommandOrThrow(ShellCommandUtils.installExisting( in testProfileSwitching() 120 runShellCommandOrThrow(ShellCommandUtils.installExisting( in testProfileSwitching() 176 runShellCommandOrThrow(ShellCommandUtils.installExisting( in testRemoveCurrentProfileCanStartInputOnOtherUser() 179 runShellCommandOrThrow(ShellCommandUtils.installExisting( in testRemoveCurrentProfileCanStartInputOnOtherUser()
|
/aosp_15_r20/cts/libs/input/src/com/android/cts/input/ |
H A D | DebugInputRule.kt | 58 for (line in SystemUtil.runShellCommandOrThrow(command).split("\\n")) { in logShellCommand() 83 SystemUtil.runShellCommandOrThrow("getprop log.tag.$tag")!!.trim() in starting() 84 SystemUtil.runShellCommandOrThrow("setprop log.tag.$tag DEBUG") in starting() 86 … SystemUtil.runShellCommandOrThrow("wm logging enable-text WM_DEBUG_FOCUS_LIGHT WM_DEBUG_FOCUS") in starting() 98 SystemUtil.runShellCommandOrThrow("setprop log.tag.${entry.key} $value") in finished() 101 … SystemUtil.runShellCommandOrThrow("wm logging disable-text WM_DEBUG_FOCUS_LIGHT WM_DEBUG_FOCUS") in finished()
|
/aosp_15_r20/cts/tests/tests/hibernation/src/android/hibernation/cts/ |
H A D | AppHibernationUtils.kt | 47 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow in <lambda>() 137 runShellCommandOrThrow("cmd jobscheduler reset-execution-quota -u " + in resetJob() 139 runShellCommandOrThrow("cmd jobscheduler reset-schedule-quota") in resetJob() 154 runShellCommandOrThrow("cmd jobscheduler run -u " + in runAppHibernationJobInternal() 159 val jobState = runShellCommandOrThrow("cmd jobscheduler get-job-state -u " + in runAppHibernationJobInternal() 169 runShellCommandOrThrow("cmd jobscheduler run -u " + in runPermissionEventCleanupJob() 266 runShellCommandOrThrow("input keyevent KEYCODE_BACK -d $displayId") in goBack() 275 runShellCommandOrThrow(CMD_CLEAR_NOTIFS) in clearNotifications() 301 runShellCommandOrThrow(CMD_EXPAND_NOTIFICATIONS) in openUnusedAppsNotification() 368 runShellCommandOrThrow(CMD_COLLAPSE) in resetNotifications() [all …]
|
H A D | AutoRevokeTest.kt | 57 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow in <lambda>() 142 runShellCommandOrThrow("cmd statusbar collapse"), in <lambda>() 146 runShellCommandOrThrow("input keyevent KEYCODE_WAKEUP") in <lambda>() 147 if ("false".equals(runShellCommandOrThrow("cmd lock_settings get-disabled"))) { in <lambda>() 150 runShellCommandOrThrow("input keyevent 82") in <lambda>() 152 runShellCommandOrThrow("am broadcast -a android.intent.action.CLOSE_SYSTEM_DIALOGS") in <lambda>() 597 runShellCommandOrThrow("input keyevent KEYCODE_BACK") in <lambda>() 608 runShellCommandOrThrow("am force-stop " + pkg), in <lambda>() 795 assertThat(runShellCommandOrThrow("pm uninstall $packageName"), containsString("Success")) in uninstallApp() 799 runShellCommandOrThrow("pm uninstall $packageName") in uninstallAppWithoutAssertion() [all …]
|
H A D | AppHibernationIntegrationTest.kt | 61 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow in <lambda>() 137 runShellCommandOrThrow("cmd statusbar collapse"), in <lambda>() 142 runShellCommandOrThrow("input keyevent KEYCODE_WAKEUP") in <lambda>() 143 runShellCommandOrThrow("input keyevent 82") in <lambda>() 144 runShellCommandOrThrow("am broadcast -a android.intent.action.CLOSE_SYSTEM_DIALOGS") in <lambda>() 418 runShellCommandOrThrow(String.format(CMD_KILL, packageName)) in <lambda>()
|
/aosp_15_r20/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ui/ |
D | HealthConnectBaseTest.kt | 28 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow 50 runShellCommandOrThrow("cmd statusbar collapse") in setUpClass() 56 runShellCommandOrThrow("input keyevent KEYCODE_WAKEUP") in unlockDevice() 57 if ("false".equals(runShellCommandOrThrow("cmd lock_settings get-disabled"))) { in unlockDevice() 60 runShellCommandOrThrow("input keyevent 82") in unlockDevice() 62 runShellCommandOrThrow("wm dismiss-keyguard") in unlockDevice()
|
/aosp_15_r20/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/HealthConnectTestHelper/src/android/healthconnect/cts/testhelper/ |
D | HealthConnectUiTestHelper.kt | 53 SystemUtil.runShellCommandOrThrow("cmd statusbar collapse") in setUpClass() 70 SystemUtil.runShellCommandOrThrow("input keyevent KEYCODE_WAKEUP") in unlockDevice() 71 if ("false".equals(SystemUtil.runShellCommandOrThrow("cmd lock_settings get-disabled"))) { in unlockDevice() 74 SystemUtil.runShellCommandOrThrow("input keyevent 82") in unlockDevice() 76 SystemUtil.runShellCommandOrThrow("wm dismiss-keyguard") in unlockDevice()
|
/aosp_15_r20/cts/tests/tests/appop/src/android/app/appops/cts/ |
H A D | AppOpsMultiUserTest.kt | 67 SystemUtil.runShellCommandOrThrow("pm create-user test-user") in <lambda>() 89 SystemUtil.runShellCommandOrThrow("pm remove-user ${it.id}") in <lambda>() 96 SystemUtil.runShellCommandOrThrow("cmd appops reset --user ${context.userId}") in <lambda>() 127 SystemUtil.runShellCommandOrThrow("pm uninstall --user ${it.id} $PKG") in <lambda>() 173 SystemUtil.runShellCommandOrThrow("pm uninstall --user ${user.identifier} $SHARED_UID_PKG2") in <lambda>()
|
/aosp_15_r20/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/ |
H A D | MockTestActivityUtil.java | 22 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 154 runShellCommandOrThrow( in launchSync() 172 runShellCommandOrThrow(commandBuilder.toString()); in launchSync() 195 runShellCommandOrThrow( in launchAsUser() 213 runShellCommandOrThrow(commandBuilder.toString()); in launchAsUser()
|
H A D | RequireImeCompatFlagRule.java | 19 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 49 runShellCommandOrThrow("am compat " + (mEnabled ? "enable " : "disable ") in apply() 56 runShellCommandOrThrow("am compat reset " + mCompatFlag + " " in apply()
|
H A D | SimulatedVirtualDisplaySession.java | 23 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 92 runShellCommandOrThrow("settings put global " + key + " " + value); in putGlobalSetting() 96 runShellCommandOrThrow("settings delete global " + key); in deleteGlobalSetting()
|
H A D | TestUtils.java | 27 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 269 return SystemUtil.runShellCommandOrThrow("wm user-rotation -d " + displayId); in getRotation() 278 SystemUtil.runShellCommandOrThrow( in setLockedRotation() 288 SystemUtil.runShellCommandOrThrow("wm user-rotation -d " + displayId + " " + rotation); in setRotation() 316 runShellCommandOrThrow("am force-stop " + pkg); in forceStopPackage() 328 runShellCommandOrThrow("am force-stop " + pkg + " --user " + userId); in forceStopPackage()
|
/aosp_15_r20/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
H A D | InputMethodRegistrationTest.java | 20 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 74 runShellCommandOrThrow("ime reset"); in tearDownClass() 235 runShellCommandOrThrow("pm install -r --user " + UserHandle.myUserId() in installLargeResourceIme() 240 runShellCommandOrThrow("pm uninstall --user " + UserHandle.myUserId() + " " in uninstallLargeResourceIme() 246 runShellCommandOrThrow("ime enable --user " + UserHandle.myUserId() + " " + id); in enableImes()
|
H A D | InputMethodManagerMultiDisplayTest.java | 23 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 81 runShellCommandOrThrow("ime reset"); in tearDown() 148 runShellCommandOrThrow("ime enable " + InputMethodManagerMultiDisplayTest.MOCK_IME_ID); in enableAndSetIme() 149 runShellCommandOrThrow("ime set " + InputMethodManagerMultiDisplayTest.MOCK_IME_ID); in enableAndSetIme()
|
H A D | InProcessImeTest.java | 68 SystemUtil.runShellCommandOrThrow("ime enable --user " + userId + " " + inProcImeId); in enableInProcIme() 69 SystemUtil.runShellCommandOrThrow("ime set --user " + userId + " " + inProcImeId); in enableInProcIme() 74 SystemUtil.runShellCommandOrThrow("ime reset --user " + UserHandle.myUserId()); in resetIme()
|
/aosp_15_r20/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/ |
H A D | VirtualDeviceImeTest.java | 127 SystemUtil.runShellCommandOrThrow("ime reset --user " + mUserId); in tearDown() 241 SystemUtil.runShellCommandOrThrow("ime disable --user " + mUserId + " " in customImeComponent_changeDefaultDeviceIme() 250 SystemUtil.runShellCommandOrThrow("ime enable --user " + mUserId + " " in customImeComponent_changeDefaultDeviceIme() 252 SystemUtil.runShellCommandOrThrow("ime set --user " + mUserId + " " in customImeComponent_changeDefaultDeviceIme() 277 SystemUtil.runShellCommandOrThrow("ime disable --user " + mUserId + " " in customImeComponent_disableDefaultDeviceIme() 506 SystemUtil.runShellCommandOrThrow("ime enable --user " + mUserId + " " + imeId); in enableTestIme() 510 SystemUtil.runShellCommandOrThrow("ime set --user " + mUserId + " " + imeId); in enableTestIme()
|
/aosp_15_r20/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/ |
D | ThreadNetworkShellCommandTest.java | 25 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 116 assertThat(runShellCommandOrThrow("service list")).doesNotContain("ot_daemon"); in forceStopOtDaemon_forceStopEnabled_otDaemonServiceDisappear() 133 assertThat(runShellCommandOrThrow("service list")).contains("ot_daemon"); in forceStopOtDaemon_forceStopDisabled_otDaemonServiceAppears() 206 return runShellCommandOrThrow("cmd thread_network " + cmd); in runThreadCommand()
|
/aosp_15_r20/packages/modules/Bluetooth/framework/tests/util/src/android/bluetooth/test_utils/ |
D | EnableBluetoothRule.java | 19 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 76 runShellCommandOrThrow( in enableBluetoothTestMode() 82 runShellCommandOrThrow( in disableBluetoothTestMode()
|
/aosp_15_r20/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/ |
D | PermissionReviewTapjackingTest.kt | 50 SystemUtil.runShellCommandOrThrow( in installApp22AndApprovePermissionReview() 57 SystemUtil.runShellCommandOrThrow("pm uninstall $APP_PACKAGE_NAME") in uninstallPackages() 58 SystemUtil.runShellCommandOrThrow("pm uninstall $HELPER_PACKAGE_NAME") in uninstallPackages()
|
D | BasePermissionTest.kt | 60 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow in <lambda>() 280 runShellCommandOrThrow( in <lambda>() 434 runShellCommandOrThrow("input -d $displayId keyevent ${KeyEvent.KEYCODE_BACK}") in <lambda>() 438 runShellCommandOrThrow("input -d $displayId keyevent ${KeyEvent.KEYCODE_HOME}") in <lambda>() 442 runShellCommandOrThrow("input -d $displayId keyevent ${KeyEvent.KEYCODE_DPAD_DOWN}") in <lambda>()
|
/aosp_15_r20/cts/tests/input/src/android/input/cts/ |
H A D | StylusButtonInputEventTest.kt | 87 SystemUtil.runShellCommandOrThrow("settings get $SETTING_NAMESPACE_KEY") in <lambda>() 103 SystemUtil.runShellCommandOrThrow( in <lambda>() 282 SystemUtil.runShellCommandOrThrow("settings put $SETTING_NAMESPACE_KEY 1") in <lambda>() 286 SystemUtil.runShellCommandOrThrow("settings put $SETTING_NAMESPACE_KEY 0") in <lambda>()
|