Home
last modified time | relevance | path

Searched refs:inputManager (Results 1 – 25 of 31) sorted by relevance

12

/aosp14/frameworks/base/core/tests/coretests/src/android/hardware/input/
H A DInputDeviceBatteryListenerTest.kt62 private lateinit var inputManager: InputManager
75 inputManager = InputManager(context)
77 .thenReturn(inputManager)
139 inputManager.addInputDeviceBatteryListener(1 /*deviceId*/, executor) {
175 inputManager.addInputDeviceBatteryListener(1 /*deviceId*/, executor, callback1)
177 inputManager.addInputDeviceBatteryListener(2 /*deviceId*/, executor, callback2)
179 inputManager.addInputDeviceBatteryListener(3 /*deviceId*/, executor, callback1)
202 inputManager.removeInputDeviceBatteryListener(1 /*deviceId*/, callback1)
204 inputManager.removeInputDeviceBatteryListener(2 /*deviceId*/, callback2)
215 inputManager.removeInputDeviceBatteryListener(3 /*deviceId*/, callback1)
[all …]
H A DKeyboardBacklightListenerTest.kt60 private lateinit var inputManager: InputManager
72 inputManager = InputManager(context)
74 .thenReturn(inputManager)
122 inputManager.registerKeyboardBacklightListener(executor) {
151 inputManager.registerKeyboardBacklightListener(executor, callback1)
152 inputManager.registerKeyboardBacklightListener(executor, callback2)
163 inputManager.unregisterKeyboardBacklightListener(callback2)
170 inputManager.unregisterKeyboardBacklightListener(callback1)
H A DInputManagerTest.kt62 private lateinit var inputManager: InputManager
71 inputManager = InputManager(context)
72 `when`(context.getSystemService(eq(Context.INPUT_SERVICE))).thenReturn(inputManager)
115 val usiVersion = inputManager.getHostUsiVersion(createDisplay(42))
127 val usiVersion = inputManager.getHostUsiVersion(createDisplay(42))
/aosp14/frameworks/base/services/core/java/com/android/server/input/
H A DKeyRemapper.java60 InputManager inputManager = Objects.requireNonNull( in systemRunning() local
62 inputManager.registerInputDeviceListener(this, mHandler); in systemRunning()
65 inputManager.getInputDeviceIds()); in systemRunning()
95 InputManager inputManager = Objects.requireNonNull( in addKeyRemapping() local
97 for (int deviceId : inputManager.getInputDeviceIds()) { in addKeyRemapping()
98 InputDevice inputDevice = inputManager.getInputDevice(deviceId); in addKeyRemapping()
141 InputManager inputManager = Objects.requireNonNull( in onInputDeviceAdded() local
143 InputDevice inputDevice = inputManager.getInputDevice(deviceId); in onInputDeviceAdded()
H A DKeyboardBacklightController.java146 InputManager inputManager = Objects.requireNonNull( in systemRunning() local
148 inputManager.registerInputDeviceListener(this, mHandler); in systemRunning()
151 inputManager.getInputDeviceIds()); in systemRunning()
398 InputManager inputManager = mContext.getSystemService(InputManager.class); in getInputDevice() local
399 return inputManager != null ? inputManager.getInputDevice(deviceId) : null; in getInputDevice()
H A DKeyboardLayoutManager.java160 InputManager inputManager = Objects.requireNonNull( in systemRunning() local
162 inputManager.registerInputDeviceListener(this, mHandler); in systemRunning()
165 inputManager.getInputDeviceIds()); in systemRunning()
1314 InputManager inputManager = mContext.getSystemService(InputManager.class); in getInputDevice() local
1315 return inputManager != null ? inputManager.getInputDevice(deviceId) : null; in getInputDevice()
1320 InputManager inputManager = mContext.getSystemService(InputManager.class); in getInputDevice() local
1321 return inputManager != null ? inputManager.getInputDeviceByDescriptor( in getInputDevice()
H A DBatteryController.java121 final InputManager inputManager = in systemRunning() local
123 inputManager.registerInputDeviceListener(mInputDeviceListener, mHandler); in systemRunning()
124 for (int deviceId : inputManager.getInputDeviceIds()) { in systemRunning()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyboard/data/repository/
H A DKeyboardRepositoryTest.kt62 @Mock private lateinit var inputManager: InputManager
71 whenever(inputManager.inputDeviceIds).thenReturn(intArrayOf())
72 whenever(inputManager.getInputDevice(any())).then { invocation ->
78 underTest = KeyboardRepositoryImpl(testScope.backgroundScope, dispatcher, inputManager)
91 whenever(inputManager.inputDeviceIds).thenReturn(intArrayOf(PHYSICAL_FULL_KEYBOARD_ID))
191 verify(inputManager)
213 verify(inputManager)
229 verify(inputManager)
244 whenever(inputManager.inputDeviceIds)
275 verify(inputManager)
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/stylus/
H A DStylusManagerTest.kt90 inputManager,
127 clearInvocations(inputManager)
140 inputManager,
160 inputManager,
186 inputManager,
217 verify(inputManager, times(1))
227 verify(inputManager, never())
275 inputManager,
348 inputManager,
389 verify(inputManager, times(1))
[all …]
H A DStylusUsiPowerStartableTest.kt42 @Mock lateinit var inputManager: InputManager
58 inputManager,
65 whenever(inputManager.getInputDevice(EXTERNAL_DEVICE_ID)).thenReturn(externalDevice)
66 whenever(inputManager.getInputDevice(STYLUS_DEVICE_ID)).thenReturn(stylusDevice)
67 whenever(inputManager.inputDeviceIds)
80 whenever(inputManager.inputDeviceIds).thenReturn(intArrayOf(EXTERNAL_DEVICE_ID))
H A DStylusUsiPowerUiTest.kt63 @Mock lateinit var inputManager: InputManager
92 whenever(inputManager.inputDeviceIds).thenReturn(intArrayOf())
93 whenever(inputManager.getInputDevice(0)).thenReturn(btStylusDevice)
98 StylusUsiPowerUI(contextSpy, notificationManager, inputManager, handler, uiEventLogger)
210 whenever(inputManager.inputDeviceIds).thenReturn(intArrayOf(0))
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/data/repository/
H A DKeyboardRepository.kt72 private val inputManager: InputManager,
89 var connectedDevices = inputManager.inputDeviceIds.toSet()
105 inputManager.registerInputDeviceListener(listener, /* handler= */ null)
106 awaitClose { inputManager.unregisterInputDeviceListener(listener) }
140 inputManager.registerKeyboardBacklightListener(Executor(Runnable::run), listener)
141 awaitClose { inputManager.unregisterKeyboardBacklightListener(listener) }
145 val device = inputManager.getInputDevice(deviceId) ?: return null
159 val device = inputManager.getInputDevice(deviceId) ?: return false
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/stylus/
H A DStylusUsiPowerStartable.kt37 private val inputManager: InputManager,
47 val device = inputManager.getInputDevice(deviceId) ?: return
73 return inputManager.inputDeviceIds
75 .mapNotNull { inputManager.getInputDevice(it) }
H A DStylusManager.kt53 private val inputManager: InputManager,
88 inputManager.hasInputDevice {
93 inputManager.registerInputDeviceListener(this, handler)
110 val device: InputDevice = inputManager.getInputDevice(deviceId) ?: return
135 val device: InputDevice = inputManager.getInputDevice(deviceId) ?: return
328 inputManager.addInputDeviceBatteryListener(deviceId, executor, this)
338 inputManager.removeInputDeviceBatteryListener(deviceId, this)
345 for (deviceId: Int in inputManager.inputDeviceIds) {
346 val device: InputDevice = inputManager.getInputDevice(deviceId) ?: continue
H A DStylusUsiPowerUI.kt59 private val inputManager: InputManager,
178 return inputManager.hasInputDevice { it.isAnyStylusSource && it.bluetoothAddress != null }
/aosp14/frameworks/base/tests/Input/src/com/android/test/input/
H A DUnresponsiveGestureMonitorActivity.kt48 val inputManager = getSystemService(InputManager::class.java) regex
49 mInputMonitor = inputManager.monitorGestureInput(MONITOR_NAME, displayId)
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/input/
H A DKeyRemapperTests.kt107 val inputManager = InputManager(context) regex
109 .thenReturn(inputManager)
H A DKeyboardLayoutManagerTests.kt153 val inputManager = InputManager(context) regex
155 .thenReturn(inputManager)
/aosp14/frameworks/base/services/core/java/com/android/server/policy/
H A DModifierShortcutManager.java348 final InputManager inputManager = mContext.getSystemService(InputManager.class); in handleKeyboardLogging() local
349 final InputDevice inputDevice = inputManager != null in handleKeyboardLogging()
350 ? inputManager.getInputDevice(event.getDeviceId()) : null; in handleKeyboardLogging()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DKeyboardShortcuts.java367 final InputManager inputManager = mContext.getSystemService(InputManager.class); in retrieveKeyCharacterMap() local
368 mBackupKeyCharacterMap = inputManager.getInputDevice(-1).getKeyCharacterMap(); in retrieveKeyCharacterMap()
370 final InputDevice inputDevice = inputManager.getInputDevice(deviceId); in retrieveKeyCharacterMap()
376 final int[] deviceIds = inputManager.getInputDeviceIds(); in retrieveKeyCharacterMap()
378 final InputDevice inputDevice = inputManager.getInputDevice(deviceIds[i]); in retrieveKeyCharacterMap()
H A DKeyboardShortcutListSearch.java396 final InputManagerGlobal inputManager = InputManagerGlobal.getInstance(); in retrieveKeyCharacterMap() local
397 mBackupKeyCharacterMap = inputManager.getInputDevice(-1).getKeyCharacterMap(); in retrieveKeyCharacterMap()
399 final InputDevice inputDevice = inputManager.getInputDevice(deviceId); in retrieveKeyCharacterMap()
405 final int[] deviceIds = inputManager.getInputDeviceIds(); in retrieveKeyCharacterMap()
407 final InputDevice inputDevice = inputManager.getInputDevice(id); in retrieveKeyCharacterMap()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
H A DDesktopModeWindowDecorViewModel.java831 final InputManager inputManager = mContext.getSystemService(InputManager.class); in createInputChannel() local
833 mInputMonitorFactory.create(inputManager, mContext); in createInputChannel()
924 InputMonitor create(InputManager inputManager, Context context) { in create() argument
925 return inputManager.monitorGestureInput("caption-touch", context.getDisplayId()); in create()
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DWiredAccessoryManager.java93 public WiredAccessoryManager(Context context, InputManagerService inputManager) { in WiredAccessoryManager() argument
98 mInputManager = inputManager; in WiredAccessoryManager()
/aosp14/frameworks/base/services/java/com/android/server/
H A DSystemServer.java1456 InputManagerService inputManager = null; in startOtherServices() local
1608 inputManager = new InputManagerService(context); in startOtherServices()
1624 wm = WindowManagerService.main(context, inputManager, !mFirstBoot, in startOtherServices()
1628 ServiceManager.addService(Context.INPUT_SERVICE, inputManager, in startOtherServices()
1664 inputManager.setWindowManagerCallbacks(wm.getInputManagerCallback()); in startOtherServices()
1665 inputManager.start(); in startOtherServices()
2251 inputManager.setWiredAccessoryCallbacks( in startOtherServices()
2252 new WiredAccessoryManager(context, inputManager)); in startOtherServices()
2892 final InputManagerService inputManagerF = inputManager; in startOtherServices()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/
H A DEdgeBackGestureHandler.java404 InputManager inputManager, in EdgeBackGestureHandler() argument
426 mInputManager = inputManager; in EdgeBackGestureHandler()
1330 InputManager inputManager, in Factory() argument
1351 mInputManager = inputManager; in Factory()

12