Home
last modified time | relevance | path

Searched refs:selectionLimit (Results 1 – 25 of 25) sorted by relevance

/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/selection/
DSelectionImplTest.kt64 selectionLimit(1) in <lambda>()
89 selectionLimit(50) in testSelectionIsInitialized()
122 selectionLimit(50) in <lambda>()
165 selectionLimit(50) in <lambda>()
193 selectionLimit(1) in <lambda>()
217 selectionLimit(50) in <lambda>()
255 selectionLimit(50) in <lambda>()
300 selectionLimit(50) in <lambda>()
344 selectionLimit(50) in <lambda>()
400 selectionLimit(50) in <lambda>()
[all …]
DGrantsAwareSelectionTest.kt65 selectionLimit(1) in <lambda>()
90 selectionLimit(50) in testSelectionIsInitialized()
125 selectionLimit(50) in <lambda>()
147 selectionLimit(50) in <lambda>()
175 selectionLimit(1) in <lambda>()
199 selectionLimit(50) in <lambda>()
237 selectionLimit(50) in <lambda>()
282 selectionLimit(50) in <lambda>()
326 selectionLimit(50) in <lambda>()
382 selectionLimit(50) in <lambda>()
[all …]
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/configuration/
DConfigurationManager.kt148 val selectionLimit = featureInfo.maxSelectionLimit in <lambda>() constant
157 val pickImagesInOrder = featureInfo.isOrderedSelection && (selectionLimit > 1) in <lambda>()
173 selectionLimit = selectionLimit, in <lambda>()
196 val selectionLimit = in <lambda>() constant
210 intent.getPickImagesInOrderEnabled(default = false) && (selectionLimit > 1) in <lambda>()
246 selectionLimit = selectionLimit, in <lambda>()
DPhotopickerConfiguration.kt81 val selectionLimit: Int = DEFAULT_SELECTION_LIMIT, constant in com.android.photopicker.core.configuration.PhotopickerConfiguration
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/configuration/
DTestPhotopickerConfiguration.kt64 private var selectionLimit: Int = DEFAULT_SELECTION_LIMIT in build() variable in com.android.photopicker.core.configuration.TestPhotopickerConfiguration.Builder
79 fun selectionLimit(value: Int) = apply { this.selectionLimit = value } in build() method
105 selectionLimit = selectionLimit, in build()
DConfigurationManagerTest.kt347 assertThat(emissions.last().selectionLimit) in testSetIntentSetsSelectionLimit()
527 assertThat(emissions.last().selectionLimit) in testSetIntentSetsPickImagesInOrder()
573 assertThat(emissions.last().selectionLimit) in testSetIntentSetsPickImagesPreSelectionUris()
907 assertThat(emissions.last().selectionLimit) in testSetEmbeddedPhotopickerFeatureInfoSetsSelectionLimit()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/selectionbar/
DSelectionBarFeatureTest.kt196 selectionLimit = 5, in testSelectionBarIsEnabledWithSelectionLimitInActivityMode()
206 selectionLimit = 5, in testSelectionBarIsEnabledWithSelectionLimitInActivityMode()
216 selectionLimit = 5, in testSelectionBarIsEnabledWithSelectionLimitInActivityMode()
250 selectionLimit = 1, in testSelectionBarIsAlwaysEnabledInEmbeddedMode()
261 selectionLimit = 20, in testSelectionBarIsAlwaysEnabledInEmbeddedMode()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/categorygrid/
DMediaSetContentGrid.kt104 val selectionLimit = LocalPhotopickerConfiguration.current.selectionLimit in MediasetContentGrid() constant
106 stringResource(R.string.photopicker_selection_limit_exceeded_snackbar, selectionLimit) in MediasetContentGrid()
DAlbumMediaGrid.kt116 val selectionLimit = LocalPhotopickerConfiguration.current.selectionLimit in AlbumMediaGrid() constant
118 stringResource(R.string.photopicker_selection_limit_exceeded_snackbar, selectionLimit) in AlbumMediaGrid()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/components/mediagrid/
DMediaGridTest.kt526 selectionLimit(1) in <lambda>()
537 selectionLimit(1) in <lambda>()
545 selectionLimit(1) in <lambda>()
600 selectionLimit(50) in <lambda>()
611 selectionLimit(50) in <lambda>()
619 selectionLimit(50) in <lambda>()
668 selectionLimit(2) in <lambda>()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/albumgrid/
DAlbumMediaGrid.kt117 val selectionLimit = LocalPhotopickerConfiguration.current.selectionLimit in AlbumMediaGrid() constant
118 val localizedSelectionLimit = LocalLocalizationHelper.current.getLocalizedCount(selectionLimit) in AlbumMediaGrid()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/photogrid/
DPhotoGrid.kt132 val selectionLimit = LocalPhotopickerConfiguration.current.selectionLimit in <lambda>() constant
133 val localizedSelectionLimit = LocalLocalizationHelper.current.getLocalizedCount(selectionLimit) in <lambda>()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/preview/
DPreview.kt207 if (LocalPhotopickerConfiguration.current.selectionLimit > 1) { in <lambda>()
293 if (config.selectionLimit == 1) { in <lambda>()
315 when (config.selectionLimit) { in <lambda>()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/events/
DDispatchers.kt66 val maxPickedItemsCount = photopickerConfiguration.selectionLimit in <lambda>()
182 if (photopickerConfiguration.selectionLimit == 1) { in dispatchReportPhotopickerSessionInfoEvent()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/selectionbar/
DSelectionBarFeature.kt50 return config.selectionLimit > 1 in isEnabled()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/preparemedia/
DMediaPreparerViewModel.kt167 replay = configurationManager.configuration.value.selectionLimit,
756 if (configurationManager.configuration.value.selectionLimit == 1) { in cancelPrepare()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/
DMainActivity.kt309 if (configurationManager.configuration.value.selectionLimit == 1) { in <lambda>()
504 setResultForApp(selection, canSelectMultiple = configuration.selectionLimit > 1) in <lambda>()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/selection/
DSelectionImpl.kt306 return _selection.size + size <= configuration.value.selectionLimit in ensureSelectionLimitLocked()
DGrantsAwareSelectionImpl.kt427 return _selection.size + size <= configuration.value.selectionLimit in ensureSelectionLimitLocked()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/albumgrid/
DAlbumGridViewModelTest.kt184 selectionLimit = 0, in testAlbumGridShowsToastWhenSelectionFull()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/search/
DSearch.kt917 val selectionLimit = LocalPhotopickerConfiguration.current.selectionLimit in ResultMediaGrid() constant
921 stringResource(R.string.photopicker_selection_limit_exceeded_snackbar, selectionLimit) in ResultMediaGrid()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/components/mediagrid/
DMediaGrid.kt400 isSelected && LocalPhotopickerConfiguration.current.selectionLimit > 1 in defaultBuildMediaItem()
567 val shouldIndicateSelected = configuration.selectionLimit > 1 in SelectedIconOverlay()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/photogrid/
DPhotoGridViewModelTest.kt281 selectionLimit(0) in testShowsToastWhenSelectionFull()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/preview/
DPreviewViewModelTest.kt378 selectionLimit(50) in testToggleInSelectionCollectionUpdatesSelection()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/embedded/
DSessionTest.kt440 .that(configuration.selectionLimit) in <lambda>()