Home
last modified time | relevance | path

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

/frameworks/base/services/tests/uiservicestests/src/com/android/server/
DUiServiceTestCase.java44 @Mock protected UriGrantsManagerInternal mUgmInternal; field in UiServiceTestCase
96 LocalServices.addService(UriGrantsManagerInternal.class, mUgmInternal); in setup()
97 when(mUgmInternal.checkGrantUriPermission( in setup()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionSessionConnection.java119 final UriGrantsManagerInternal mUgmInternal; field in VoiceInteractionSessionConnection
232 mUgmInternal = LocalServices.getService(UriGrantsManagerInternal.class); in VoiceInteractionSessionConnection()
243 final IBinder permOwner = mUgmInternal.newUriPermissionOwner("voicesession:" in VoiceInteractionSessionConnection()
489 mUgmInternal.checkGrantUriPermission(srcUid, null, in grantUriPermission()
539 mUgmInternal.revokeUriPermissionFromOwner(mPermissionOwner, null, in hideLocked()
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java140 private final UriGrantsManagerInternal mUgmInternal; field in ClipboardService
179 mUgmInternal = LocalServices.getService(UriGrantsManagerInternal.class); in ClipboardService()
190 final IBinder permOwner = mUgmInternal.newUriPermissionOwner("clipboard"); in ClipboardService()
1191 mUgmInternal.checkGrantUriPermission(sourceUid, null, in checkUriOwner()
1275 mUgmInternal.revokeUriPermissionFromOwner(mPermissionOwner, in revokeUriPermission()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityCallerState.java168 if (mAtmService.mUgmInternal.checkUriPermission(grantUri, uid, in addContentUriIfUidHasPermission()
DActivityStartController.java449 intentGrants = mSupervisor.mService.mUgmInternal in startActivities()
DActivityStarter.java599 intentGrants = supervisor.mService.mUgmInternal in resolveActivity()
605 intentGrants = supervisor.mService.mUgmInternal in resolveActivity()
1853 mService.mUgmInternal.grantUriPermissionUncheckedFromIntent(intentGrants, in startActivityInner()
DActivityClientController.java770 if (!mService.mUgmInternal.checkUriPermission(grantUri, Binder.getCallingUid(), modeFlags, in checkActivityCallerContentUriPermission()
DActivityRecord.java3618 mAtmService.mUgmInternal.grantUriPermissionUncheckedFromIntent(resultGrants, in finishActivityResults()
4953 uriPermissions = new UriPermissionOwner(mAtmService.mUgmInternal, this); in getUriPermissionsLocked()
5010 mAtmService.mUgmInternal.grantUriPermissionUncheckedFromIntent(dataGrants, in sendResult()
5119 mAtmService.mUgmInternal.grantUriPermissionUncheckedFromIntent(intentGrants, in deliverNewIntentLocked()
DActivityTaskManagerService.java377 UriGrantsManagerInternal mUgmInternal; field in ActivityTaskManagerService
1034 mUgmInternal = LocalServices.getService(UriGrantsManagerInternal.class); in onActivityManagerInternalAdded()
2191 return mUgmInternal.checkGrantUriPermissionFromIntent(intent, in collectGrants()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationRecord.java107 private final UriGrantsManagerInternal mUgmInternal; field in NotificationRecord
231 mUgmInternal = LocalServices.getService(UriGrantsManagerInternal.class); in NotificationRecord()
1485 mUgmInternal.checkGrantUriPermission(sourceUid, null, in visitGrantableUri()
DNotificationManagerService.java621 private UriGrantsManagerInternal mUgmInternal; field in NotificationManagerService
1707 mUgmInternal.newUriPermissionOwner("INLINE_REPLY:" + key),
2415 mUgmInternal = ugmInternal; in init()
6461 mUgmInternal.checkGrantUriPermission(sourceUid, null,
9829 permissionOwner = mUgmInternal.newUriPermissionOwner("NOTIF:" + key);
9909 mUgmInternal.revokeUriPermissionFromOwner(
9923 mUgmInternal.revokeUriPermissionFromOwner(owner, null, ~0, userId);
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionRecord.java187 private final UriGrantsManagerInternal mUgmInternal; field in MediaSessionRecord
313 mUgmInternal = LocalServices.getService(UriGrantsManagerInternal.class); in MediaSessionRecord()
1325 mUgmInternal.checkGrantUriPermission(getUid(),
/frameworks/base/services/core/java/com/android/server/am/
DContentProviderHelper.java1576 if (mService.mUgmInternal.checkAuthorityGrants( in checkContentProviderPermission()
1625 && mService.mUgmInternal.checkAuthorityGrants(callingUid, cpi, userId, checkUser)) { in checkContentProviderPermission()
DServiceRecord.java538 uriPermissions = new UriPermissionOwner(sr.ams.mUgmInternal, this); in getUriPermissionsLocked()
DActiveServices.java1185 NeededUriGrants neededGrants = mAm.mUgmInternal.checkGrantUriPermissionFromIntent( in startServiceInnerLocked()
6163 mAm.mUgmInternal.grantUriPermissionUncheckedFromIntent(si.neededGrants, in sendServiceArgsLocked()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java488 UriGrantsManagerInternal mUgmInternal; field in NotificationManagerServiceTest
577 LocalServices.addService(UriGrantsManagerInternal.class, mUgmInternal); in setUp()
640 when(mUgmInternal.newUriPermissionOwner(anyString())).thenReturn(mPermOwner); in setUp()
751 mAppUsageStats, mDevicePolicyManager, mUgm, mUgmInternal, in initNMS()
4194 doThrow(new SecurityException("no access")).when(mUgmInternal) in testUpdateNotificationChannelFromPrivilegedListener_noSoundUriPermission()
4226 doThrow(new SecurityException("no access")).when(mUgmInternal) in testUpdateNotificationChannelFromPrivilegedListener_noSoundUriPermission_sameSound()
6691 reset(mUgmInternal); in updateUriPermissions_update()
6692 when(mUgmInternal.newUriPermissionOwner(any())).thenReturn(new Binder()); in updateUriPermissions_update()
6709 reset(mUgmInternal); in updateUriPermissions_update()
6712 verify(mUgmInternal, times(1)).revokeUriPermissionFromOwner(any(), in updateUriPermissions_update()
[all …]