Home
last modified time | relevance | path

Searched refs:numCodes (Results 1 – 16 of 16) sorted by relevance

/aosp12/frameworks/native/services/inputflinger/reader/
H A DInputReader.cpp570 bool InputReader::hasKeys(int32_t deviceId, uint32_t sourceMask, size_t numCodes, in hasKeys() argument
574 memset(outFlags, 0, numCodes); in hasKeys()
575 return markSupportedKeyCodesLocked(deviceId, sourceMask, numCodes, keyCodes, outFlags); in hasKeys()
579 size_t numCodes, const int32_t* keyCodes, in markSupportedKeyCodesLocked() argument
585 result = device->markSupportedKeyCodes(sourceMask, numCodes, keyCodes, outFlags); in markSupportedKeyCodesLocked()
591 result |= device->markSupportedKeyCodes(sourceMask, numCodes, keyCodes, outFlags); in markSupportedKeyCodesLocked()
H A DInputDevice.cpp466 bool InputDevice::markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, in markSupportedKeyCodes() argument
469 for_each_mapper([&result, sourceMask, numCodes, keyCodes, outFlags](InputMapper& mapper) { in markSupportedKeyCodes()
471 result |= mapper.markSupportedKeyCodes(sourceMask, numCodes, keyCodes, outFlags); in markSupportedKeyCodes()
H A DEventHub.cpp893 bool EventHub::markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes, in markSupportedKeyCodes() argument
900 for (size_t codeIndex = 0; codeIndex < numCodes; codeIndex++) { in markSupportedKeyCodes()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/
H A DAppOpsControllerImpl.java191 final int numCodes = opsCodes.length; in addCallback() local
192 for (int i = 0; i < numCodes; i++) { in addCallback()
215 final int numCodes = opsCodes.length; in removeCallback() local
216 for (int i = 0; i < numCodes; i++) { in removeCallback()
/aosp12/frameworks/native/services/inputflinger/reader/include/
H A DInputDevice.h87 bool markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, const int32_t* keyCodes,
319 inline bool markSupportedKeyCodes(size_t numCodes, const int32_t* keyCodes, in markSupportedKeyCodes() argument
321 return mEventHub->markSupportedKeyCodes(mId, numCodes, keyCodes, outFlags); in markSupportedKeyCodes()
H A DInputReader.h75 bool hasKeys(int32_t deviceId, uint32_t sourceMask, size_t numCodes, const int32_t* keyCodes,
239 bool markSupportedKeyCodesLocked(int32_t deviceId, uint32_t sourceMask, size_t numCodes,
H A DEventHub.h311 virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes,
485 bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes,
/aosp12/frameworks/native/services/inputflinger/reader/mapper/
H A DInputMapper.cpp54 bool InputMapper::markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, in markSupportedKeyCodes() argument
H A DKeyboardInputMapper.h39 virtual bool markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes,
H A DKeyboardInputMapper.cpp378 bool KeyboardInputMapper::markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, in markSupportedKeyCodes() argument
380 return getDeviceContext().markSupportedKeyCodes(numCodes, keyCodes, outFlags); in markSupportedKeyCodes()
H A DInputMapper.h64 virtual bool markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes,
H A DTouchInputMapper.h150 bool markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, const int32_t* keyCodes,
H A DTouchInputMapper.cpp4003 bool TouchInputMapper::markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, in markSupportedKeyCodes() argument
4006 for (size_t i = 0; i < numCodes; i++) { in markSupportedKeyCodes()
/aosp12/frameworks/native/services/inputflinger/include/
H A DInputReaderBase.h96 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) = 0;
/aosp12/frameworks/base/services/core/jni/
H A Dcom_android_server_input_InputManagerService.cpp1548 jsize numCodes = env->GetArrayLength(keyCodes); in nativeHasKeys() local
1550 if (numCodes == env->GetArrayLength(keyCodes)) { in nativeHasKeys()
1552 deviceId, uint32_t(sourceMask), numCodes, codes, flags)) { in nativeHasKeys()
/aosp12/frameworks/native/services/inputflinger/tests/
H A DInputReader_test.cpp845 bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes, in markSupportedKeyCodes() argument
851 for (size_t i = 0; i < numCodes; i++) { in markSupportedKeyCodes()
1138 bool markSupportedKeyCodes(uint32_t, size_t numCodes, const int32_t* keyCodes, in markSupportedKeyCodes() argument
1140 for (size_t i = 0; i < numCodes; i++) { in markSupportedKeyCodes()