/frameworks/native/services/inputflinger/reader/mapper/ |
D | InputMapper.cpp | 55 int32_t InputMapper::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument 59 int32_t InputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument 63 int32_t InputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument 71 bool InputMapper::markSupportedKeyCodes(uint32_t sourceMask, const std::vector<int32_t>& keyCodes, in markSupportedKeyCodes() argument
|
D | InputMapper.h | 84 virtual int32_t getKeyCodeState(uint32_t sourceMask, int32_t keyCode); 85 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode); 86 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode); 89 virtual bool markSupportedKeyCodes(uint32_t sourceMask, const std::vector<int32_t>& keyCodes,
|
D | KeyboardInputMapper.h | 41 int32_t getKeyCodeState(uint32_t sourceMask, int32_t keyCode) override; 42 int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode) override; 43 bool markSupportedKeyCodes(uint32_t sourceMask, const std::vector<int32_t>& keyCodes,
|
D | SwitchInputMapper.h | 34 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode) override;
|
D | SwitchInputMapper.cpp | 71 int32_t SwitchInputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
|
D | KeyboardInputMapper.cpp | 371 int32_t KeyboardInputMapper::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument 375 int32_t KeyboardInputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument 383 bool KeyboardInputMapper::markSupportedKeyCodes(uint32_t sourceMask, in markSupportedKeyCodes() argument
|
D | CursorInputMapper.h | 67 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode) override;
|
D | TouchInputMapper.h | 179 int32_t getKeyCodeState(uint32_t sourceMask, int32_t keyCode) override; 180 int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode) override; 181 bool markSupportedKeyCodes(uint32_t sourceMask, const std::vector<int32_t>& keyCodes,
|
D | CursorInputMapper.cpp | 413 int32_t CursorInputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
|
D | TouchInputMapper.cpp | 3920 int32_t TouchInputMapper::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument 3934 int32_t TouchInputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument 3948 bool TouchInputMapper::markSupportedKeyCodes(uint32_t sourceMask, in markSupportedKeyCodes() argument
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | NativeInputManagerService.java | 45 int getScanCodeState(int deviceId, int sourceMask, int scanCode); in getScanCodeState() argument 47 int getKeyCodeState(int deviceId, int sourceMask, int keyCode); in getKeyCodeState() argument 49 int getSwitchState(int deviceId, int sourceMask, int sw); in getSwitchState() argument 53 boolean hasKeys(int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists); in hasKeys() argument 300 public native int getScanCodeState(int deviceId, int sourceMask, int scanCode); in getScanCodeState() argument 303 public native int getKeyCodeState(int deviceId, int sourceMask, int keyCode); in getKeyCodeState() argument 306 public native int getSwitchState(int deviceId, int sourceMask, int sw); in getSwitchState() argument 312 public native boolean hasKeys(int deviceId, int sourceMask, int[] keyCodes, in hasKeys() argument
|
D | InputManagerService.java | 609 public int getKeyCodeState(int deviceId, int sourceMask, int keyCode) { in getKeyCodeState() argument 610 return mNative.getKeyCodeState(deviceId, sourceMask, keyCode); in getKeyCodeState() 622 public int getScanCodeState(int deviceId, int sourceMask, int scanCode) { in getScanCodeState() argument 623 return mNative.getScanCodeState(deviceId, sourceMask, scanCode); in getScanCodeState() 635 public int getSwitchState(int deviceId, int sourceMask, int switchCode) { in getSwitchState() argument 636 return mNative.getSwitchState(deviceId, sourceMask, switchCode); in getSwitchState() 652 public boolean hasKeys(int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists) { in hasKeys() argument 659 return mNative.hasKeys(deviceId, sourceMask, keyCodes, keyExists); in hasKeys()
|
/frameworks/native/services/inputflinger/tests/fuzzers/ |
D | InputReaderFuzzer.cpp | 64 int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument 65 return reader->getScanCodeState(deviceId, sourceMask, scanCode); in getScanCodeState() 68 int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument 69 return reader->getKeyCodeState(deviceId, sourceMask, keyCode); in getKeyCodeState() 72 int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t sw) { in getSwitchState() argument 73 return reader->getSwitchState(deviceId, sourceMask, sw); in getSwitchState() 78 bool hasKeys(int32_t deviceId, uint32_t sourceMask, const std::vector<int32_t>& keyCodes, in hasKeys() argument 80 return reader->hasKeys(deviceId, sourceMask, keyCodes, outFlags); in hasKeys()
|
/frameworks/native/services/inputflinger/reader/ |
D | InputReader.cpp | 547 int32_t InputReader::getKeyCodeState(int32_t deviceId, uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument 550 return getStateLocked(deviceId, sourceMask, keyCode, &InputDevice::getKeyCodeState); in getKeyCodeState() 553 int32_t InputReader::getScanCodeState(int32_t deviceId, uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument 556 return getStateLocked(deviceId, sourceMask, scanCode, &InputDevice::getScanCodeState); in getScanCodeState() 559 int32_t InputReader::getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument 562 return getStateLocked(deviceId, sourceMask, switchCode, &InputDevice::getSwitchState); in getSwitchState() 565 int32_t InputReader::getStateLocked(int32_t deviceId, uint32_t sourceMask, int32_t code, in getStateLocked() argument 570 if (device && !device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in getStateLocked() 571 result = (device->*getStateFunc)(sourceMask, code); in getStateLocked() 576 if (!device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in getStateLocked() [all …]
|
D | InputDevice.cpp | 465 int32_t InputDevice::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument 466 return getState(sourceMask, keyCode, &InputMapper::getKeyCodeState); in getKeyCodeState() 469 int32_t InputDevice::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument 470 return getState(sourceMask, scanCode, &InputMapper::getScanCodeState); in getScanCodeState() 473 int32_t InputDevice::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument 474 return getState(sourceMask, switchCode, &InputMapper::getSwitchState); in getSwitchState() 477 int32_t InputDevice::getState(uint32_t sourceMask, int32_t code, GetStateFunc getStateFunc) { in getState() argument 484 if (sourcesMatchMask(mapper.getSources(), sourceMask)) { in getState() 487 int32_t currentResult = (mapper.*getStateFunc)(sourceMask, code); in getState() 573 bool InputDevice::markSupportedKeyCodes(uint32_t sourceMask, const std::vector<int32_t>& keyCodes, in markSupportedKeyCodes() argument [all …]
|
D | Macros.h | 118 static inline bool sourcesMatchMask(uint32_t sources, uint32_t sourceMask) { in sourcesMatchMask() argument 119 return (sources & sourceMask & ~AINPUT_SOURCE_CLASS_MASK) != 0; in sourcesMatchMask()
|
/frameworks/native/services/inputflinger/reader/include/ |
D | InputReader.h | 64 int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask, int32_t scanCode) override; 65 int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask, int32_t keyCode) override; 66 int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t sw) override; 74 bool hasKeys(int32_t deviceId, uint32_t sourceMask, const std::vector<int32_t>& keyCodes, 258 typedef int32_t (InputDevice::*GetStateFunc)(uint32_t sourceMask, int32_t code); 259 int32_t getStateLocked(int32_t deviceId, uint32_t sourceMask, int32_t code, 261 bool markSupportedKeyCodesLocked(int32_t deviceId, uint32_t sourceMask,
|
D | InputDevice.h | 100 int32_t getKeyCodeState(uint32_t sourceMask, int32_t keyCode); 101 int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode); 102 int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode); 104 bool markSupportedKeyCodes(uint32_t sourceMask, const std::vector<int32_t>& keyCodes, 213 typedef int32_t (InputMapper::*GetStateFunc)(uint32_t sourceMask, int32_t code); 214 int32_t getState(uint32_t sourceMask, int32_t code, GetStateFunc getStateFunc);
|
/frameworks/native/services/inputflinger/include/ |
D | InputReaderBase.h | 326 virtual int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask, int32_t scanCode) = 0; 327 virtual int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask, int32_t keyCode) = 0; 328 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t sw) = 0; 339 virtual bool hasKeys(int32_t deviceId, uint32_t sourceMask,
|
/frameworks/base/core/java/android/hardware/input/ |
D | IInputManager.aidl | 62 boolean hasKeys(int deviceId, int sourceMask, in int[] keyCodes, out boolean[] keyExists); in hasKeys() argument
|
/frameworks/base/services/core/jni/ |
D | com_android_server_input_InputManagerService.cpp | 1781 jint sourceMask, jint scanCode) { in nativeGetScanCodeState() argument 1784 return (jint)im->getInputManager()->getReader().getScanCodeState(deviceId, uint32_t(sourceMask), in nativeGetScanCodeState() 1789 jint sourceMask, jint keyCode) { in nativeGetKeyCodeState() argument 1792 return (jint)im->getInputManager()->getReader().getKeyCodeState(deviceId, uint32_t(sourceMask), in nativeGetKeyCodeState() 1796 static jint nativeGetSwitchState(JNIEnv* env, jobject nativeImplObj, jint deviceId, jint sourceMask, in nativeGetSwitchState() argument 1800 return (jint)im->getInputManager()->getReader().getSwitchState(deviceId, uint32_t(sourceMask), in nativeGetSwitchState() 1818 static jboolean nativeHasKeys(JNIEnv* env, jobject nativeImplObj, jint deviceId, jint sourceMask, in nativeHasKeys() argument 1829 if (im->getInputManager()->getReader().hasKeys(deviceId, uint32_t(sourceMask), codes, flags)) { in nativeHasKeys()
|
/frameworks/av/services/audiopolicy/managerdefault/ |
D | AudioPolicyManager.cpp | 5363 audio_channel_mask_t sourceMask = sourceDesc->config().channel_mask; in createAudioPatchInternal() local 5365 (audio_channel_mask_get_representation(sourceMask) in createAudioPatchInternal() 5366 == AUDIO_CHANNEL_REPRESENTATION_INDEX) ? sourceMask in createAudioPatchInternal() 5367 : audio_channel_mask_in_to_out(sourceMask); in createAudioPatchInternal()
|