/frameworks/base/services/tests/servicestests/src/com/android/server/appops/ |
D | AppOpsServiceTest.java | 59 private AppOpsService mAppOpsService; field in AppOpsServiceTest 79 mAppOpsService = new AppOpsService(mAppOpsFile, mHandler); in setUp() 80 mAppOpsService.mContext = mContext; in setUp() 91 mAppOpsService.setMode(OP_READ_SMS, mMyUid, mMyPackageName, MODE_ALLOWED); in testNoteOperationAndGetOpsForPackage() 92 mAppOpsService.setMode(OP_WRITE_SMS, mMyUid, mMyPackageName, MODE_ERRORED); in testNoteOperationAndGetOpsForPackage() 95 mAppOpsService.noteOperation(OP_READ_SMS, mMyUid, mMyPackageName); in testNoteOperationAndGetOpsForPackage() 100 mAppOpsService.noteOperation(OP_WRITE_SMS, mMyUid, mMyPackageName); in testNoteOperationAndGetOpsForPackage() 109 mAppOpsService.setMode(OP_READ_SMS, mMyUid, mMyPackageName, MODE_ALLOWED); in testStatePersistence() 110 mAppOpsService.setMode(OP_WRITE_SMS, mMyUid, mMyPackageName, MODE_ERRORED); in testStatePersistence() 111 mAppOpsService.noteOperation(OP_READ_SMS, mMyUid, mMyPackageName); in testStatePersistence() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActiveServices.java | 384 final int mode = mAm.mAppOpsService.checkOperation( in appRestrictedAnyInBackground() 447 final int mode = mAm.mAppOpsService.checkOperation( in startServiceLocked() 543 mAm.mAppOpsService.startOperation(AppOpsManager.getToken(mAm.mAppOpsService), in startServiceLocked() 1168 final int mode = mAm.mAppOpsService.checkOperation( in setServiceForegroundInnerLocked() 1207 final int mode = mAm.mAppOpsService.checkOperation( in setServiceForegroundInnerLocked() 1268 mAm.mAppOpsService.startOperation( in setServiceForegroundInnerLocked() 1269 AppOpsManager.getToken(mAm.mAppOpsService), in setServiceForegroundInnerLocked() 1292 mAm.mAppOpsService.finishOperation( in setServiceForegroundInnerLocked() 1293 AppOpsManager.getToken(mAm.mAppOpsService), in setServiceForegroundInnerLocked() 1304 mAm.mAppOpsService.finishOperation( in setServiceForegroundInnerLocked() [all …]
|
D | BroadcastQueue.java | 537 && mService.mAppOpsService.noteOperation(opCode, r.callingUid, in deliverToRegisteredReceiverLocked() 569 && mService.mAppOpsService.noteOperation(appOp, in deliverToRegisteredReceiverLocked() 601 && mService.mAppOpsService.noteOperation(r.appOp, in deliverToRegisteredReceiverLocked() 1103 && mService.mAppOpsService.noteOperation(opCode, r.callingUid, in processNextBroadcastLocked() 1141 && mService.mAppOpsService.noteOperation(appOp, in processNextBroadcastLocked() 1157 && mService.mAppOpsService.noteOperation(r.appOp, in processNextBroadcastLocked()
|
D | ActivityManagerService.java | 1418 final AppOpsService mAppOpsService; field in ActivityManagerService 2758 mAppOpsService.startWatchingMode(AppOpsManager.OP_RUN_IN_BACKGROUND, null, in setSystemProcess() 2762 if (mAppOpsService.checkOperation(op, uid, packageName) in setSystemProcess() 2789 return mAppOpsService; in getAppOpsService() 3017 mAppOpsService = mInjector.getAppOpsService(null, null); in ActivityManagerService() 3109 mAppOpsService = mInjector.getAppOpsService(new File(systemDir, "appops.xml"), mHandler); in ActivityManagerService() 3220 mAppOpsService.publish(mContext); in start() 4777 final int mode = mAppOpsService.noteOperation(AppOpsManager.OP_GET_USAGE_STATS, in hasUsageStatsPermission() 9054 return mActivityManagerService.mAppOpsService in noteOp() 9314 int appop = mAppOpsService.noteOperation(AppOpsManager.OP_RUN_IN_BACKGROUND, in appRestrictedInBackgroundLocked() [all …]
|
D | ActivityStackSupervisor.java | 1918 if (mService.mAppOpsService.noteOperation(opCode, callingUid, in getComponentRestrictionForCallingPackage() 1961 if (mService.mAppOpsService.noteOperation(opCode, callingUid, in getActionRestrictionForCallingPackage()
|
/frameworks/base/services/core/java/com/android/server/ |
D | AppStateTracker.java | 90 IAppOpsService mAppOpsService; field in AppStateTracker 422 mAppOpsService = Preconditions.checkNotNull(injectIAppOpsService()); in onSystemServicesReady() 442 mAppOpsService.startWatchingMode(TARGET_OP, null, in onSystemServicesReady() 665 restricted = mAppOpsService.checkOperation(TARGET_OP, in opChanged()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | ActivityManagerServiceTest.java | 122 @Mock private AppOpsService mAppOpsService; field in ActivityManagerServiceTest 363 when(mAppOpsService.noteOperation(AppOpsManager.OP_GET_USAGE_STATS, Process.myUid(), null)) in testDispatchUids_dispatchNeededChanges() 816 return mAppOpsService; in getAppOpsService()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserManagerService.java | 366 private IAppOpsService mAppOpsService; field in UserManagerService 545 mAppOpsService = IAppOpsService.Stub.asInterface( in systemReady() 1668 if (mAppOpsService != null) { // We skip it until system-ready. in updateUserRestrictionsInternalLR() 1673 mAppOpsService.setUserRestrictions(effective, mUserRestriconToken, userId); in updateUserRestrictionsInternalLR() 2901 mAppOpsService.removeUser(userHandle); in removeUserUnchecked()
|