Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java2018 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/
DInputReader.h285 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);
DInputReader.cpp680 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/
DInputManagerService.java452 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/
DInputReader_test.cpp445 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()