Home
last modified time | relevance | path

Searched refs:getPreGrantedUris (Results 1 – 4 of 4) sorted by relevance

/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/
DSelectionTest.java470 assertThat(mSelection.getPreGrantedUris()).isNull(); in test_setPreGrantedItems_correctValuesSet()
476 assertThat(mSelection.getPreGrantedUris().size()).isEqualTo(3); in test_setPreGrantedItems_correctValuesSet()
477 assertThat(mSelection.getPreGrantedUris().containsAll(preGrantedUrisInput)).isTrue(); in test_setPreGrantedItems_correctValuesSet()
567 assertThat(mSelection.getPreGrantedUris()).isNotNull(); in test_addingPreGrantedItemToSelection_addsToPreGrantedSet()
568 assertThat(mSelection.getPreGrantedUris().size()).isEqualTo(1); in test_addingPreGrantedItemToSelection_addsToPreGrantedSet()
569 assertThat(mSelection.getPreGrantedUris().contains(item1.getContentUri())).isTrue(); in test_addingPreGrantedItemToSelection_addsToPreGrantedSet()
573 assertThat(mSelection.getPreGrantedUris()).isNotNull(); in test_addingPreGrantedItemToSelection_addsToPreGrantedSet()
574 assertThat(mSelection.getPreGrantedUris().size()).isEqualTo(1); in test_addingPreGrantedItemToSelection_addsToPreGrantedSet()
575 assertThat(mSelection.getPreGrantedUris().contains(item1.getContentUri())).isTrue(); in test_addingPreGrantedItemToSelection_addsToPreGrantedSet()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/viewmodel/
DPickerViewModel.java526 if (isManagedSelectionEnabled() && selection.getPreGrantedUris() == null) { in initialisePreGrantsIfNecessary()
665 if (isPreSelectionEnabled() && mSelection.getPreGrantedUris() != null) { in loadItems()
666 preGrantedUris = mSelection.getPreGrantedUris(); in loadItems()
721 if (!isManagedSelectionEnabled() || mSelection.getPreGrantedUris() == null) return; in getRemainingPreGrantedItems()
724 new ArrayList<>(mSelection.getPreGrantedUris()); in getRemainingPreGrantedItems()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/
DSelection.java119 public Set<Uri> getPreGrantedUris() { in getPreGrantedUris() method in Selection
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/viewmodel/
DPickerViewModelTest.java410 assertThat(selection.getPreGrantedUris()).isNotNull(); in test_initialisePreSelectionItems_correctItemsLoaded()
411 assertThat(selection.getPreGrantedUris().size()).isEqualTo(4); in test_initialisePreSelectionItems_correctItemsLoaded()