Home
last modified time | relevance | path

Searched refs:ImeEvent (Results 1 – 13 of 13) sorted by relevance

/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEventStreamTestUtils.java81 public static ImeEvent expectEvent(@NonNull ImeEventStream stream, in expectEvent()
82 @NonNull Predicate<ImeEvent> condition, long timeout) throws TimeoutException { in expectEvent()
102 public static ImeEvent expectEvent(@NonNull ImeEventStream stream, in expectEvent()
103 @NonNull Predicate<ImeEvent> condition, EventFilterMode filterMode, long timeout) in expectEvent()
106 Optional<ImeEvent> result; in expectEvent()
112 final Predicate<ImeEvent> combinedCondition; in expectEvent()
133 final ImeEvent event = result.get(); in expectEvent()
151 public static Predicate<ImeEvent> editorMatcher( in editorMatcher()
166 public static Predicate<ImeEvent> verificationMatcher(@NonNull String name) {
178 public static Predicate<ImeEvent> editorMatcherRestartingFalse(
[all …]
DImeEventStream.java103 public Optional<ImeEvent> findFirst(Predicate<ImeEvent> condition) { in findFirst()
131 public Optional<ImeEvent> seekToFirst(Predicate<ImeEvent> condition) { in seekToFirst()
144 private static void dumpEvent(@NonNull StringBuilder sb, @NonNull ImeEvent event, in dumpEvent()
245 public final ImeEvent[] mArray;
247 ImeEventArray(ImeEvent[] array, int length) { in ImeEventArray()
DMockIme.java188 return ImeEvent.RETURN_VALUE_UNAVAILABLE; in onHandleCommand()
197 return ImeEvent.RETURN_VALUE_UNAVAILABLE; in onHandleCommand()
316 return ImeEvent.RETURN_VALUE_UNAVAILABLE; in onHandleCommand()
329 return ImeEvent.RETURN_VALUE_UNAVAILABLE; in onHandleCommand()
334 return ImeEvent.RETURN_VALUE_UNAVAILABLE; in onHandleCommand()
339 return ImeEvent.RETURN_VALUE_UNAVAILABLE; in onHandleCommand()
344 return ImeEvent.RETURN_VALUE_UNAVAILABLE; in onHandleCommand()
362 return ImeEvent.RETURN_VALUE_UNAVAILABLE; in onHandleCommand()
365 return ImeEvent.RETURN_VALUE_UNAVAILABLE; in onHandleCommand()
380 return ImeEvent.RETURN_VALUE_UNAVAILABLE; in onHandleCommand()
[all …]
DImeEvent.java31 public final class ImeEvent { class
87 ImeEvent(@NonNull String eventName, int nestLevel, @NonNull String threadName, int threadId, in ImeEvent() method in ImeEvent
96 private ImeEvent(@NonNull String eventName, int nestLevel, @NonNull String threadName, in ImeEvent() method in ImeEvent
163 static ImeEvent fromBundle(@NonNull Bundle bundle) { in fromBundle()
205 return new ImeEvent(eventName, nestLevel, threadName, in fromBundle()
DMockImeSession.java85 public final ImeEvent[] mArray;
89 mArray = new ImeEvent[INITIAL_ARRAY_SIZE]; in EventStore()
94 mArray = new ImeEvent[newLength]; in EventStore()
99 public EventStore add(ImeEvent event) { in add()
133 mCurrentEventStore.add(ImeEvent.fromBundle(intent.getExtras())); in onReceive()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputConnectionBlockingMethodTest.java56 import com.android.cts.mockime.ImeEvent;
235 private static void expectElapseTimeLessThan(@NonNull ImeEvent event, in expectElapseTimeLessThan()
299 final ImeEvent result = expectCommand(stream, command, LONG_TIMEOUT); in testGetTextAfterCursorFailWithTimeout()
335 final ImeEvent result = expectCommand(stream, session.callGetTextAfterCursor( in testGetTextAfterCursorFailFastAfterUnbindInput()
400 final ImeEvent result = expectCommand(stream, command, LONG_TIMEOUT); in testGetTextBeforeCursorFailWithTimeout()
436 final ImeEvent result = expectCommand(stream, session.callGetTextBeforeCursor( in testGetTextBeforeCursorFailFastAfterUnbindInput()
499 final ImeEvent result = expectCommand(stream, command, LONG_TIMEOUT); in testGetSelectedTextFailWithTimeout()
534 final ImeEvent result = expectCommand(stream, session.callGetSelectedText( in testGetSelectedTextFailFastAfterUnbindInput()
596 final ImeEvent result = expectCommand(stream, command, LONG_TIMEOUT); in testGetCursorCapsModeFailWithTimeout()
631 final ImeEvent result = expectCommand(stream, in testGetCursorCapsModeFailFastAfterUnbindInput()
[all …]
DPackageVisibilityTest.java40 import com.android.cts.mockime.ImeEvent;
93 final ImeEvent event = expectCommand(stream, command, TIMEOUT); in testTargetPackageIsVisibleFromIme()
DEditTextImeSupportTest.java46 import com.android.cts.mockime.ImeEvent;
117 final ImeEvent firstOnStartInput = expectEvent(stream, in testSetTextTriggersRestartInput()
137 final ImeEvent secondOnStartInput = expectEvent(stream, in testSetTextTriggersRestartInput()
DKeyboardVisibilityControlTest.java80 import com.android.cts.mockime.ImeEvent;
119 private static Predicate<ImeEvent> editorMatcher( in editorMatcher()
130 private static Predicate<ImeEvent> showSoftInputMatcher(int requiredFlags) {
140 private static Predicate<ImeEvent> hideSoftInputMatcher() {
144 private static Predicate<ImeEvent> onFinishInputViewMatcher(boolean expectedFinishingInput) {
431 final ImeEvent onStart = expectEvent(stream,
DInputMethodStartInputLifecycleTest.java61 import com.android.cts.mockime.ImeEvent;
246 private static Predicate<ImeEvent> onFinishInputMatcher() { in onFinishInputMatcher()
DFocusHandlingTest.java74 import com.android.cts.mockime.ImeEvent;
156 final ImeEvent onStart = in testOnStartInputCalledOnceIme()
DInputMethodServiceTest.java75 import com.android.cts.mockime.ImeEvent;
111 private static Predicate<ImeEvent> backKeyDownMatcher(boolean expectedReturnValue) { in backKeyDownMatcher()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DMultiDisplayTestBase.java74 import com.android.cts.mockime.ImeEvent;
868 Predicate<ImeEvent>... conditions) throws Exception { in waitOrderedImeEventsThenAssertImeShown()
869 for (Predicate<ImeEvent> condition : conditions) { in waitOrderedImeEventsThenAssertImeShown()