/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/ |
D | AppOpsServiceTest.java | 95 private AppOpsService mAppOpsService; field in AppOpsServiceTest 117 mAppOpsService = new AppOpsService(mAppOpsFile, mHandler); in setupAppOpsService() 118 mAppOpsService.mContext = spy(sContext); in setupAppOpsService() 121 doNothing().when(mAppOpsService.mContext).enforcePermission(anyString(), anyInt(), in setupAppOpsService() 141 mAppOpsService.mHistoricalRegistry.systemReady(sContext.getContentResolver()); in setUp() 173 mAppOpsService.setMode(OP_READ_SMS, mMyUid, sMyPackageName, MODE_ALLOWED); in testNoteOperationAndGetOpsForPackage() 174 mAppOpsService.setMode(OP_WRITE_SMS, mMyUid, sMyPackageName, MODE_ERRORED); in testNoteOperationAndGetOpsForPackage() 177 mAppOpsService.noteOperation(OP_READ_SMS, mMyUid, sMyPackageName); in testNoteOperationAndGetOpsForPackage() 182 mAppOpsService.noteOperation(OP_WRITE_SMS, mMyUid, sMyPackageName); in testNoteOperationAndGetOpsForPackage() 196 mAppOpsService.setMode(OP_COARSE_LOCATION, mMyUid, sMyPackageName, MODE_ALLOWED); in testNoteOperationAndGetOpsForPackage_controlledByDifferentOp() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityTestsBase.java | 464 AppOpsService mAppOpsService; field in ActivityTestsBase.TestActivityTaskManagerService 471 mAppOpsService = mock(AppOpsService.class); in TestActivityTaskManagerService() 475 .when(mAppOpsService).noteOperation(anyInt(), anyInt(), anyString()); in TestActivityTaskManagerService() 545 return mAppOpsService; in getAppOpsService()
|
/frameworks/base/services/core/java/com/android/server/ |
D | AppStateTracker.java | 90 IAppOpsService mAppOpsService; field in AppStateTracker 422 mAppOpsService = Objects.requireNonNull(injectIAppOpsService()); in onSystemServicesReady() 442 mAppOpsService.startWatchingMode(TARGET_OP, null, in onSystemServicesReady() 665 restricted = mAppOpsService.checkOperation(TARGET_OP, in opChanged()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActiveServices.java | 409 final int mode = mAm.mAppOpsService.checkOperation( in appRestrictedAnyInBackground() 480 final int mode = mAm.mAppOpsService.checkOperation( in startServiceLocked() 580 mAm.mAppOpsService.startOperation(AppOpsManager.getToken(mAm.mAppOpsService), in startServiceLocked() 1270 final int mode = mAm.mAppOpsService.checkOperation( in setServiceForegroundInnerLocked() 1328 final int mode = mAm.mAppOpsService.checkOperation( in setServiceForegroundInnerLocked() 1403 mAm.mAppOpsService.startOperation( in setServiceForegroundInnerLocked() 1404 AppOpsManager.getToken(mAm.mAppOpsService), in setServiceForegroundInnerLocked() 1437 mAm.mAppOpsService.finishOperation( in setServiceForegroundInnerLocked() 1438 AppOpsManager.getToken(mAm.mAppOpsService), in setServiceForegroundInnerLocked() 1454 mAm.mAppOpsService.finishOperation( in setServiceForegroundInnerLocked() [all …]
|
D | BroadcastQueue.java | 654 && mService.mAppOpsService.noteOperation(opCode, r.callingUid, in deliverToRegisteredReceiverLocked() 686 && mService.mAppOpsService.noteOperation(appOp, in deliverToRegisteredReceiverLocked() 718 && mService.mAppOpsService.noteOperation(r.appOp, in deliverToRegisteredReceiverLocked() 1374 && mService.mAppOpsService.noteOperation(opCode, r.callingUid, in processNextBroadcastLocked() 1412 && mService.mAppOpsService.noteOperation(appOp, in processNextBroadcastLocked() 1428 && mService.mAppOpsService.noteOperation(r.appOp, in processNextBroadcastLocked()
|
D | ActivityManagerService.java | 1185 final AppOpsService mAppOpsService; field in ActivityManagerService 2091 mAppOpsService.startWatchingMode(AppOpsManager.OP_RUN_IN_BACKGROUND, null, in setSystemProcess() 2095 if (mAppOpsService.checkOperation(op, uid, packageName) in setSystemProcess() 2132 return mAppOpsService; in getAppOpsService() 2428 mAppOpsService = mInjector.getAppOpsService(null /* file */, null /* handler */); in ActivityManagerService() 2538 mAppOpsService = mInjector.getAppOpsService(new File(systemDir, "appops.xml"), mHandler); in ActivityManagerService() 2627 mAppOpsService.publish(mContext); in start() 3171 final int mode = mAppOpsService.noteOperation(AppOpsManager.OP_GET_USAGE_STATS, in hasUsageStatsPermission() 5833 return mActivityManagerService.mAppOpsService in noteOp() 5985 int appop = mAppOpsService.noteOperation(AppOpsManager.OP_RUN_IN_BACKGROUND, in appRestrictedInBackgroundLocked() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | ActivityManagerServiceTest.java | 118 @Mock private AppOpsService mAppOpsService; field in ActivityManagerServiceTest 484 when(mAppOpsService.noteOperation(AppOpsManager.OP_GET_USAGE_STATS, Process.myUid(), null)) in testDispatchUids_dispatchNeededChanges() 938 return mAppOpsService; in getAppOpsService()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | AppCompactorTest.java | 58 private AppOpsService mAppOpsService; field in AppCompactorTest 651 return mAppOpsService; in getAppOpsService()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserManagerService.java | 386 private IAppOpsService mAppOpsService; field in UserManagerService 569 mAppOpsService = IAppOpsService.Stub.asInterface( in systemReady() 1778 if (mAppOpsService != null) { // We skip it until system-ready. in updateUserRestrictionsInternalLR() 1783 mAppOpsService.setUserRestrictions(effective, mUserRestriconToken, userId); in updateUserRestrictionsInternalLR() 3216 mAppOpsService.removeUser(userHandle); in removeUserUnchecked()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityTaskManagerService.java | 379 private AppOpsService mAppOpsService; field in ActivityTaskManagerService 879 if (mAppOpsService == null) { in getAppOpsService() 881 mAppOpsService = (AppOpsService) IAppOpsService.Stub.asInterface(b); in getAppOpsService() 883 return mAppOpsService; in getAppOpsService()
|