Home
last modified time | relevance | path

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

/cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/
DInputMethodServiceLifecycleTest.java36 import android.inputmethodservice.cts.common.test.ShellCommandUtils;
87 assumeTrue(hasDeviceFeature(ShellCommandUtils.FEATURE_INPUT_METHODS)); in setUp()
92 shell(ShellCommandUtils.deleteContent(EventTableConstants.CONTENT_URI)); in setUp()
103 shell(ShellCommandUtils.resetImes()); in tearDown()
122 shell(ShellCommandUtils.listPackage(packageName)).contains(packageName), in installPackageSync()
167 shell(ShellCommandUtils.enableCompatChange( in disableAppCompatScalingForPackageIfNeeded()
185 shell(ShellCommandUtils.waitForBroadcastBarrier()); in testSwitchIme()
188 shell(ShellCommandUtils.waitForBroadcastBarrier()); in testSwitchIme()
189 shell(ShellCommandUtils.enableIme(Ime1Constants.IME_ID)); in testSwitchIme()
190 shell(ShellCommandUtils.enableIme(Ime2Constants.IME_ID)); in testSwitchIme()
[all …]
DMultiUserTest.java27 import android.inputmethodservice.cts.common.test.ShellCommandUtils;
100 assumeTrue(hasDeviceFeature(ShellCommandUtils.FEATURE_INPUT_METHODS)); in setUp()
107 userId -> shell(ShellCommandUtils.uninstallPackage(Ime1Constants.PACKAGE, userId))); in setUp()
132 shell(ShellCommandUtils.resetImesForAllUsers()); in tearDown()
134 shell(ShellCommandUtils.wakeUp()); in tearDown()
135 shell(ShellCommandUtils.dismissKeyguard()); in tearDown()
136 shell(ShellCommandUtils.closeSystemDialog()); in tearDown()
183 shell(ShellCommandUtils.enableIme(Ime1Constants.IME_ID, secondaryUserId)); in testSecondaryUser()
184 shell(ShellCommandUtils.setCurrentImeSync(Ime1Constants.IME_ID, secondaryUserId)); in testSecondaryUser()
260 shell(ShellCommandUtils.waitForBroadcastBarrier()); 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.java47 import android.inputmethodservice.cts.common.test.ShellCommandUtils;
116 helper.shell(ShellCommandUtils.broadcastIntent( in testSwitchIme1ToIme2()
121 pollingCheck(() -> helper.shell(ShellCommandUtils.getCurrentIme()) in testSwitchIme1ToIme2()
156 helper.shell(ShellCommandUtils.broadcastIntent( in testSwitchInputMethod()
160 pollingCheck(() -> helper.shell(ShellCommandUtils.getCurrentIme()) in testSwitchInputMethod()
184 pollingCheck(() -> helper.shell(ShellCommandUtils.getCurrentIme()) in testSwitchToNextInputMethod()
187 helper.shell(ShellCommandUtils.broadcastIntent( in testSwitchToNextInputMethod()
190 pollingCheck(() -> !helper.shell(ShellCommandUtils.getCurrentIme()) in testSwitchToNextInputMethod()
206 final String initialIme = helper.shell(ShellCommandUtils.getCurrentIme()); in switchToPreviousInputMethod()
207 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.java38 import com.android.bedstead.nene.utils.ShellCommandUtils;
93 ShellCommandUtils.uiAutomation() in ignoringPermissions()
99 ShellCommandUtils.uiAutomation().dropShellPermissionIdentity(); in ignoringPermissions()
456 ShellCommandUtils.uiAutomation().adoptShellPermissionIdentity();
461 ShellCommandUtils.uiAutomation().dropShellPermissionIdentity();
551 ShellCommandUtils.uiAutomation().adoptShellPermissionIdentity(MANAGE_APP_OPS_MODES);
560 ShellCommandUtils.uiAutomation().dropShellPermissionIdentity();
565 ShellCommandUtils.uiAutomation().adoptShellPermissionIdentity(
678 mExistingPermissions = ShellCommandUtils.uiAutomation().getAdoptedShellPermissions();
690 ShellCommandUtils.uiAutomation().dropShellPermissionIdentity();
[all …]
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/
DTelecom.java22 import com.android.bedstead.nene.utils.ShellCommandUtils;
35 .validate(ShellCommandUtils::startsWithSuccess) in setDefaultDialerForAllUsers()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/ui/
DUi.java27 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/logcat/
DLogcat.java27 import com.android.bedstead.nene.utils.ShellCommandUtils;
72 try (ShellCommandUtils.StreamingShellOutput sso = dump()){ in dump()
92 public ShellCommandUtils.StreamingShellOutput dump() { in dump()
94 return ShellCommandUtils.executeCommandForStream( in dump()
119 try (ShellCommandUtils.StreamingShellOutput sso = dump()){ in findSystemServerExceptions()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DProfileOwnerTest.java41 import com.android.bedstead.nene.utils.ShellCommandUtils;
92 .validate(ShellCommandUtils::startsWithSuccess) in setProfileOwnerViaAdb_noAccounts_testOnly_sets()
114 .validate(ShellCommandUtils::startsWithSuccess) in setProfileOwnerViaAdb_noAccounts_notTestOnly_sets()
141 .validate(ShellCommandUtils::startsWithSuccess) in setProfileOwnerViaAdb_invalidAccountOnParent_sets()
251 .validate(ShellCommandUtils::startsWithSuccess) in setProfileOwnerViaAdb_accountExistsWithAllowFeature_testOnly_sets()
DDeviceOwnerTest.java51 import com.android.bedstead.nene.utils.ShellCommandUtils;
143 .validate(ShellCommandUtils::startsWithSuccess) in setDeviceOwnerViaAdb_noAccounts_testOnly_sets()
167 .validate(ShellCommandUtils::startsWithSuccess) in setDeviceOwnerViaAdb_noAccounts_notTestOnly_sets()
288 .validate(ShellCommandUtils::startsWithSuccess) in setDeviceOwnerViaAdb_accountExistsWithAllowFeature_testOnly_sets()
313 .validate(ShellCommandUtils::startsWithSuccess) in setDeviceOwnerViaAdb_accountExistsWithAllowFeature_notTestOnly_doesNotSet()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DShellCommand.java200 return ShellCommandUtils.executeCommandAndValidateOutput( in executeSync()
207 return ShellCommandUtils.executeCommand( in executeSync()
275 return ShellCommandUtils.executeCommandForBytes( in execute()
DShellCommandUtils.java48 public final class ShellCommandUtils { class
50 private static final String LOG_TAG = ShellCommandUtils.class.getSimpleName();
70 private ShellCommandUtils() { } in ShellCommandUtils() method in ShellCommandUtils
/cts/hostsidetests/os/test-apps/StaticSharedLibTestApp/src/android/os/lib/app/
DStaticSharedLibsMultiUserTests.java36 import com.android.bedstead.nene.utils.ShellCommandUtils;
84 return ShellCommandUtils.startsWithSuccess(cmd.execute()); in installPackageAsUser()
94 return ShellCommandUtils.startsWithSuccess(cmd.execute()); in uninstallPackage()
/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/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilitySoftKeyboardTest.java39 import android.inputmethodservice.cts.common.test.ShellCommandUtils;
274 enableImeCommand = ShellCommandUtils.enableIme(imeId); in TestImeSession()
276 enableImeCommand = ShellCommandUtils.disableIme(imeId); in TestImeSession()
287 .addCommand(ShellCommandUtils.resetImes()) in close()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/permissions/
DPermissionsTest.java45 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/users/
DUserBuilder.java33 import com.android.bedstead.nene.utils.ShellCommandUtils;
181 commandBuilder.validate(ShellCommandUtils::startsWithSuccess) in create()
DUserReference.java57 import com.android.bedstead.nene.utils.ShellCommandUtils;
172 .validate(ShellCommandUtils::startsWithSuccess) in remove()
206 .validate(ShellCommandUtils::startsWithSuccess) in removeWhenPossible()
261 .validate(ShellCommandUtils::startsWithSuccess) in startUser()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/
DDeviceOwner.java42 import com.android.bedstead.nene.utils.ShellCommandUtils;
107 .validate(ShellCommandUtils::startsWithSuccess) in removePreS()
DProfileOwner.java45 import com.android.bedstead.nene.utils.ShellCommandUtils;
142 .validate(ShellCommandUtils::startsWithSuccess) in removePreS()
DDevicePolicy.java61 import com.android.bedstead.nene.utils.ShellCommandUtils;
105 .validate(ShellCommandUtils::startsWithSuccess); in setProfileOwner()
213 .validate(ShellCommandUtils::startsWithSuccess); in setDeviceOwner()
349 .validate(ShellCommandUtils::startsWithSuccess); in setDeviceOwnerPreS()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DPackages.java65 import com.android.bedstead.nene.utils.ShellCommandUtils;
298 .validate(ShellCommandUtils::startsWithSuccess) in install()
377 .validate(ShellCommandUtils::startsWithSuccess) in install()
484 .validate(ShellCommandUtils::startsWithSuccess) in installUsingAdb()
DPackage.java71 import com.android.bedstead.nene.utils.ShellCommandUtils;
1156 .validate(ShellCommandUtils::startsWithSuccess) in clearStorage()