/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/ |
D | AppOpsLegacyRestrictionsTest.java | 92 assertEquals(true, mAppOpsRestrictions.setGlobalRestriction(mClientToken, mOpCode1, true)); in testSetAndGetSingleGlobalRestriction() 94 assertEquals(false, mAppOpsRestrictions.setGlobalRestriction(mClientToken, mOpCode1, true)); in testSetAndGetSingleGlobalRestriction() 99 assertEquals(true, mAppOpsRestrictions.setGlobalRestriction(mClientToken, mOpCode1, false)); in testSetAndGetSingleGlobalRestriction() 102 mAppOpsRestrictions.setGlobalRestriction(mClientToken, mOpCode1, false)); in testSetAndGetSingleGlobalRestriction() 111 assertEquals(true, mAppOpsRestrictions.setGlobalRestriction(mClientToken, mOpCode1, true)); in testSetAndGetDoubleGlobalRestriction() 113 assertEquals(true, mAppOpsRestrictions.setGlobalRestriction(mClientToken, mOpCode2, true)); in testSetAndGetDoubleGlobalRestriction() 117 assertEquals(true, mAppOpsRestrictions.setGlobalRestriction(mClientToken, mOpCode1, false)); in testSetAndGetDoubleGlobalRestriction() 121 assertEquals(true, mAppOpsRestrictions.setGlobalRestriction(mClientToken, mOpCode2, false)); in testSetAndGetDoubleGlobalRestriction() 131 assertEquals(true, mAppOpsRestrictions.setGlobalRestriction(mClientToken, mOpCode1, true)); in testClearGlobalRestrictions() 132 assertEquals(true, mAppOpsRestrictions.setGlobalRestriction(mClientToken, mOpCode2, true)); in testClearGlobalRestrictions()
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AppOpsRestrictions.java | 37 boolean setGlobalRestriction(Object clientToken, int code, boolean restricted); in setGlobalRestriction() method
|
D | AppOpsRestrictionsImpl.java | 66 public boolean setGlobalRestriction(Object clientToken, int code, boolean restricted) { in setGlobalRestriction() method in AppOpsRestrictionsImpl
|
D | AppOpsService.java | 6112 return mAppOpsRestrictions.setGlobalRestriction(mToken, code, restricted); 6171 public void setGlobalRestriction(int code, boolean restricted, IBinder token) {
|
/frameworks/base/services/core/java/com/android/server/sensorprivacy/ |
D | SensorPrivacyService.java | 1111 setGlobalRestriction(MICROPHONE, micState[swToggleIdx] || micState[hwToggleIdx]); in userSwitching() 1119 setGlobalRestriction(CAMERA, camState[swToggleIdx] || camState[hwToggleIdx]); in userSwitching() 1123 private void setGlobalRestriction(int sensor, boolean enabled) { in setGlobalRestriction() method in SensorPrivacyService.SensorPrivacyServiceImpl 1126 mAppOpsManagerInternal.setGlobalRestriction(OP_RECORD_AUDIO, enabled, in setGlobalRestriction() 1128 mAppOpsManagerInternal.setGlobalRestriction(OP_PHONE_CALL_MICROPHONE, enabled, in setGlobalRestriction() 1132 mAppOpsManagerInternal.setGlobalRestriction(OP_RECEIVE_AMBIENT_TRIGGER_AUDIO, in setGlobalRestriction() 1139 mAppOpsManagerInternal.setGlobalRestriction( in setGlobalRestriction() 1144 mAppOpsManagerInternal.setGlobalRestriction(OP_CAMERA, enabled, in setGlobalRestriction() 1146 mAppOpsManagerInternal.setGlobalRestriction(OP_PHONE_CALL_CAMERA, enabled, in setGlobalRestriction() 1189 setGlobalRestriction(MICROPHONE, in registerSettingsObserver() [all …]
|
/frameworks/base/core/java/android/app/ |
D | AppOpsManagerInternal.java | 223 public abstract void setGlobalRestriction(int code, boolean restricted, IBinder token); in setGlobalRestriction() method in AppOpsManagerInternal
|