/frameworks/base/services/tests/servicestests/src/com/android/server/appop/ |
D | AppOpsServiceTest.java | 76 private AppOpsService mAppOpsService; field in AppOpsServiceTest 99 mAppOpsService = new AppOpsService(mAppOpsFile, mHandler); in setUp() 100 mAppOpsService.mHistoricalRegistry.systemReady(mContext.getContentResolver()); in setUp() 101 mAppOpsService.mContext = mContext; in setUp() 128 mAppOpsService.setMode(OP_READ_SMS, mMyUid, mMyPackageName, MODE_ALLOWED); in testNoteOperationAndGetOpsForPackage() 129 mAppOpsService.setMode(OP_WRITE_SMS, mMyUid, mMyPackageName, MODE_ERRORED); in testNoteOperationAndGetOpsForPackage() 132 mAppOpsService.noteOperation(OP_READ_SMS, mMyUid, mMyPackageName); in testNoteOperationAndGetOpsForPackage() 137 mAppOpsService.noteOperation(OP_WRITE_SMS, mMyUid, mMyPackageName); in testNoteOperationAndGetOpsForPackage() 151 mAppOpsService.setMode(OP_COARSE_LOCATION, mMyUid, mMyPackageName, MODE_ALLOWED); in testNoteOperationAndGetOpsForPackage_controlledByDifferentOp() 153 assertThat(mAppOpsService.noteOperation(OP_WIFI_SCAN, mMyUid, mMyPackageName)) in testNoteOperationAndGetOpsForPackage_controlledByDifferentOp() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityTestsBase.java | 438 AppOpsService mAppOpsService; field in ActivityTestsBase.TestActivityTaskManagerService 445 mAppOpsService = mock(AppOpsService.class); in TestActivityTaskManagerService() 449 .when(mAppOpsService).noteOperation(anyInt(), anyInt(), anyString()); in TestActivityTaskManagerService() 514 return mAppOpsService; in getAppOpsService()
|
/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/core/java/com/android/server/am/ |
D | ActiveServices.java | 396 final int mode = mAm.mAppOpsService.checkOperation( in appRestrictedAnyInBackground() 467 final int mode = mAm.mAppOpsService.checkOperation( in startServiceLocked() 567 mAm.mAppOpsService.startOperation(AppOpsManager.getToken(mAm.mAppOpsService), in startServiceLocked() 1246 final int mode = mAm.mAppOpsService.checkOperation( in setServiceForegroundInnerLocked() 1304 final int mode = mAm.mAppOpsService.checkOperation( in setServiceForegroundInnerLocked() 1379 mAm.mAppOpsService.startOperation( in setServiceForegroundInnerLocked() 1380 AppOpsManager.getToken(mAm.mAppOpsService), in setServiceForegroundInnerLocked() 1413 mAm.mAppOpsService.finishOperation( in setServiceForegroundInnerLocked() 1414 AppOpsManager.getToken(mAm.mAppOpsService), in setServiceForegroundInnerLocked() 1430 mAm.mAppOpsService.finishOperation( in setServiceForegroundInnerLocked() [all …]
|
D | BroadcastQueue.java | 649 && mService.mAppOpsService.noteOperation(opCode, r.callingUid, in deliverToRegisteredReceiverLocked() 681 && mService.mAppOpsService.noteOperation(appOp, in deliverToRegisteredReceiverLocked() 713 && mService.mAppOpsService.noteOperation(r.appOp, in deliverToRegisteredReceiverLocked() 1369 && mService.mAppOpsService.noteOperation(opCode, r.callingUid, in processNextBroadcastLocked() 1407 && mService.mAppOpsService.noteOperation(appOp, in processNextBroadcastLocked() 1423 && mService.mAppOpsService.noteOperation(r.appOp, in processNextBroadcastLocked()
|
D | ActivityManagerService.java | 1176 final AppOpsService mAppOpsService; field in ActivityManagerService 2080 mAppOpsService.startWatchingMode(AppOpsManager.OP_RUN_IN_BACKGROUND, null, in setSystemProcess() 2084 if (mAppOpsService.checkOperation(op, uid, packageName) in setSystemProcess() 2121 return mAppOpsService; in getAppOpsService() 2403 mAppOpsService = mInjector.getAppOpsService(null /* file */, null /* handler */); in ActivityManagerService() 2510 mAppOpsService = mInjector.getAppOpsService(new File(systemDir, "appops.xml"), mHandler); in ActivityManagerService() 2599 mAppOpsService.publish(mContext); in start() 3143 final int mode = mAppOpsService.noteOperation(AppOpsManager.OP_GET_USAGE_STATS, in hasUsageStatsPermission() 5804 return mActivityManagerService.mAppOpsService in noteOp() 5956 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 473 when(mAppOpsService.noteOperation(AppOpsManager.OP_GET_USAGE_STATS, Process.myUid(), null)) in testDispatchUids_dispatchNeededChanges() 927 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 | 378 private IAppOpsService mAppOpsService; field in UserManagerService 557 mAppOpsService = IAppOpsService.Stub.asInterface( in systemReady() 1719 if (mAppOpsService != null) { // We skip it until system-ready. in updateUserRestrictionsInternalLR() 1724 mAppOpsService.setUserRestrictions(effective, mUserRestriconToken, userId); in updateUserRestrictionsInternalLR() 2994 mAppOpsService.removeUser(userHandle); in removeUserUnchecked()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityTaskManagerService.java | 376 private AppOpsService mAppOpsService; field in ActivityTaskManagerService 876 if (mAppOpsService == null) { in getAppOpsService() 878 mAppOpsService = (AppOpsService) IAppOpsService.Stub.asInterface(b); in getAppOpsService() 880 return mAppOpsService; in getAppOpsService()
|