/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/configuration/ |
D | TestPhotopickerConfiguration.kt | 30 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 …]
|
D | ConfigurationManagerTest.kt | 67 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/ |
D | SelectionBarFeatureTest.kt | 46 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/ |
D | ConfigurationManager.kt | 76 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/ |
D | FeatureManagerTest.kt | 34 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/ |
D | EventsTest.kt | 21 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/ |
D | FeatureRegistration.kt | 19 import com.android.photopicker.core.configuration.PhotopickerConfiguration 52 fun isEnabled(config: PhotopickerConfiguration): Boolean = false
|
D | PhotopickerFeature.kt | 19 import com.android.photopicker.core.configuration.PhotopickerConfiguration 81 fun onConfigurationChanged(config: PhotopickerConfiguration) {} in onConfigurationChanged()
|
D | FeatureManager.kt | 22 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/ |
D | SelectionStrategy.kt | 20 import com.android.photopicker.core.configuration.PhotopickerConfiguration 34 configuration: PhotopickerConfiguration in determineSelectionStrategy()
|
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/events/ |
D | Events.kt | 20 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/ |
D | OverflowMenuFeature.kt | 21 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/ |
D | ProfileSelectorFeature.kt | 21 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/ |
D | NavigationBarFeature.kt | 21 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/ |
D | AlwaysDisabledFeature.kt | 24 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/ |
D | SelectionBarFeature.kt | 21 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/ |
D | SnackbarFeature.kt | 21 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/ |
D | PhotoGridFeatureTest.kt | 48 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()
|
D | PhotoGridViewModelTest.kt | 22 import com.android.photopicker.core.configuration.PhotopickerConfiguration 144 PhotopickerConfiguration( in testShowsToastWhenSelectionFull()
|
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/cloudmedia/ |
D | CloudMediaFeature.kt | 26 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/ |
D | PhotoGridFeature.kt | 29 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/ |
D | PreviewFeature.kt | 25 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/ |
D | SimpleUiFeature.kt | 28 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/ |
D | HighPriorityUiFeature.kt | 32 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/ |
D | PhotopickerFeatureBaseTest.kt | 34 import com.android.photopicker.core.configuration.PhotopickerConfiguration 130 photopickerConfiguration: PhotopickerConfiguration = testPhotopickerConfiguration, in callPhotopickerMain()
|