| /cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/utils/ |
| D | ShellCommandUtilsTest.java | 51 assertThat(ShellCommandUtils.executeCommand(LIST_USERS_COMMAND)) in executeCommand_returnsOutput() 61 () -> ShellCommandUtils.executeCommand(INVALID_COMMAND_LEGACY_OUTPUT)); in executeCommand_invalidCommand_legacyOutput_throwsException() 72 assertThat(ShellCommandUtils.executeCommand(INVALID_COMMAND_LEGACY_OUTPUT)) in executeCommand_invalidCommand_legacyOutput_preAndroid11_throwsException() 80 ShellCommandUtils.executeCommandAndValidateOutput( in executeCommandAndValidateOutput_outputFilterMatched_returnsOutput() 88 () -> ShellCommandUtils.executeCommandAndValidateOutput( in executeCommandAndValidateOutput_outputFilterNotMatched_throwsException() 95 () -> ShellCommandUtils.executeCommand(INVALID_COMMAND_CORRECT_OUTPUT)); in executeCommand_invalidCommand_correctOutput_throwsException() 100 assertThat(ShellCommandUtils.startsWithSuccess("suCceSs: ...")).isTrue(); in startsWithSuccess_doesStartWithSuccess_returnsTrue() 105 assertThat(ShellCommandUtils.startsWithSuccess("success")).isTrue(); in startsWithSuccess_equalsSuccess_returnsTrue() 110 assertThat(ShellCommandUtils.startsWithSuccess("not success...")).isFalse(); in startsWithSuccess_doesNotStartWithSuccess_returnsFalse() 115 assertThat(ShellCommandUtils.isRunningAsRoot()).isFalse(); in isRunningAsRoot_false_returnsFalse()
|
| /cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/ |
| D | InputMethodServiceLifecycleTest.java | 34 import android.inputmethodservice.cts.common.test.ShellCommandUtils; 74 shell(ShellCommandUtils.deleteContent(EventTableConstants.CONTENT_URI)); in setUp() 85 shell(ShellCommandUtils.resetImes(mCurrentUserId)); in tearDown() 104 shell(ShellCommandUtils.listPackage(packageName)).contains(packageName), in installPackageSync() 149 shell(ShellCommandUtils.waitForBroadcastBarrier()); in testSwitchToHandwritingIme() 152 shell(ShellCommandUtils.waitForBroadcastBarrier()); in testSwitchToHandwritingIme() 153 shell(ShellCommandUtils.enableIme(Ime1Constants.IME_ID, mCurrentUserId)); in testSwitchToHandwritingIme() 154 shell(ShellCommandUtils.enableIme(Ime2Constants.IME_ID, mCurrentUserId)); in testSwitchToHandwritingIme() 156 shell(ShellCommandUtils.setCurrentImeSync(Ime1Constants.IME_ID, mCurrentUserId)); in testSwitchToHandwritingIme() 186 shell(ShellCommandUtils.waitForBroadcastBarrier()); in testSwitchToNextInput() [all …]
|
| /cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/ |
| D | InputMethodServiceDeviceTest.java | 50 import android.inputmethodservice.cts.common.test.ShellCommandUtils; 120 pollingCheck(() -> helper.shell(ShellCommandUtils.getCurrentIme(testUserId)) in testSwitchToNextInputMethod() 123 helper.shell(ShellCommandUtils.broadcastIntent( in testSwitchToNextInputMethod() 126 pollingCheck(() -> !helper.shell(ShellCommandUtils.getCurrentIme(testUserId)) in testSwitchToNextInputMethod() 143 final String initialIme = helper.shell(ShellCommandUtils.getCurrentIme(testUserId)); in switchToPreviousInputMethod() 144 helper.shell(ShellCommandUtils.setCurrentImeSync(Ime2Constants.IME_ID, testUserId)); in switchToPreviousInputMethod() 149 helper.shell(ShellCommandUtils.broadcastIntent( in switchToPreviousInputMethod() 152 pollingCheck(() -> helper.shell(ShellCommandUtils.getCurrentIme(testUserId)) in switchToPreviousInputMethod() 194 helper.shell(ShellCommandUtils.broadcastIntent( in testSwitchToHandwritingInputMethod() 199 pollingCheck(() -> helper.shell(ShellCommandUtils.getCurrentIme(testUserId)) in testSwitchToHandwritingInputMethod() [all …]
|
| /cts/common/device-side/bedstead/modules/root/src/test/kotlin/com/android/xts/root/ |
| D | RootAnnotationExecutorTest.kt | 23 import com.android.bedstead.nene.utils.ShellCommandUtils 56 ShellCommandUtils.uiAutomation().clearOverridePermissionStates(/* uid = */ -1) in requireRootInstrumentation_isRecognisedAsRootBySystemServer() 74 assertThat(ShellCommandUtils.isRunningAsRoot()).isTrue() in isRunningAsRoot_true_returnsTrue()
|
| /cts/tests/inputmethod/installtests/src/android/view/inputmethod/cts/installtests/ |
| D | InputMethodServiceSwitchingTest.java | 31 import android.view.inputmethod.cts.installtests.common.ShellCommandUtils; 68 runShellCommandOrThrow(ShellCommandUtils.resetImesForAllUsers()); in tearDown() 81 runShellCommandOrThrow(ShellCommandUtils.enableIme(Ime1Constants.IME_ID, currentUserId)); in testUninstallCurrentIme() 83 ShellCommandUtils.setCurrentImeSync(Ime1Constants.IME_ID, currentUserId)); in testUninstallCurrentIme() 102 runShellCommandOrThrow(ShellCommandUtils.enableIme(Ime1Constants.IME_ID, currentUserId)); in testDisableCurrentIme() 104 ShellCommandUtils.setCurrentImeSync(Ime1Constants.IME_ID, currentUserId)); in testDisableCurrentIme()
|
| D | MultiUserTest.java | 45 import android.view.inputmethod.cts.installtests.common.ShellCommandUtils; 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() 149 ShellCommandUtils.setCurrentImeSync(Ime1Constants.IME_ID, additionalUserId)); in testAdditionalUser() 206 runShellCommandOrThrow(ShellCommandUtils.waitForBroadcastBarrier()); in testProfileUser() 211 runShellCommandOrThrow(ShellCommandUtils.enableIme(Ime1Constants.IME_ID, currentUserId)); in testProfileUser() 213 ShellCommandUtils.setCurrentImeSync(Ime1Constants.IME_ID, currentUserId)); in testProfileUser() [all …]
|
| D | ForceStopTest.java | 33 import android.view.inputmethod.cts.installtests.common.ShellCommandUtils; 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() 138 ShellCommandUtils.setCurrentImeSync(Ime1Constants.IME_ID, userId)); in testImeRemainsEnabledAfterForceStopMain()
|
| D | MultiUserMockImeTest.java | 37 import android.view.inputmethod.cts.installtests.common.ShellCommandUtils; 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()
|
| /cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/telecom/ |
| D | Telecom.kt | 22 import com.android.bedstead.nene.utils.ShellCommandUtils in <lambda>() 34 .validate { output -> ShellCommandUtils.startsWithSuccess(output) } in <lambda>()
|
| /cts/common/device-side/bedstead/modules/adb/src/main/kotlin/com/android/bedstead/adb/ |
| D | Adb.kt | 20 import com.android.bedstead.nene.utils.ShellCommandUtils 34 fun isRootAvailable(): Boolean = ShellCommandUtils.isRootAvailable() in isRootAvailable()
|
| /cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/ui/ |
| D | Ui.java | 27 import com.android.bedstead.nene.utils.ShellCommandUtils; 44 return UiDevice.getInstance(ShellCommandUtils.instrumentation()); in device()
|
| /cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/ |
| D | ShellCommand.java | 92 !ShellCommandUtils.isRunningAsRoot() && in asRoot() 93 ShellCommandUtils.isSuperUserAvailable(); in asRoot() 225 return ShellCommandUtils.executeCommandAndValidateOutput( in executeSync() 232 return ShellCommandUtils.executeCommand( in executeSync() 316 return ShellCommandUtils.executeCommandForBytes( in execute()
|
| D | ShellCommandUtils.java | 48 public final class ShellCommandUtils { class 50 private static final String LOG_TAG = ShellCommandUtils.class.getSimpleName(); 67 private ShellCommandUtils() { } in ShellCommandUtils() method in ShellCommandUtils
|
| /cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/logcat/ |
| D | Logcat.java | 27 import com.android.bedstead.nene.utils.ShellCommandUtils; 74 try (ShellCommandUtils.StreamingShellOutput sso = dump()){ in dump() 94 public ShellCommandUtils.StreamingShellOutput dump() { in dump() 96 return ShellCommandUtils.executeCommandForStream( in dump() 129 try (ShellCommandUtils.StreamingShellOutput sso = dump()){ in findSystemServerExceptions()
|
| /cts/tests/inputmethod/installtests/src/android/view/inputmethod/cts/installtests/common/ |
| D | ShellCommandUtils.java | 23 public final class ShellCommandUtils { class 26 private ShellCommandUtils() { in ShellCommandUtils() method in ShellCommandUtils
|
| /cts/common/device-side/bedstead/modules/root/src/main/kotlin/com/android/xts/root/ |
| D | RootAnnotationExecutor.kt | 26 import com.android.bedstead.nene.utils.ShellCommandUtils 47 ShellCommandUtils.uiAutomation().clearOverridePermissionStates(-1) in <lambda>()
|
| /cts/common/device-side/bedstead/modules/permissions/src/main/kotlin/com/android/bedstead/permissions/ |
| D | Permissions.java | 41 import com.android.bedstead.nene.utils.ShellCommandUtils; 748 ShellCommandUtils.uiAutomation()); 756 clearOverridePermissionStates(ShellCommandUtils.uiAutomation(), pkg.uid(user)); 762 ShellCommandUtils.uiAutomation(), pkg.uid(user), permission, 768 ShellCommandUtils.uiAutomation(), pkg.uid(user), permission); 785 ShellCommandUtils.uiAutomation().adoptShellPermissionIdentity( 804 ShellCommandUtils.uiAutomation().adoptShellPermissionIdentity(); 810 ShellCommandUtils.uiAutomation().dropShellPermissionIdentity(); 834 ShellCommandUtils.uiAutomation());
|
| /cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
| D | AccessibilitySoftKeyboardTest.java | 40 import android.inputmethodservice.cts.common.test.ShellCommandUtils; 283 enableImeCommand = ShellCommandUtils.enableIme(imeId, userId); in TestImeSession() 285 enableImeCommand = ShellCommandUtils.disableIme(imeId, userId); in TestImeSession() 300 ShellCommandUtils.getEnabledImes(userId)); in isImeEnabled() 308 .addCommand(ShellCommandUtils.resetImesForAllUsers()) in close()
|
| /cts/hostsidetests/os/test-apps/StaticSharedLibTestApp/src/android/os/lib/app/ |
| D | StaticSharedLibsMultiUserTests.java | 38 import com.android.bedstead.nene.utils.ShellCommandUtils; 86 return ShellCommandUtils.startsWithSuccess(cmd.execute()); in installPackageAsUser() 96 return ShellCommandUtils.startsWithSuccess(cmd.execute()); in uninstallPackage()
|
| /cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/test/ |
| D | ShellCommandUtils.java | 24 public final class ShellCommandUtils { class 27 private ShellCommandUtils() {} in ShellCommandUtils() method in ShellCommandUtils
|
| /cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
| D | ProfileOwnerTest.kt | 36 import com.android.bedstead.nene.utils.ShellCommandUtils in <lambda>() 59 .validate { ShellCommandUtils.startsWithSuccess(it) } in <lambda>() 80 .validate { ShellCommandUtils.startsWithSuccess(it) } in <lambda>() 103 .validate { ShellCommandUtils.startsWithSuccess(it) } in <lambda>() 236 .validate { ShellCommandUtils.startsWithSuccess(it) } in <lambda>()
|
| D | DeviceOwnerTest.kt | 45 import com.android.bedstead.nene.utils.ShellCommandUtils in <lambda>() 140 .validate { ShellCommandUtils.startsWithSuccess(it) } in <lambda>() 166 .validate { ShellCommandUtils.startsWithSuccess(it) } in <lambda>() 318 .validate { ShellCommandUtils.startsWithSuccess(it) } in <lambda>() 341 .validate { ShellCommandUtils.startsWithSuccess(it) } in <lambda>()
|
| /cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/ |
| D | UserBuilder.java | 33 import com.android.bedstead.nene.utils.ShellCommandUtils; 199 commandBuilder.validate(ShellCommandUtils::startsWithSuccess) in create()
|
| /cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/ |
| D | ProfileOwner.java | 40 import com.android.bedstead.nene.utils.ShellCommandUtils; 133 .validate(ShellCommandUtils::startsWithSuccess) in removePreS()
|
| D | DeviceOwner.java | 39 import com.android.bedstead.nene.utils.ShellCommandUtils; 100 .validate(ShellCommandUtils::startsWithSuccess) in removePreS()
|