Home
last modified time | relevance | path

Searched refs:mUgmInternal (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/
DUiServiceTestCase.java37 @Mock protected UriGrantsManagerInternal mUgmInternal; field in UiServiceTestCase
76 LocalServices.addService(UriGrantsManagerInternal.class, mUgmInternal); in setup()
77 when(mUgmInternal.checkGrantUriPermission( in setup()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionSessionConnection.java90 final UriGrantsManagerInternal mUgmInternal; field in VoiceInteractionSessionConnection
150 mUgmInternal = LocalServices.getService(UriGrantsManagerInternal.class); in VoiceInteractionSessionConnection()
157 final IBinder permOwner = mUgmInternal.newUriPermissionOwner("voicesession:" in VoiceInteractionSessionConnection()
315 mUgmInternal.checkGrantUriPermission(srcUid, null, in grantUriPermission()
365 mUgmInternal.revokeUriPermissionFromOwner(mPermissionOwner, null, in hideLocked()
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java165 private final UriGrantsManagerInternal mUgmInternal; field in ClipboardService
186 mUgmInternal = LocalServices.getService(UriGrantsManagerInternal.class); in ClipboardService()
193 final IBinder permOwner = mUgmInternal.newUriPermissionOwner("clipboard"); in ClipboardService()
623 mUgmInternal.checkGrantUriPermission(sourceUid, null, in checkUriOwnerLocked()
712 mUgmInternal.revokeUriPermissionFromOwner(mPermissionOwner, in revokeUriLocked()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationRecord.java98 UriGrantsManagerInternal mUgmInternal; field in NotificationRecord
201 mUgmInternal = LocalServices.getService(UriGrantsManagerInternal.class); in NotificationRecord()
1253 mUgmInternal.checkGrantUriPermission(sourceUid, null, in visitGrantableUri()
DNotificationManagerService.java369 private UriGrantsManagerInternal mUgmInternal; field in NotificationManagerService
1593 mUgmInternal = ugmInternal; in init()
6567 permissionOwner = mUgmInternal.newUriPermissionOwner("NOTIF:" + key);
6575 mUgmInternal.revokeUriPermissionFromOwner(permissionOwner, null, ~0,
6634 mUgmInternal.revokeUriPermissionFromOwner(
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityTestsBase.java443 mUgmInternal = mock(UriGrantsManagerInternal.class); in TestActivityTaskManagerService()
607 mUgmInternal = mock(UriGrantsManagerInternal.class); in TestActivityManagerService()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java233 UriGrantsManagerInternal mUgmInternal; field in NotificationManagerServiceTest
332 LocalServices.addService(UriGrantsManagerInternal.class, mUgmInternal); in setUp()
356 when(mUgmInternal.newUriPermissionOwner(anyString())).thenReturn(mPermOwner); in setUp()
392 mock(DevicePolicyManagerInternal.class), mUgm, mUgmInternal, in setUp() local
3084 reset(mUgmInternal); in updateUriPermissions_update()
3085 when(mUgmInternal.newUriPermissionOwner(any())).thenReturn(new Binder()); in updateUriPermissions_update()
3101 reset(mUgmInternal); in updateUriPermissions_update()
3104 verify(mUgmInternal, times(1)).revokeUriPermissionFromOwner(any(), in updateUriPermissions_update()
3115 reset(mUgmInternal); in updateUriPermissions_update()
3118 verify(mUgmInternal, times(1)).revokeUriPermissionFromOwner(any(), eq(null), in updateUriPermissions_update()
DNotificationRecordTest.java738 record.mUgmInternal = ugm; in testCalculateGrantableUris_PappProvided()
/frameworks/base/services/core/java/com/android/server/am/
DServiceRecord.java171 uriPermissions = new UriPermissionOwner(sr.ams.mUgmInternal, this); in getUriPermissionsLocked()
DActivityManagerService.java1480 public UriGrantsManagerInternal mUgmInternal; field in ActivityManagerService
2512 mUgmInternal = LocalServices.getService(UriGrantsManagerInternal.class); in ActivityManagerService()
2603 mUgmInternal.onActivityManagerInternalAdded(); in start()
4105 mUgmInternal.removeUriPermissionsForPackage(packageName, resolvedUserId, in clearApplicationUserData()
4680 mUgmInternal.removeUriPermissionsForPackage(packageName, userId, false, false); in forceStopPackageLocked()
6135 return mUgmInternal.checkUriPermission(new GrantUri(userId, uri, false), uid, modeFlags) in checkUriPermission()
6167 mUgmInternal.grantUriPermission(r.uid, targetPkg, grantUri, modeFlags, null, in grantUriPermission()
6205 mUgmInternal.revokeUriPermission(targetPackage, r.uid, new GrantUri(userId, uri, false), in revokeUriPermission()
6511 if (mUgmInternal.checkAuthorityGrants( in checkContentProviderPermissionLocked()
6559 && mUgmInternal.checkAuthorityGrants(callingUid, cpi, userId, checkUser)) { in checkContentProviderPermissionLocked()
[all …]
DActiveServices.java536 NeededUriGrants neededGrants = mAm.mUgmInternal.checkGrantUriPermissionFromIntent( in startServiceLocked()
2780 mAm.mUgmInternal.grantUriPermissionUncheckedFromIntent(si.neededGrants, in sendServiceArgsLocked()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityRecord.java1552 uriPermissions = new UriPermissionOwner(mAtmService.mUgmInternal, this); in getUriPermissionsLocked()
1604 mAtmService.mUgmInternal.grantUriPermissionFromIntent(callingUid, packageName, in deliverNewIntentLocked()
DActivityStack.java3619 mService.mUgmInternal.grantUriPermissionFromIntent(callingUid, r.packageName, in sendActivityResultLocked()
3948 mService.mUgmInternal.grantUriPermissionFromIntent(r.info.applicationInfo.uid, in finishActivityResultsLocked()
DActivityStarter.java1684 mService.mUgmInternal.grantUriPermissionFromIntent(mCallingUid, mStartActivity.packageName, in startActivityUnchecked()
DActivityTaskManagerService.java351 UriGrantsManagerInternal mUgmInternal; field in ActivityTaskManagerService
837 mUgmInternal = LocalServices.getService(UriGrantsManagerInternal.class); in onActivityManagerInternalAdded()