Home
last modified time | relevance | path

Searched refs:switchCode (Results 1 – 12 of 12) sorted by relevance

/aosp12/frameworks/native/services/inputflinger/reader/mapper/
H A DSwitchInputMapper.cpp45 void SwitchInputMapper::processSwitch(int32_t switchCode, int32_t switchValue) { in processSwitch() argument
46 if (switchCode >= 0 && switchCode < 32) { in processSwitch()
48 mSwitchValues |= 1 << switchCode; in processSwitch()
50 mSwitchValues &= ~(1 << switchCode); in processSwitch()
52 mUpdatedSwitchMask |= 1 << switchCode; in processSwitch()
67 int32_t SwitchInputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
68 return getDeviceContext().getSwitchState(switchCode); in getSwitchState()
H A DSwitchInputMapper.h32 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode) override;
39 void processSwitch(int32_t switchCode, int32_t switchValue);
H A DInputMapper.cpp50 int32_t InputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
H A DInputMapper.h63 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
/aosp12/hardware/libhardware/modules/input/evdev/
H A DSwitchInputMapper.cpp118 void SwitchInputMapper::processSwitch(int32_t switchCode, int32_t switchValue) { in processSwitch() argument
119 ALOGV("processing switch event. code=%" PRId32 ", value=%" PRId32, switchCode, switchValue); in processSwitch()
120 if (switchCode >= 0 && switchCode < kMaxNumInputCodes) { in processSwitch()
122 mSwitchValues.markBit(switchCode); in processSwitch()
124 mSwitchValues.clearBit(switchCode); in processSwitch()
126 mUpdatedSwitchMask.markBit(switchCode); in processSwitch()
H A DSwitchInputMapper.h39 void processSwitch(int32_t switchCode, int32_t switchValue);
/aosp12/frameworks/base/services/core/java/com/android/server/appop/
H A DAppOpsService.java1788 int switchCode = AppOpsManager.opToSwitch(switchedCode); in AppOpsService() local
1789 mSwitchedOps.put(switchCode, in AppOpsService()
1790 ArrayUtils.appendInt(mSwitchedOps.get(switchCode), switchedCode)); in AppOpsService()
2660 private void updatePermissionRevokedCompat(int uid, int switchCode, int mode) { in updatePermissionRevokedCompat() argument
2674 int[] ops = mSwitchedOps.get(switchCode); in updatePermissionRevokedCompat()
2712 + switchCode + ", mode=" + mode + ", permission=" in updatePermissionRevokedCompat()
3460 final int switchCode = AppOpsManager.opToSwitch(code); in noteOperationUnchecked() local
3475 + switchCode + " (" + code + ") uid " + uid + " package " in noteOperationUnchecked()
3483 final Op switchOp = switchCode != code ? getOpLocked(ops, switchCode, uid, true) in noteOperationUnchecked()
3977 final int switchCode = AppOpsManager.opToSwitch(code); in startOperationUnchecked() local
[all …]
/aosp12/frameworks/native/services/inputflinger/reader/
H A DInputDevice.cpp440 int32_t InputDevice::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
441 return getState(sourceMask, switchCode, &InputMapper::getSwitchState); in getSwitchState()
H A DInputReader.cpp523 int32_t InputReader::getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
526 return getStateLocked(deviceId, sourceMask, switchCode, &InputDevice::getSwitchState); in getSwitchState()
/aosp12/frameworks/native/services/inputflinger/reader/include/
H A DInputDevice.h86 int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
/aosp12/frameworks/base/services/core/java/com/android/server/input/
H A DInputManagerService.java650 public int getSwitchState(int deviceId, int sourceMask, int switchCode) { in getSwitchState() argument
651 return nativeGetSwitchState(mPtr, deviceId, sourceMask, switchCode); in getSwitchState()
/aosp12/frameworks/native/services/inputflinger/tests/
H A DInputReader_test.cpp557 void setSwitchState(int32_t deviceId, int32_t switchCode, int32_t state) { in setSwitchState() argument
559 device->switchStates.replaceValueFor(switchCode, state); in setSwitchState()
1077 void setSwitchState(int32_t switchCode, int32_t state) { in setSwitchState() argument
1078 mSwitchStates.replaceValueFor(switchCode, state); in setSwitchState()
1132 int32_t getSwitchState(uint32_t, int32_t switchCode) override { in getSwitchState() argument
1133 ssize_t index = mSwitchStates.indexOfKey(switchCode); in getSwitchState()