Home
last modified time | relevance | path

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

/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/payloadtoggle/domain/interactor/
DSelectionInteractor.kt41 val selections: Flow<Set<Uri>> = constant in com.android.intentresolver.contentpreview.payloadtoggle.domain.interactor.SelectionInteractor
42 selectionsRepo.selections.map { it.keys }.distinctUntilChanged() in <lambda>()
45 val amountSelected: Flow<Int> = selectionsRepo.selections.map { it.size } in <lambda>()
48 selectionsRepo.selections.map { aggregateContentType(it.values) } in <lambda>()
51 selectionsRepo.selections.update { in updateSelection()
58 selectionsRepo.selections.updateAndGet { it + (model.uri to model) }.values in select()
63 if (selectionsRepo.selections.value.size > 1) { in unselect()
64 updateChooserRequest(selectionsRepo.selections.updateAndGet { it - model.uri }.values) in unselect()
68 private fun updateChooserRequest(selections: Collection<PreviewModel>) { in updateChooserRequest()
69 val sorted = selections.sortedBy { it.order } in updateChooserRequest()
DSelectablePreviewInteractor.kt32 val isSelected: Flow<Boolean> = selectionInteractor.selections.map { key.uri in it } in <lambda>()
DFetchPreviewsInteractor.kt48 selectionRepository.selections.value = initialPreviewMap.associateBy { it.uri } in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/picker/quickaffordance/domain/interactor/
DKeyguardQuickAffordancePickerInteractorTest.kt86 val selections = collectLastValue(underTest.selections) in select() constant
92 assertThat(selections()) in select()
106 assertThat(selections()) in select()
121 val selections = collectLastValue(underTest.selections) in unselectAll() constant
139 assertThat(selections()).isEmpty() in unselectAll()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/payloadtoggle/domain/interactor/
DSelectionInteractorTest.kt38 previewSelectionsRepository.selections.value = mapOf(initialPreview.uri to initialPreview) in <lambda>()
48 assertThat(underTest.selections.first()).containsExactly(initialPreview.uri) in <lambda>()
53 assertThat(underTest.selections.first()).containsExactly(initialPreview.uri) in <lambda>()
70 previewSelectionsRepository.selections.value = listOf(first, second).associateBy { it.uri } in <lambda>()
82 assertThat(underTest.selections.first()).containsExactly(second.uri) in <lambda>()
DSelectablePreviewsInteractorTest.kt60 previewSelectionsRepository.selections.value = in <lambda>()
113 previewSelectionsRepository.selections.value = in <lambda>()
159 previewSelectionsRepository.selections.value = emptyMap() in <lambda>()
DSelectablePreviewInteractorTest.kt71 previewSelectionsRepository.selections.value = in <lambda>()
101 assertThat(previewSelectionsRepository.selections.value.keys) in <lambda>()
DCursorPreviewsInteractorTest.kt280 previewSelectionsRepository.selections.value = in <lambda>()
291 assertThat(previewSelectionsRepository.selections.value.values).containsExactly( in <lambda>()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/
DMpegTsMediaPeriod.java96 TrackSelection[] selections, in selectTracks() argument
102 for (int i = 0; i < selections.length; i++) { in selectTracks()
103 if (streams[i] != null && (selections[i] == null || !mayRetainStreamFlags[i])) { in selectTracks()
109 if (streams[i] == null && selections[i] != null) { in selectTracks()
110 int index = trackGroups.indexOf(selections[i].getTrackGroup()); in selectTracks()
DExoPlayerSampleExtractor.java213 TrackSelection[] selections = new TrackSelection[trackGroupArray.length]; in onPrepared() local
214 for (int i = 0; i < selections.length; ++i) { in onPrepared()
215 selections[i] = new FixedTrackSelection(trackGroupArray.get(i), 0); in onPrepared()
220 mMediaPeriod.selectTracks(selections, retain, mStreams, reset, 0); in onPrepared()
/packages/apps/ThemePicker/src/com/android/customization/picker/quickaffordance/data/repository/
DKeyguardQuickAffordancePickerRepository.kt50 val selections: Flow<List<SelectionModel>> = in <lambda>() constant in com.android.customization.picker.quickaffordance.data.repository.KeyguardQuickAffordancePickerRepository
53 .map { selections -> selections.map { selection -> selection.toModel() } } in <lambda>() method
/packages/apps/ThemePicker/src/com/android/customization/picker/quickaffordance/ui/viewmodel/
DKeyguardQuickAffordancePickerViewModel.kt135 quickAffordanceInteractor.selections, in <lambda>()
137 ) { slots, affordances, selections, selectedSlotId -> in <lambda>() method
140 selections in <lambda>()
190 quickAffordanceInteractor.selections, in <lambda>()
192 ) { selections, selectedSlotId -> in <lambda>() method
193 selections in <lambda>()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/payloadtoggle/ui/viewmodel/
DShareouselViewModelTest.kt83 previewSelectionsRepository.selections.value = in <lambda>()
102 previewSelectionsRepository.selections.value = in <lambda>()
121 previewSelectionsRepository.selections.value = in <lambda>()
211 assertThat(previewSelectionsRepository.selections.value.keys) in <lambda>()
309 previewSelectionsRepository.selections.value = in <lambda>()
/packages/providers/MediaProvider/pdf/framework/libs/pdfClient/
Dform_filing_listbox_test.cc215 const std::vector<Option>& selections = fwiResult.options(); in TEST() local
217 EXPECT_TRUE(selections[3].selected); in TEST()
218 EXPECT_TRUE(selections[4].selected); in TEST()
219 EXPECT_TRUE(selections[7].selected); in TEST()
/packages/apps/ThemePicker/src/com/android/customization/picker/quickaffordance/domain/interactor/
DKeyguardQuickAffordanceSnapshotRestorer.kt51 val selections: List<Pair<String, String>> = in <lambda>() constant
57 selections.forEach { (slotId, affordanceId) -> in <lambda>()
DKeyguardQuickAffordancePickerInteractor.kt46 val selections: Flow<List<SelectionModel>> = repository.selections constant in com.android.customization.picker.quickaffordance.domain.interactor.KeyguardQuickAffordancePickerInteractor
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DExoPlayerSampleExtractor.java258 TrackSelection[] selections = new TrackSelection[trackGroupArray.length]; in onPrepared() local
259 for (int i = 0; i < selections.length; ++i) { in onPrepared()
260 selections[i] = new FixedTrackSelection(trackGroupArray.get(i), 0); in onPrepared()
265 mMediaPeriod.selectTracks(selections, retain, mStreams, reset, 0); in onPrepared()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/payloadtoggle/data/repository/
DPreviewSelectionsRepository.kt28 val selections = MutableStateFlow(emptyMap<Uri, PreviewModel>()) constant
/packages/services/Iwlan/flags/
Dmain.aconfig43 description: "Allow additional ePDG selections for emergency PDN"
/packages/apps/Contacts/src/com/android/contacts/
DSimImportFragment.java271 final long[] selections = mSavedInstanceState.getLongArray( in restoreAdapterSelectedStates() local
273 mPerAccountCheckedIds.put(account.getAccount(), selections); in restoreAdapterSelectedStates() local
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DResolverActivity.java1853 public void onPickOptionResult(boolean finished, Option[] selections, Bundle result) {
1854 super.onPickOptionResult(finished, selections, result);
1855 if (selections.length != 1) {
1864 .getItem(selections[0].getIndex());
/packages/modules/Wifi/service/proto/src/
Dmetrics.proto3357 // this number of network choices when exp1 and exp2 make different network selections.
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz
Den_US_wordlist.combined.gz
Den_wordlist.combined.gz