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.java39 @Mock protected UriGrantsManagerInternal mUgmInternal; field in UiServiceTestCase
81 LocalServices.addService(UriGrantsManagerInternal.class, mUgmInternal); in setup()
82 when(mUgmInternal.checkGrantUriPermission( in setup()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionSessionConnection.java91 final UriGrantsManagerInternal mUgmInternal; field in VoiceInteractionSessionConnection
152 mUgmInternal = LocalServices.getService(UriGrantsManagerInternal.class); in VoiceInteractionSessionConnection()
159 final IBinder permOwner = mUgmInternal.newUriPermissionOwner("voicesession:" in VoiceInteractionSessionConnection()
365 mUgmInternal.checkGrantUriPermission(srcUid, null, in grantUriPermission()
415 mUgmInternal.revokeUriPermissionFromOwner(mPermissionOwner, null, in hideLocked()
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java108 private final UriGrantsManagerInternal mUgmInternal; field in ClipboardService
139 mUgmInternal = LocalServices.getService(UriGrantsManagerInternal.class); in ClipboardService()
146 final IBinder permOwner = mUgmInternal.newUriPermissionOwner("clipboard"); in ClipboardService()
757 mUgmInternal.checkGrantUriPermission(sourceUid, null, in checkUriOwner()
847 mUgmInternal.revokeUriPermissionFromOwner(mPermissionOwner, in revokeUriPermission()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationRecord.java98 UriGrantsManagerInternal mUgmInternal; field in NotificationRecord
209 mUgmInternal = LocalServices.getService(UriGrantsManagerInternal.class); in NotificationRecord()
1321 mUgmInternal.checkGrantUriPermission(sourceUid, null, in visitGrantableUri()
DNotificationManagerService.java487 private UriGrantsManagerInternal mUgmInternal; field in NotificationManagerService
1489 mUgmInternal.newUriPermissionOwner("INLINE_REPLY:" + key),
2185 mUgmInternal = ugmInternal; in init()
8498 permissionOwner = mUgmInternal.newUriPermissionOwner("NOTIF:" + key);
8578 mUgmInternal.revokeUriPermissionFromOwner(
8592 mUgmInternal.revokeUriPermissionFromOwner(owner, null, ~0, userId);
/frameworks/base/services/core/java/com/android/server/wm/
DActivityStartController.java397 intentGrants = mSupervisor.mService.mUgmInternal in startActivities()
DActivityStarter.java534 intentGrants = supervisor.mService.mUgmInternal.checkGrantUriPermissionFromIntent( in resolveActivity()
1755 mService.mUgmInternal.grantUriPermissionUncheckedFromIntent(intentGrants, in startActivityInner()
DActivityRecord.java2843 mAtmService.mUgmInternal.grantUriPermissionUncheckedFromIntent(resultGrants, in finishActivityResults()
4062 uriPermissions = new UriPermissionOwner(mAtmService.mUgmInternal, this); in getUriPermissionsLocked()
4099 mAtmService.mUgmInternal.grantUriPermissionUncheckedFromIntent(dataGrants, in sendResult()
4142 mAtmService.mUgmInternal.grantUriPermissionUncheckedFromIntent(intentGrants, in deliverNewIntentLocked()
DActivityTaskManagerService.java345 UriGrantsManagerInternal mUgmInternal; field in ActivityTaskManagerService
952 mUgmInternal = LocalServices.getService(UriGrantsManagerInternal.class); in onActivityManagerInternalAdded()
1996 return mUgmInternal.checkGrantUriPermissionFromIntent(intent, in collectGrants()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java311 UriGrantsManagerInternal mUgmInternal; field in NotificationManagerServiceTest
439 LocalServices.addService(UriGrantsManagerInternal.class, mUgmInternal); in setUp()
475 when(mUgmInternal.newUriPermissionOwner(anyString())).thenReturn(mPermOwner); in setUp()
523 mAppUsageStats, mock(DevicePolicyManagerInternal.class), mUgm, mUgmInternal, in setUp()
4084 reset(mUgmInternal); in updateUriPermissions_update()
4085 when(mUgmInternal.newUriPermissionOwner(any())).thenReturn(new Binder()); in updateUriPermissions_update()
4102 reset(mUgmInternal); in updateUriPermissions_update()
4105 verify(mUgmInternal, times(1)).revokeUriPermissionFromOwner(any(), in updateUriPermissions_update()
4116 reset(mUgmInternal); in updateUriPermissions_update()
4119 verify(mUgmInternal, times(1)).revokeUriPermissionFromOwner(any(), eq(null), in updateUriPermissions_update()
[all …]
DNotificationRecordTest.java824 record.mUgmInternal = ugm; in testCalculateGrantableUris_PappProvided()
/frameworks/base/services/core/java/com/android/server/am/
DContentProviderHelper.java1433 if (mService.mUgmInternal.checkAuthorityGrants( in checkContentProviderPermission()
1482 && mService.mUgmInternal.checkAuthorityGrants(callingUid, cpi, userId, checkUser)) { in checkContentProviderPermission()
DServiceRecord.java225 uriPermissions = new UriPermissionOwner(sr.ams.mUgmInternal, this); in getUriPermissionsLocked()
DActivityManagerService.java1409 UriGrantsManagerInternal mUgmInternal; field in ActivityManagerService
2216 mUgmInternal = LocalServices.getService(UriGrantsManagerInternal.class); in ActivityManagerService()
2309 mUgmInternal = LocalServices.getService(UriGrantsManagerInternal.class); in ActivityManagerService()
3552 mUgmInternal.removeUriPermissionsForPackage(packageName, resolvedUserId, in clearApplicationUserData()
4197 mUgmInternal.removeUriPermissionsForPackage(packageName, userId, false, false); in forceStopPackageLocked()
5688 return mUgmInternal.checkUriPermission(new GrantUri(userId, uri, modeFlags), uid, modeFlags) in checkUriPermission()
5738 final NeededUriGrants needed = mUgmInternal.checkGrantUriPermissionFromIntent(intent, in grantUriPermission()
5740 mUgmInternal.grantUriPermissionUncheckedFromIntent(needed, null); in grantUriPermission()
5777 mUgmInternal.revokeUriPermission(targetPackage, r.uid, in revokeUriPermission()
7592 mUgmInternal.onSystemReady(); in systemReady()
[all …]
DActiveServices.java796 NeededUriGrants neededGrants = mAm.mUgmInternal.checkGrantUriPermissionFromIntent( in startServiceInnerLocked()
4038 mAm.mUgmInternal.grantUriPermissionUncheckedFromIntent(si.neededGrants, in sendServiceArgsLocked()