Home
last modified time | relevance | path

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

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsLegacyRestrictionsTest.java62 AppOpsRestrictions mAppOpsRestrictions; field in AppOpsLegacyRestrictionsTest
78 mAppOpsRestrictions = new AppOpsRestrictionsImpl(mContext, mHandler, in setUp()
90 assertEquals(false, mAppOpsRestrictions.hasGlobalRestrictions(mClientToken)); in testSetAndGetSingleGlobalRestriction()
91 assertEquals(false, mAppOpsRestrictions.getGlobalRestriction(mClientToken, mOpCode1)); in testSetAndGetSingleGlobalRestriction()
93 assertEquals(true, mAppOpsRestrictions.setGlobalRestriction(mClientToken, mOpCode1, true)); in testSetAndGetSingleGlobalRestriction()
95 assertEquals(false, mAppOpsRestrictions.setGlobalRestriction(mClientToken, mOpCode1, true)); in testSetAndGetSingleGlobalRestriction()
97 assertEquals(true, mAppOpsRestrictions.hasGlobalRestrictions(mClientToken)); in testSetAndGetSingleGlobalRestriction()
98 assertEquals(true, mAppOpsRestrictions.getGlobalRestriction(mClientToken, mOpCode1)); in testSetAndGetSingleGlobalRestriction()
100 assertEquals(true, mAppOpsRestrictions.setGlobalRestriction(mClientToken, mOpCode1, false)); in testSetAndGetSingleGlobalRestriction()
103 mAppOpsRestrictions.setGlobalRestriction(mClientToken, mOpCode1, false)); in testSetAndGetSingleGlobalRestriction()
[all …]
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java417 @VisibleForTesting AppOpsRestrictions mAppOpsRestrictions; field in AppOpsService
1002 mAppOpsRestrictions = new AppOpsRestrictionsImpl(context, handler, in AppOpsService()
6377 mAppOpsRestrictions.dumpRestrictions(pw, dumpOp, dumpPackage, showUserRestrictions); in dump()
7035 return mAppOpsRestrictions.setUserRestriction(token, userId, code,
7041 return mAppOpsRestrictions.getUserRestriction(token, userId, code, packageName,
7046 mAppOpsRestrictions.clearUserRestrictions(token, userId);
7050 return !mAppOpsRestrictions.hasUserRestrictions(token);
7056 mAppOpsRestrictions.clearUserRestrictions(token);
7077 return mAppOpsRestrictions.setGlobalRestriction(mToken, code, restricted);
7081 return mAppOpsRestrictions.getGlobalRestriction(mToken, code);
[all …]