/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/ |
D | AppOpsServiceTest.java | 112 private AppOpsService mAppOpsService; field in AppOpsServiceTest 119 mAppOpsService = new AppOpsService(mRecentAccessesFile, mStorageFile, mHandler, in setupAppOpsService() 121 mAppOpsService.mHistoricalRegistry.systemReady(sContext.getContentResolver()); in setupAppOpsService() 122 mAppOpsService.prepareInternalCallbacks(); in setupAppOpsService() 125 doNothing().when(mAppOpsService.mContext).enforcePermission(anyString(), anyInt(), in setupAppOpsService() 158 mAppOpsService.shutdown(); in tearDown() 256 mAppOpsService.setMode(OP_READ_SMS, mMyUid, sMyPackageName, MODE_ALLOWED); in testNoteOperationAndGetOpsForPackage() 257 mAppOpsService.setMode(OP_WRITE_SMS, mMyUid, sMyPackageName, MODE_ERRORED); in testNoteOperationAndGetOpsForPackage() 260 mAppOpsService.noteOperation(OP_READ_SMS, mMyUid, sMyPackageName, null, false, null, false); in testNoteOperationAndGetOpsForPackage() 265 mAppOpsService.noteOperation(OP_WRITE_SMS, mMyUid, sMyPackageName, null, false, null, in testNoteOperationAndGetOpsForPackage() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/extension/ |
D | CameraExtensionService.java | 53 private final AppOpsManager mAppOpsService = getApplicationContext().getSystemService( field in CameraExtensionService.CameraTracker 61 if (mAppOpsService != null) { in startCameraOperation() 62 mAppOpsService.startOp(AppOpsManager.OPSTR_CAMERA, mUid, mPackageName, in startCameraOperation() 69 if (mAppOpsService != null) { in finishCameraOperation() 70 mAppOpsService.finishOp(AppOpsManager.OPSTR_CAMERA, mUid, mPackageName, in finishCameraOperation()
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AttributedOp.java | 45 private final @NonNull AppOpsService mAppOpsService; field in AttributedOp 88 mAppOpsService = appOpsService; in AttributedOp() 111 mAppOpsService.mHistoricalRegistry.incrementOpAccessedCount(parent.op, parent.uid, in accessed() 141 proxyInfo = mAppOpsService.mOpEventProxyInfoPool.acquire(proxyUid, proxyPackageName, in accessed() 148 mAppOpsService.mOpEventProxyInfoPool); in accessed() 163 mAppOpsService.mHistoricalRegistry.incrementOpRejected(parent.op, parent.uid, in rejected() 186 existingEvent.reinit(noteTime, -1, null, mAppOpsService.mOpEventProxyInfoPool); in rejected() 224 mAppOpsService.scheduleOpActiveChangedIfNeededLocked(parent.op, parent.uid, in startedOrPaused() 240 event = mAppOpsService.mInProgressStartOpEventPool.acquire(startTime, in startedOrPaused() 255 mAppOpsService.mHistoricalRegistry.incrementOpAccessedCount(parent.op, parent.uid, in startedOrPaused() [all …]
|
D | AppOpsRecentAccessPersistence.java | 54 final AppOpsService mAppOpsService; field in AppOpsRecentAccessPersistence 82 mAppOpsService = appOpsService; in AppOpsRecentAccessPersistence() 106 mAppOpsService.mAppOpsCheckingService.clearAllModes(); in readRecentAccesses() 145 mAppOpsService.mAppOpsCheckingService.clearAllModes(); in readRecentAccesses() 182 final AppOpsService.UidState uidState = mAppOpsService.new UidState(uid); in readUid() 207 AppOpsService.Op op = mAppOpsService.new Op(uidState, pkgName, opCode, uidState.uid); in readOp()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | AccessCheckDelegateHelper.java | 37 private final AppOpsService mAppOpsService; field in AccessCheckDelegateHelper 49 mAppOpsService = appOpsService; in AccessCheckDelegateHelper() 57 mAppOpsService.setCheckOpsDelegate(mAccessCheckDelegate); in getAccessCheckDelegateLPr() 67 mAppOpsService.setCheckOpsDelegate(null); in removeAccessCheckDelegateLPr()
|
D | ActiveServices.java | 1226 mAm.mAppOpsService.startOperation(AppOpsManager.getToken(mAm.mAppOpsService), in startServiceInnerLocked() 2669 mAm.mAppOpsService.startOperation( in setServiceForegroundInnerLocked() 2670 AppOpsManager.getToken(mAm.mAppOpsService), in setServiceForegroundInnerLocked() 2737 mAm.mAppOpsService.finishOperation( in setServiceForegroundInnerLocked() 2738 AppOpsManager.getToken(mAm.mAppOpsService), in setServiceForegroundInnerLocked() 2784 mAm.mAppOpsService.finishOperation( in setServiceForegroundInnerLocked() 2785 AppOpsManager.getToken(mAm.mAppOpsService), in setServiceForegroundInnerLocked() 6346 mAm.mAppOpsService.finishOperation(AppOpsManager.getToken(mAm.mAppOpsService), in bringDownServiceLocked() 6412 mAm.mAppOpsService.finishOperation( in bringDownServiceLocked() 6413 AppOpsManager.getToken(mAm.mAppOpsService), in bringDownServiceLocked() [all …]
|
D | ContentProviderHelper.java | 145 if (callingPackage != null && mService.mAppOpsService.checkPackage( in getContentProvider()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/ |
D | AppOpsRecentAccessPersistenceTest.java | 65 private AppOpsService mAppOpsService; field in AppOpsRecentAccessPersistenceTest 81 mAppOpsService = new AppOpsService(mRecentAccessFile, mRecentAccessFile, handler, mContext); in setUp() 96 new AppOpsRecentAccessPersistence(recentAccessFile, mAppOpsService); in readAndWriteRecentAccesses()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | ServiceTimeoutTest.java | 81 private AppOpsService mAppOpsService; field in ServiceTimeoutTest 183 return mAppOpsService; in getAppOpsService()
|
D | AsyncProcessStartTest.java | 87 private AppOpsService mAppOpsService; field in AsyncProcessStartTest 165 return mAppOpsService; in getAppOpsService()
|
D | ProcessObserverTest.java | 86 private AppOpsService mAppOpsService; field in ProcessObserverTest 169 return mAppOpsService; in getAppOpsService()
|
D | BaseBroadcastQueueTest.java | 103 AppOpsService mAppOpsService; field in BaseBroadcastQueueTest 213 return mAppOpsService; in getAppOpsService()
|
D | AppChildProcessTest.java | 69 @Mock private AppOpsService mAppOpsService; field in AppChildProcessTest 252 return mAppOpsService; in getAppOpsService()
|
D | ApplicationStartInfoTest.java | 87 @Mock private AppOpsService mAppOpsService; field in ApplicationStartInfoTest 590 return mAppOpsService; in getAppOpsService()
|
D | ServiceBindingOomAdjPolicyTest.java | 123 private AppOpsService mAppOpsService; field in ServiceBindingOomAdjPolicyTest 619 return mAppOpsService; in getAppOpsService()
|
D | CacheOomRankerTest.java | 80 private AppOpsService mAppOpsService; field in CacheOomRankerTest 797 return mAppOpsService; in getAppOpsService()
|
D | CachedAppOptimizerTest.java | 75 private AppOpsService mAppOpsService; field in CachedAppOptimizerTest 1038 return mAppOpsService; in getAppOpsService()
|
D | ApplicationExitInfoTest.java | 101 @Mock private AppOpsService mAppOpsService; field in ApplicationExitInfoTest 1090 return mAppOpsService; in getAppOpsService()
|
D | ActivityManagerServiceTest.java | 224 @Mock private AppOpsService mAppOpsService; field in ActivityManagerServiceTest 293 when(mAppOpsService.noteOperation(eq(AppOpsManager.OP_GET_USAGE_STATS), eq(Process.myUid()), in mockNoteOperation() 1514 return mAppOpsService; in getAppOpsService()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/ |
D | AppStateTrackerImpl.java | 94 IAppOpsService mAppOpsService; field in AppStateTrackerImpl 491 mAppOpsService = Objects.requireNonNull(injectIAppOpsService()); in onSystemServicesReady() 511 mAppOpsService.startWatchingMode(TARGET_OP, null, in onSystemServicesReady() 750 restricted = mAppOpsService.checkOperation(TARGET_OP, in opChanged()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserManagerService.java | 539 private IAppOpsService mAppOpsService; field in UserManagerService 1097 mAppOpsService = IAppOpsService.Stub.asInterface( in systemReady() 3517 if (mAppOpsService != null) { // We skip it until system-ready. in updateUserRestrictionsInternalLR() 3520 mAppOpsService.setUserRestrictions(effective, mUserRestrictionToken, userId); in updateUserRestrictionsInternalLR() 6204 mAppOpsService.removeUser(userId);
|