Home
last modified time | relevance | path

Searched refs:MockTestActivityUtil (Results 1 – 14 of 14) sorted by relevance

/cts/tests/inputmethod/testlauncher/src/android/view/inputmethod/ctstestlauncher/
DLauncherActivity.java25 import android.view.inputmethod.cts.util.MockTestActivityUtil;
45 getIntent().getStringExtra(MockTestActivityUtil.EXTRA_KEY_PRIVATE_IME_OPTIONS); in onCreate()
48 MockTestActivityUtil.EXTRA_KEY_PRIVATE_IME_OPTIONS, privateImeOptions); in onCreate()
50 if (getIntent().getBooleanExtra(MockTestActivityUtil.EXTRA_HANDWRITING_DELEGATE, false)) { in onCreate()
51 ctsTestAppIntent.putExtra(MockTestActivityUtil.EXTRA_HANDWRITING_DELEGATE, true); in onCreate()
54 MockTestActivityUtil.EXTRA_HOME_HANDWRITING_DELEGATOR_ALLOWED, false)) { in onCreate()
56 MockTestActivityUtil.EXTRA_HOME_HANDWRITING_DELEGATOR_ALLOWED, true); in onCreate()
/cts/tests/inputmethod/testapp/src/android/view/inputmethod/ctstestapp/
DMainActivity.java37 import android.view.inputmethod.cts.util.MockTestActivityUtil;
93 getBooleanIntentExtra(MockTestActivityUtil.EXTRA_KEY_SHOW_DIALOG); in onCreate()
110 MockTestActivityUtil.EXTRA_ON_CREATE_INPUT_CONNECTION_CALLBACK, in onCreate()
113 MockTestActivityUtil.EXTRA_ON_CREATE_USER_HANDLE_SESSION_ID); in onCreate()
135 getStringIntentExtra(MockTestActivityUtil.EXTRA_KEY_PRIVATE_IME_OPTIONS); in onCreate()
139 if (getBooleanIntentExtra(MockTestActivityUtil.EXTRA_HANDWRITING_DELEGATE)) { in onCreate()
144 MockTestActivityUtil.EXTRA_HOME_HANDWRITING_DELEGATOR_ALLOWED)) { in onCreate()
149 MockTestActivityUtil.EXTRA_SOFT_INPUT_MODE); in onCreate()
172 if (extras.containsKey(MockTestActivityUtil.EXTRA_SHOW_SOFT_INPUT)) { in onStart()
176 if (extras.getBoolean(MockTestActivityUtil.EXTRA_DISMISS_DIALOG, false)) { in onStart()
[all …]
DReplyReceivingInputConnection.java27 import android.view.inputmethod.cts.util.MockTestActivityUtil;
39 MockTestActivityUtil.ACTION_KEY_REPLY_USER_HANDLE;
42 MockTestActivityUtil.ACTION_KEY_REPLY_USER_HANDLE;
/cts/tests/inputmethod/installtests/src/android/view/inputmethod/cts/installtests/
DMultiUserMockImeTest.java32 import android.view.inputmethod.cts.util.MockTestActivityUtil;
110 MockTestActivityUtil.TEST_ACTIVITY.getPackageName(), workUserId, isInstant)); in testProfileSwitching()
121 try (var activity1 = MockTestActivityUtil.launchAsUser( in testProfileSwitching()
123 Map.of(MockTestActivityUtil.EXTRA_KEY_PRIVATE_IME_OPTIONS, marker1))) { in testProfileSwitching()
126 MockTestActivityUtil.sendBroadcastAction( in testProfileSwitching()
127 MockTestActivityUtil.EXTRA_SHOW_SOFT_INPUT, currentUserId); in testProfileSwitching()
129 try (var activity2 = MockTestActivityUtil.launchAsUser( in testProfileSwitching()
131 Map.of(MockTestActivityUtil.EXTRA_KEY_PRIVATE_IME_OPTIONS, marker2))) { in testProfileSwitching()
155 MockTestActivityUtil.TEST_ACTIVITY.getPackageName())) in isInstantApp()
DMultiUserTest.java44 import android.view.inputmethod.cts.util.MockTestActivityUtil;
243 installExistingPackageAsUser(MockTestActivityUtil.TEST_ACTIVITY.getPackageName(), in testProfileUser()
245 assertPackageExistsInApiResult(MockTestActivityUtil.TEST_ACTIVITY.getPackageName(), in testProfileUser()
398 MockTestActivityUtil.ACTION_KEY_REPLY_USER_HANDLE)); in assertConnectingToTheSameUserIme()
400 equalTo(bundle.getInt(MockTestActivityUtil.ACTION_KEY_REPLY_USER_HANDLE))); in assertConnectingToTheSameUserIme()
403 try (AutoCloseable ignored = MockTestActivityUtil.launchSyncAsUser(userId, isInstantApp(), in assertConnectingToTheSameUserIme()
442 MockTestActivityUtil.TEST_ACTIVITY.getPackageName())) in isInstantApp()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DPackageVisibilityTest.java32 import android.view.inputmethod.cts.util.MockTestActivityUtil;
81 try (AutoCloseable closeable = MockTestActivityUtil.launchSync(instant, in testTargetPackageIsVisibleFromIme()
82 TIMEOUT, Map.of(MockTestActivityUtil.EXTRA_KEY_PRIVATE_IME_OPTIONS, marker))) { in testTargetPackageIsVisibleFromIme()
86 MockTestActivityUtil.getPackageName(), PackageManager.GET_META_DATA); in testTargetPackageIsVisibleFromIme()
97 assertEquals(MockTestActivityUtil.getPackageName(), in testTargetPackageIsVisibleFromIme()
DInputMethodStartInputLifecycleTest.java64 import android.view.inputmethod.cts.util.MockTestActivityUtil;
263 MockTestActivityUtil.forceStopPackage(); in testShowingImeDuringSessionChange_doesntShowOnPreviousSession()
266 MockTestActivityUtil.launchSync(instant, TIMEOUT, Map.of( in testShowingImeDuringSessionChange_doesntShowOnPreviousSession()
267 MockTestActivityUtil.EXTRA_KEY_PRIVATE_IME_OPTIONS, markerShown, in testShowingImeDuringSessionChange_doesntShowOnPreviousSession()
268 MockTestActivityUtil.EXTRA_SOFT_INPUT_MODE, in testShowingImeDuringSessionChange_doesntShowOnPreviousSession()
348 try (AutoCloseable closeable = MockTestActivityUtil.launchSync(instant, in testInvalidateInputBeforeInputMethodSessionBecomesAvailable()
349 TIMEOUT, Map.of(MockTestActivityUtil.EXTRA_KEY_PRIVATE_IME_OPTIONS, marker1))) { in testInvalidateInputBeforeInputMethodSessionBecomesAvailable()
DInputConnectionLifecycleTest.java38 import android.view.inputmethod.cts.util.MockTestActivityUtil;
311 try (AutoCloseable unused = MockTestActivityUtil.launchSync(instant, TIMEOUT)) { in testCloseConnectionWithLosingWindowFocus()
DKeyboardVisibilityControlTest.java98 import android.view.inputmethod.cts.util.MockTestActivityUtil;
1209 MockTestActivityUtil.launchSync(instant, TIMEOUT, in runImeVisibilityWhenImeTransitionBetweenActivities()
1210 Map.of(MockTestActivityUtil.EXTRA_KEY_SHOW_DIALOG, "true")); in runImeVisibilityWhenImeTransitionBetweenActivities()
1216 MockTestActivityUtil.sendBroadcastAction(MockTestActivityUtil.EXTRA_DISMISS_DIALOG); in runImeVisibilityWhenImeTransitionBetweenActivities()
1265 try (AutoCloseable closable = MockTestActivityUtil.launchSync( in runImeVisibilityTestWhenForceStopPackage()
1267 Map.of(MockTestActivityUtil.EXTRA_KEY_PRIVATE_IME_OPTIONS, marker))) { in runImeVisibilityTestWhenForceStopPackage()
1272 MockTestActivityUtil.sendBroadcastAction( in runImeVisibilityTestWhenForceStopPackage()
1273 MockTestActivityUtil.EXTRA_SHOW_SOFT_INPUT); in runImeVisibilityTestWhenForceStopPackage()
1282 MockTestActivityUtil.forceStopPackage(); in runImeVisibilityTestWhenForceStopPackage()
DInputConnectionHandlerTest.java52 import android.view.inputmethod.cts.util.MockTestActivityUtil;
442 try (AutoCloseable unused = MockTestActivityUtil.launchSync(instant, TIMEOUT)) { in testCloseConnectionWithLosingWindowFocus()
DStylusHandwritingTest.java84 import android.view.inputmethod.cts.util.MockTestActivityUtil;
177 MockTestActivityUtil.forceStopPackage(); in tearDown()
2147 intent.putExtra(MockTestActivityUtil.EXTRA_KEY_PRIVATE_IME_OPTIONS, editTextMarker);
2148 intent.putExtra(MockTestActivityUtil.EXTRA_HANDWRITING_DELEGATE, true);
2150 MockTestActivityUtil.EXTRA_HOME_HANDWRITING_DELEGATOR_ALLOWED,
3236 intent.putExtra(MockTestActivityUtil.EXTRA_KEY_PRIVATE_IME_OPTIONS, editTextMarker);
3237 intent.putExtra(MockTestActivityUtil.EXTRA_HANDWRITING_DELEGATE, true);
DInputConnectionEndToEndTest.java84 import android.view.inputmethod.cts.util.MockTestActivityUtil;
372 MockTestActivityUtil.launchSync(isInstant, TIMEOUT); in triggerUnbindInput()
/cts/tests/inputmethod/tests32/src/android/view/inputmethod/cts/sdk32/
DInputMethodManagerTest.kt23 import android.view.inputmethod.cts.util.MockTestActivityUtil in <lambda>()
24 import android.view.inputmethod.cts.util.MockTestActivityUtil.EXTRA_KEY_PRIVATE_IME_OPTIONS in <lambda>()
51 MockTestActivityUtil.launchSync( in <lambda>()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DMockTestActivityUtil.java48 public final class MockTestActivityUtil { class