Home
last modified time | relevance | path

Searched refs:injectInputEvent (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/base/apct-tests/perftests/core/src/android/view/
DInputStageBenchmark.java181 private void injectInputEvent(InputEvent event) { in injectInputEvent() method in InputStageBenchmark
183 mInstrumentation.runOnMainSync(() -> mWindow.injectInputEvent(event)); in injectInputEvent()
197 injectInputEvent(eventDown); in testKeyEvent()
202 injectInputEvent(eventUp); in testKeyEvent()
224 injectInputEvent(eventDown); in testMotionEvent()
233 injectInputEvent(eventUp); in testMotionEvent()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiAutomatorBridge.java69 public boolean injectInputEvent(InputEvent event, boolean sync) { in injectInputEvent() method in UiAutomatorBridge
70 return mUiAutomation.injectInputEvent(event, sync); in injectInputEvent()
DInteractionController.java653 return mUiAutomatorBridge.injectInputEvent(event, true);
/frameworks/base/tests/Input/src/com/android/server/input/
DInputManagerServiceTests.kt287 service.injectInputEvent(downEvent, InputEventInjectionSync.NONE) in addUniqueIdAssociationByDescriptor_verifyAssociations()
307 service.injectInputEvent(upEvent, InputEventInjectionSync.NONE) in addUniqueIdAssociationByDescriptor_verifyAssociations()
349 service.injectInputEvent(downEvent, InputEventInjectionSync.NONE) in addUniqueIdAssociationByPort_verifyAssociations()
369 service.injectInputEvent(upEvent, InputEventInjectionSync.NONE) in addUniqueIdAssociationByPort_verifyAssociations()
/frameworks/native/services/inputflinger/benchmarks/
DInputDispatcher_benchmarks.cpp155 dispatcher->injectInputEvent(&event, /*targetUid=*/{}, InputEventInjectionSync::NONE, in benchmarkInjectMotion()
161 dispatcher->injectInputEvent(&event, /*targetUid=*/{}, InputEventInjectionSync::NONE, in benchmarkInjectMotion()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityRecordInputSinkTests.java184 mUiAutomation.injectInputEvent(down, true); in injectTapOnButton()
190 mUiAutomation.injectInputEvent(up, true); in injectTapOnButton()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/buttons/
DKeyButtonViewTest.java146 .injectInputEvent(any(KeyEvent.class), any(Integer.class)); in testEventInjectedOnAbortGesture()
154 .injectInputEvent(any(KeyEvent.class), any(Integer.class)); in testNoEventInjectedOnAbortUnknownGesture()
/frameworks/base/core/java/android/app/
DIUiAutomationConnection.aidl44 boolean injectInputEvent(in InputEvent event, boolean sync, boolean waitForAnimations); in injectInputEvent() method
DUiAutomation.java963 public boolean injectInputEvent(InputEvent event, boolean sync) { in injectInputEvent() method in UiAutomation
964 return injectInputEvent(event, sync, true /* waitForAnimations */); in injectInputEvent()
983 public boolean injectInputEvent(@NonNull InputEvent event, boolean sync, in injectInputEvent() method in UiAutomation
991 return mUiAutomationConnection.injectInputEvent(event, sync, waitForAnimations); in injectInputEvent()
DUiAutomationConnection.java140 public boolean injectInputEvent(InputEvent event, boolean sync, boolean waitForAnimations) { in injectInputEvent() method in UiAutomationConnection
166 final boolean result = InputManagerGlobal.getInstance().injectInputEvent(event, in injectInputEvent()
DInstrumentation.java1204 InputManagerGlobal.getInstance().injectInputEvent(newEvent, in sendKeySync()
1303 InputManagerGlobal.getInstance().injectInputEvent( in syncInputTransactionsAndInjectEventIntoSelf()
1333 InputManagerGlobal.getInstance().injectInputEvent(event, in sendTrackballEventSync()
/frameworks/base/core/java/android/hardware/input/
DInputManager.java929 public boolean injectInputEvent(InputEvent event, int mode, int targetUid) { in injectInputEvent() method in InputManager
930 return mGlobal.injectInputEvent(event, mode, targetUid); in injectInputEvent()
955 public boolean injectInputEvent(InputEvent event, int mode) { in injectInputEvent() method in InputManager
956 return mGlobal.injectInputEvent(event, mode); in injectInputEvent()
DIInputManager.aidl79 boolean injectInputEvent(in InputEvent ev, int mode); in injectInputEvent() method
DInputManagerGlobal.java1378 public boolean injectInputEvent(InputEvent event, int mode, int targetUid) { in injectInputEvent() method in InputManagerGlobal
1397 public boolean injectInputEvent(InputEvent event, int mode) { in injectInputEvent() method in InputManagerGlobal
1398 return injectInputEvent(event, mode, Process.INVALID_UID); in injectInputEvent()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DTaskOperations.java69 .injectInputEvent(ev, InputManager.INJECT_INPUT_EVENT_MODE_ASYNC)) { in sendBackEvent()
/frameworks/native/services/inputflinger/dispatcher/include/
DInputDispatcherInterface.h78 virtual android::os::InputEventInjectionResult injectInputEvent(
/frameworks/base/services/core/java/com/android/server/input/
DNativeInputManagerService.java94 int injectInputEvent(InputEvent event, boolean injectIntoUid, int uid, int syncMode, in injectInputEvent() method
341 public native int injectInputEvent(InputEvent event, boolean injectIntoUid, int uid, in injectInputEvent() method in NativeInputManagerService.NativeImpl
DInputShellCommand.java129 this(InputShellCommand::injectInputEvent); in InputShellCommand()
137 private static void injectInputEvent(InputEvent event, Integer injectMode) { in injectInputEvent() method in InputShellCommand
138 InputManagerGlobal.getInstance().injectInputEvent(event, injectMode); in injectInputEvent()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DSystemActionsTest.java106 }).when(mInputManager).injectInputEvent(any(), anyInt()); in handleHeadsetHook_callStateIdle_injectsKeyEvents()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/
DSplitScreenUtils.kt253 instrumentation.uiAutomation.injectInputEvent(motionEvent, true) in <lambda>()
284 instrumentation.uiAutomation.injectInputEvent(motionMove, true) in <lambda>()
/frameworks/base/tests/FlickerTests/test-apps/app-helpers/src/com/android/server/wm/flicker/helpers/
DGestureHelper.java304 return mUiAutomation.injectInputEvent(event, true); in injectEventSync()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/back/
DBackAnimationControllerTest.java372 .injectInputEvent(any(KeyEvent.class), any(Integer.class)); in gestureQueued_WhenPreviousTransitionHasNotYetEnded()
412 .injectInputEvent(any(KeyEvent.class), any(Integer.class)); in queuedFinishedGesture_RunsAfterPreviousTransitionEnded()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DSystemActionPerformer.java359 .injectInputEvent(event, InputManager.INJECT_INPUT_EVENT_MODE_ASYNC); in sendKeyEventIdentityCleared()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/
DGlobalActionsDialogLiteTest.java291 dialog.getWindow().injectInputEvent( in testPredictiveBackInvocationDismissesDialog()
293 dialog.getWindow().injectInputEvent( in testPredictiveBackInvocationDismissesDialog()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
DKeyButtonView.java448 mInputManagerGlobal.injectInputEvent(ev, in sendEvent()

12