/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
D | TileRequestDialogTest.kt | 66 private lateinit var ugm: IUriGrantsManager variable in com.android.systemui.qs.external.TileRequestDialogTest 89 dialog.setTileData(tileData, ugm) in setTileData_hasCorrectViews() 104 dialog.setTileData(tileData, ugm) in setTileData_hasCorrectAppName() 117 dialog.setTileData(tileData, ugm) in setTileData_hasCorrectLabel() 132 dialog.setTileData(tileData, ugm) in setTileData_hasIcon() 146 dialog.setTileData(tileData, ugm) in setTileData_nullIcon_hasIcon() 161 dialog.setTileData(tileData, ugm) in setTileData_hasNoStateDescription() 177 dialog.setTileData(tileData, ugm) in setTileData_tileNotClickable() 194 dialog.setTileData(tileData, ugm) in setTileData_tileHasCorrectContentDescription() 215 eq(ugm), in uriIconLoadSuccess_correctIcon() [all …]
|
D | CustomTileTest.kt | 100 @Mock private lateinit var ugm: IUriGrantsManager variable in com.android.systemui.qs.external.CustomTileTest 126 ugm, in create() 457 eq(ugm), in uriIconLoadSuccess_correctIcon() 477 verify(icon).loadDrawableCheckingUriGrant(context, ugm, UID, packageName) in uriIconLoadSuccess_correctIcon() 496 eq(ugm), in uriIconLoadFailsWithoutGrant_defaultIcon() 517 verify(icon).loadDrawableCheckingUriGrant(context, ugm, UID, packageName) in uriIconLoadFailsWithoutGrant_defaultIcon()
|
D | TileServiceRequestControllerTest.kt | 77 private lateinit var ugm: IUriGrantsManager variable in com.android.systemui.qs.external.TileServiceRequestControllerTest 96 ugm, in setUp() 123 ugm, in requestTileAdd_dataIsPassedToDialog() 338 ugm, in commandQueueCallback_dataPassedToDialog()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DragAndDropPermissionsHandler.java | 135 UriGrantsManagerInternal ugm = LocalServices.getService(UriGrantsManagerInternal.class); in release() local 137 ugm.revokeUriPermissionFromOwner(permissionOwner, mUris.get(i), mMode, mSourceUserId); in release()
|
/frameworks/base/services/core/java/com/android/server/ |
D | MmsServiceBroker.java | 530 final UriGrantsManagerInternal ugm = LocalServices in adjustUriForUserAndGrantPermission() local 532 final NeededUriGrants needed = ugm.checkGrantUriPermissionFromIntent( in adjustUriForUserAndGrantPermission() 534 ugm.grantUriPermissionUncheckedFromIntent(needed, null); in adjustUriForUserAndGrantPermission() 544 final NeededUriGrants carrierNeeded = ugm.checkGrantUriPermissionFromIntent( in adjustUriForUserAndGrantPermission() 547 ugm.grantUriPermissionUncheckedFromIntent(carrierNeeded, null); in adjustUriForUserAndGrantPermission()
|
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/ |
D | IconTest.java | 552 TestableIUriGrantsManager ugm = in testLoadSafeDrawable_loadSuccessful() local 556 getContext(), ugm, uid, packageName); in testLoadSafeDrawable_loadSuccessful() 559 assertThat(ugm.mRequests.size()).isEqualTo(1); in testLoadSafeDrawable_loadSuccessful() 560 TestableIUriGrantsManager.CheckRequest r = ugm.mRequests.get(0); in testLoadSafeDrawable_loadSuccessful() 596 TestableIUriGrantsManager ugm = in testLoadSafeDrawable_grantRejected_nullDrawable() local 600 getContext(), ugm, uid, packageName); in testLoadSafeDrawable_grantRejected_nullDrawable() 602 assertThat(ugm.mRequests.size()).isEqualTo(1); in testLoadSafeDrawable_grantRejected_nullDrawable() 603 TestableIUriGrantsManager.CheckRequest r = ugm.mRequests.get(0); in testLoadSafeDrawable_grantRejected_nullDrawable()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationRecordTest.java | 1019 UriGrantsManagerInternal ugm = mock(UriGrantsManagerInternal.class); in testCalculateGrantableUris_PappProvided() local 1020 when(ugm.checkGrantUriPermission(anyInt(), eq(null), any(Uri.class), in testCalculateGrantableUris_PappProvided() 1024 LocalServices.addService(UriGrantsManagerInternal.class, ugm); in testCalculateGrantableUris_PappProvided() 1040 UriGrantsManagerInternal ugm = mock(UriGrantsManagerInternal.class); in testCalculateGrantableUris_PappProvided_invalidSound() local 1041 when(ugm.checkGrantUriPermission(anyInt(), eq(null), any(Uri.class), in testCalculateGrantableUris_PappProvided_invalidSound() 1045 LocalServices.addService(UriGrantsManagerInternal.class, ugm); in testCalculateGrantableUris_PappProvided_invalidSound() 1060 UriGrantsManagerInternal ugm = mock(UriGrantsManagerInternal.class); in testCalculateGrantableUris_PuserOverridden() local 1061 when(ugm.checkGrantUriPermission(anyInt(), eq(null), any(Uri.class), in testCalculateGrantableUris_PuserOverridden() 1065 LocalServices.addService(UriGrantsManagerInternal.class, ugm); in testCalculateGrantableUris_PuserOverridden() 1078 UriGrantsManagerInternal ugm = mock(UriGrantsManagerInternal.class); in testCalculateGrantableUris_prePappProvided() local [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/ |
D | MediaDataProcessorTest.kt | 171 @Mock private lateinit var ugm: IUriGrantsManager variable in com.android.systemui.media.controls.domain.pipeline.MediaDataProcessorTest 202 whenever(UriGrantsManager.getService()).thenReturn(ugm) in setup() 2363 ugm.checkGrantUriPermission_ignoreNonSystem( in testResumeMediaLoaded_hasArtPermission_artLoaded() 2393 ugm.checkGrantUriPermission_ignoreNonSystem( in testResumeMediaLoaded_noArtPermission_noArtLoaded()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/domain/pipeline/ |
D | MediaDataProcessor.kt | 1240 val ugm = UriGrantsManager.getService() in <lambda>() constant 1241 ugm.checkGrantUriPermission_ignoreNonSystem( in <lambda>()
|
D | LegacyMediaDataManagerImpl.kt | 1295 val ugm = UriGrantsManager.getService() in loadBitmapFromUriForUser() constant 1296 ugm.checkGrantUriPermission_ignoreNonSystem( in loadBitmapFromUriForUser()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationManagerService.java | 2393 DevicePolicyManagerInternal dpm, IUriGrantsManager ugm, in init() argument 2414 mUgm = ugm; in init()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 9274 final UriGrantsManagerInternal ugm = LocalServices 9276 final NeededUriGrants needed = ugm.checkGrantUriPermissionFromIntent(intent, 9279 ugm.grantUriPermissionUncheckedFromIntent(needed, null);
|