/frameworks/base/services/tests/uiservicestests/src/com/android/server/ |
D | UiServiceTestCase.java | 37 @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/ |
D | VoiceInteractionSessionConnection.java | 90 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/ |
D | ClipboardService.java | 165 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/ |
D | NotificationRecord.java | 98 UriGrantsManagerInternal mUgmInternal; field in NotificationRecord 201 mUgmInternal = LocalServices.getService(UriGrantsManagerInternal.class); in NotificationRecord() 1253 mUgmInternal.checkGrantUriPermission(sourceUid, null, in visitGrantableUri()
|
D | NotificationManagerService.java | 369 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/ |
D | ActivityTestsBase.java | 443 mUgmInternal = mock(UriGrantsManagerInternal.class); in TestActivityTaskManagerService() 607 mUgmInternal = mock(UriGrantsManagerInternal.class); in TestActivityManagerService()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationManagerServiceTest.java | 233 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()
|
D | NotificationRecordTest.java | 738 record.mUgmInternal = ugm; in testCalculateGrantableUris_PappProvided()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ServiceRecord.java | 171 uriPermissions = new UriPermissionOwner(sr.ams.mUgmInternal, this); in getUriPermissionsLocked()
|
D | ActivityManagerService.java | 1480 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 …]
|
D | ActiveServices.java | 536 NeededUriGrants neededGrants = mAm.mUgmInternal.checkGrantUriPermissionFromIntent( in startServiceLocked() 2780 mAm.mUgmInternal.grantUriPermissionUncheckedFromIntent(si.neededGrants, in sendServiceArgsLocked()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityRecord.java | 1552 uriPermissions = new UriPermissionOwner(mAtmService.mUgmInternal, this); in getUriPermissionsLocked() 1604 mAtmService.mUgmInternal.grantUriPermissionFromIntent(callingUid, packageName, in deliverNewIntentLocked()
|
D | ActivityStack.java | 3619 mService.mUgmInternal.grantUriPermissionFromIntent(callingUid, r.packageName, in sendActivityResultLocked() 3948 mService.mUgmInternal.grantUriPermissionFromIntent(r.info.applicationInfo.uid, in finishActivityResultsLocked()
|
D | ActivityStarter.java | 1684 mService.mUgmInternal.grantUriPermissionFromIntent(mCallingUid, mStartActivity.packageName, in startActivityUnchecked()
|
D | ActivityTaskManagerService.java | 351 UriGrantsManagerInternal mUgmInternal; field in ActivityTaskManagerService 837 mUgmInternal = LocalServices.getService(UriGrantsManagerInternal.class); in onActivityManagerInternalAdded()
|