Home
last modified time | relevance | path

Searched refs:ShellCommandUtils (Results 1 – 17 of 17) sorted by relevance

/cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/
DInputMethodServiceLifecycleTest.java34 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 …]
DMultiUserTest.java27 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 …]
DShellCommandFromAppTest.java22 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/
DShellCommandUtilsTest.java50 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/
DInputMethodServiceDeviceTest.java46 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/
DPermissions.java33 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/
DShellCommand.java170 return ShellCommandUtils.executeCommandAndValidateOutput( in execute()
177 return ShellCommandUtils.executeCommand( in execute()
245 return ShellCommandUtils.executeCommandForBytes( in execute()
DShellCommandUtils.java42 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/
DUserReference.java30 import com.android.bedstead.nene.utils.ShellCommandUtils;
86 .validate(ShellCommandUtils::startsWithSuccess) in remove()
110 .validate(ShellCommandUtils::startsWithSuccess) in start()
DUserBuilder.java32 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/
DProfileOwner.java27 import com.android.bedstead.nene.utils.ShellCommandUtils;
50 .validate(ShellCommandUtils::startsWithSuccess) in remove()
DDeviceOwner.java27 import com.android.bedstead.nene.utils.ShellCommandUtils;
49 .validate(ShellCommandUtils::startsWithSuccess) in remove()
DDevicePolicy.java48 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/
DAccessibilitySoftKeyboardTest.java36 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/
DPermissionsTest.java33 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/
DShellCommandUtils.java24 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/
DPackages.java44 import com.android.bedstead.nene.utils.ShellCommandUtils;
226 .validate(ShellCommandUtils::startsWithSuccess) in install()
294 .validate(ShellCommandUtils::startsWithSuccess) in install()