Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/input/
DNativeInputManagerService.java45 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
273 public native int getScanCodeState(int deviceId, int sourceMask, int scanCode); in getScanCodeState() argument
276 public native int getKeyCodeState(int deviceId, int sourceMask, int keyCode); in getKeyCodeState() argument
279 public native int getSwitchState(int deviceId, int sourceMask, int sw); in getSwitchState() argument
285 public native boolean hasKeys(int deviceId, int sourceMask, int[] keyCodes, in hasKeys() argument
DInputManagerService.java614 public int getKeyCodeState(int deviceId, int sourceMask, int keyCode) { in getKeyCodeState() argument
615 return mNative.getKeyCodeState(deviceId, sourceMask, keyCode); in getKeyCodeState()
627 public int getScanCodeState(int deviceId, int sourceMask, int scanCode) { in getScanCodeState() argument
628 return mNative.getScanCodeState(deviceId, sourceMask, scanCode); in getScanCodeState()
640 public int getSwitchState(int deviceId, int sourceMask, int switchCode) { in getSwitchState() argument
641 return mNative.getSwitchState(deviceId, sourceMask, switchCode); in getSwitchState()
657 public boolean hasKeys(int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists) { in hasKeys() argument
664 return mNative.hasKeys(deviceId, sourceMask, keyCodes, keyExists); in hasKeys()
/frameworks/native/services/inputflinger/reader/mapper/
DInputMapper.cpp53 int32_t InputMapper::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument
57 int32_t InputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
61 int32_t InputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
69 bool InputMapper::markSupportedKeyCodes(uint32_t sourceMask, const std::vector<int32_t>& keyCodes, in markSupportedKeyCodes() argument
DInputMapper.h84 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,
DKeyboardInputMapper.h41 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,
DSwitchInputMapper.h34 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode) override;
DSwitchInputMapper.cpp71 int32_t SwitchInputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
DKeyboardInputMapper.cpp301 int32_t KeyboardInputMapper::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument
305 int32_t KeyboardInputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
313 bool KeyboardInputMapper::markSupportedKeyCodes(uint32_t sourceMask, in markSupportedKeyCodes() argument
DCursorInputMapper.h71 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode) override;
DTouchInputMapper.h160 int32_t getKeyCodeState(uint32_t sourceMask, int32_t keyCode) override;
161 int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode) override;
162 bool markSupportedKeyCodes(uint32_t sourceMask, const std::vector<int32_t>& keyCodes,
DCursorInputMapper.cpp418 int32_t CursorInputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
DTouchInputMapper.cpp4083 int32_t TouchInputMapper::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument
4097 int32_t TouchInputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
4111 bool TouchInputMapper::markSupportedKeyCodes(uint32_t sourceMask, in markSupportedKeyCodes() argument
/frameworks/native/services/inputflinger/tests/fuzzers/
DInputReaderFuzzer.cpp66 int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
67 return reader->getScanCodeState(deviceId, sourceMask, scanCode); in getScanCodeState()
70 int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument
71 return reader->getKeyCodeState(deviceId, sourceMask, keyCode); in getKeyCodeState()
74 int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t sw) { in getSwitchState() argument
75 return reader->getSwitchState(deviceId, sourceMask, sw); in getSwitchState()
80 bool hasKeys(int32_t deviceId, uint32_t sourceMask, const std::vector<int32_t>& keyCodes, in hasKeys() argument
82 return reader->hasKeys(deviceId, sourceMask, keyCodes, outFlags); in hasKeys()
/frameworks/native/services/inputflinger/reader/
DInputReader.cpp560 int32_t InputReader::getKeyCodeState(int32_t deviceId, uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument
563 return getStateLocked(deviceId, sourceMask, keyCode, &InputDevice::getKeyCodeState); in getKeyCodeState()
566 int32_t InputReader::getScanCodeState(int32_t deviceId, uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
569 return getStateLocked(deviceId, sourceMask, scanCode, &InputDevice::getScanCodeState); in getScanCodeState()
572 int32_t InputReader::getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
575 return getStateLocked(deviceId, sourceMask, switchCode, &InputDevice::getSwitchState); in getSwitchState()
578 int32_t InputReader::getStateLocked(int32_t deviceId, uint32_t sourceMask, int32_t code, in getStateLocked() argument
583 if (device && !device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in getStateLocked()
584 result = (device->*getStateFunc)(sourceMask, code); in getStateLocked()
589 if (!device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in getStateLocked()
[all …]
DInputDevice.cpp408 int32_t InputDevice::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument
409 return getState(sourceMask, keyCode, &InputMapper::getKeyCodeState); in getKeyCodeState()
412 int32_t InputDevice::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
413 return getState(sourceMask, scanCode, &InputMapper::getScanCodeState); in getScanCodeState()
416 int32_t InputDevice::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
417 return getState(sourceMask, switchCode, &InputMapper::getSwitchState); in getSwitchState()
420 int32_t InputDevice::getState(uint32_t sourceMask, int32_t code, GetStateFunc getStateFunc) { in getState() argument
427 if (sourcesMatchMask(mapper.getSources(), sourceMask)) { in getState()
430 int32_t currentResult = (mapper.*getStateFunc)(sourceMask, code); in getState()
528 bool InputDevice::markSupportedKeyCodes(uint32_t sourceMask, const std::vector<int32_t>& keyCodes, in markSupportedKeyCodes() argument
[all …]
DMacros.h118 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/
DInputReader.h67 int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask, int32_t scanCode) override;
68 int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask, int32_t keyCode) override;
69 int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t sw) override;
77 bool hasKeys(int32_t deviceId, uint32_t sourceMask, const std::vector<int32_t>& keyCodes,
255 typedef int32_t (InputDevice::*GetStateFunc)(uint32_t sourceMask, int32_t code);
256 int32_t getStateLocked(int32_t deviceId, uint32_t sourceMask, int32_t code,
258 bool markSupportedKeyCodesLocked(int32_t deviceId, uint32_t sourceMask,
DInputDevice.h95 int32_t getKeyCodeState(uint32_t sourceMask, int32_t keyCode);
96 int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode);
97 int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
99 bool markSupportedKeyCodes(uint32_t sourceMask, const std::vector<int32_t>& keyCodes,
202 typedef int32_t (InputMapper::*GetStateFunc)(uint32_t sourceMask, int32_t code);
203 int32_t getState(uint32_t sourceMask, int32_t code, GetStateFunc getStateFunc);
/frameworks/native/services/inputflinger/include/
DInputReaderBase.h312 virtual int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask, int32_t scanCode) = 0;
313 virtual int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask, int32_t keyCode) = 0;
314 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t sw) = 0;
325 virtual bool hasKeys(int32_t deviceId, uint32_t sourceMask,
/frameworks/base/core/java/android/hardware/input/
DIInputManager.aidl60 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.cpp1716 jint sourceMask, jint scanCode) { in nativeGetScanCodeState() argument
1719 return (jint)im->getInputManager()->getReader().getScanCodeState(deviceId, uint32_t(sourceMask), in nativeGetScanCodeState()
1724 jint sourceMask, jint keyCode) { in nativeGetKeyCodeState() argument
1727 return (jint)im->getInputManager()->getReader().getKeyCodeState(deviceId, uint32_t(sourceMask), in nativeGetKeyCodeState()
1731 static jint nativeGetSwitchState(JNIEnv* env, jobject nativeImplObj, jint deviceId, jint sourceMask, in nativeGetSwitchState() argument
1735 return (jint)im->getInputManager()->getReader().getSwitchState(deviceId, uint32_t(sourceMask), in nativeGetSwitchState()
1753 static jboolean nativeHasKeys(JNIEnv* env, jobject nativeImplObj, jint deviceId, jint sourceMask, in nativeHasKeys() argument
1764 if (im->getInputManager()->getReader().hasKeys(deviceId, uint32_t(sourceMask), codes, flags)) { in nativeHasKeys()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp5044 audio_channel_mask_t sourceMask = sourceDesc->config().channel_mask; in createAudioPatchInternal() local
5046 (audio_channel_mask_get_representation(sourceMask) in createAudioPatchInternal()
5047 == AUDIO_CHANNEL_REPRESENTATION_INDEX) ? sourceMask in createAudioPatchInternal()
5048 : audio_channel_mask_in_to_out(sourceMask); in createAudioPatchInternal()