| /cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/ |
| D | InputMethodServiceLifecycleTest.java | 36 import android.inputmethodservice.cts.common.test.ShellCommandUtils; 83 assumeTrue(hasDeviceFeature(ShellCommandUtils.FEATURE_INPUT_METHODS)); in setUp() 88 shell(ShellCommandUtils.deleteContent(EventTableConstants.CONTENT_URI)); in setUp() 99 shell(ShellCommandUtils.resetImes()); in tearDown() 118 shell(ShellCommandUtils.listPackage(packageName)).contains(packageName), in installPackageSync() 150 shell(ShellCommandUtils.enableCompatChange( in disableAppCompatScalingForPackageIfNeeded() 170 shell(ShellCommandUtils.enableIme(Ime1Constants.IME_ID)); in testSwitchIme() 171 shell(ShellCommandUtils.enableIme(Ime2Constants.IME_ID)); in testSwitchIme() 173 shell(ShellCommandUtils.setCurrentImeSync(Ime1Constants.IME_ID)); in testSwitchIme() 201 shell(ShellCommandUtils.enableIme(Ime1Constants.IME_ID)); in testUninstallCurrentIme() [all …]
|
| D | MultiUserTest.java | 27 import android.inputmethodservice.cts.common.test.ShellCommandUtils; 93 assumeTrue(hasDeviceFeature(ShellCommandUtils.FEATURE_INPUT_METHODS)); in setUp() 99 userId -> shell(ShellCommandUtils.uninstallPackage(Ime1Constants.PACKAGE, userId))); in setUp() 123 shell(ShellCommandUtils.resetImesForAllUsers()); in tearDown() 125 shell(ShellCommandUtils.wakeUp()); in tearDown() 126 shell(ShellCommandUtils.dismissKeyguard()); in tearDown() 127 shell(ShellCommandUtils.closeSystemDialog()); in tearDown() 237 shell(ShellCommandUtils.enableIme(Ime1Constants.IME_ID, primaryUserId)); in testProfileUser() 238 shell(ShellCommandUtils.setCurrentImeSync(Ime1Constants.IME_ID, primaryUserId)); in testProfileUser() 243 shell(ShellCommandUtils.enableIme(Ime2Constants.IME_ID, profileUserId)); in testProfileUser() [all …]
|
| D | ShellCommandFromAppTest.java | 22 import android.inputmethodservice.cts.common.test.ShellCommandUtils; 80 assumeTrue(hasDeviceFeature(ShellCommandUtils.FEATURE_INPUT_METHODS)); in setUp()
|
| /cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/utils/ |
| D | ShellCommandUtilsTest.java | 50 assertThat(ShellCommandUtils.executeCommand(LIST_USERS_COMMAND)) in executeCommand_returnsOutput() 60 () -> ShellCommandUtils.executeCommand(INVALID_COMMAND_LEGACY_OUTPUT)); in executeCommand_invalidCommand_legacyOutput_throwsException() 71 assertThat(ShellCommandUtils.executeCommand(INVALID_COMMAND_LEGACY_OUTPUT)) in executeCommand_invalidCommand_legacyOutput_preAndroid11_throwsException() 79 ShellCommandUtils.executeCommandAndValidateOutput( in executeCommandAndValidateOutput_outputFilterMatched_returnsOutput() 87 () -> ShellCommandUtils.executeCommandAndValidateOutput( in executeCommandAndValidateOutput_outputFilterNotMatched_throwsException() 94 () -> ShellCommandUtils.executeCommand(INVALID_COMMAND_CORRECT_OUTPUT)); in executeCommand_invalidCommand_correctOutput_throwsException() 99 assertThat(ShellCommandUtils.startsWithSuccess("suCceSs: ...")).isTrue(); in startsWithSuccess_doesStartWithSuccess_returnsTrue() 104 assertThat(ShellCommandUtils.startsWithSuccess("success")).isTrue(); in startsWithSuccess_equalsSuccess_returnsTrue() 109 assertThat(ShellCommandUtils.startsWithSuccess("not success...")).isFalse(); in startsWithSuccess_doesNotStartWithSuccess_returnsFalse()
|
| /cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/ |
| D | InputMethodServiceDeviceTest.java | 46 import android.inputmethodservice.cts.common.test.ShellCommandUtils; 115 helper.shell(ShellCommandUtils.broadcastIntent( in testSwitchIme1ToIme2() 120 pollingCheck(() -> helper.shell(ShellCommandUtils.getCurrentIme()) in testSwitchIme1ToIme2() 155 helper.shell(ShellCommandUtils.broadcastIntent( in testSwitchInputMethod() 159 pollingCheck(() -> helper.shell(ShellCommandUtils.getCurrentIme()) in testSwitchInputMethod() 183 pollingCheck(() -> helper.shell(ShellCommandUtils.getCurrentIme()) in testSwitchToNextInputMethod() 186 helper.shell(ShellCommandUtils.broadcastIntent( in testSwitchToNextInputMethod() 189 pollingCheck(() -> !helper.shell(ShellCommandUtils.getCurrentIme()) in testSwitchToNextInputMethod() 205 final String initialIme = helper.shell(ShellCommandUtils.getCurrentIme()); in switchToPreviousInputMethod() 206 helper.shell(ShellCommandUtils.setCurrentImeSync(Ime2Constants.IME_ID)); in switchToPreviousInputMethod() [all …]
|
| /cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/permissions/ |
| D | Permissions.java | 36 import com.android.bedstead.nene.utils.ShellCommandUtils; 91 ShellCommandUtils.uiAutomation() in Permissions() 99 ShellCommandUtils.uiAutomation().dropShellPermissionIdentity(); in Permissions() 441 ShellCommandUtils.uiAutomation().adoptShellPermissionIdentity(); in applyPermissions() 446 ShellCommandUtils.uiAutomation().dropShellPermissionIdentity(); in applyPermissions() 536 ShellCommandUtils.uiAutomation().adoptShellPermissionIdentity(MANAGE_APP_OPS_MODES); in applyPermissions() 545 ShellCommandUtils.uiAutomation().dropShellPermissionIdentity(); in applyPermissions() 550 ShellCommandUtils.uiAutomation().adoptShellPermissionIdentity( in applyPermissions() 659 mExistingPermissions = ShellCommandUtils.uiAutomation().getAdoptedShellPermissions(); in recordExistingPermissions() 671 ShellCommandUtils.uiAutomation().dropShellPermissionIdentity(); in restoreExistingPermissions() [all …]
|
| /cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/ |
| D | ShellCommand.java | 149 return ShellCommandUtils.executeCommandAndValidateOutput( in execute() 156 return ShellCommandUtils.executeCommand( in execute() 224 return ShellCommandUtils.executeCommandForBytes( in execute()
|
| D | ShellCommandUtils.java | 42 public final class ShellCommandUtils { class 44 private static final String LOG_TAG = ShellCommandUtils.class.getName(); 64 private ShellCommandUtils() { } in ShellCommandUtils() method in ShellCommandUtils
|
| /cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
| D | AccessibilitySoftKeyboardTest.java | 39 import android.inputmethodservice.cts.common.test.ShellCommandUtils; 262 enableImeCommand = ShellCommandUtils.enableIme(imeId); in TestImeSession() 264 enableImeCommand = ShellCommandUtils.disableIme(imeId); in TestImeSession() 275 .addCommand(ShellCommandUtils.resetImes()) in close()
|
| /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/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/ |
| D | UserBuilder.java | 32 import com.android.bedstead.nene.utils.ShellCommandUtils; 139 commandBuilder.validate(ShellCommandUtils::startsWithSuccess) in create()
|
| D | UserReference.java | 50 import com.android.bedstead.nene.utils.ShellCommandUtils; 121 .validate(ShellCommandUtils::startsWithSuccess) in remove() 150 .validate(ShellCommandUtils::startsWithSuccess) in start()
|
| /cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/permissions/ |
| D | PermissionsTest.java | 45 import com.android.bedstead.nene.utils.ShellCommandUtils; 75 ShellCommandUtils.uiAutomation().dropShellPermissionIdentity(); in default_permissionIsNotGranted() 224 ShellCommandUtils.uiAutomation().adoptShellPermissionIdentity(PERMISSION_HELD_BY_SHELL); in withoutPermission_androidSAndAbove_restoresPreviousPermissionContext() 235 ShellCommandUtils.uiAutomation().dropShellPermissionIdentity(); in withoutPermission_androidSAndAbove_restoresPreviousPermissionContext()
|
| /cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/ |
| D | DeviceOwner.java | 42 import com.android.bedstead.nene.utils.ShellCommandUtils; 107 .validate(ShellCommandUtils::startsWithSuccess) in removePreS()
|
| D | ProfileOwner.java | 45 import com.android.bedstead.nene.utils.ShellCommandUtils; 126 .validate(ShellCommandUtils::startsWithSuccess) in removePreS()
|
| D | DevicePolicy.java | 55 import com.android.bedstead.nene.utils.ShellCommandUtils; 95 .validate(ShellCommandUtils::startsWithSuccess); in setProfileOwner() 248 .validate(ShellCommandUtils::startsWithSuccess); in setDeviceOwnerPreS()
|
| /cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/ |
| D | Packages.java | 55 import com.android.bedstead.nene.utils.ShellCommandUtils; 269 .validate(ShellCommandUtils::startsWithSuccess) in install() 347 .validate(ShellCommandUtils::startsWithSuccess) in install() 436 .validate(ShellCommandUtils::startsWithSuccess) in installPreS()
|
| /cts/tests/admin/src/android/admin/cts/ |
| D | DevicePolicyManagerTest.java | 48 import com.android.bedstead.nene.utils.ShellCommandUtils; 1203 .validate(ShellCommandUtils::startsWithSuccess) in setProfileOwnerAndWaitForSuccess()
|