Searched refs:injectKeyEvent (Results 1 - 11 of 11) sorted by relevance

/frameworks/testing/espresso/espresso-lib/src/main/java/com/google/android/apps/common/testing/ui/espresso/
H A DUiController.java52 boolean injectKeyEvent(KeyEvent event) throws InjectEventSecurityException; method in interface:UiController
57 * control over the key events generated use {@link #injectKeyEvent(KeyEvent)}.
/frameworks/testing/espresso/espresso-lib/src/main/java/com/google/android/apps/common/testing/ui/espresso/base/
H A DEventInjectionStrategy.java38 boolean injectKeyEvent(KeyEvent keyEvent) throws InjectEventSecurityException; method in interface:EventInjectionStrategy
H A DEventInjector.java41 boolean injectKeyEvent(KeyEvent event) throws InjectEventSecurityException { method in class:EventInjector
92 return injectionStrategy.injectKeyEvent(newEvent);
H A DWindowManagerEventInjectionStrategy.java78 wmInstance.getClass().getDeclaredMethod("injectKeyEvent", KeyEvent.class, Boolean.TYPE);
98 public boolean injectKeyEvent(KeyEvent keyEvent) throws InjectEventSecurityException { method in class:WindowManagerEventInjectionStrategy
100 // From javadoc of com.android.server.WindowManagerService.injectKeyEvent:
125 // From javadoc of com.android.server.WindowManagerService.injectKeyEvent:
H A DUiControllerImpl.java170 public boolean injectKeyEvent(final KeyEvent event) throws InjectEventSecurityException { method in class:UiControllerImpl
180 return eventInjector.injectKeyEvent(event);
278 eventInjected = injectKeyEvent(event);
H A DInputManagerEventInjectionStrategy.java107 public boolean injectKeyEvent(KeyEvent keyEvent) throws InjectEventSecurityException { method in class:InputManagerEventInjectionStrategy
/frameworks/testing/espresso/espresso-lib-tests/src/androidTest/java/com/google/android/apps/common/testing/ui/espresso/base/
H A DEventInjectorTest.java93 assertTrue(injector.injectKeyEvent(events[1]));
118 assertTrue(injector.injectKeyEvent(event));
120 assertFalse(injector.injectKeyEvent(event));
129 injector.injectKeyEvent(events[0]);
H A DUiControllerImplIntegrationTest.java106 injectEventWorked.set(uiController.injectKeyEvent(events[0]));
/frameworks/base/cmds/input/src/com/android/commands/input/
H A DInput.java178 injectKeyEvent(e);
184 injectKeyEvent(new KeyEvent(now, now, KeyEvent.ACTION_DOWN, keyCode, 0, 0,
187 injectKeyEvent(new KeyEvent(now, now, KeyEvent.ACTION_DOWN, keyCode, 1, 0,
191 injectKeyEvent(new KeyEvent(now, now, KeyEvent.ACTION_UP, keyCode, 0, 0,
231 private void injectKeyEvent(KeyEvent event) { method in class:Input
232 Log.i(TAG, "injectKeyEvent: " + event);
/frameworks/testing/espresso/espresso-lib/src/main/java/com/google/android/apps/common/testing/ui/espresso/action/
H A DKeyEventAction.java83 injected = controller.injectKeyEvent(new KeyEvent(eventTime,
99 injected = controller.injectKeyEvent(
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DHdmiCecLocalDevice.java436 injectKeyEvent(downTime, KeyEvent.ACTION_UP, mLastKeycode, 0);
443 injectKeyEvent(downTime, KeyEvent.ACTION_DOWN, keycode, keyRepeatCount);
458 injectKeyEvent(upTime, KeyEvent.ACTION_UP, mLastKeycode, 0);
465 static void injectKeyEvent(long time, int action, int keycode, int repeat) { method in class:HdmiCecLocalDevice

Completed in 751 milliseconds