Home
last modified time | relevance | path

Searched refs:availableProviders (Results 1 – 16 of 16) sorted by relevance

/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/data/
DDataServiceImpl.kt161 override val availableProviders: StateFlow<List<Provider>> = in <lambda>() constant in com.android.photopicker.data.DataServiceImpl
174 availableProviders.collect { providers: List<Provider> -> in <lambda>()
388 val availableProviders: List<Provider> = availableProviders.value in <lambda>() constant
395 availableProviders, in <lambda>()
403 "Created an album media paging source that queries " + "$availableProviders" in <lambda>()
416 val availableProviders: List<Provider> = availableProviders.value in <lambda>() constant
421 availableProviders, in <lambda>()
429 "Created an album paging source that queries " + "$availableProviders" in <lambda>()
444 val availableProviders: List<Provider> = availableProviders.value in <lambda>() constant
449 availableProviders, in <lambda>()
[all …]
DMediaProviderClient.kt133 availableProviders: List<Provider>, in <lambda>()
143 availableProviders.forEach { provider -> add(provider.authority) } in <lambda>()
179 availableProviders: List<Provider>, in <lambda>()
189 availableProviders.forEach { provider -> add(provider.authority) } in <lambda>()
227 availableProviders: List<Provider>, in <lambda>()
238 availableProviders.forEach { provider -> add(provider.authority) } in <lambda>()
DDataService.kt40 val availableProviders: StateFlow<List<Provider>> constant
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/data/paging/
DAlbumMediaPagingSourceTest.kt50 private val availableProviders: List<Provider> = listOf(Provider("auth", MediaSource.LOCAL, 0)) constant in com.android.photopicker.features.data.paging.AlbumMediaPagingSourceTest
62 val albumAuthority = availableProviders[0].authority in <lambda>()
69 availableProviders = availableProviders, in <lambda>()
94 availableProviders, in <lambda>()
DMediaProviderClientTest.kt50 val availableProviders: List<Provider> = in <lambda>() constant
53 assertThat(availableProviders.count()).isEqualTo(testContentProvider.providers.count()) in <lambda>()
54 for (index in availableProviders.indices) { in <lambda>()
55 assertThat(availableProviders[index]).isEqualTo(testContentProvider.providers[index]) in <lambda>()
68 availableProviders = listOf(Provider("provider", MediaSource.LOCAL, 0)), in <lambda>()
201 availableProviders = listOf(Provider("provider", MediaSource.LOCAL, 0)), in <lambda>()
228 availableProviders = listOf(Provider(albumAuthority, MediaSource.LOCAL, 0)), in <lambda>()
DAlbumPagingSourceTest.kt49 private val availableProviders: List<Provider> = emptyList() constant in com.android.photopicker.features.data.paging.AlbumPagingSourceTest
64 availableProviders = availableProviders, in <lambda>()
DMediaPagingSourceTest.kt49 private val availableProviders: List<Provider> = emptyList() constant in com.android.photopicker.features.data.paging.MediaPagingSourceTest
64 availableProviders = availableProviders, in <lambda>()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/data/paging/
DMediaPagingSource.kt39 private val availableProviders: List<Provider>, constant in com.android.photopicker.data.paging.MediaPagingSource
55 if (availableProviders.isEmpty()) { in load()
63 availableProviders, in load()
DAlbumPagingSource.kt39 private val availableProviders: List<Provider>, constant in com.android.photopicker.data.paging.AlbumPagingSource
55 if (availableProviders.isEmpty()) { in load()
63 availableProviders, in load()
DAlbumMediaPagingSource.kt41 private val availableProviders: List<Provider>, constant in com.android.photopicker.data.paging.AlbumMediaPagingSource
58 if (availableProviders.isEmpty()) { in load()
68 availableProviders, in load()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/util/
DCloudProviderUtilsTest.java53 List<CloudProviderInfo> availableProviders = in getAllAvailableCloudProvidersTest() local
56 assertThat(availableProviders.size()).isEqualTo(testCloudProviders.size()); in getAllAvailableCloudProvidersTest()
57 for (CloudProviderInfo info : availableProviders) { in getAllAvailableCloudProvidersTest()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/v2/
DPickerDataLayerV2Test.java159 try (Cursor availableProviders = PickerDataLayerV2.queryAvailableProviders(mMockContext)) { in testAvailableProvidersNoCloudProvider() argument
160 availableProviders.moveToFirst(); in testAvailableProvidersNoCloudProvider()
165 availableProviders.getCount() in testAvailableProvidersNoCloudProvider()
171 MediaSource.valueOf(availableProviders.getString( in testAvailableProvidersNoCloudProvider()
172 availableProviders.getColumnIndexOrThrow( in testAvailableProvidersNoCloudProvider()
180 availableProviders.getString( in testAvailableProvidersNoCloudProvider()
181 availableProviders.getColumnIndexOrThrow( in testAvailableProvidersNoCloudProvider()
189 availableProviders.getInt( in testAvailableProvidersNoCloudProvider()
190 availableProviders.getColumnIndexOrThrow( in testAvailableProvidersNoCloudProvider()
216 try (Cursor availableProviders = PickerDataLayerV2.queryAvailableProviders(mMockContext)) { in testAvailableProvidersWithCloudProvider() argument
[all …]
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/data/
DDataServiceImplTest.kt120 this.backgroundScope.launch { dataService.availableProviders.toList(emissions) } in <lambda>()
149 this.backgroundScope.launch { dataService.availableProviders.toList(emissions) } in <lambda>()
178 this.backgroundScope.launch { dataService.availableProviders.toList(emissions) } in <lambda>()
241 this.backgroundScope.launch { dataService.availableProviders.toList(emissions) } in <lambda>()
272 this.backgroundScope.launch { dataService.availableProviders.toList(emissions) } in <lambda>()
347 this.backgroundScope.launch { dataService.availableProviders.toList(emissions) } in <lambda>()
448 this.backgroundScope.launch { dataService.availableProviders.toList(emissions) } in <lambda>()
501 this.backgroundScope.launch { dataService.availableProviders.toList(emissions) } in <lambda>()
624 this.backgroundScope.launch { dataService.availableProviders.toList(emissions) } in <lambda>()
DTestDataServiceImpl.kt44 override val availableProviders: StateFlow<List<Provider>> = MutableStateFlow(emptyList()) constant in com.android.photopicker.data.TestDataServiceImpl
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/ui/settings/
DSettingsCloudMediaViewModelTest.java327 private void setUpAvailableCloudProviders(@NonNull List<ResolveInfo> availableProviders) { in setUpAvailableCloudProviders() argument
328 doReturn(availableProviders).when(mPackageManager) in setUpAvailableCloudProviders()
347 final List<ResolveInfo> availableProviders = new ArrayList<>(); in getAvailableProviders() local
349 availableProviders.add(createResolveInfo(authority)); in getAvailableProviders()
351 return availableProviders; in getAvailableProviders()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/
DPickerSyncController.java405 final List<CloudProviderInfo> availableProviders = ignoreAllowlist in getCloudProviderInfo() local
409 for (CloudProviderInfo info : availableProviders) { in getCloudProviderInfo()