Searched refs:switchCode (Results 1 – 10 of 10) sorted by relevance
/frameworks/native/services/inputflinger/reader/mapper/ |
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()
|
D | SwitchInputMapper.h | 32 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode) override; 39 void processSwitch(int32_t switchCode, int32_t switchValue);
|
D | InputMapper.h | 62 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
|
D | InputMapper.cpp | 50 int32_t InputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
|
/frameworks/native/services/inputflinger/reader/ |
D | InputDevice.cpp | 390 int32_t InputDevice::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument 391 return getState(sourceMask, switchCode, &InputMapper::getSwitchState); in getSwitchState()
|
D | InputReader.cpp | 474 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/ |
D | AppOpsService.java | 1488 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/ |
D | InputDevice.h | 81 int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | InputManagerService.java | 470 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/ |
D | InputReader_test.cpp | 504 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()
|