Home
last modified time | relevance | path

Searched refs:sourceMask (Results 1 – 6 of 6) sorted by relevance

/frameworks/native/services/inputflinger/
DInputReader.h352 virtual int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask,
354 virtual int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask,
356 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask,
360 virtual bool hasKeys(int32_t deviceId, uint32_t sourceMask,
426 virtual int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask,
428 virtual int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask,
430 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask,
433 virtual bool hasKeys(int32_t deviceId, uint32_t sourceMask,
518 typedef int32_t (InputDevice::*GetStateFunc)(uint32_t sourceMask, int32_t code);
519 int32_t getStateLocked(int32_t deviceId, uint32_t sourceMask, int32_t code,
[all …]
DInputReader.cpp153 static inline bool sourcesMatchMask(uint32_t sources, uint32_t sourceMask) { in sourcesMatchMask() argument
154 return (sources & sourceMask & ~ AINPUT_SOURCE_CLASS_MASK) != 0; in sourcesMatchMask()
591 int32_t InputReader::getKeyCodeState(int32_t deviceId, uint32_t sourceMask, in getKeyCodeState() argument
595 return getStateLocked(deviceId, sourceMask, keyCode, &InputDevice::getKeyCodeState); in getKeyCodeState()
598 int32_t InputReader::getScanCodeState(int32_t deviceId, uint32_t sourceMask, in getScanCodeState() argument
602 return getStateLocked(deviceId, sourceMask, scanCode, &InputDevice::getScanCodeState); in getScanCodeState()
605 int32_t InputReader::getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
608 return getStateLocked(deviceId, sourceMask, switchCode, &InputDevice::getSwitchState); in getSwitchState()
611 int32_t InputReader::getStateLocked(int32_t deviceId, uint32_t sourceMask, int32_t code, in getStateLocked() argument
618 if (! device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in getStateLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java166 int deviceId, int sourceMask, int scanCode); in nativeGetScanCodeState() argument
168 int deviceId, int sourceMask, int keyCode); in nativeGetKeyCodeState() argument
170 int deviceId, int sourceMask, int sw); in nativeGetSwitchState() argument
172 int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists); in nativeHasKeys() argument
387 public int getKeyCodeState(int deviceId, int sourceMask, int keyCode) { in getKeyCodeState() argument
388 return nativeGetKeyCodeState(mPtr, deviceId, sourceMask, keyCode); in getKeyCodeState()
400 public int getScanCodeState(int deviceId, int sourceMask, int scanCode) { in getScanCodeState() argument
401 return nativeGetScanCodeState(mPtr, deviceId, sourceMask, scanCode); in getScanCodeState()
413 public int getSwitchState(int deviceId, int sourceMask, int switchCode) { in getSwitchState() argument
414 return nativeGetSwitchState(mPtr, deviceId, sourceMask, switchCode); in getSwitchState()
[all …]
/frameworks/base/core/java/android/hardware/input/
DIInputManager.aidl34 boolean hasKeys(int deviceId, int sourceMask, in int[] keyCodes, out boolean[] keyExists); in hasKeys() argument
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp1056 jlong ptr, jint deviceId, jint sourceMask, jint scanCode) { in nativeGetScanCodeState() argument
1060 deviceId, uint32_t(sourceMask), scanCode); in nativeGetScanCodeState()
1064 jlong ptr, jint deviceId, jint sourceMask, jint keyCode) { in nativeGetKeyCodeState() argument
1068 deviceId, uint32_t(sourceMask), keyCode); in nativeGetKeyCodeState()
1072 jlong ptr, jint deviceId, jint sourceMask, jint sw) { in nativeGetSwitchState() argument
1076 deviceId, uint32_t(sourceMask), sw); in nativeGetSwitchState()
1080 jlong ptr, jint deviceId, jint sourceMask, jintArray keyCodes, jbooleanArray outFlags) { in nativeHasKeys() argument
1089 deviceId, uint32_t(sourceMask), numCodes, codes, flags)) { in nativeHasKeys()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp884 virtual int32_t getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument
889 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
894 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
899 virtual bool markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, in markSupportedKeyCodes() argument