/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/ |
D | AppOpsLegacyRestrictionsTest.java | 93 assertEquals(true, mAppOpsRestrictions.setGlobalRestriction(mClientToken, mOpCode1, true)); in testSetAndGetSingleGlobalRestriction() 95 assertEquals(false, mAppOpsRestrictions.setGlobalRestriction(mClientToken, mOpCode1, true)); in testSetAndGetSingleGlobalRestriction() 100 assertEquals(true, mAppOpsRestrictions.setGlobalRestriction(mClientToken, mOpCode1, false)); in testSetAndGetSingleGlobalRestriction() 103 mAppOpsRestrictions.setGlobalRestriction(mClientToken, mOpCode1, false)); in testSetAndGetSingleGlobalRestriction() 112 assertEquals(true, mAppOpsRestrictions.setGlobalRestriction(mClientToken, mOpCode1, true)); in testSetAndGetDoubleGlobalRestriction() 114 assertEquals(true, mAppOpsRestrictions.setGlobalRestriction(mClientToken, mOpCode2, true)); in testSetAndGetDoubleGlobalRestriction() 118 assertEquals(true, mAppOpsRestrictions.setGlobalRestriction(mClientToken, mOpCode1, false)); in testSetAndGetDoubleGlobalRestriction() 122 assertEquals(true, mAppOpsRestrictions.setGlobalRestriction(mClientToken, mOpCode2, false)); in testSetAndGetDoubleGlobalRestriction() 132 assertEquals(true, mAppOpsRestrictions.setGlobalRestriction(mClientToken, mOpCode1, true)); in testClearGlobalRestrictions() 133 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 | 67 public boolean setGlobalRestriction(Object clientToken, int code, boolean restricted) { in setGlobalRestriction() method in AppOpsRestrictionsImpl
|
D | AppOpsService.java | 7077 return mAppOpsRestrictions.setGlobalRestriction(mToken, code, restricted); 7136 public void setGlobalRestriction(int code, boolean restricted, IBinder token) {
|
/frameworks/base/services/core/java/com/android/server/sensorprivacy/ |
D | SensorPrivacyService.java | 1389 setGlobalRestriction(MICROPHONE, micState[swToggleIdx] || micState[hwToggleIdx]); in userSwitching() 1397 setGlobalRestriction(CAMERA, camState[swToggleIdx] || camState[hwToggleIdx]); in userSwitching() 1401 private void setGlobalRestriction(int sensor, boolean enabled) { in setGlobalRestriction() method in SensorPrivacyService.SensorPrivacyServiceImpl 1404 mAppOpsManagerInternal.setGlobalRestriction(OP_RECORD_AUDIO, enabled, in setGlobalRestriction() 1406 mAppOpsManagerInternal.setGlobalRestriction( in setGlobalRestriction() 1408 mAppOpsManagerInternal.setGlobalRestriction(OP_PHONE_CALL_MICROPHONE, enabled, in setGlobalRestriction() 1412 mAppOpsManagerInternal.setGlobalRestriction(OP_RECEIVE_AMBIENT_TRIGGER_AUDIO, in setGlobalRestriction() 1419 mAppOpsManagerInternal.setGlobalRestriction( in setGlobalRestriction() 1424 mAppOpsManagerInternal.setGlobalRestriction(OP_CAMERA, enabled, in setGlobalRestriction() 1426 mAppOpsManagerInternal.setGlobalRestriction(OP_PHONE_CALL_CAMERA, enabled, in setGlobalRestriction() [all …]
|
/frameworks/base/core/java/android/app/ |
D | AppOpsManagerInternal.java | 228 public abstract void setGlobalRestriction(int code, boolean restricted, IBinder token); in setGlobalRestriction() method in AppOpsManagerInternal
|
/frameworks/base/services/ |
D | art-wear-profile | 7546 PLcom/android/server/appop/AppOpsRestrictionsImpl;->setGlobalRestriction(Ljava/lang/Object;IZ)Z 7592 HPLcom/android/server/appop/AppOpsService$AppOpsManagerInternalImpl;->setGlobalRestriction(IZLandro… 22654 …roid/server/sensorprivacy/SensorPrivacyService$SensorPrivacyServiceImpl;->setGlobalRestriction(IZ)V
|