Home
last modified time | relevance | path

Searched refs:mInputManager (Results 1 – 25 of 32) sorted by relevance

12

/aosp14/frameworks/base/services/core/java/com/android/server/vibrator/
H A DInputDeviceDelegate.java40 private InputManager mInputManager; field in InputDeviceDelegate
59 mInputManager = mContext.getSystemService(InputManager.class); in onSystemReady()
129 if (mInputManager == null) { in updateInputDeviceVibrators()
145 mInputManager.registerInputDeviceListener(this, mHandler); in updateInputDeviceVibrators()
147 for (int deviceId : mInputManager.getInputDeviceIds()) { in updateInputDeviceVibrators()
148 InputDevice device = mInputManager.getInputDevice(deviceId); in updateInputDeviceVibrators()
158 mInputManager.unregisterInputDeviceListener(this); in updateInputDeviceVibrators()
167 if (mInputManager == null) { in updateInputDevice()
175 InputDevice device = mInputManager.getInputDevice(deviceId); in updateInputDevice()
/aosp14/frameworks/base/core/tests/coretests/src/android/hardware/input/
H A DInputDeviceSensorManagerTest.java75 private InputManager mInputManager; field in InputDeviceSensorManagerTest
85 mInputManager = new InputManager(context); in setUp()
86 when(context.getSystemService(eq(Context.INPUT_SERVICE))).thenReturn(mInputManager); in setUp()
159 InputDevice device = mInputManager.getInputDevice(deviceId); in getSensorDevice()
169 InputDevice device = getSensorDevice(mInputManager.getInputDeviceIds()); in getInputDeviceSensors_withExpectedType()
189 InputDevice device = getSensorDevice(mInputManager.getInputDeviceIds()); in getInputDeviceSensors_withUnexpectedType()
206 InputDevice device = getSensorDevice(mInputManager.getInputDeviceIds()); in testInputDeviceSensorListener()
H A DInputDeviceLightsManagerTest.java78 private InputManager mInputManager; field in InputDeviceLightsManagerTest
91 mInputManager = new InputManager(context); in setUp()
92 when(context.getSystemService(eq(Context.INPUT_SERVICE))).thenReturn(mInputManager); in setUp()
135 InputDevice device = mInputManager.getInputDevice(DEVICE_ID); in testGetInputDeviceLights()
156 InputDevice device = mInputManager.getInputDevice(DEVICE_ID); in testControlMultipleLights()
208 InputDevice device = mInputManager.getInputDevice(DEVICE_ID); in testControlPlayerIdLight()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
H A DSystemActionsTest.java77 private InputManager mInputManager; field in SystemActionsTest
86 mContext.addMockSystemService(InputManager.class, mInputManager); in setUp()
102 }).when(mInputManager).injectInputEvent(any(), anyInt()); in handleHeadsetHook_callStateIdle_injectsKeyEvents()
/aosp14/frameworks/base/services/core/jni/
H A Dcom_android_server_input_InputManagerService.cpp376 sp<InputManagerInterface> mInputManager; member in android::NativeInputManager
458 mInputManager = im; in NativeInputManager()
492 mInputManager->dump(dump); in dump()
535 mInputManager->getReader().requestRefreshConfiguration( in setDisplayViewports()
1095 mInputManager->getReader().requestRefreshConfiguration( in setPointerDisplayId()
1111 mInputManager->getReader().requestRefreshConfiguration( in setPointerSpeed()
1127 mInputManager->getReader().requestRefreshConfiguration( in setPointerAcceleration()
1143 mInputManager->getReader().requestRefreshConfiguration( in setTouchpadPointerSpeed()
1159 mInputManager->getReader().requestRefreshConfiguration( in setTouchpadNaturalScrollingEnabled()
1175 mInputManager->getReader().requestRefreshConfiguration( in setTouchpadTapToClickEnabled()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DWiredAccessoryManager.java89 private final InputManagerService mInputManager; field in WiredAccessoryManager
98 mInputManager = inputManager; in WiredAccessoryManager()
110 if (mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, SW_HEADPHONE_INSERT) in onSystemReady()
114 if (mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, SW_MICROPHONE_INSERT) in onSystemReady()
118 if (mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, SW_LINEOUT_INSERT) == 1) { in onSystemReady()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DInputConsumerImpl.java61 mClientChannel = mService.mInputManager.createInputChannel(name); in InputConsumerImpl()
147 mService.mInputManager.removeInputChannel(mClientChannel.getToken()); in disposeChannelsLw()
H A DEmbeddedWindowController.java210 mInputChannel = mWmService.mInputManager.createInputChannel(name); in openInputChannel()
216 mWmService.mInputManager.removeInputChannel(mInputChannel.getToken()); in onRemoved()
H A DLetterbox.java305 mClientChannel = mWmService.mInputManager.createInputChannel(name); in InputInterceptor()
336 mWmService.mInputManager.removeInputChannel(mToken); in dispose()
H A DTaskPositioner.java212 mClientChannel = mService.mInputManager.createInputChannel(TAG); in register()
281 mService.mInputManager.removeInputChannel(mClientChannel.getToken());
H A DTaskPositioningController.java206 if (!mService.mInputManager.transferTouchFocus( in startPositioningLocked()
H A DInputMonitor.java162 mService.mInputManager.onDisplayRemoved(mDisplayId)) in onDisplayRemoved()
517 mService.mInputManager.setFocusedApplication(mDisplayId, in setFocusedAppLw()
H A DDragState.java363 mClientChannel = mService.mInputManager.createInputChannel("drag"); in InputInterceptor()
396 mService.mInputManager.removeInputChannel(mClientChannel.getToken()); in tearDown()
H A DInputManagerCallback.java361 mService.mInputManager.setInputDispatchMode(mInputDispatchEnabled, mInputDispatchFrozen); in updateInputDispatchModeLw()
H A DDragDropController.java168 mDragState, display, mService.mInputManager, in performDrag()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
H A DDragResizeInputListener.java67 private final InputManager mInputManager; field in DragResizeInputListener
106 mInputManager = context.getSystemService(InputManager.class); in DragResizeInputListener()
400 mInputManager.pilferPointers(mInputChannel.getToken()); in handleMotionEvent()
584 mInputManager.setPointerIconType(cursorType); in updateCursorType()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/
H A DEdgeBackGestureHandler.java195 private final InputManager mInputManager; field in EdgeBackGestureHandler
426 mInputManager = inputManager; in EdgeBackGestureHandler()
555 mInputManager.registerInputDeviceListener(mInputDeviceListener, mMainHandler); in onNavBarAttached()
556 int [] inputDevices = mInputManager.getInputDeviceIds(); in onNavBarAttached()
572 mInputManager.unregisterInputDeviceListener(mInputDeviceListener); in onNavBarDetached()
878 InputDevice inputDevice = mInputManager.getInputDevice(deviceId); in isTrackpadDevice()
1307 private final InputManager mInputManager; field in EdgeBackGestureHandler.Factory
1351 mInputManager = inputManager; in Factory()
1377 mInputManager, in create()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
H A DInputDeviceDelegateTest.java80 private InputManager mInputManager; field in InputDeviceDelegateTest
90 mInputManager = new InputManager(mContextSpy); in setUp()
92 .thenReturn(mInputManager); in setUp()
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/policy/
H A DTestPhoneWindowManager.java127 @Mock private InputManager mInputManager; field in TestPhoneWindowManager
227 doReturn(mInputManager).when(mContext).getSystemService(eq(InputManager.class)); in setUp()
430 doReturn(mInputManager).when(mContext).getSystemService(eq(InputManager.class)); in overrideKeyEventSource()
431 doReturn(device).when(mInputManager).getInputDevice(anyInt()); in overrideKeyEventSource()
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DWindowManagerServiceTests.java534 verify(mWm.mInputManager).setInTouchMode( in testSetInTouchMode_instrumentedProcessGetPermissionToSwitchTouchMode()
554 verify(mWm.mInputManager).setInTouchMode( in testSetInTouchMode_nonInstrumentedProcessDontGetPermissionToSwitchTouchMode()
585 verify(mWm.mInputManager, times(numberOfGlobalTouchModeDisplays)).setInTouchMode( in testSetInTouchMode_multiDisplay_globalTouchModeUpdate()
611 verify(mWm.mInputManager).setInTouchMode( in testSetInTouchMode_multiDisplay_perDisplayFocus_singleDisplayTouchModeUpdate()
637 verify(mWm.mInputManager).setInTouchMode( in testSetInTouchMode_multiDisplay_ownTouchMode_singleDisplayTouchModeUpdate()
674 verify(mWm.mInputManager).setInTouchMode( in testSetInTouchModeOnAllDisplays()
H A DTaskPositioningControllerTests.java63 when(mWm.mInputManager.transferTouchFocus( in setUp()
H A DDragDropControllerTests.java172 when(mWm.mInputManager.transferTouchFocus(any(InputChannel.class), in setUp()
572 assertTrue(mWm.mInputManager.transferTouchFocus(new InputChannel(), in startDrag()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
H A DDesktopModeWindowDecorViewModelTests.java93 @Mock private InputManager mInputManager; field in DesktopModeWindowDecorViewModelTests
109 mMockInputManagers.add(mInputManager); in setUp()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
H A DUdfpsControllerTest.java251 private InputManager mInputManager; field in UdfpsControllerTest
329 mAlternateBouncerInteractor, mSecureSettings, mInputManager, mUdfpsUtils, in initUdfpsController()
1423 verify(mInputManager, never()).pilferPointers(any()); in onTouch_withNewTouchDetection_ignoreIfAuthPaused()
1466 verify(mInputManager).pilferPointers(any()); in onTouch_withNewTouchDetection_ignoreAuthPauseIfFingerDown()
1483 verify(mInputManager).pilferPointers(any()); in onTouch_withNewTouchDetection_ignoreAuthPauseIfFingerDown()
1533 verify(mInputManager).pilferPointers(any()); in onTouch_withNewTouchDetection_pilferPointer()
1571 verify(mInputManager, never()).pilferPointers(any()); in onTouch_withNewTouchDetection_doNotPilferPointer()
1611 verify(mInputManager).pilferPointers(any()); in onTouch_withNewTouchDetection_pilferPointerWhenAltBouncerShowing()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
H A DUdfpsController.java180 @NonNull private final InputManager mInputManager; field in UdfpsController
656 mInputManager.pilferPointers( in newOnTouch()
897 mInputManager = inputManager; in UdfpsController()

12