/cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/ |
D | InputMethodServiceLifecycleTest.java | 34 import android.inputmethodservice.cts.common.test.ShellCommandUtils; 78 assumeTrue(hasDeviceFeature(ShellCommandUtils.FEATURE_INPUT_METHODS)); in setUp() 83 shell(ShellCommandUtils.deleteContent(EventTableConstants.CONTENT_URI)); in setUp() 94 shell(ShellCommandUtils.resetImes()); in tearDown() 113 shell(ShellCommandUtils.listPackage(packageName)).contains(packageName), in installPackageSync() 146 shell(ShellCommandUtils.enableIme(Ime1Constants.IME_ID)); in testSwitchIme() 147 shell(ShellCommandUtils.enableIme(Ime2Constants.IME_ID)); in testSwitchIme() 149 shell(ShellCommandUtils.setCurrentImeSync(Ime1Constants.IME_ID)); in testSwitchIme() 177 shell(ShellCommandUtils.enableIme(Ime1Constants.IME_ID)); in testUninstallCurrentIme() 180 shell(ShellCommandUtils.setCurrentImeSync(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 | 33 import com.android.bedstead.nene.utils.ShellCommandUtils; 141 ShellCommandUtils.uiAutomation().dropShellPermissionIdentity(); in applyPermissions() 208 ShellCommandUtils.uiAutomation().adoptShellPermissionIdentity( in applyPermissions() 248 mExistingPermissions = ShellCommandUtils.uiAutomation().getAdoptedShellPermissions(); in recordExistingPermissions() 257 ShellCommandUtils.uiAutomation().dropShellPermissionIdentity(); in restoreExistingPermissions() 259 ShellCommandUtils.uiAutomation().adoptShellPermissionIdentity(); in restoreExistingPermissions() 261 ShellCommandUtils.uiAutomation().adoptShellPermissionIdentity( in restoreExistingPermissions()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/ |
D | ShellCommand.java | 170 return ShellCommandUtils.executeCommandAndValidateOutput( in execute() 177 return ShellCommandUtils.executeCommand( in execute() 245 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/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/ |
D | UserReference.java | 30 import com.android.bedstead.nene.utils.ShellCommandUtils; 86 .validate(ShellCommandUtils::startsWithSuccess) in remove() 110 .validate(ShellCommandUtils::startsWithSuccess) in start()
|
D | UserBuilder.java | 32 import com.android.bedstead.nene.utils.ShellCommandUtils; 141 commandBuilder.validate(ShellCommandUtils::startsWithSuccess) in create()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/ |
D | ProfileOwner.java | 27 import com.android.bedstead.nene.utils.ShellCommandUtils; 50 .validate(ShellCommandUtils::startsWithSuccess) in remove()
|
D | DeviceOwner.java | 27 import com.android.bedstead.nene.utils.ShellCommandUtils; 49 .validate(ShellCommandUtils::startsWithSuccess) in remove()
|
D | DevicePolicy.java | 48 import com.android.bedstead.nene.utils.ShellCommandUtils; 95 .validate(ShellCommandUtils::startsWithSuccess); in setProfileOwner() 257 .validate(ShellCommandUtils::startsWithSuccess); in setDeviceOwnerPreS()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilitySoftKeyboardTest.java | 36 import android.inputmethodservice.cts.common.test.ShellCommandUtils; 202 final String enableImeCommand = ShellCommandUtils.enableIme(imeId); in TestImeSession() 212 .addCommand(ShellCommandUtils.resetImes()) in close()
|
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/permissions/ |
D | PermissionsTest.java | 33 import com.android.bedstead.nene.utils.ShellCommandUtils; 220 ShellCommandUtils.uiAutomation().adoptShellPermissionIdentity(PERMISSION_HELD_BY_SHELL); in withoutPermission_androidSAndAbove_restoresPreviousPermissionContext() 231 ShellCommandUtils.uiAutomation().dropShellPermissionIdentity(); in withoutPermission_androidSAndAbove_restoresPreviousPermissionContext()
|
/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/packages/ |
D | Packages.java | 44 import com.android.bedstead.nene.utils.ShellCommandUtils; 226 .validate(ShellCommandUtils::startsWithSuccess) in install() 294 .validate(ShellCommandUtils::startsWithSuccess) in install()
|