/frameworks/base/services/tests/uiservicestests/src/com/android/server/ |
D | UiServiceTestCase.java | 44 @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/ |
D | VoiceInteractionSessionConnection.java | 119 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/ |
D | ClipboardService.java | 140 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/ |
D | ActivityCallerState.java | 168 if (mAtmService.mUgmInternal.checkUriPermission(grantUri, uid, in addContentUriIfUidHasPermission()
|
D | ActivityStartController.java | 449 intentGrants = mSupervisor.mService.mUgmInternal in startActivities()
|
D | ActivityStarter.java | 599 intentGrants = supervisor.mService.mUgmInternal in resolveActivity() 605 intentGrants = supervisor.mService.mUgmInternal in resolveActivity() 1853 mService.mUgmInternal.grantUriPermissionUncheckedFromIntent(intentGrants, in startActivityInner()
|
D | ActivityClientController.java | 770 if (!mService.mUgmInternal.checkUriPermission(grantUri, Binder.getCallingUid(), modeFlags, in checkActivityCallerContentUriPermission()
|
D | ActivityRecord.java | 3618 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()
|
D | ActivityTaskManagerService.java | 377 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/ |
D | NotificationRecord.java | 107 private final UriGrantsManagerInternal mUgmInternal; field in NotificationRecord 231 mUgmInternal = LocalServices.getService(UriGrantsManagerInternal.class); in NotificationRecord() 1485 mUgmInternal.checkGrantUriPermission(sourceUid, null, in visitGrantableUri()
|
D | NotificationManagerService.java | 621 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/ |
D | MediaSessionRecord.java | 187 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/ |
D | ContentProviderHelper.java | 1576 if (mService.mUgmInternal.checkAuthorityGrants( in checkContentProviderPermission() 1625 && mService.mUgmInternal.checkAuthorityGrants(callingUid, cpi, userId, checkUser)) { in checkContentProviderPermission()
|
D | ServiceRecord.java | 538 uriPermissions = new UriPermissionOwner(sr.ams.mUgmInternal, this); in getUriPermissionsLocked()
|
D | ActiveServices.java | 1185 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/ |
D | NotificationManagerServiceTest.java | 488 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 …]
|