| /cts/libs/input/src/com/android/cts/input/ |
| D | DebugInputRule.kt | 59 for (line in SystemUtil.runShellCommandOrThrow(command).split("\\n")) { in logShellCommand() 84 SystemUtil.runShellCommandOrThrow("getprop log.tag.$tag")!!.trim() in starting() 85 SystemUtil.runShellCommandOrThrow("setprop log.tag.$tag DEBUG") in starting() 87 SystemUtil.runShellCommandOrThrow( in starting() 101 SystemUtil.runShellCommandOrThrow("setprop log.tag.${entry.key} $value") in finished() 104 SystemUtil.runShellCommandOrThrow( in finished()
|
| D | VirtualDisplayActivityScenario.kt | 237 SystemUtil.runShellCommandOrThrow("wm user-rotation -d $displayId")!! in runInDisplayOrientation() 238 SystemUtil.runShellCommandOrThrow("wm user-rotation -d $displayId lock $orientation") in runInDisplayOrientation() 244 SystemUtil.runShellCommandOrThrow( in runInDisplayOrientation()
|
| /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; 154 runShellCommandOrThrow( in launchSync() 172 runShellCommandOrThrow(commandBuilder.toString()); in launchSync() 195 runShellCommandOrThrow( in launchAsUser() 213 runShellCommandOrThrow(commandBuilder.toString()); in launchAsUser()
|
| /cts/tests/inputmethod/installtests/src/android/view/inputmethod/cts/installtests/ |
| 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 …]
|
| 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 | 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()
|
| D | MultiUserMockImeTest.java | 20 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 94 runShellCommandOrThrow(ShellCommandUtils.resetImesForAllUsers()); in tearDown() 126 runShellCommandOrThrow(ShellCommandUtils.installExisting( in testProfileSwitching() 129 runShellCommandOrThrow(ShellCommandUtils.installExisting( in testProfileSwitching() 186 runShellCommandOrThrow(ShellCommandUtils.installExisting( in testRemoveCurrentProfileCanStartInputOnOtherUser() 189 runShellCommandOrThrow(ShellCommandUtils.installExisting( in testRemoveCurrentProfileCanStartInputOnOtherUser()
|
| D | AdditionalSubtypeLifecycleTest.java | 20 import static com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow; 109 runShellCommandOrThrow(ShellCommandUtils.resetImesForAllUsers()); in tearDown() 245 runShellCommandOrThrow( in testClearAdditionalInputMethodSubtypeUponClearDataForForegroundUser() 291 runShellCommandOrThrow( in testClearAdditionalInputMethodSubtypeUponClearDataForBackgroundUser()
|
| /cts/tests/tests/hibernation/src/android/hibernation/cts/ |
| 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 …]
|
| 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>() 796 assertThat(runShellCommandOrThrow("pm uninstall $packageName"), containsString("Success")) in uninstallApp() 800 runShellCommandOrThrow("pm uninstall $packageName") in uninstallAppWithoutAssertion() [all …]
|
| D | AppHibernationIntegrationTest.kt | 61 import com.android.compatibility.common.util.SystemUtil.runShellCommandOrThrow in <lambda>() 138 runShellCommandOrThrow("cmd statusbar collapse"), in <lambda>() 143 runShellCommandOrThrow("input keyevent KEYCODE_WAKEUP") in <lambda>() 144 runShellCommandOrThrow("input keyevent 82") in <lambda>() 145 runShellCommandOrThrow("am broadcast -a android.intent.action.CLOSE_SYSTEM_DIALOGS") in <lambda>() 420 runShellCommandOrThrow(String.format(CMD_KILL, packageName)) 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/tests/appop/src/android/app/appops/cts/ |
| 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>()
|
| /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() 148 runShellCommandOrThrow("ime enable " + InputMethodManagerMultiDisplayTest.MOCK_IME_ID); in enableAndSetIme() 149 runShellCommandOrThrow("ime set " + InputMethodManagerMultiDisplayTest.MOCK_IME_ID); in enableAndSetIme()
|
| 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()
|
| 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()
|
| /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 | 93 SystemUtil.runShellCommandOrThrow("settings get $SETTING_NAMESPACE_KEY") in <lambda>() 109 SystemUtil.runShellCommandOrThrow( in <lambda>() 288 SystemUtil.runShellCommandOrThrow("settings put $SETTING_NAMESPACE_KEY 1") in <lambda>() 292 SystemUtil.runShellCommandOrThrow("settings put $SETTING_NAMESPACE_KEY 0") in <lambda>()
|
| /cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/ |
| D | VirtualDeviceImeTest.java | 127 SystemUtil.runShellCommandOrThrow("ime reset --user " + mUserId); in tearDown() 241 SystemUtil.runShellCommandOrThrow("ime disable --user " + mUserId + " " in customImeComponent_changeDefaultDeviceIme() 252 SystemUtil.runShellCommandOrThrow("ime enable --user " + mUserId + " " in customImeComponent_changeDefaultDeviceIme() 254 SystemUtil.runShellCommandOrThrow("ime set --user " + mUserId + " " in customImeComponent_changeDefaultDeviceIme() 279 SystemUtil.runShellCommandOrThrow("ime disable --user " + mUserId + " " in customImeComponent_disableDefaultDeviceIme() 508 SystemUtil.runShellCommandOrThrow("ime enable --user " + mUserId + " " + imeId); in enableTestIme() 512 SystemUtil.runShellCommandOrThrow("ime set --user " + mUserId + " " + imeId); in enableTestIme()
|
| /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 115 return runShellCommandOrThrow(uiAutomation, command).stripTrailing(); in getSecureSettings() 164 runShellCommandOrThrow(uiAutomation, command).split("\n"));
|
| /cts/common/device-side/bedstead/eventlib/ |
| D | Android.bp | 42 "compatibility-device-util-axt", // used for SystemUtil.runShellCommandOrThrow
|
| /cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
| D | PermissionDeviceInfo.java | 68 final String output = SystemUtil.runShellCommandOrThrow( in collectSignaturePermissionAllowlist()
|