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