Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/vibrator/
DInputDeviceDelegate.java41 private InputManager mInputManager; field in InputDeviceDelegate
60 mInputManager = mContext.getSystemService(InputManager.class); in onSystemReady()
130 if (mInputManager == null) { in updateInputDeviceVibrators()
146 mInputManager.registerInputDeviceListener(this, mHandler); in updateInputDeviceVibrators()
148 for (int deviceId : mInputManager.getInputDeviceIds()) { in updateInputDeviceVibrators()
149 InputDevice device = mInputManager.getInputDevice(deviceId); in updateInputDeviceVibrators()
159 mInputManager.unregisterInputDeviceListener(this); in updateInputDeviceVibrators()
168 if (mInputManager == null) { in updateInputDevice()
176 InputDevice device = mInputManager.getInputDevice(deviceId); in updateInputDevice()
/frameworks/base/services/core/java/com/android/server/input/
DSysfsNodeMonitor.java54 private InputManager mInputManager; field in SysfsNodeMonitor
68 mInputManager = Objects.requireNonNull(mContext.getSystemService(InputManager.class)); in systemRunning()
69 mInputManager.registerInputDeviceListener(mInputDeviceListener, mHandler); in systemRunning()
70 for (int deviceId : mInputManager.getInputDeviceIds()) { in systemRunning()
93 final var inputDevice = mInputManager.getInputDevice(deviceId); in startMonitoring()
DKeyboardLedController.java57 private InputManager mInputManager; field in KeyboardLedController
163 mInputManager = Objects.requireNonNull(mContext.getSystemService(InputManager.class)); in systemRunning()
165 mInputManager.registerInputDeviceListener(this, mHandler); in systemRunning()
167 mInputManager.getInputDeviceIds()); in systemRunning()
196 InputDevice inputDevice = mInputManager.getInputDevice(deviceId); in onInputDeviceChanged()
/frameworks/base/tests/Input/src/android/hardware/input/
DInputDeviceSensorManagerTest.java73 private InputManager mInputManager; field in InputDeviceSensorManagerTest
81 mInputManager = new InputManager(context); in setUp()
82 when(context.getSystemService(eq(Context.INPUT_SERVICE))).thenReturn(mInputManager); in setUp()
151 InputDevice device = mInputManager.getInputDevice(deviceId); in getSensorDevice()
161 InputDevice device = getSensorDevice(mInputManager.getInputDeviceIds()); in getInputDeviceSensors_withExpectedType()
181 InputDevice device = getSensorDevice(mInputManager.getInputDeviceIds()); in getInputDeviceSensors_withUnexpectedType()
198 InputDevice device = getSensorDevice(mInputManager.getInputDeviceIds()); in testInputDeviceSensorListener()
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()
137 InputDevice device = mInputManager.getInputDevice(DEVICE_ID); in testGetInputDeviceLights()
158 InputDevice device = mInputManager.getInputDevice(DEVICE_ID); in testControlMultipleLights()
210 InputDevice device = mInputManager.getInputDevice(DEVICE_ID); in testControlPlayerIdLight()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/accessibility/
DSystemActionsTest.java80 private InputManager mInputManager; field in SystemActionsTest
92 mContext.addMockSystemService(InputManager.class, mInputManager); in setUp()
114 }).when(mInputManager).injectInputEvent(any(), anyInt()); in handleHeadsetHook_callStateIdle_injectsKeyEvents()
150 }).when(mInputManager).injectInputEvent(any(), anyInt()); in handleMenu_injectsKeyEvents()
168 }).when(mInputManager).injectInputEvent(any(), anyInt()); in handleMediaPlayPause_injectsKeyEvents()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardInputViewController.java223 private final InputManager mInputManager; field in KeyguardInputViewController.Factory
260 mInputManager = inputManager; in Factory()
292 mUserActivityNotifier, mInputManager); in create()
300 mInputManager); in create()
308 mInputManager); in create()
DKeyguardPinBasedInputViewController.java54 private InputManager mInputManager; field in KeyguardPinBasedInputViewController
95 mInputManager = inputManager; in KeyguardPinBasedInputViewController()
149 mInputManager.registerInputDeviceListener(this, null); in onViewAttached()
253 mInputManager.unregisterInputDeviceListener(this); in onViewDetached()
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp321 inline sp<InputManagerInterface> getInputManager() const { return mInputManager; } in getInputManager()
464 sp<InputManagerInterface> mInputManager; member in android::NativeInputManager
588 mInputManager = im; in NativeInputManager()
623 mInputManager->dump(dump); in dump()
664 mInputManager->getChoreographer().setDisplayViewports(viewports); in setDisplayViewports()
665 mInputManager->getReader().requestRefreshConfiguration( in setDisplayViewports()
681 mInputManager->getDispatcher().setDisplayTopology(displayTopology); in setDisplayTopology()
682 mInputManager->getChoreographer().setDisplayTopology(displayTopology); in setDisplayTopology()
688 return mInputManager->getDispatcher().createInputChannel(name); in createInputChannel()
694 return mInputManager->getDispatcher().createInputMonitor(displayId, name, pid); in createInputMonitor()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DMouseKeysInterceptor.java88 private final InputManager mInputManager; field in MouseKeysInterceptor
220 mInputManager = inputManager; in MouseKeysInterceptor()
232 mInputManager.registerInputDeviceListener(this, mHandler); in MouseKeysInterceptor()
497 InputDevice inputDevice = mInputManager.getInputDevice(mActiveInputDeviceId); in onKeyEventInternal()
651 InputDevice inputDevice = mInputManager.getInputDevice(deviceId); in onInputDeviceChanged()
/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()
148 mService.mInputManager.removeInputChannel(mClientChannel.getToken()); in disposeChannelsLw()
DInputManagerCallback.java154 final InputDevice[] devices = mService.mInputManager.getInputDevices(); in updateLastInputConfigurationSources()
405 mService.mInputManager.setInputDispatchMode(mInputDispatchEnabled, mInputDispatchFrozen); in updateInputDispatchModeLw()
DEmbeddedWindowController.java320 mInputChannel = mWmService.mInputManager.createInputChannel(name); in openInputChannel()
326 mWmService.mInputManager.removeInputChannel(mInputChannel.getToken()); in onRemoved()
DLetterbox.java290 mClientChannel = mWmService.mInputManager.createInputChannel(name); in InputInterceptor()
330 mWmService.mInputManager.removeInputChannel(mToken); in dispose()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DCaptionWindowDecorViewModel.java94 private final InputManager mInputManager; field in CaptionWindowDecorViewModel
154 mInputManager = mContext.getSystemService(InputManager.class); in CaptionWindowDecorViewModel()
453 if (mInputManager != null) { in onTouch()
455 mInputManager.pilferPointers(v.getViewRootImpl().getInputToken()); in onTouch()
DDragResizeInputListener.java501 private final InputManager mInputManager; field in DragResizeInputListener.TaskResizeInputEventReceiver
539 mInputManager = context.getSystemService(InputManager.class); in TaskResizeInputEventReceiver()
678 mInputManager.pilferPointers(mInputChannel.getToken()); in handleMotionEvent()
791 mInputManager.setPointerIcon(PointerIcon.getSystemIcon(mContext, cursorType), in updateCursorType()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DInputDeviceDelegateTest.java75 private InputManager mInputManager; field in InputDeviceDelegateTest
85 mInputManager = new InputManager(mContextSpy); in setUp()
87 .thenReturn(mInputManager); in setUp()
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/
DTestPhoneWindowManager.java152 @Mock private InputManager mInputManager; field in TestPhoneWindowManager
353 doReturn(mInputManager).when(mContext).getSystemService(eq(InputManager.class)); in setUp()
354 doNothing().when(mInputManager).registerKeyGestureEventHandler(anyList(), any()); in setUp()
355 doNothing().when(mInputManager).unregisterKeyGestureEventHandler(any()); in setUp()
671 doReturn(true).when(mInputManager).injectInputEvent(any(KeyEvent.class), anyInt()); in overrideInjectKeyEvent()
678 verify(mInputManager, never()).injectInputEvent(intentCaptor.capture(), anyInt()); in assertBackEventInjected()
681 verify(mInputManager, times(2)).injectInputEvent(intentCaptor.capture(), anyInt()); in assertBackEventInjected()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowManagerServiceTests.java609 verify(mWm.mInputManager).setInTouchMode( in testSetInTouchMode_instrumentedProcessGetPermissionToSwitchTouchMode()
629 verify(mWm.mInputManager).setInTouchMode( in testSetInTouchMode_nonInstrumentedProcessDontGetPermissionToSwitchTouchMode()
661 verify(mWm.mInputManager, times(numberOfGlobalTouchModeDisplays)).setInTouchMode( in testSetInTouchMode_multiDisplay_globalTouchModeUpdate()
688 verify(mWm.mInputManager).setInTouchMode( in testSetInTouchMode_multiDisplay_singleDisplayTouchModeUpdate()
695 clearInvocations(mWm.mInputManager); in testSetInTouchMode_multiDisplay_singleDisplayTouchModeUpdate()
699 verify(mWm.mInputManager).setInTouchMode( in testSetInTouchMode_multiDisplay_singleDisplayTouchModeUpdate()
715 doReturn(true).when(mWm.mInputManager).setInTouchMode(anyBoolean(), anyInt(), in testSetInTouchModeOnAllDisplays()
729 verify(mWm.mInputManager, description("perDisplayFocusEnabled=" in testSetInTouchModeOnAllDisplays()
740 clearInvocations(mWm.mInputManager); in testSetInTouchModeOnAllDisplays()
1258 doReturn(devices1).when(mWm.mInputManager).getInputDevices(); in testInputDeviceNotifyConfigurationChanged()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/keyguard/
DKeyguardPinBasedInputViewControllerTest.java100 private InputManager mInputManager; field in KeyguardPinBasedInputViewControllerTest
135 mUserActivityNotifier, mInputManager) { in setup()
/frameworks/base/tests/Input/src/com/android/server/input/debug/
DTouchpadDebugViewTest.java80 InputManager mInputManager; field in TouchpadDebugViewTest
89 mTestableContext.addMockSystemService(InputManager.class, mInputManager); in setUp()
102 when(mInputManager.getInputDevice(TOUCHPAD_DEVICE_ID)).thenReturn(inputDevice); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/
DEdgeBackGestureHandler.java215 private final InputManager mInputManager; field in EdgeBackGestureHandler
425 InputDevice inputDevice = mInputManager.getInputDevice(deviceId);
483 mInputManager = inputManager; in EdgeBackGestureHandler()
629 mInputManager.registerInputDeviceListener(mInputDeviceListener, mBgHandler); in onNavBarAttached()
630 int[] inputDevices = mInputManager.getInputDeviceIds(); in onNavBarAttached()
645 mInputManager.unregisterInputDeviceListener(mInputDeviceListener); in onNavBarDetached()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/back/
DBackAnimationControllerTest.java132 private InputManager mInputManager; field in BackAnimationControllerTest
156 mContext.addMockSystemService(InputManager.class, mInputManager); in setUp()
355 verify(mInputManager, times(2)) in gestureQueued_WhenPreviousTransitionHasNotYetEnded()
395 verify(mInputManager, times(2)) in queuedFinishedGesture_RunsAfterPreviousTransitionEnded()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/
DUdfpsControllerTest.java222 private InputManager mInputManager; field in UdfpsControllerTest
324 mInputManager, in initUdfpsController()

12