Home
last modified time | relevance | path

Searched refs:mAppOpsService (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsServiceTest.java112 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/
DCameraExtensionService.java53 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/
DAttributedOp.java45 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 …]
DAppOpsRecentAccessPersistence.java54 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/
DAccessCheckDelegateHelper.java37 private final AppOpsService mAppOpsService; field in AccessCheckDelegateHelper
49 mAppOpsService = appOpsService; in AccessCheckDelegateHelper()
57 mAppOpsService.setCheckOpsDelegate(mAccessCheckDelegate); in getAccessCheckDelegateLPr()
67 mAppOpsService.setCheckOpsDelegate(null); in removeAccessCheckDelegateLPr()
DActiveServices.java1226 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 …]
DContentProviderHelper.java145 if (callingPackage != null && mService.mAppOpsService.checkPackage( in getContentProvider()
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsRecentAccessPersistenceTest.java65 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/
DServiceTimeoutTest.java81 private AppOpsService mAppOpsService; field in ServiceTimeoutTest
183 return mAppOpsService; in getAppOpsService()
DAsyncProcessStartTest.java87 private AppOpsService mAppOpsService; field in AsyncProcessStartTest
165 return mAppOpsService; in getAppOpsService()
DProcessObserverTest.java86 private AppOpsService mAppOpsService; field in ProcessObserverTest
169 return mAppOpsService; in getAppOpsService()
DBaseBroadcastQueueTest.java103 AppOpsService mAppOpsService; field in BaseBroadcastQueueTest
213 return mAppOpsService; in getAppOpsService()
DAppChildProcessTest.java69 @Mock private AppOpsService mAppOpsService; field in AppChildProcessTest
252 return mAppOpsService; in getAppOpsService()
DApplicationStartInfoTest.java87 @Mock private AppOpsService mAppOpsService; field in ApplicationStartInfoTest
590 return mAppOpsService; in getAppOpsService()
DServiceBindingOomAdjPolicyTest.java123 private AppOpsService mAppOpsService; field in ServiceBindingOomAdjPolicyTest
619 return mAppOpsService; in getAppOpsService()
DCacheOomRankerTest.java80 private AppOpsService mAppOpsService; field in CacheOomRankerTest
797 return mAppOpsService; in getAppOpsService()
DCachedAppOptimizerTest.java75 private AppOpsService mAppOpsService; field in CachedAppOptimizerTest
1038 return mAppOpsService; in getAppOpsService()
DApplicationExitInfoTest.java101 @Mock private AppOpsService mAppOpsService; field in ApplicationExitInfoTest
1090 return mAppOpsService; in getAppOpsService()
DActivityManagerServiceTest.java224 @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/
DAppStateTrackerImpl.java94 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/
DUserManagerService.java539 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);