Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/vibrator/
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()
/frameworks/base/services/core/java/com/android/server/input/
DKeyboardLedController.java55 private InputManager mInputManager; field in KeyboardLedController
122 mInputManager = Objects.requireNonNull(mContext.getSystemService(InputManager.class)); in systemRunning()
124 mInputManager.registerInputDeviceListener(this, mHandler); in systemRunning()
126 mInputManager.getInputDeviceIds()); in systemRunning()
148 InputDevice inputDevice = mInputManager.getInputDevice(deviceId); in onInputDeviceChanged()
/frameworks/base/tests/Input/src/android/hardware/input/
DInputDeviceSensorManagerTest.java75 private InputManager mInputManager; field in InputDeviceSensorManagerTest
87 mInputManager = new InputManager(context); in setUp()
88 when(context.getSystemService(eq(Context.INPUT_SERVICE))).thenReturn(mInputManager); in setUp()
163 InputDevice device = mInputManager.getInputDevice(deviceId); in getSensorDevice()
173 InputDevice device = getSensorDevice(mInputManager.getInputDeviceIds()); in getInputDeviceSensors_withExpectedType()
193 InputDevice device = getSensorDevice(mInputManager.getInputDeviceIds()); in getInputDeviceSensors_withUnexpectedType()
210 InputDevice device = getSensorDevice(mInputManager.getInputDeviceIds()); in testInputDeviceSensorListener()
DInputDeviceLightsManagerTest.java78 private InputManager mInputManager; field in InputDeviceLightsManagerTest
93 mInputManager = new InputManager(context); in setUp()
94 when(context.getSystemService(eq(Context.INPUT_SERVICE))).thenReturn(mInputManager); in setUp()
139 InputDevice device = mInputManager.getInputDevice(DEVICE_ID); in testGetInputDeviceLights()
160 InputDevice device = mInputManager.getInputDevice(DEVICE_ID); in testControlMultipleLights()
212 InputDevice device = mInputManager.getInputDevice(DEVICE_ID); in testControlPlayerIdLight()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DSystemActionsTest.java75 private InputManager mInputManager; field in SystemActionsTest
84 mContext.addMockSystemService(InputManager.class, mInputManager); in setUp()
106 }).when(mInputManager).injectInputEvent(any(), anyInt()); in handleHeadsetHook_callStateIdle_injectsKeyEvents()
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp267 inline sp<InputManagerInterface> getInputManager() const { return mInputManager; } in getInputManager()
391 sp<InputManagerInterface> mInputManager; member in android::NativeInputManager
480 mInputManager = im; in NativeInputManager()
510 mInputManager->dump(dump); in dump()
551 mInputManager->getChoreographer().setDisplayViewports(viewports); in setDisplayViewports()
552 mInputManager->getReader().requestRefreshConfiguration( in setDisplayViewports()
559 return mInputManager->getDispatcher().createInputChannel(name); in createInputChannel()
565 return mInputManager->getDispatcher().createInputMonitor(displayId, name, pid); in createInputMonitor()
570 return mInputManager->getDispatcher().removeInputChannel(connectionToken); in removeInputChannel()
575 return mInputManager->getDispatcher().pilferPointers(token); in pilferPointers()
[all …]
/frameworks/base/services/core/java/com/android/server/
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()
/frameworks/base/services/core/java/com/android/server/wm/
DInputConsumerImpl.java62 mClientChannel = mService.mInputManager.createInputChannel(name); in InputConsumerImpl()
149 mService.mInputManager.removeInputChannel(mClientChannel.getToken()); in disposeChannelsLw()
DEmbeddedWindowController.java275 mInputChannel = mWmService.mInputManager.createInputChannel(name); in openInputChannel()
281 mWmService.mInputManager.removeInputChannel(mInputChannel.getToken()); in onRemoved()
DLetterbox.java315 mClientChannel = mWmService.mInputManager.createInputChannel(name); in InputInterceptor()
352 mWmService.mInputManager.removeInputChannel(mToken); in dispose()
DTaskPositioner.java212 mClientChannel = mService.mInputManager.createInputChannel(TAG); in register()
281 mService.mInputManager.removeInputChannel(mClientChannel.getToken());
DTaskPositioningController.java206 if (!mService.mInputManager.transferTouchGesture( in startPositioningLocked()
DInputManagerCallback.java346 mService.mInputManager.setInputDispatchMode(mInputDispatchEnabled, mInputDispatchFrozen); in updateInputDispatchModeLw()
DDragState.java410 mClientChannel = mService.mInputManager.createInputChannel("drag"); in InputInterceptor()
438 mService.mInputManager.removeInputChannel(mClientChannel.getToken()); in tearDown()
DInputMonitor.java161 mService.mInputManager.onDisplayRemoved(mDisplayId)) in onDisplayRemoved()
527 mService.mInputManager.setFocusedApplication(mDisplayId, in setFocusedAppLw()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DDragResizeInputListener.java274 private final InputManager mInputManager; field in DragResizeInputListener.TaskResizeInputEventReceiver
302 mInputManager = context.getSystemService(InputManager.class); in TaskResizeInputEventReceiver()
428 mInputManager.pilferPointers(mInputChannel.getToken()); in handleMotionEvent()
534 mInputManager.setPointerIcon(PointerIcon.getSystemIcon(mContext, cursorType), in updateCursorType()
DDesktopModeWindowDecorViewModel.java131 private final InputManager mInputManager; field in DesktopModeWindowDecorViewModel
250 mInputManager = mContext.getSystemService(InputManager.class); in DesktopModeWindowDecorViewModel()
543 if (mInputManager != null) { in onTouch()
544 mInputManager.pilferPointers(v.getViewRootImpl().getInputToken()); in onTouch()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/
DEdgeBackGestureHandler.java206 private final InputManager mInputManager; field in EdgeBackGestureHandler
398 InputDevice inputDevice = mInputManager.getInputDevice(deviceId);
440 mInputManager = inputManager; in EdgeBackGestureHandler()
567 mInputManager.registerInputDeviceListener( in onNavBarAttached()
570 int[] inputDevices = mInputManager.getInputDeviceIds(); in onNavBarAttached()
585 mInputManager.unregisterInputDeviceListener(mInputDeviceListener); in onNavBarDetached()
1329 private final InputManager mInputManager; field in EdgeBackGestureHandler.Factory
1369 mInputManager = inputManager; in Factory()
1394 mInputManager, in create()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DInputDeviceDelegateTest.java73 private InputManager mInputManager; field in InputDeviceDelegateTest
83 mInputManager = new InputManager(mContextSpy); in setUp()
85 .thenReturn(mInputManager); in setUp()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/back/
DBackAnimationControllerTest.java113 private InputManager mInputManager; field in BackAnimationControllerTest
131 mContext.addMockSystemService(InputManager.class, mInputManager); in setUp()
371 verify(mInputManager, times(2)) in gestureQueued_WhenPreviousTransitionHasNotYetEnded()
411 verify(mInputManager, times(2)) in queuedFinishedGesture_RunsAfterPreviousTransitionEnded()
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/
DTestPhoneWindowManager.java140 @Mock private InputManager mInputManager; field in TestPhoneWindowManager
304 doReturn(mInputManager).when(mContext).getSystemService(eq(InputManager.class)); in setUp()
597 doReturn(mInputManager).when(mContext).getSystemService(eq(InputManager.class)); in overrideKeyEventSource()
598 doReturn(device).when(mInputManager).getInputDevice(anyInt()); in overrideKeyEventSource()
602 doReturn(true).when(mInputManager).injectInputEvent(any(KeyEvent.class), anyInt()); in overrideInjectKeyEvent()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowManagerServiceTests.java661 verify(mWm.mInputManager).setInTouchMode( in testSetInTouchMode_instrumentedProcessGetPermissionToSwitchTouchMode()
681 verify(mWm.mInputManager).setInTouchMode( in testSetInTouchMode_nonInstrumentedProcessDontGetPermissionToSwitchTouchMode()
713 verify(mWm.mInputManager, times(numberOfGlobalTouchModeDisplays)).setInTouchMode( in testSetInTouchMode_multiDisplay_globalTouchModeUpdate()
740 verify(mWm.mInputManager).setInTouchMode( in testSetInTouchMode_multiDisplay_singleDisplayTouchModeUpdate()
747 clearInvocations(mWm.mInputManager); in testSetInTouchMode_multiDisplay_singleDisplayTouchModeUpdate()
751 verify(mWm.mInputManager).setInTouchMode( in testSetInTouchMode_multiDisplay_singleDisplayTouchModeUpdate()
767 doReturn(true).when(mWm.mInputManager).setInTouchMode(anyBoolean(), anyInt(), in testSetInTouchModeOnAllDisplays()
781 verify(mWm.mInputManager, description("perDisplayFocusEnabled=" in testSetInTouchModeOnAllDisplays()
792 clearInvocations(mWm.mInputManager); in testSetInTouchModeOnAllDisplays()
DTaskPositioningControllerTests.java64 when(mWm.mInputManager.transferTouchGesture(any(), any())).thenReturn(true); in setUp()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/
DUdfpsControllerTest.java255 private InputManager mInputManager; field in UdfpsControllerTest
365 mInputManager, in initUdfpsController()
1223 verify(mInputManager).pilferPointers(any()); in onTouch_pilferPointer()
1249 verify(mInputManager, never()).pilferPointers(any()); in onTouch_doNotPilferPointer()
1339 verify(mInputManager).pilferPointers(any()); in onTouch_pilferPointerWhenAltBouncerShowing()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsController.java184 @NonNull private final InputManager mInputManager; field in UdfpsController
669 mInputManager.pilferPointers( in onTouch()
778 mInputManager = inputManager; in UdfpsController()

12