/aosp12/frameworks/native/services/inputflinger/reader/mapper/ |
H A D | SwitchInputMapper.cpp | 45 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 D | SwitchInputMapper.h | 32 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode) override; 39 void processSwitch(int32_t switchCode, int32_t switchValue);
|
H A D | InputMapper.cpp | 50 int32_t InputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
|
H A D | InputMapper.h | 63 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
|
/aosp12/hardware/libhardware/modules/input/evdev/ |
H A D | SwitchInputMapper.cpp | 118 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 D | SwitchInputMapper.h | 39 void processSwitch(int32_t switchCode, int32_t switchValue);
|
/aosp12/frameworks/base/services/core/java/com/android/server/appop/ |
H A D | AppOpsService.java | 1788 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 D | InputDevice.cpp | 440 int32_t InputDevice::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument 441 return getState(sourceMask, switchCode, &InputMapper::getSwitchState); in getSwitchState()
|
H A D | InputReader.cpp | 523 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 D | InputDevice.h | 86 int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
|
/aosp12/frameworks/base/services/core/java/com/android/server/input/ |
H A D | InputManagerService.java | 650 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 D | InputReader_test.cpp | 557 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()
|