Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/reader/mapper/
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()
DSwitchInputMapper.h32 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode) override;
39 void processSwitch(int32_t switchCode, int32_t switchValue);
DInputMapper.h62 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
DInputMapper.cpp50 int32_t InputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
/frameworks/native/services/inputflinger/reader/
DInputDevice.cpp390 int32_t InputDevice::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
391 return getState(sourceMask, switchCode, &InputMapper::getSwitchState); in getSwitchState()
DInputReader.cpp474 int32_t InputReader::getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
477 return getStateLocked(deviceId, sourceMask, switchCode, &InputDevice::getSwitchState); in getSwitchState()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java1488 int switchCode = AppOpsManager.opToSwitch(switchedCode); in AppOpsService() local
1489 mSwitchedOps.put(switchCode, in AppOpsService()
1490 ArrayUtils.appendInt(mSwitchedOps.get(switchCode), switchedCode)); in AppOpsService()
2314 private void updatePermissionRevokedCompat(int uid, int switchCode, int mode) { in updatePermissionRevokedCompat() argument
2328 int[] ops = mSwitchedOps.get(switchCode); in updatePermissionRevokedCompat()
2368 + switchCode + ", mode=" + mode + ", permission=" in updatePermissionRevokedCompat()
2393 + switchCode + ", mode=" + mode + ", permission=" + permissionName); in updatePermissionRevokedCompat()
3059 final int switchCode = AppOpsManager.opToSwitch(code); in noteOperationUnchecked() local
3063 if (uidState.opModes != null && uidState.opModes.indexOfKey(switchCode) >= 0) { in noteOperationUnchecked()
3064 final int uidMode = uidState.evalMode(code, uidState.opModes.get(switchCode)); in noteOperationUnchecked()
[all …]
/frameworks/native/services/inputflinger/reader/include/
DInputDevice.h81 int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java470 public int getSwitchState(int deviceId, int sourceMask, int switchCode) { in getSwitchState() argument
471 return nativeGetSwitchState(mPtr, deviceId, sourceMask, switchCode); in getSwitchState()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp504 void setSwitchState(int32_t deviceId, int32_t switchCode, int32_t state) { in setSwitchState() argument
506 device->switchStates.replaceValueFor(switchCode, state); in setSwitchState()
1037 void setSwitchState(int32_t switchCode, int32_t state) { in setSwitchState() argument
1038 mSwitchStates.replaceValueFor(switchCode, state); in setSwitchState()
1094 virtual int32_t getSwitchState(uint32_t, int32_t switchCode) { in getSwitchState() argument
1095 ssize_t index = mSwitchStates.indexOfKey(switchCode); in getSwitchState()