Home
last modified time | relevance | path

Searched refs:mAppOpsRestrictions (Results 1 – 2 of 2) sorted by relevance

/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
H A DAppOpsLegacyRestrictionsTest.java62 AppOpsRestrictions mAppOpsRestrictions; field in AppOpsLegacyRestrictionsTest
152 assertEquals(true, mAppOpsRestrictions.setUserRestriction( in testSetAndGetSingleUserRestriction()
159 assertEquals(true, mAppOpsRestrictions.getUserRestriction( in testSetAndGetSingleUserRestriction()
161 assertEquals(true, mAppOpsRestrictions.getUserRestriction( in testSetAndGetSingleUserRestriction()
164 assertEquals(true, mAppOpsRestrictions.setUserRestriction( in testSetAndGetSingleUserRestriction()
178 assertEquals(true, mAppOpsRestrictions.setUserRestriction( in testSetAndGetDoubleUserRestriction()
181 assertEquals(true, mAppOpsRestrictions.setUserRestriction( in testSetAndGetDoubleUserRestriction()
185 assertEquals(true, mAppOpsRestrictions.getUserRestriction( in testSetAndGetDoubleUserRestriction()
187 assertEquals(true, mAppOpsRestrictions.getUserRestriction( in testSetAndGetDoubleUserRestriction()
189 assertEquals(true, mAppOpsRestrictions.getUserRestriction( in testSetAndGetDoubleUserRestriction()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/appop/
H A DAppOpsService.java383 @VisibleForTesting AppOpsRestrictions mAppOpsRestrictions; field in AppOpsService
937 mAppOpsRestrictions = new AppOpsRestrictionsImpl(context, handler, mAppOpsCheckingService); in AppOpsService()
6108 return mAppOpsRestrictions.setUserRestriction(token, userId, code,
6114 return mAppOpsRestrictions.getUserRestriction(token, userId, code, packageName,
6119 mAppOpsRestrictions.clearUserRestrictions(token, userId);
6123 return !mAppOpsRestrictions.hasUserRestrictions(token);
6129 mAppOpsRestrictions.clearUserRestrictions(token);
6150 return mAppOpsRestrictions.setGlobalRestriction(mToken, code, restricted);
6154 return mAppOpsRestrictions.getGlobalRestriction(mToken, code);
6158 return !mAppOpsRestrictions.hasGlobalRestrictions(mToken);
[all …]