Home
last modified time | relevance | path

Searched refs:ugm (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileRequestDialogTest.kt66 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 …]
DCustomTileTest.kt100 @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()
DTileServiceRequestControllerTest.kt77 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/
DDragAndDropPermissionsHandler.java135 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/
DMmsServiceBroker.java530 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/
DIconTest.java552 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/
DNotificationRecordTest.java1019 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/
DMediaDataProcessorTest.kt171 @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/
DMediaDataProcessor.kt1240 val ugm = UriGrantsManager.getService() in <lambda>() constant
1241 ugm.checkGrantUriPermission_ignoreNonSystem( in <lambda>()
DLegacyMediaDataManagerImpl.kt1295 val ugm = UriGrantsManager.getService() in loadBitmapFromUriForUser() constant
1296 ugm.checkGrantUriPermission_ignoreNonSystem( in loadBitmapFromUriForUser()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java2393 DevicePolicyManagerInternal dpm, IUriGrantsManager ugm, in init() argument
2414 mUgm = ugm; in init()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java9274 final UriGrantsManagerInternal ugm = LocalServices
9276 final NeededUriGrants needed = ugm.checkGrantUriPermissionFromIntent(intent,
9279 ugm.grantUriPermissionUncheckedFromIntent(needed, null);