/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | InputDeviceDelegate.java | 41 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/ |
D | SysfsNodeMonitor.java | 54 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()
|
D | KeyboardLedController.java | 57 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/ |
D | InputDeviceSensorManagerTest.java | 73 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()
|
D | InputDeviceLightsManagerTest.java | 78 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/ |
D | SystemActionsTest.java | 80 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/ |
D | KeyguardInputViewController.java | 223 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()
|
D | KeyguardPinBasedInputViewController.java | 54 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/ |
D | com_android_server_input_InputManagerService.cpp | 321 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/ |
D | MouseKeysInterceptor.java | 88 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/ |
D | WiredAccessoryManager.java | 89 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/ |
D | InputConsumerImpl.java | 62 mClientChannel = mService.mInputManager.createInputChannel(name); in InputConsumerImpl() 148 mService.mInputManager.removeInputChannel(mClientChannel.getToken()); in disposeChannelsLw()
|
D | InputManagerCallback.java | 154 final InputDevice[] devices = mService.mInputManager.getInputDevices(); in updateLastInputConfigurationSources() 405 mService.mInputManager.setInputDispatchMode(mInputDispatchEnabled, mInputDispatchFrozen); in updateInputDispatchModeLw()
|
D | EmbeddedWindowController.java | 320 mInputChannel = mWmService.mInputManager.createInputChannel(name); in openInputChannel() 326 mWmService.mInputManager.removeInputChannel(mInputChannel.getToken()); in onRemoved()
|
D | Letterbox.java | 290 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/ |
D | CaptionWindowDecorViewModel.java | 94 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()
|
D | DragResizeInputListener.java | 501 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/ |
D | InputDeviceDelegateTest.java | 75 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/ |
D | TestPhoneWindowManager.java | 152 @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/ |
D | WindowManagerServiceTests.java | 609 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/ |
D | KeyguardPinBasedInputViewControllerTest.java | 100 private InputManager mInputManager; field in KeyguardPinBasedInputViewControllerTest 135 mUserActivityNotifier, mInputManager) { in setup()
|
/frameworks/base/tests/Input/src/com/android/server/input/debug/ |
D | TouchpadDebugViewTest.java | 80 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/ |
D | EdgeBackGestureHandler.java | 215 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/ |
D | BackAnimationControllerTest.java | 132 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/ |
D | UdfpsControllerTest.java | 222 private InputManager mInputManager; field in UdfpsControllerTest 324 mInputManager, in initUdfpsController()
|