Home
last modified time | relevance | path

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

12

/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/configuration/
DTestPhotopickerConfiguration.kt30 val SINGLE_SELECT_CONFIG = PhotopickerConfiguration(action = "", selectionLimit = 1)
35 val MULTI_SELECT_CONFIG = PhotopickerConfiguration(action = "", selectionLimit = 50)
41 val testPhotopickerConfiguration: PhotopickerConfiguration =
42 PhotopickerConfiguration(
51 val testActionPickImagesConfiguration: PhotopickerConfiguration =
52 PhotopickerConfiguration(
61 val testGetContentConfiguration: PhotopickerConfiguration =
62 PhotopickerConfiguration(
71 val testUserSelectImagesForAppConfiguration: PhotopickerConfiguration =
72 PhotopickerConfiguration(
[all …]
DConfigurationManagerTest.kt67 val expectedConfiguration = PhotopickerConfiguration(action = "") in testEmitsConfiguration()
92 val expectedConfiguration = PhotopickerConfiguration(action = "") in testConfigurationEmitsFlagChanges()
94 val emissions = mutableListOf<PhotopickerConfiguration>() in testConfigurationEmitsFlagChanges()
136 val expectedConfiguration = PhotopickerConfiguration(action = "") in testConfigurationChangesAreBatched()
138 val emissions = mutableListOf<PhotopickerConfiguration>() in testConfigurationChangesAreBatched()
196 val expectedConfiguration = PhotopickerConfiguration(action = "") in testSetIntentUpdatesConfiguration()
198 val emissions = mutableListOf<PhotopickerConfiguration>() in testSetIntentUpdatesConfiguration()
233 val expectedConfiguration = PhotopickerConfiguration(action = "") in testSetIntentSetsSelectionLimit()
235 val emissions = mutableListOf<PhotopickerConfiguration>() in testSetIntentSetsSelectionLimit()
272 val expectedConfiguration = PhotopickerConfiguration(action = "") in testSetIntentSetsSelectionLimitThrowsOnIllegalConfiguration()
[all …]
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/selectionbar/
DSelectionBarFeatureTest.kt46 import com.android.photopicker.core.configuration.PhotopickerConfiguration
182 val configOne = PhotopickerConfiguration(action = "TEST_ACTION", selectionLimit = 5) in testSelectionBarIsEnabledWithSelectionLimit()
188 PhotopickerConfiguration(action = MediaStore.ACTION_PICK_IMAGES, selectionLimit = 5) in testSelectionBarIsEnabledWithSelectionLimit()
194 PhotopickerConfiguration(action = Intent.ACTION_GET_CONTENT, selectionLimit = 5) in testSelectionBarIsEnabledWithSelectionLimit()
202 val configOne = PhotopickerConfiguration(action = "TEST_ACTION") in testSelectionBarNotEnabledForSingleSelect()
207 val configTwo = PhotopickerConfiguration(action = MediaStore.ACTION_PICK_IMAGES) in testSelectionBarNotEnabledForSingleSelect()
212 val configThree = PhotopickerConfiguration(action = Intent.ACTION_GET_CONTENT) in testSelectionBarNotEnabledForSingleSelect()
221 val photopickerConfiguration: PhotopickerConfiguration = testPhotopickerConfiguration in testSelectionBarIsShown()
265 val photopickerConfiguration: PhotopickerConfiguration = testPhotopickerConfiguration in testSelectionBarShowsSecondaryAction()
299 val photopickerConfiguration: PhotopickerConfiguration = testPhotopickerConfiguration in testSelectionBarPrimaryAction()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/configuration/
DConfigurationManager.kt76 private val _configuration: MutableStateFlow<PhotopickerConfiguration> = in <lambda>()
80 val configuration: StateFlow<PhotopickerConfiguration> = _configuration in <lambda>()
149 private fun generateInitialConfiguration(): PhotopickerConfiguration { in <lambda>()
151 PhotopickerConfiguration( in <lambda>()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/features/
DFeatureManagerTest.kt34 import com.android.photopicker.core.configuration.PhotopickerConfiguration in <lambda>()
218 override fun isEnabled(config: PhotopickerConfiguration) = true in <lambda>()
256 override fun isEnabled(config: PhotopickerConfiguration) = true in <lambda>()
263 PhotopickerConfiguration( in <lambda>()
293 override fun isEnabled(config: PhotopickerConfiguration) = true in <lambda>()
300 PhotopickerConfiguration( in <lambda>()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/events/
DEventsTest.kt21 import com.android.photopicker.core.configuration.PhotopickerConfiguration
52 override fun isEnabled(config: PhotopickerConfiguration) = true in isEnabled()
215 PhotopickerConfiguration(action = "TEST", deviceIsDebuggable = true) in <lambda>()
243 PhotopickerConfiguration(action = "TEST", deviceIsDebuggable = false) in testEventDoesNotThrowUnregisteredEventOnProd()
271 config: PhotopickerConfiguration = testPhotopickerConfiguration, in buildFeatureManagerWithFeatures()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/features/
DFeatureRegistration.kt19 import com.android.photopicker.core.configuration.PhotopickerConfiguration
52 fun isEnabled(config: PhotopickerConfiguration): Boolean = false
DPhotopickerFeature.kt19 import com.android.photopicker.core.configuration.PhotopickerConfiguration
81 fun onConfigurationChanged(config: PhotopickerConfiguration) {} in onConfigurationChanged()
DFeatureManager.kt22 import com.android.photopicker.core.configuration.PhotopickerConfiguration
54 private val configuration: StateFlow<PhotopickerConfiguration>,
155 private fun onConfigurationChanged(newConfig: PhotopickerConfiguration) { in onConfigurationChanged()
184 private fun initializeFeatureSet(config: PhotopickerConfiguration = configuration.value) { in initializeFeatureSet()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/selection/
DSelectionStrategy.kt20 import com.android.photopicker.core.configuration.PhotopickerConfiguration
34 configuration: PhotopickerConfiguration in determineSelectionStrategy()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/events/
DEvents.kt20 import com.android.photopicker.core.configuration.PhotopickerConfiguration in <lambda>()
55 private val configuration: StateFlow<PhotopickerConfiguration>, in <lambda>()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/overflowmenu/
DOverflowMenuFeature.kt21 import com.android.photopicker.core.configuration.PhotopickerConfiguration
37 override fun isEnabled(config: PhotopickerConfiguration) = true in isEnabled()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/profileselector/
DProfileSelectorFeature.kt21 import com.android.photopicker.core.configuration.PhotopickerConfiguration
37 override fun isEnabled(config: PhotopickerConfiguration) = true in isEnabled()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/navigationbar/
DNavigationBarFeature.kt21 import com.android.photopicker.core.configuration.PhotopickerConfiguration
37 override fun isEnabled(config: PhotopickerConfiguration) = true in isEnabled()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/test/alwaysdisabledfeature/
DAlwaysDisabledFeature.kt24 import com.android.photopicker.core.configuration.PhotopickerConfiguration
42 override fun isEnabled(config: PhotopickerConfiguration) = false in isEnabled()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/selectionbar/
DSelectionBarFeature.kt21 import com.android.photopicker.core.configuration.PhotopickerConfiguration
41 override fun isEnabled(config: PhotopickerConfiguration) = config.selectionLimit > 1 in isEnabled()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/snackbar/
DSnackbarFeature.kt21 import com.android.photopicker.core.configuration.PhotopickerConfiguration
39 override fun isEnabled(config: PhotopickerConfiguration) = true in isEnabled()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/photogrid/
DPhotoGridFeatureTest.kt48 import com.android.photopicker.core.configuration.PhotopickerConfiguration
157 val configOne = PhotopickerConfiguration(action = "TEST_ACTION") in testPhotoGridIsAlwaysEnabled()
162 val configTwo = PhotopickerConfiguration(action = MediaStore.ACTION_PICK_IMAGES) in testPhotoGridIsAlwaysEnabled()
167 val configThree = PhotopickerConfiguration(action = Intent.ACTION_GET_CONTENT) in testPhotoGridIsAlwaysEnabled()
DPhotoGridViewModelTest.kt22 import com.android.photopicker.core.configuration.PhotopickerConfiguration
144 PhotopickerConfiguration( in testShowsToastWhenSelectionFull()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/cloudmedia/
DCloudMediaFeature.kt26 import com.android.photopicker.core.configuration.PhotopickerConfiguration
48 override fun isEnabled(config: PhotopickerConfiguration): Boolean { in isEnabled()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/photogrid/
DPhotoGridFeature.kt29 import com.android.photopicker.core.configuration.PhotopickerConfiguration
51 override fun isEnabled(config: PhotopickerConfiguration) = true in isEnabled()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/preview/
DPreviewFeature.kt25 import com.android.photopicker.core.configuration.PhotopickerConfiguration
50 override fun isEnabled(config: PhotopickerConfiguration) = true in isEnabled()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/test/simpleuifeature/
DSimpleUiFeature.kt28 import com.android.photopicker.core.configuration.PhotopickerConfiguration
45 override fun isEnabled(config: PhotopickerConfiguration) = true in isEnabled()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/test/highpriorityuifeature/
DHighPriorityUiFeature.kt32 import com.android.photopicker.core.configuration.PhotopickerConfiguration
54 override fun isEnabled(config: PhotopickerConfiguration) = true in isEnabled()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/
DPhotopickerFeatureBaseTest.kt34 import com.android.photopicker.core.configuration.PhotopickerConfiguration
130 photopickerConfiguration: PhotopickerConfiguration = testPhotopickerConfiguration, in callPhotopickerMain()

12