Searched refs:switchCode (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/services/core/java/com/android/server/ |
D | AppOpsService.java | 964 final int switchCode = AppOpsManager.opToSwitch(code); in noteOperationUnchecked() local 967 final int uidMode = uidState.opModes.get(switchCode); in noteOperationUnchecked() 970 + switchCode + " (" + code + ") uid " + uid + " package " in noteOperationUnchecked() 976 final Op switchOp = switchCode != code ? getOpLocked(ops, switchCode, true) : op; in noteOperationUnchecked() 979 + switchCode + " (" + code + ") uid " + uid + " package " + packageName); in noteOperationUnchecked() 1009 final int switchCode = AppOpsManager.opToSwitch(code); in startOperation() local 1012 final int uidMode = uidState.opModes.get(switchCode); in startOperation() 1015 + switchCode + " (" + code + ") uid " + uid + " package " in startOperation() 1021 final Op switchOp = switchCode != code ? getOpLocked(ops, switchCode, true) : op; in startOperation() 1024 + switchCode + " (" + code + ") uid " + uid + " package " + packageName); in startOperation()
|
/frameworks/native/services/inputflinger/ |
D | InputReader.h | 611 int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode); 1025 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode); 1060 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode); 1067 void processSwitch(int32_t switchCode, int32_t switchValue);
|
D | InputReader.cpp | 659 int32_t InputReader::getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument 662 return getStateLocked(deviceId, sourceMask, switchCode, &InputDevice::getSwitchState); in getSwitchState() 1099 int32_t InputDevice::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument 1100 return getState(sourceMask, switchCode, & InputMapper::getSwitchState); in getSwitchState() 1855 int32_t InputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument 1936 void SwitchInputMapper::processSwitch(int32_t switchCode, int32_t switchValue) { in processSwitch() argument 1937 if (switchCode >= 0 && switchCode < 32) { in processSwitch() 1939 mSwitchValues |= 1 << switchCode; in processSwitch() 1941 mSwitchValues &= ~(1 << switchCode); in processSwitch() 1943 mUpdatedSwitchMask |= 1 << switchCode; in processSwitch() [all …]
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | InputManagerService.java | 413 public int getSwitchState(int deviceId, int sourceMask, int switchCode) { in getSwitchState() argument 414 return nativeGetSwitchState(mPtr, deviceId, sourceMask, switchCode); in getSwitchState()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 405 void setSwitchState(int32_t deviceId, int32_t switchCode, int32_t state) { in setSwitchState() argument 407 device->switchStates.replaceValueFor(switchCode, state); in setSwitchState() 854 void setSwitchState(int32_t switchCode, int32_t state) { in setSwitchState() argument 855 mSwitchStates.replaceValueFor(switchCode, state); in setSwitchState() 898 virtual int32_t getSwitchState(uint32_t, int32_t switchCode) { in getSwitchState() argument 899 ssize_t index = mSwitchStates.indexOfKey(switchCode); in getSwitchState()
|