Home
last modified time | relevance | path

Searched refs:setGlobalRestriction (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsLegacyRestrictionsTest.java93 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/
DAppOpsRestrictions.java37 boolean setGlobalRestriction(Object clientToken, int code, boolean restricted); in setGlobalRestriction() method
DAppOpsRestrictionsImpl.java67 public boolean setGlobalRestriction(Object clientToken, int code, boolean restricted) { in setGlobalRestriction() method in AppOpsRestrictionsImpl
DAppOpsService.java7077 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/
DSensorPrivacyService.java1389 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/
DAppOpsManagerInternal.java228 public abstract void setGlobalRestriction(int code, boolean restricted, IBinder token); in setGlobalRestriction() method in AppOpsManagerInternal
/frameworks/base/services/
Dart-wear-profile7546 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