Searched refs:switchCode (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AppOpsService.java | 2018 final int switchCode = AppOpsManager.opToSwitch(code); in noteOperationUnchecked() local 2021 if (uidState.opModes != null && uidState.opModes.indexOfKey(switchCode) >= 0) { in noteOperationUnchecked() 2022 final int uidMode = uidState.evalMode(code, uidState.opModes.get(switchCode)); in noteOperationUnchecked() 2025 + switchCode + " (" + code + ") uid " + uid + " package " in noteOperationUnchecked() 2035 final Op switchOp = switchCode != code ? getOpLocked(ops, switchCode, true) : op; in noteOperationUnchecked() 2039 + switchCode + " (" + code + ") uid " + uid + " package " in noteOperationUnchecked() 2174 final int switchCode = AppOpsManager.opToSwitch(code); in startOperation() local 2179 if (uidState.opModes != null && uidState.opModes.indexOfKey(switchCode) >= 0) { in startOperation() 2180 final int uidMode = uidState.evalMode(code, uidState.opModes.get(switchCode)); in startOperation() 2184 + switchCode + " (" + code + ") uid " + uid + " package " in startOperation() [all …]
|
/frameworks/native/services/inputflinger/ |
D | InputReader.h | 285 int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode); 769 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode); 807 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode); 814 void processSwitch(int32_t switchCode, int32_t switchValue);
|
D | InputReader.cpp | 680 int32_t InputReader::getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument 683 return getStateLocked(deviceId, sourceMask, switchCode, &InputDevice::getSwitchState); in getSwitchState() 1197 int32_t InputDevice::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument 1198 return getState(sourceMask, switchCode, & InputMapper::getSwitchState); in getSwitchState() 1958 int32_t InputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument 2042 void SwitchInputMapper::processSwitch(int32_t switchCode, int32_t switchValue) { in processSwitch() argument 2043 if (switchCode >= 0 && switchCode < 32) { in processSwitch() 2045 mSwitchValues |= 1 << switchCode; in processSwitch() 2047 mSwitchValues &= ~(1 << switchCode); in processSwitch() 2049 mUpdatedSwitchMask |= 1 << switchCode; in processSwitch() [all …]
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | InputManagerService.java | 452 public int getSwitchState(int deviceId, int sourceMask, int switchCode) { in getSwitchState() argument 453 return nativeGetSwitchState(mPtr, deviceId, sourceMask, switchCode); in getSwitchState()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 445 void setSwitchState(int32_t deviceId, int32_t switchCode, int32_t state) { in setSwitchState() argument 447 device->switchStates.replaceValueFor(switchCode, state); in setSwitchState() 923 void setSwitchState(int32_t switchCode, int32_t state) { in setSwitchState() argument 924 mSwitchStates.replaceValueFor(switchCode, state); in setSwitchState() 973 virtual int32_t getSwitchState(uint32_t, int32_t switchCode) { in getSwitchState() argument 974 ssize_t index = mSwitchStates.indexOfKey(switchCode); in getSwitchState()
|