/cts/libs/input/src/com/android/cts/input/ |
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() 97 SystemUtil.runShellCommandOrThrow("setprop log.tag.${entry.key} $value") in finished()
|
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/ |
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()
|
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()
|
D | MockTestActivityUtil.java | 22 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 153 runShellCommandOrThrow( in launchSync() 169 runShellCommandOrThrow(commandBuilder.toString()); in launchSync() 192 runShellCommandOrThrow( in launchAsUser() 210 runShellCommandOrThrow(commandBuilder.toString()); in launchAsUser()
|
D | TestUtils.java | 25 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 245 return SystemUtil.runShellCommandOrThrow("wm user-rotation -d " + displayId); in getRotation() 254 SystemUtil.runShellCommandOrThrow( in setLockedRotation() 264 SystemUtil.runShellCommandOrThrow("wm user-rotation -d " + displayId + " " + rotation); in setRotation() 292 runShellCommandOrThrow("am force-stop " + pkg); in forceStopPackage() 304 runShellCommandOrThrow("am force-stop " + pkg + " --user " + userId); in forceStopPackage()
|
/cts/tests/tests/hibernation/src/android/hibernation/cts/ |
D | AppHibernationUtils.kt | 45 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow in <lambda>() 133 runShellCommandOrThrow("cmd jobscheduler reset-execution-quota -u " + in resetJob() 135 runShellCommandOrThrow("cmd jobscheduler reset-schedule-quota") in resetJob() 150 runShellCommandOrThrow("cmd jobscheduler run -u " + in runAppHibernationJobInternal() 155 val jobState = runShellCommandOrThrow("cmd jobscheduler get-job-state -u " + in runAppHibernationJobInternal() 165 runShellCommandOrThrow("cmd jobscheduler run -u " + in runPermissionEventCleanupJob() 259 runShellCommandOrThrow("input keyevent KEYCODE_HOME") in goHome() 268 runShellCommandOrThrow(CMD_CLEAR_NOTIFS) in clearNotifications() 289 runShellCommandOrThrow(CMD_EXPAND_NOTIFICATIONS) in openUnusedAppsNotification() 338 runShellCommandOrThrow(CMD_COLLAPSE) in resetNotifications() [all …]
|
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 …]
|
D | AppHibernationIntegrationTest.kt | 55 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow in <lambda>() 129 runShellCommandOrThrow("cmd statusbar collapse"), in <lambda>() 134 runShellCommandOrThrow("input keyevent KEYCODE_WAKEUP") in <lambda>() 135 runShellCommandOrThrow("input keyevent 82") in <lambda>() 136 runShellCommandOrThrow("am broadcast -a android.intent.action.CLOSE_SYSTEM_DIALOGS") in <lambda>() 404 runShellCommandOrThrow(String.format(CMD_KILL, packageName)) in <lambda>()
|
/cts/tests/inputmethod/installtests/src/android/view/inputmethod/cts/installtests/ |
D | MultiUserTest.java | 19 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 111 runShellCommandOrThrow(ShellCommandUtils.resetImesForAllUsers()); in tearDown() 113 runShellCommandOrThrow(ShellCommandUtils.wakeUp()); in tearDown() 114 runShellCommandOrThrow(ShellCommandUtils.dismissKeyguard()); in tearDown() 115 runShellCommandOrThrow(ShellCommandUtils.closeSystemDialog()); in tearDown() 145 runShellCommandOrThrow(ShellCommandUtils.enableIme(Ime1Constants.IME_ID, additionalUserId)); in testAdditionalUser() 146 runShellCommandOrThrow( in testAdditionalUser() 204 runShellCommandOrThrow(ShellCommandUtils.waitForBroadcastBarrier()); in testProfileUser() 209 runShellCommandOrThrow(ShellCommandUtils.enableIme(Ime1Constants.IME_ID, currentUserId)); in testProfileUser() 210 runShellCommandOrThrow( in testProfileUser() [all …]
|
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()
|
D | ForceStopTest.java | 19 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 85 runShellCommandOrThrow(ShellCommandUtils.resetImesForAllUsers()); in tearDown() 87 runShellCommandOrThrow(ShellCommandUtils.wakeUp()); in tearDown() 88 runShellCommandOrThrow(ShellCommandUtils.dismissKeyguard()); in tearDown() 89 runShellCommandOrThrow(ShellCommandUtils.closeSystemDialog()); in tearDown() 138 runShellCommandOrThrow(ShellCommandUtils.enableIme(Ime1Constants.IME_ID, userId)); in testImeRemainsEnabledAfterForceStopMain() 141 runShellCommandOrThrow( in testImeRemainsEnabledAfterForceStopMain()
|
D | MultiUserMockImeTest.java | 19 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 74 runShellCommandOrThrow(ShellCommandUtils.resetImesForAllUsers()); in tearDown() 106 runShellCommandOrThrow(ShellCommandUtils.installExisting( in testProfileSwitching() 109 runShellCommandOrThrow(ShellCommandUtils.installExisting( in testProfileSwitching()
|
D | AdditionalSubtypeLifecycleTest.java | 19 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 108 runShellCommandOrThrow(ShellCommandUtils.resetImesForAllUsers()); in tearDown() 244 runShellCommandOrThrow( in testClearAdditionalInputMethodSubtypeUponClearDataForForegroundUser() 290 runShellCommandOrThrow( in testClearAdditionalInputMethodSubtypeUponClearDataForBackgroundUser()
|
/cts/tests/tests/appop/src/android/app/appops/cts/ |
D | AppOpsMultiUserTest.kt | 48 SystemUtil.runShellCommandOrThrow("pm create-user test-user") in <lambda>() 62 SystemUtil.runShellCommandOrThrow("pm remove-user ${it.id}") in <lambda>() 65 SystemUtil.runShellCommandOrThrow("cmd appops reset") in <lambda>() 96 SystemUtil.runShellCommandOrThrow("pm uninstall --user ${it.id} $PKG") in <lambda>()
|
/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/inputmethod/src/android/view/inputmethod/cts/ |
D | InputMethodManagerMultiDisplayTest.java | 23 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 81 runShellCommandOrThrow("ime reset"); in tearDown() 141 runShellCommandOrThrow("ime enable " + InputMethodManagerMultiDisplayTest.MOCK_IME_ID); in enableAndSetIme() 142 runShellCommandOrThrow("ime set " + InputMethodManagerMultiDisplayTest.MOCK_IME_ID); in enableAndSetIme()
|
D | InputMethodRegistrationTest.java | 20 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 77 runShellCommandOrThrow("ime reset"); in tearDownClass() 248 runShellCommandOrThrow("pm install -r --user " + Process.myUserHandle().getIdentifier() in installLargeResourceIme() 253 runShellCommandOrThrow("pm uninstall --user " + Process.myUserHandle().getIdentifier() + " " in uninstallLargeResourceIme() 259 runShellCommandOrThrow("ime enable " + id); in enableImes()
|
D | InProcessImeTest.java | 69 SystemUtil.runShellCommandOrThrow("ime enable " + inProcImeId); in enableInProcIme() 70 SystemUtil.runShellCommandOrThrow("ime set " + inProcImeId); in enableInProcIme() 75 SystemUtil.runShellCommandOrThrow("ime reset"); in resetIme()
|
/cts/tests/inputmethod/src/com/android/cts/mockime/ |
D | MockImeSessionCrashTest.java | 19 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 56 runShellCommandOrThrow("am force-stop " + mockImeSession.getMockImePackageName()); in testRetrieveExitReasonsWhenMockImeSessionCrashes()
|
/cts/tests/input/src/android/input/cts/ |
D | StylusButtonInputEventTest.kt | 85 SystemUtil.runShellCommandOrThrow("settings get $SETTING_NAMESPACE_KEY") in <lambda>() 98 SystemUtil.runShellCommandOrThrow( in <lambda>() 270 SystemUtil.runShellCommandOrThrow("settings put $SETTING_NAMESPACE_KEY 1") in <lambda>() 274 SystemUtil.runShellCommandOrThrow("settings put $SETTING_NAMESPACE_KEY 0") in <lambda>()
|
D | VirtualDisplayActivityScenarioRule.kt | 122 SystemUtil.runShellCommandOrThrow("wm user-rotation -d $displayId")!! in runInDisplayOrientation() 123 SystemUtil.runShellCommandOrThrow("wm user-rotation -d $displayId lock $orientation") in runInDisplayOrientation() 129 SystemUtil.runShellCommandOrThrow( in runInDisplayOrientation()
|
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/ |
D | VirtualDeviceImeTest.java | 125 SystemUtil.runShellCommandOrThrow("ime reset"); in tearDown() 224 SystemUtil.runShellCommandOrThrow("ime disable " + mDefaultDeviceDefaultImeId); in customImeComponent_changeDefaultDeviceIme() 232 SystemUtil.runShellCommandOrThrow("ime enable " + mDefaultDeviceDefaultImeId); in customImeComponent_changeDefaultDeviceIme() 233 SystemUtil.runShellCommandOrThrow("ime set " + mDefaultDeviceDefaultImeId); in customImeComponent_changeDefaultDeviceIme() 257 SystemUtil.runShellCommandOrThrow("ime disable " + mDefaultDeviceDefaultImeId); in customImeComponent_disableDefaultDeviceIme() 479 SystemUtil.runShellCommandOrThrow("ime enable " + imeId); in enableTestIme() 481 SystemUtil.runShellCommandOrThrow("ime set " + imeId); in enableTestIme()
|
/cts/common/device-side/bedstead/eventlib/ |
D | Android.bp | 42 "compatibility-device-util-axt", // used for SystemUtil.runShellCommandOrThrow
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | MultiUserUtils.java | 68 private static String runShellCommandOrThrow(@NonNull UiAutomation uiAutomation, in runShellCommandOrThrow() method in MultiUserUtils 156 runShellCommandOrThrow(uiAutomation, command).split("\n"));
|