/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/ |
D | AppOpsServiceTest.java | 91 private AppOpsService mAppOpsService; field in AppOpsServiceTest 97 mAppOpsService = new AppOpsService(mAppOpsFile, mHandler, spy(sContext)); in setupAppOpsService() 98 mAppOpsService.mHistoricalRegistry.systemReady(sContext.getContentResolver()); in setupAppOpsService() 101 doNothing().when(mAppOpsService.mContext).enforcePermission(anyString(), anyInt(), in setupAppOpsService() 127 mAppOpsService.shutdown(); in tearDown() 163 mAppOpsService.setMode(OP_READ_SMS, mMyUid, sMyPackageName, MODE_ALLOWED); in testNoteOperationAndGetOpsForPackage() 164 mAppOpsService.setMode(OP_WRITE_SMS, mMyUid, sMyPackageName, MODE_ERRORED); in testNoteOperationAndGetOpsForPackage() 167 mAppOpsService.noteOperation(OP_READ_SMS, mMyUid, sMyPackageName, null, false, null, false); in testNoteOperationAndGetOpsForPackage() 172 mAppOpsService.noteOperation(OP_WRITE_SMS, mMyUid, sMyPackageName, null, false, null, in testNoteOperationAndGetOpsForPackage() 187 mAppOpsService.setMode(OP_COARSE_LOCATION, mMyUid, sMyPackageName, MODE_ALLOWED); in testNoteOperationAndGetOpsForPackage_controlledByDifferentOp() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | AppChildProcessTest.java | 69 @Mock private AppOpsService mAppOpsService; field in AppChildProcessTest 251 return mAppOpsService; in getAppOpsService()
|
D | CacheOomRankerTest.java | 67 private AppOpsService mAppOpsService; field in CacheOomRankerTest 425 return mAppOpsService; in getAppOpsService()
|
D | CachedAppOptimizerTest.java | 78 private AppOpsService mAppOpsService; field in CachedAppOptimizerTest 1085 return mAppOpsService; in getAppOpsService()
|
D | ApplicationExitInfoTest.java | 101 @Mock private AppOpsService mAppOpsService; field in ApplicationExitInfoTest 1073 return mAppOpsService; in getAppOpsService()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/ |
D | AppStateTrackerImpl.java | 88 IAppOpsService mAppOpsService; field in AppStateTrackerImpl 463 mAppOpsService = Objects.requireNonNull(injectIAppOpsService()); in onSystemServicesReady() 481 mAppOpsService.startWatchingMode(TARGET_OP, null, in onSystemServicesReady() 707 restricted = mAppOpsService.checkOperation(TARGET_OP, in opChanged()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | ActivityManagerServiceTest.java | 147 @Mock private AppOpsService mAppOpsService; field in ActivityManagerServiceTest 172 when(mAppOpsService.noteOperation(eq(AppOpsManager.OP_GET_USAGE_STATS), eq(Process.myUid()), in mockNoteOperation() 1021 return mAppOpsService; in getAppOpsService()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActiveServices.java | 817 mAm.mAppOpsService.startOperation(AppOpsManager.getToken(mAm.mAppOpsService), in startServiceInnerLocked() 1899 mAm.mAppOpsService.startOperation( in setServiceForegroundInnerLocked() 1900 AppOpsManager.getToken(mAm.mAppOpsService), in setServiceForegroundInnerLocked() 1939 mAm.mAppOpsService.finishOperation( in setServiceForegroundInnerLocked() 1940 AppOpsManager.getToken(mAm.mAppOpsService), in setServiceForegroundInnerLocked() 1982 mAm.mAppOpsService.finishOperation( in setServiceForegroundInnerLocked() 1983 AppOpsManager.getToken(mAm.mAppOpsService), in setServiceForegroundInnerLocked() 4205 mAm.mAppOpsService.finishOperation(AppOpsManager.getToken(mAm.mAppOpsService), in bringDownServiceLocked() 4266 mAm.mAppOpsService.finishOperation( in bringDownServiceLocked() 4267 AppOpsManager.getToken(mAm.mAppOpsService), in bringDownServiceLocked()
|
D | ActivityManagerService.java | 1257 final AppOpsService mAppOpsService; field in ActivityManagerService 1822 mAppOpsService.startWatchingMode(AppOpsManager.OP_RUN_IN_BACKGROUND, null, in setSystemProcess() 1835 mAppOpsService.startWatchingActive(cameraOp, new IAppOpsActiveCallback.Stub() { in setSystemProcess() 1882 mAppOpsService.setAppOpsPolicy(appOpsPolicy); in setAppOpsPolicy() 1886 return mAppOpsService; in getAppOpsService() 2183 mAppOpsService = mInjector.getAppOpsService(null /* file */, null /* handler */); in ActivityManagerService() 2307 mAppOpsService = mInjector.getAppOpsService(new File(systemDir, "appops.xml"), mHandler); in ActivityManagerService() 2362 mAppOpsService.publish(); in start() 2792 final int mode = mAppOpsService.noteOperation(AppOpsManager.OP_GET_USAGE_STATS, in hasUsageStatsPermission() 5339 return mActivityManagerService.mAppOpsService in noteOp() [all …]
|
D | ContentProviderHelper.java | 120 if (callingPackage != null && mService.mAppOpsService.checkPackage( in getContentProvider()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserManagerService.java | 433 private IAppOpsService mAppOpsService; field in UserManagerService 688 mAppOpsService = IAppOpsService.Stub.asInterface( in systemReady() 2240 if (mAppOpsService != null) { // We skip it until system-ready. in updateUserRestrictionsInternalLR() 2245 mAppOpsService.setUserRestrictions(effective, mUserRestriconToken, userId); in updateUserRestrictionsInternalLR() 4202 mAppOpsService.removeUser(userId); in removeUserUnchecked()
|