/frameworks/native/services/inputflinger/reader/ |
D | InputDevice.cpp | 239 int32_t InputDevice::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument 240 return getState(sourceMask, keyCode, &InputMapper::getKeyCodeState); in getKeyCodeState() 243 int32_t InputDevice::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument 244 return getState(sourceMask, scanCode, &InputMapper::getScanCodeState); in getScanCodeState() 247 int32_t InputDevice::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument 248 return getState(sourceMask, switchCode, &InputMapper::getSwitchState); in getSwitchState() 251 int32_t InputDevice::getState(uint32_t sourceMask, int32_t code, GetStateFunc getStateFunc) { in getState() argument 254 if (sourcesMatchMask(mapper->getSources(), sourceMask)) { in getState() 257 int32_t currentResult = (mapper->*getStateFunc)(sourceMask, code); in getState() 268 bool InputDevice::markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, in markSupportedKeyCodes() argument [all …]
|
D | InputReader.cpp | 459 int32_t InputReader::getKeyCodeState(int32_t deviceId, uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument 462 return getStateLocked(deviceId, sourceMask, keyCode, &InputDevice::getKeyCodeState); in getKeyCodeState() 465 int32_t InputReader::getScanCodeState(int32_t deviceId, uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument 468 return getStateLocked(deviceId, sourceMask, scanCode, &InputDevice::getScanCodeState); in getScanCodeState() 471 int32_t InputReader::getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument 474 return getStateLocked(deviceId, sourceMask, switchCode, &InputDevice::getSwitchState); in getSwitchState() 477 int32_t InputReader::getStateLocked(int32_t deviceId, uint32_t sourceMask, int32_t code, in getStateLocked() argument 484 if (!device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in getStateLocked() 485 result = (device->*getStateFunc)(sourceMask, code); in getStateLocked() 492 if (!device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in getStateLocked() [all …]
|
D | Macros.h | 78 static inline bool sourcesMatchMask(uint32_t sources, uint32_t sourceMask) { in sourcesMatchMask() argument 79 return (sources & sourceMask & ~AINPUT_SOURCE_CLASS_MASK) != 0; in sourcesMatchMask()
|
/frameworks/native/services/inputflinger/reader/include/ |
D | InputReader.h | 65 virtual int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask, int32_t scanCode); 66 virtual int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask, int32_t keyCode); 67 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t sw); 71 virtual bool hasKeys(int32_t deviceId, uint32_t sourceMask, size_t numCodes, 168 typedef int32_t (InputDevice::*GetStateFunc)(uint32_t sourceMask, int32_t code); 169 int32_t getStateLocked(int32_t deviceId, uint32_t sourceMask, int32_t code, 171 bool markSupportedKeyCodesLocked(int32_t deviceId, uint32_t sourceMask, size_t numCodes,
|
D | InputDevice.h | 76 int32_t getKeyCodeState(uint32_t sourceMask, int32_t keyCode); 77 int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode); 78 int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode); 79 bool markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, const int32_t* keyCodes, 134 typedef int32_t (InputMapper::*GetStateFunc)(uint32_t sourceMask, int32_t code); 135 int32_t getState(uint32_t sourceMask, int32_t code, GetStateFunc getStateFunc);
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | InputMapper.h | 61 virtual int32_t getKeyCodeState(uint32_t sourceMask, int32_t keyCode); 62 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode); 63 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode); 64 virtual bool markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes,
|
D | InputMapper.cpp | 42 int32_t InputMapper::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument 46 int32_t InputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument 50 int32_t InputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument 54 bool InputMapper::markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, in markSupportedKeyCodes() argument
|
D | KeyboardInputMapper.h | 36 virtual int32_t getKeyCodeState(uint32_t sourceMask, int32_t keyCode); 37 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode); 38 virtual bool markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes,
|
D | SwitchInputMapper.h | 32 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
|
D | KeyboardInputMapper.cpp | 347 int32_t KeyboardInputMapper::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument 351 int32_t KeyboardInputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument 355 bool KeyboardInputMapper::markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, in markSupportedKeyCodes() argument
|
D | SwitchInputMapper.cpp | 67 int32_t SwitchInputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
|
D | CursorInputMapper.h | 66 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode);
|
D | TouchInputMapper.h | 207 virtual int32_t getKeyCodeState(uint32_t sourceMask, int32_t keyCode); 208 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode); 209 virtual bool markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes,
|
D | CursorInputMapper.cpp | 474 int32_t CursorInputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
|
D | TouchInputMapper.cpp | 3875 int32_t TouchInputMapper::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument 3889 int32_t TouchInputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument 3903 bool TouchInputMapper::markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, in markSupportedKeyCodes() argument
|
/frameworks/native/services/inputflinger/include/ |
D | InputReaderBase.h | 80 virtual int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask, 82 virtual int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask, 84 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask, 91 virtual bool hasKeys(int32_t deviceId, uint32_t sourceMask,
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | InputManagerService.java | 203 int deviceId, int sourceMask, int scanCode); in nativeGetScanCodeState() argument 205 int deviceId, int sourceMask, int keyCode); in nativeGetKeyCodeState() argument 207 int deviceId, int sourceMask, int sw); in nativeGetSwitchState() argument 209 int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists); in nativeHasKeys() argument 441 public int getKeyCodeState(int deviceId, int sourceMask, int keyCode) { in getKeyCodeState() argument 442 return nativeGetKeyCodeState(mPtr, deviceId, sourceMask, keyCode); in getKeyCodeState() 454 public int getScanCodeState(int deviceId, int sourceMask, int scanCode) { in getScanCodeState() argument 455 return nativeGetScanCodeState(mPtr, deviceId, sourceMask, scanCode); in getScanCodeState() 467 public int getSwitchState(int deviceId, int sourceMask, int switchCode) { in getSwitchState() argument 468 return nativeGetSwitchState(mPtr, deviceId, sourceMask, switchCode); in getSwitchState() [all …]
|
/frameworks/base/core/java/android/hardware/input/ |
D | IInputManager.aidl | 43 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 | 1328 jlong ptr, jint deviceId, jint sourceMask, jint scanCode) { in nativeGetScanCodeState() argument 1332 deviceId, uint32_t(sourceMask), scanCode); in nativeGetScanCodeState() 1336 jlong ptr, jint deviceId, jint sourceMask, jint keyCode) { in nativeGetKeyCodeState() argument 1340 deviceId, uint32_t(sourceMask), keyCode); in nativeGetKeyCodeState() 1344 jlong ptr, jint deviceId, jint sourceMask, jint sw) { in nativeGetSwitchState() argument 1348 deviceId, uint32_t(sourceMask), sw); in nativeGetSwitchState() 1352 jlong ptr, jint deviceId, jint sourceMask, jintArray keyCodes, jbooleanArray outFlags) { in nativeHasKeys() argument 1361 deviceId, uint32_t(sourceMask), numCodes, codes, flags)) { in nativeHasKeys()
|