/frameworks/base/tests/Input/src/android/hardware/input/ |
D | StickyModifierStateListenerTest.kt | 67 private lateinit var inputManager: InputManager in <lambda>() variable in android.hardware.input.StickyModifierStateListenerTest 77 inputManager = InputManager(context) in <lambda>() 79 .thenReturn(inputManager) in <lambda>() 121 inputManager.registerStickyModifierStateListener(executor) { in <lambda>() 134 inputManager.registerStickyModifierStateListener(executor) { in <lambda>() 166 inputManager.registerStickyModifierStateListener(executor, callback1) in <lambda>() 171 inputManager.registerStickyModifierStateListener(executor, callback2) in <lambda>() 181 inputManager.registerStickyModifierStateListener(executor, callback1) in <lambda>() 182 inputManager.registerStickyModifierStateListener(executor, callback2) in <lambda>() 185 inputManager.unregisterStickyModifierStateListener(callback1) in <lambda>() [all …]
|
D | InputDeviceBatteryListenerTest.kt | 62 private lateinit var inputManager: InputManager in <lambda>() variable in android.hardware.input.InputDeviceBatteryListenerTest 76 inputManager = InputManager(context) in <lambda>() 78 .thenReturn(inputManager) in <lambda>() 142 inputManager.addInputDeviceBatteryListener(1 /*deviceId*/, executor) { in <lambda>() 178 inputManager.addInputDeviceBatteryListener(1 /*deviceId*/, executor, callback1) in <lambda>() 180 inputManager.addInputDeviceBatteryListener(2 /*deviceId*/, executor, callback2) in <lambda>() 182 inputManager.addInputDeviceBatteryListener(3 /*deviceId*/, executor, callback1) in <lambda>() 184 inputManager.addInputDeviceBatteryListener(3 /*deviceId*/, executor, callback2) in <lambda>() 205 inputManager.removeInputDeviceBatteryListener(1 /*deviceId*/, callback1) in <lambda>() 207 inputManager.removeInputDeviceBatteryListener(2 /*deviceId*/, callback2) in <lambda>() [all …]
|
D | KeyboardBacklightListenerTest.kt | 60 private lateinit var inputManager: InputManager in <lambda>() variable in android.hardware.input.KeyboardBacklightListenerTest 73 inputManager = InputManager(context) in <lambda>() 75 .thenReturn(inputManager) in <lambda>() 125 inputManager.registerKeyboardBacklightListener(executor) { in <lambda>() 154 inputManager.registerKeyboardBacklightListener(executor, callback1) in <lambda>() 155 inputManager.registerKeyboardBacklightListener(executor, callback2) in <lambda>() 166 inputManager.unregisterKeyboardBacklightListener(callback2) in <lambda>() 173 inputManager.unregisterKeyboardBacklightListener(callback1) in <lambda>()
|
D | InputManagerTest.kt | 62 private lateinit var inputManager: InputManager variable in android.hardware.input.InputManagerTest 72 inputManager = InputManager(context) in setUp() 73 `when`(context.getSystemService(eq(Context.INPUT_SERVICE))).thenReturn(inputManager) in setUp() 118 val usiVersion = inputManager.getHostUsiVersion(createDisplay(42)) in testUsiVersionDisplayAssociation() 130 val usiVersion = inputManager.getHostUsiVersion(createDisplay(42)) in testUsiVersionFallBackToDisplayConfig()
|
D | KeyboardLayoutPreviewTests.kt | 54 val inputManager = context.getSystemService(InputManager::class.java)!! in createDrawable() constant 55 return inputManager.getKeyboardLayoutPreview(null, WIDTH, HEIGHT) in createDrawable()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | KeyRemapper.java | 60 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()
|
D | KeyboardBacklightController.java | 146 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()
|
D | KeyboardLayoutManager.java | 163 InputManager inputManager = Objects.requireNonNull( in systemRunning() local 165 inputManager.registerInputDeviceListener(this, mHandler); in systemRunning() 168 inputManager.getInputDeviceIds()); in systemRunning() 1039 InputManager inputManager = mContext.getSystemService(InputManager.class); in getInputDevice() local 1040 return inputManager != null ? inputManager.getInputDevice(deviceId) : null; in getInputDevice() 1045 InputManager inputManager = mContext.getSystemService(InputManager.class); in getInputDevice() local 1046 return inputManager != null ? inputManager.getInputDeviceByDescriptor( in getInputDevice()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyboard/data/repository/ |
D | KeyboardRepositoryTest.kt | 62 @Mock private lateinit var inputManager: InputManager in <lambda>() variable in com.android.systemui.keyboard.data.repository.KeyboardRepositoryTest 71 whenever(inputManager.inputDeviceIds).thenReturn(intArrayOf()) in <lambda>() 72 whenever(inputManager.getInputDevice(any())).then { invocation -> in <lambda>() 78 underTest = KeyboardRepositoryImpl(testScope.backgroundScope, dispatcher, inputManager) in <lambda>() 91 whenever(inputManager.inputDeviceIds).thenReturn(intArrayOf(PHYSICAL_FULL_KEYBOARD_ID)) in <lambda>() 132 verify(inputManager).registerInputDeviceListener(deviceListenerCaptor.capture(), nullable()) in <lambda>() 191 verify(inputManager) in <lambda>() 213 verify(inputManager) in <lambda>() 229 verify(inputManager) in <lambda>() 244 whenever(inputManager.inputDeviceIds) in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/data/repository/ |
D | KeyboardRepository.kt | 76 private val inputManager: InputManager, constant in com.android.systemui.keyboard.data.repository.KeyboardRepositoryImpl 93 var connectedDevices = inputManager.inputDeviceIds.toSet() in <lambda>() 109 inputManager.registerInputDeviceListener(listener, /* handler= */ null) in <lambda>() 110 awaitClose { inputManager.unregisterInputDeviceListener(listener) } in <lambda>() 144 inputManager.registerKeyboardBacklightListener(Executor(Runnable::run), listener) in <lambda>() 145 awaitClose { inputManager.unregisterKeyboardBacklightListener(listener) } in <lambda>() 149 val device = inputManager.getInputDevice(deviceId) ?: return null in deviceIdToKeyboard() 163 val device = inputManager.getInputDevice(deviceId) ?: return false in isPhysicalFullKeyboard()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/stylus/ |
D | StylusManagerTest.kt | 56 @Mock lateinit var inputManager: InputManager in <lambda>() variable in com.android.systemui.stylus.StylusManagerTest 90 inputManager, in <lambda>() 113 whenever(inputManager.getInputDevice(OTHER_DEVICE_ID)).thenReturn(otherDevice) in <lambda>() 114 whenever(inputManager.getInputDevice(STYLUS_DEVICE_ID)).thenReturn(stylusDevice) in <lambda>() 115 whenever(inputManager.getInputDevice(BT_STYLUS_DEVICE_ID)).thenReturn(btStylusDevice) in <lambda>() 116 whenever(inputManager.inputDeviceIds).thenReturn(intArrayOf(STYLUS_DEVICE_ID)) in <lambda>() 127 clearInvocations(inputManager) in <lambda>() 140 inputManager, in <lambda>() 150 verify(inputManager, times(1)).registerInputDeviceListener(any(), any()) in <lambda>() 155 whenever(inputManager.inputDeviceIds).thenReturn(intArrayOf(BT_STYLUS_DEVICE_ID)) in <lambda>() [all …]
|
D | StylusUsiPowerStartableTest.kt | 42 @Mock lateinit var inputManager: InputManager variable in com.android.systemui.stylus.StylusUsiPowerStartableTest 58 inputManager, in setUp() 65 whenever(inputManager.getInputDevice(EXTERNAL_DEVICE_ID)).thenReturn(externalDevice) in setUp() 66 whenever(inputManager.getInputDevice(STYLUS_DEVICE_ID)).thenReturn(stylusDevice) in setUp() 67 whenever(inputManager.inputDeviceIds) in setUp() 80 whenever(inputManager.inputDeviceIds).thenReturn(intArrayOf(EXTERNAL_DEVICE_ID)) in start_hostDeviceDoesNotSupportStylus_doesNotRegister()
|
D | StylusUsiPowerUiTest.kt | 63 @Mock lateinit var inputManager: InputManager variable in com.android.systemui.stylus.StylusUsiPowerUiTest 92 whenever(inputManager.inputDeviceIds).thenReturn(intArrayOf()) in setUp() 93 whenever(inputManager.getInputDevice(0)).thenReturn(btStylusDevice) in setUp() 98 StylusUsiPowerUI(contextSpy, notificationManager, inputManager, handler, uiEventLogger) in setUp() 210 whenever(inputManager.inputDeviceIds).thenReturn(intArrayOf(0)) in refresh_hasConnectedBluetoothStylus_existingNotification_doesNothing()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/stylus/ |
D | StylusUsiPowerStartable.kt | 37 private val inputManager: InputManager, constant in com.android.systemui.stylus.StylusUsiPowerStartable 47 val device = inputManager.getInputDevice(deviceId) ?: return in onStylusAdded() 73 return inputManager.inputDeviceIds in hostDeviceSupportsStylusInput() 75 .mapNotNull { inputManager.getInputDevice(it) } in hostDeviceSupportsStylusInput()
|
D | StylusManager.kt | 53 private val inputManager: InputManager, in <lambda>() constant in com.android.systemui.stylus.StylusManager 88 inputManager.hasInputDevice { in <lambda>() 93 inputManager.registerInputDeviceListener(this, handler) in <lambda>() 110 val device: InputDevice = inputManager.getInputDevice(deviceId) ?: return in <lambda>() 135 val device: InputDevice = inputManager.getInputDevice(deviceId) ?: return in <lambda>() 328 inputManager.addInputDeviceBatteryListener(deviceId, executor, this) in <lambda>() 338 inputManager.removeInputDeviceBatteryListener(deviceId, this) in <lambda>() 345 for (deviceId: Int in inputManager.inputDeviceIds) { in <lambda>() 346 val device: InputDevice = inputManager.getInputDevice(deviceId) ?: continue in <lambda>()
|
D | StylusUsiPowerUI.kt | 59 private val inputManager: InputManager, constant in com.android.systemui.stylus.StylusUsiPowerUI 179 return inputManager.hasInputDevice { it.isAnyStylusSource && it.bluetoothAddress != null } in hasConnectedBluetoothStylus()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyboard/stickykeys/ui/viewmodel/ |
D | StickyKeysIndicatorViewModelTest.kt | 63 private val inputManager = mock<InputManager>() constant in com.android.systemui.keyboard.stickykeys.ui.viewmodel.StickyKeysIndicatorViewModelTest 78 inputManager, in setup() 100 verifyZeroInteractions(inputManager) in doesntListenToStickyKeysOnlyWhenKeyboardIsConnected() 113 verify(inputManager) in startsListeningToStickyKeysOnlyWhenKeyboardIsConnectedAndSettingIsOn() 137 verify(inputManager).unregisterStickyModifierStateListener(any()) in stopsListeningToStickyKeysWhenStickyKeySettingsIsTurnedOff() 151 verify(inputManager).unregisterStickyModifierStateListener(any()) in stopsListeningToStickyKeysWhenKeyboardDisconnects() 241 verify(inputManager).registerStickyModifierStateListener(any(), captor.capture()) in setStickyKeys()
|
/frameworks/base/tests/Input/src/com/android/test/input/ |
D | UnresponsiveGestureMonitorActivity.kt | 48 val inputManager = checkNotNull(getSystemService(InputManager::class.java)) in onCreate() constant 49 mInputMonitor = inputManager.monitorGestureInput(MONITOR_NAME, displayId) in onCreate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/stickykeys/data/repository/ |
D | StickyKeysRepository.kt | 53 private val inputManager: InputManager, constant in com.android.systemui.keyboard.stickykeys.data.repository.StickyKeysRepositoryImpl 65 inputManager.registerStickyModifierStateListener(Runnable::run, listener) in <lambda>() 66 awaitClose { inputManager.unregisterStickyModifierStateListener(listener) } in <lambda>()
|
/frameworks/base/tests/Input/src/com/android/server/input/ |
D | KeyRemapperTests.kt | 108 val inputManager = InputManager(context) in createKeyboard() constant 110 .thenReturn(inputManager) in createKeyboard()
|
D | InputManagerServiceTests.kt | 118 val inputManager = InputManager(context) in setup() constant 119 whenever(context.getSystemService(InputManager::class.java)).thenReturn(inputManager) in setup() 120 whenever(context.getSystemService(Context.INPUT_SERVICE)).thenReturn(inputManager) in setup()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | ModifierShortcutManager.java | 420 final InputManager inputManager = mContext.getSystemService(InputManager.class); in handleKeyboardLogging() local 421 final InputDevice inputDevice = inputManager != null in handleKeyboardLogging() 422 ? inputManager.getInputDevice(event.getDeviceId()) : null; in handleKeyboardLogging()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/ |
D | DesktopModeWindowDecorViewModelTests.kt | 308 val inputManager = mock(InputManager::class.java) in testBackEventHasRightDisplayId() constant 309 mContext.addMockSystemService(InputManager::class.java, inputManager) in testBackEventHasRightDisplayId() 318 verify(inputManager, times(2)).injectInputEvent(eventCaptor.capture(), anyInt()) in testBackEventHasRightDisplayId()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | KeyboardShortcuts.java | 357 final InputManager inputManager = mContext.getSystemService(InputManager.class); in retrieveKeyCharacterMap() local 358 mBackupKeyCharacterMap = inputManager.getInputDevice(-1).getKeyCharacterMap(); in retrieveKeyCharacterMap() 360 final InputDevice inputDevice = inputManager.getInputDevice(deviceId); in retrieveKeyCharacterMap() 366 final int[] deviceIds = inputManager.getInputDeviceIds(); in retrieveKeyCharacterMap() 368 final InputDevice inputDevice = inputManager.getInputDevice(deviceIds[i]); in retrieveKeyCharacterMap()
|
/frameworks/base/services/core/java/com/android/server/ |
D | WiredAccessoryManager.java | 93 public WiredAccessoryManager(Context context, InputManagerService inputManager) { in WiredAccessoryManager() argument 98 mInputManager = inputManager; in WiredAccessoryManager()
|