Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/
DInputReader.h317 virtual int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask,
319 virtual int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask,
321 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask,
328 virtual bool hasKeys(int32_t deviceId, uint32_t sourceMask,
424 virtual int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask,
426 virtual int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask,
428 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask,
433 virtual bool hasKeys(int32_t deviceId, uint32_t sourceMask,
524 typedef int32_t (InputDevice::*GetStateFunc)(uint32_t sourceMask, int32_t code);
525 int32_t getStateLocked(int32_t deviceId, uint32_t sourceMask, int32_t code,
[all …]
DInputReader.cpp203 static inline bool sourcesMatchMask(uint32_t sources, uint32_t sourceMask) { in sourcesMatchMask() argument
204 return (sources & sourceMask & ~ AINPUT_SOURCE_CLASS_MASK) != 0; in sourcesMatchMask()
732 int32_t InputReader::getKeyCodeState(int32_t deviceId, uint32_t sourceMask, in getKeyCodeState() argument
736 return getStateLocked(deviceId, sourceMask, keyCode, &InputDevice::getKeyCodeState); in getKeyCodeState()
739 int32_t InputReader::getScanCodeState(int32_t deviceId, uint32_t sourceMask, in getScanCodeState() argument
743 return getStateLocked(deviceId, sourceMask, scanCode, &InputDevice::getScanCodeState); in getScanCodeState()
746 int32_t InputReader::getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
749 return getStateLocked(deviceId, sourceMask, switchCode, &InputDevice::getSwitchState); in getSwitchState()
752 int32_t InputReader::getStateLocked(int32_t deviceId, uint32_t sourceMask, int32_t code, in getStateLocked() argument
759 if (! device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in getStateLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java205 int deviceId, int sourceMask, int scanCode); in nativeGetScanCodeState() argument
207 int deviceId, int sourceMask, int keyCode); in nativeGetKeyCodeState() argument
209 int deviceId, int sourceMask, int sw); in nativeGetSwitchState() argument
211 int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists); in nativeHasKeys() argument
457 public int getKeyCodeState(int deviceId, int sourceMask, int keyCode) { in getKeyCodeState() argument
458 return nativeGetKeyCodeState(mPtr, deviceId, sourceMask, keyCode); in getKeyCodeState()
470 public int getScanCodeState(int deviceId, int sourceMask, int scanCode) { in getScanCodeState() argument
471 return nativeGetScanCodeState(mPtr, deviceId, sourceMask, scanCode); in getScanCodeState()
483 public int getSwitchState(int deviceId, int sourceMask, int switchCode) { in getSwitchState() argument
484 return nativeGetSwitchState(mPtr, deviceId, sourceMask, switchCode); in getSwitchState()
[all …]
/frameworks/base/core/java/android/hardware/input/
DIInputManager.aidl44 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.cpp1288 jlong ptr, jint deviceId, jint sourceMask, jint scanCode) { in nativeGetScanCodeState() argument
1292 deviceId, uint32_t(sourceMask), scanCode); in nativeGetScanCodeState()
1296 jlong ptr, jint deviceId, jint sourceMask, jint keyCode) { in nativeGetKeyCodeState() argument
1300 deviceId, uint32_t(sourceMask), keyCode); in nativeGetKeyCodeState()
1304 jlong ptr, jint deviceId, jint sourceMask, jint sw) { in nativeGetSwitchState() argument
1308 deviceId, uint32_t(sourceMask), sw); in nativeGetSwitchState()
1312 jlong ptr, jint deviceId, jint sourceMask, jintArray keyCodes, jbooleanArray outFlags) { in nativeHasKeys() argument
1321 deviceId, uint32_t(sourceMask), numCodes, codes, flags)) { in nativeHasKeys()