/frameworks/base/services/core/java/com/android/server/input/ |
D | KeyRemapper.java | 98 InputDevice inputDevice = inputManager.getInputDevice(deviceId); in addKeyRemapping() local 99 if (inputDevice != null && !inputDevice.isVirtual() && inputDevice.isFullKeyboard()) { in addKeyRemapping() 143 InputDevice inputDevice = inputManager.getInputDevice(deviceId); in onInputDeviceAdded() local 144 if (inputDevice != null && !inputDevice.isVirtual() && inputDevice.isFullKeyboard()) { in onInputDeviceAdded()
|
D | KeyboardLedController.java | 148 InputDevice inputDevice = mInputManager.getInputDevice(deviceId); in onInputDeviceChanged() local 149 if (inputDevice == null) { in onInputDeviceChanged() 152 if (getKeyboardMicMuteLight(inputDevice) != null) { in onInputDeviceChanged() 153 mKeyboardsWithMicMuteLed.put(deviceId, inputDevice); in onInputDeviceChanged() 165 InputDevice inputDevice = mKeyboardsWithMicMuteLed.valueAt(i); in dump() local 166 ipw.println(i + " " + inputDevice.getName() + ": " in dump() 167 + getKeyboardMicMuteLight(inputDevice).toString()); in dump()
|
D | KeyboardMetricsCollector.java | 380 public static void logKeyboardSystemsEventReportedAtom(@Nullable InputDevice inputDevice, in logKeyboardSystemsEventReportedAtom() argument 384 if (inputDevice == null || inputDevice.isVirtual() || !inputDevice.isFullKeyboard()) { in logKeyboardSystemsEventReportedAtom() 393 inputDevice.getVendorId(), inputDevice.getProductId(), in logKeyboardSystemsEventReportedAtom() 395 inputDevice.getDeviceBus()); in logKeyboardSystemsEventReportedAtom() 470 private KeyboardConfigurationEvent(InputDevice inputDevice, boolean isFirstConfiguration, in KeyboardConfigurationEvent() argument 472 mInputDevice = inputDevice; in KeyboardConfigurationEvent() 517 public Builder(@NonNull InputDevice inputDevice) { in Builder() argument 518 Objects.requireNonNull(inputDevice, "InputDevice provided should not be null"); in Builder() 519 mInputDevice = inputDevice; in Builder()
|
D | KeyboardLayoutManager.java | 194 final InputDevice inputDevice = getInputDevice(deviceId); in onInputDeviceChangedInternal() local 195 if (inputDevice == null || inputDevice.isVirtual() || !inputDevice.isFullKeyboard()) { in onInputDeviceChangedInternal() 198 final KeyboardIdentifier keyboardIdentifier = new KeyboardIdentifier(inputDevice); in onInputDeviceChangedInternal() 246 logKeyboardConfigurationEvent(inputDevice, imeInfoList, resultList, in onInputDeviceChangedInternal() 505 InputDevice inputDevice = getInputDevice(identifier); in getKeyboardLayoutForInputDevice() local 506 if (inputDevice == null || inputDevice.isVirtual() || !inputDevice.isFullKeyboard()) { in getKeyboardLayoutForInputDevice() 509 KeyboardIdentifier keyboardIdentifier = new KeyboardIdentifier(inputDevice); in getKeyboardLayoutForInputDevice() 526 InputDevice inputDevice = getInputDevice(identifier); in setKeyboardLayoutForInputDevice() local 527 if (inputDevice == null || inputDevice.isVirtual() || !inputDevice.isFullKeyboard()) { in setKeyboardLayoutForInputDevice() 530 KeyboardIdentifier keyboardIdentifier = new KeyboardIdentifier(inputDevice); in setKeyboardLayoutForInputDevice() [all …]
|
D | KeyboardBacklightController.java | 196 InputDevice inputDevice = getInputDevice(deviceId); in updateKeyboardBacklight() local 198 if (inputDevice == null || state == null) { in updateKeyboardBacklight() 230 maybeBackupBacklightBrightness(inputDevice, state.mLight, in updateKeyboardBacklight() 249 private void maybeBackupBacklightBrightness(InputDevice inputDevice, Light keyboardBacklight, in maybeBackupBacklightBrightness() argument 257 mDataStore.setKeyboardBacklightBrightness(inputDevice.getDescriptor(), in maybeBackupBacklightBrightness() 266 private void maybeRestoreBacklightBrightness(InputDevice inputDevice, Light keyboardBacklight) { in maybeRestoreBacklightBrightness() argument 271 KeyboardBacklightState state = mKeyboardBacklights.get(inputDevice.getId()); in maybeRestoreBacklightBrightness() 275 inputDevice.getDescriptor(), keyboardBacklight.getId()); in maybeRestoreBacklightBrightness() 379 InputDevice inputDevice = getInputDevice(deviceId); in onInputDeviceChanged() local 380 if (inputDevice == null) { in onInputDeviceChanged() [all …]
|
D | InputManagerService.java | 952 for (final InputDevice inputDevice : mInputDevices) { in getInputDevice() 953 if (inputDevice.getId() == deviceId) { in getInputDevice() 954 return inputDevice; in getInputDevice() 1059 final InputDevice inputDevice = mInputDevices[i]; in deliverInputDevicesChanged() local 1060 deviceIdAndGeneration[i * 2] = inputDevice.getId(); in deliverInputDevicesChanged() 1061 deviceIdAndGeneration[i * 2 + 1] = inputDevice.getGeneration(); in deliverInputDevicesChanged() 1063 Log.d(TAG, "device " + inputDevice.getId() + " generation " in deliverInputDevicesChanged() 1064 + inputDevice.getGeneration()); in deliverInputDevicesChanged()
|
/frameworks/base/tests/Input/src/com/android/server/input/ |
D | InputManagerServiceTests.kt | 227 private fun createKeycodeAEvent(inputDevice: InputDevice, action: Int): KeyEvent { in createKeycodeAEvent() 236 /* deviceId= */ inputDevice.id, in createKeycodeAEvent() 271 val inputDevice = createInputDevice() in addUniqueIdAssociationByDescriptor_verifyAssociations() constant 275 inputDevice.descriptor, in addUniqueIdAssociationByDescriptor_verifyAssociations() 280 val downEvent = createKeycodeAEvent(inputDevice, KeyEvent.ACTION_DOWN) in addUniqueIdAssociationByDescriptor_verifyAssociations() 281 val upEvent = createKeycodeAEvent(inputDevice, KeyEvent.ACTION_UP) in addUniqueIdAssociationByDescriptor_verifyAssociations() 298 service.removeUniqueIdAssociationByDescriptor(inputDevice.descriptor) in addUniqueIdAssociationByDescriptor_verifyAssociations() 302 inputDevice.descriptor, in addUniqueIdAssociationByDescriptor_verifyAssociations() 333 val inputDevice = createInputDevice() in addUniqueIdAssociationByPort_verifyAssociations() constant 337 inputDevice.name, in addUniqueIdAssociationByPort_verifyAssociations() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
D | MouseClickAction.java | 46 float[] precision, int inputDevice, int buttonState) { in sendTap() argument 48 inputDevice, buttonState); in sendTap() 61 stat = sendSingleTap(uiController, coordinates, precision, inputDevice, in sendTap() 86 float[] coordinates, float[] precision, int inputDevice, int buttonState) { in sendSingleTap() argument 88 inputDevice, buttonState); in sendSingleTap()
|
/frameworks/base/core/java/android/view/ |
D | SearchEvent.java | 27 public SearchEvent(InputDevice inputDevice) { in SearchEvent() argument 28 mInputDevice = inputDevice; in SearchEvent()
|
D | KeyCharacterMap.java | 364 InputDevice inputDevice = im.getInputDevice(deviceId); in load() local 365 if (inputDevice == null) { in load() 366 inputDevice = im.getInputDevice(VIRTUAL_KEYBOARD); in load() 367 if (inputDevice == null) { in load() 372 return inputDevice.getKeyCharacterMap(); in load()
|
D | InputDevice.java | 1564 public ViewBehavior(@NonNull InputDevice inputDevice) { in ViewBehavior() argument 1565 mInputDevice = inputDevice; in ViewBehavior()
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | LatencyTracker.cpp | 88 for (auto& inputDevice : mInputDevices) { in trackListener() local 89 if (deviceId == inputDevice.getId()) { in trackListener() 90 identifier = &inputDevice.getIdentifier(); in trackListener()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyboard/data/repository/ |
D | KeyboardRepositoryTest.kt | 345 PHYSICAL_FULL_KEYBOARD_ID to inputDevice(virtual = false, fullKeyboard = true), in <lambda>() 346 VIRTUAL_FULL_KEYBOARD_ID to inputDevice(virtual = true, fullKeyboard = true), in <lambda>() 347 PHYSICAL_NOT_FULL_KEYBOARD_ID to inputDevice(virtual = false, fullKeyboard = false), in <lambda>() 349 inputDevice(virtual = false, fullKeyboard = true) in <lambda>() 352 private fun inputDevice(virtual: Boolean, fullKeyboard: Boolean): InputDevice = in <lambda>() method
|
/frameworks/base/core/java/android/hardware/input/ |
D | InputManagerGlobal.java | 203 InputDevice inputDevice = mInputDevices.valueAt(index); in getInputDevice() local 204 if (inputDevice == null) { in getInputDevice() 206 inputDevice = mIm.getInputDevice(id); in getInputDevice() 210 if (inputDevice != null) { in getInputDevice() 211 mInputDevices.setValueAt(index, inputDevice); in getInputDevice() 214 return inputDevice; in getInputDevice() 448 InputDevice inputDevice = mInputDevices.valueAt(i); in getInputDeviceByDescriptor() local 449 if (inputDevice == null) { in getInputDeviceByDescriptor() 452 inputDevice = mIm.getInputDevice(id); in getInputDeviceByDescriptor() 456 if (inputDevice == null) { in getInputDeviceByDescriptor() [all …]
|
D | InputDeviceSensorManager.java | 97 final InputDevice inputDevice = InputDevice.getDevice(deviceId); in updateInputDeviceSensorInfoLocked() local 98 if (inputDevice != null && inputDevice.hasSensor()) { in updateInputDeviceSensorInfoLocked() 445 final InputDevice inputDevice = mGlobal.getInputDevice(deviceId); in registerListenerInternal() local 446 if (inputDevice == null) { in registerListenerInternal() 451 if (!inputDevice.hasSensor()) { in registerListenerInternal()
|
D | InputDeviceVibratorManager.java | 62 InputDevice inputDevice = InputDevice.getDevice(mDeviceId); in initializeVibrators() local
|
/frameworks/base/tests/MultiDeviceInput/src/test/multideviceinput/ |
D | DrawingView.kt | 138 val inputDevice = InputDevice.getDevice(event.deviceId) in resolvePaint() constant 139 val isTouchpadDevice = inputDevice != null && inputDevice.supportsSource(SOURCE_TOUCHPAD) in resolvePaint()
|
/frameworks/av/media/libaudioclient/tests/ |
D | audiosystem_tests.cpp | 482 const AudioDeviceTypeAddr inputDevice(inDeviceA, ""); in TEST_F() local 483 const AudioDeviceTypeAddrVector inputDevices = {inputDevice}; in TEST_F() 537 EXPECT_TRUE(std::find(devices.begin(), devices.end(), inputDevice) != devices.end()); in TEST_F() 557 AudioDeviceTypeAddrVector inputDevices3 = {inputDevice, inputDevice2}; in TEST_F() 563 EXPECT_TRUE(std::find(devices.begin(), devices.end(), inputDevice) != devices.end()); in TEST_F() 572 AudioDeviceTypeAddr inputDevice(AUDIO_DEVICE_IN_BUILTIN_MIC, ""); in TEST_F() local 573 AudioDeviceTypeAddrVector inputDevices = {inputDevice}; in TEST_F() 587 AudioDeviceTypeAddr inputDevice(AUDIO_DEVICE_IN_BUILTIN_MIC, ""); in TEST_F() local 588 AudioDeviceTypeAddrVector inputDevices = {inputDevice}; in TEST_F()
|
/frameworks/av/services/mediametrics/ |
D | AudioTypes.cpp | 566 int64_t lookup<INPUT_DEVICE>(const std::string &inputDevice) in lookup() argument 571 return flagsFromMap(inputDevice, getAudioDeviceInMap()); in lookup() 575 std::string lookup<INPUT_DEVICE>(const std::string &inputDevice) in lookup() argument 577 return stringFromFlags<InputDeviceTraits>(inputDevice, sizeof("AUDIO_DEVICE_IN")); in lookup()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | KeyboardShortcuts.java | 360 final InputDevice inputDevice = inputManager.getInputDevice(deviceId); in retrieveKeyCharacterMap() local 361 if (inputDevice != null) { in retrieveKeyCharacterMap() 362 mKeyCharacterMap = inputDevice.getKeyCharacterMap(); in retrieveKeyCharacterMap() 368 final InputDevice inputDevice = inputManager.getInputDevice(deviceIds[i]); in retrieveKeyCharacterMap() local 371 if (inputDevice.getId() != -1 && inputDevice.isFullKeyboard()) { in retrieveKeyCharacterMap() 372 mKeyCharacterMap = inputDevice.getKeyCharacterMap(); in retrieveKeyCharacterMap()
|
D | KeyboardShortcutListSearch.java | 398 final InputDevice inputDevice = inputManager.getInputDevice(deviceId); in retrieveKeyCharacterMap() local 399 if (inputDevice != null) { in retrieveKeyCharacterMap() 400 mKeyCharacterMap = inputDevice.getKeyCharacterMap(); in retrieveKeyCharacterMap() 406 final InputDevice inputDevice = inputManager.getInputDevice(id); in retrieveKeyCharacterMap() local 409 if (inputDevice.getId() != -1 && inputDevice.isFullKeyboard()) { in retrieveKeyCharacterMap() 410 mKeyCharacterMap = inputDevice.getKeyCharacterMap(); in retrieveKeyCharacterMap()
|
/frameworks/base/core/jni/platform/host/ |
D | HostRuntime.cpp | 324 jclass inputDevice = FindClassOrDie(env, "android/view/InputDevice"); in init_keyboard() local 326 env->NewObjectArray(keyboardPaths.size(), inputDevice, nullptr); in init_keyboard()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | ModifierShortcutManager.java | 421 final InputDevice inputDevice = inputManager != null in handleKeyboardLogging() local 423 KeyboardMetricsCollector.logKeyboardSystemsEventReportedAtom(inputDevice, in handleKeyboardLogging()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/ |
D | EdgeBackGestureHandler.java | 398 InputDevice inputDevice = mInputManager.getInputDevice(deviceId); 399 if (inputDevice == null) { 402 return inputDevice.getSources() == (InputDevice.SOURCE_MOUSE
|
/frameworks/av/services/audiopolicy/tests/ |
D | audiopolicymanager_tests.cpp | 3243 AudioDeviceTypeAddr inputDevice = AudioDeviceTypeAddr(AUDIO_DEVICE_IN_BUILTIN_MIC, ""); member in AudioPolicyManagerDevicesRoleForCapturePresetTest 3274 const AudioDeviceTypeAddrVector inputDevices = {inputDevice}; in TEST_P() 3278 EXPECT_THAT(devices, UnorderedElementsAre(inputDevice)); in TEST_P() 3293 EXPECT_THAT(devices, UnorderedElementsAre(inputDevice, inputDevice2)); in TEST_P()
|