Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/include/
DInputReaderBase.h80 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/native/services/inputflinger/
DInputReader.h131 virtual int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask,
133 virtual int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask,
135 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask,
140 virtual bool hasKeys(int32_t deviceId, uint32_t sourceMask,
236 typedef int32_t (InputDevice::*GetStateFunc)(uint32_t sourceMask, int32_t code);
237 int32_t getStateLocked(int32_t deviceId, uint32_t sourceMask, int32_t code,
239 bool markSupportedKeyCodesLocked(int32_t deviceId, uint32_t sourceMask, size_t numCodes,
283 int32_t getKeyCodeState(uint32_t sourceMask, int32_t keyCode);
284 int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode);
285 int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
[all …]
DInputReader.cpp210 static inline bool sourcesMatchMask(uint32_t sources, uint32_t sourceMask) { in sourcesMatchMask() argument
211 return (sources & sourceMask & ~ AINPUT_SOURCE_CLASS_MASK) != 0; in sourcesMatchMask()
666 int32_t InputReader::getKeyCodeState(int32_t deviceId, uint32_t sourceMask, in getKeyCodeState() argument
670 return getStateLocked(deviceId, sourceMask, keyCode, &InputDevice::getKeyCodeState); in getKeyCodeState()
673 int32_t InputReader::getScanCodeState(int32_t deviceId, uint32_t sourceMask, in getScanCodeState() argument
677 return getStateLocked(deviceId, sourceMask, scanCode, &InputDevice::getScanCodeState); in getScanCodeState()
680 int32_t InputReader::getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
683 return getStateLocked(deviceId, sourceMask, switchCode, &InputDevice::getSwitchState); in getSwitchState()
686 int32_t InputReader::getStateLocked(int32_t deviceId, uint32_t sourceMask, int32_t code, in getStateLocked() argument
693 if (! device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in getStateLocked()
[all …]
/frameworks/base/core/java/android/hardware/input/
DIInputManager.aidl43 boolean hasKeys(int deviceId, int sourceMask, in int[] keyCodes, out boolean[] keyExists); in hasKeys() argument
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java198 int deviceId, int sourceMask, int scanCode); in nativeGetScanCodeState() argument
200 int deviceId, int sourceMask, int keyCode); in nativeGetKeyCodeState() argument
202 int deviceId, int sourceMask, int sw); in nativeGetSwitchState() argument
204 int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists); in nativeHasKeys() argument
426 public int getKeyCodeState(int deviceId, int sourceMask, int keyCode) { in getKeyCodeState() argument
427 return nativeGetKeyCodeState(mPtr, deviceId, sourceMask, keyCode); in getKeyCodeState()
439 public int getScanCodeState(int deviceId, int sourceMask, int scanCode) { in getScanCodeState() argument
440 return nativeGetScanCodeState(mPtr, deviceId, sourceMask, scanCode); in getScanCodeState()
452 public int getSwitchState(int deviceId, int sourceMask, int switchCode) { in getSwitchState() argument
453 return nativeGetSwitchState(mPtr, deviceId, sourceMask, switchCode); in getSwitchState()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp1347 jlong ptr, jint deviceId, jint sourceMask, jint scanCode) { in nativeGetScanCodeState() argument
1351 deviceId, uint32_t(sourceMask), scanCode); in nativeGetScanCodeState()
1355 jlong ptr, jint deviceId, jint sourceMask, jint keyCode) { in nativeGetKeyCodeState() argument
1359 deviceId, uint32_t(sourceMask), keyCode); in nativeGetKeyCodeState()
1363 jlong ptr, jint deviceId, jint sourceMask, jint sw) { in nativeGetSwitchState() argument
1367 deviceId, uint32_t(sourceMask), sw); in nativeGetSwitchState()
1371 jlong ptr, jint deviceId, jint sourceMask, jintArray keyCodes, jbooleanArray outFlags) { in nativeHasKeys() argument
1380 deviceId, uint32_t(sourceMask), numCodes, codes, flags)) { in nativeHasKeys()