Home
last modified time | relevance | path

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

1234

/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DColorModePreferenceFragmentTest.java92 List<? extends CandidateInfo> candidates = mFragment.getCandidates(); in getCandidates_all() local
94 assertThat(candidates.size()).isEqualTo(4); in getCandidates_all()
95 assertThat(candidates.get(0).getKey()) in getCandidates_all()
97 assertThat(candidates.get(1).getKey()) in getCandidates_all()
99 assertThat(candidates.get(2).getKey()) in getCandidates_all()
101 assertThat(candidates.get(3).getKey()) in getCandidates_all()
110 List<? extends CandidateInfo> candidates = mFragment.getCandidates(); in getCandidates_none() local
112 assertThat(candidates.size()).isEqualTo(0); in getCandidates_none()
123 List<? extends CandidateInfo> candidates = mFragment.getCandidates(); in getCandidates_withAutomatic() local
125 assertThat(candidates.size()).isEqualTo(2); in getCandidates_withAutomatic()
[all …]
DVrDisplayPreferencePickerTest.java62 List<VrDisplayPreferencePicker.VrCandidateInfo> candidates = mPicker.getCandidates(); in getCandidates_shouldReturnTwoCandidates() local
64 assertThat(candidates.size()).isEqualTo(2); in getCandidates_shouldReturnTwoCandidates()
65 assertThat(candidates.get(0).getKey()) in getCandidates_shouldReturnTwoCandidates()
67 assertThat(candidates.get(1).getKey()) in getCandidates_shouldReturnTwoCandidates()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DContactAggregator.java81 MatchCandidateList candidates) { in aggregateContact() argument
101 candidates.clear(); in aggregateContact()
111 contactId = pickBestMatchBasedOnData(db, rawContactId, candidates, matcher); in aggregateContact()
614 MatchCandidateList candidates, ContactMatcher matcher) { in pickBestMatchBasedOnData() argument
623 bestMatch = pickBestMatchBasedOnSecondaryData(db, rawContactId, candidates, matcher); in pickBestMatchBasedOnData()
639 long rawContactId, MatchCandidateList candidates, ContactMatcher matcher) { in pickBestMatchBasedOnSecondaryData() argument
646 loadNameMatchCandidates(db, rawContactId, candidates, true); in pickBestMatchBasedOnSecondaryData()
661 matchAllCandidates(db, mSb.toString(), candidates, matcher, in pickBestMatchBasedOnSecondaryData()
836 private void lookupApproximateNameMatches(SQLiteDatabase db, MatchCandidateList candidates, in lookupApproximateNameMatches() argument
839 for (int i = 0; i < candidates.mCount; i++) { in lookupApproximateNameMatches()
[all …]
DContactAggregator2.java93 MatchCandidateList candidates) { in aggregateContact() argument
121 matchingCandidates = findRawContactMatchingCandidates(db, rawContactId, candidates, in aggregateContact()
211 rawContactId, MatchCandidateList candidates, RawContactMatcher matcher) { in findRawContactMatchingCandidates() argument
212 updateMatchScores(db, rawContactId, candidates, matcher); in findRawContactMatchingCandidates()
635 MatchCandidateList candidates, RawContactMatcher matcher) { in updateMatchScoresBasedOnNameMatches() argument
636 candidates.clear(); in updateMatchScoresBasedOnNameMatches()
638 mNameSplitter, candidates); in updateMatchScoresBasedOnNameMatches()
706 private void lookupApproximateNameMatches(SQLiteDatabase db, MatchCandidateList candidates, in lookupApproximateNameMatches() argument
709 for (int i = 0; i < candidates.mCount; i++) { in lookupApproximateNameMatches()
710 final NameMatchCandidate candidate = candidates.mList.get(i); in lookupApproximateNameMatches()
[all …]
/packages/apps/Dialer/java/com/android/dialer/preferredsim/impl/
DPreferredAccountWorkerImpl.java99 String phoneNumber, List<PhoneAccountHandle> candidates) { in selectAccount() argument
100 return backgroundExecutor.submit(() -> doInBackground(phoneNumber, candidates)); in selectAccount()
103 private Result doInBackground(String phoneNumber, List<PhoneAccountHandle> candidates) { in doInBackground() argument
109 return usePreferredSim(preferred.get(), candidates, dataId.get()); in doInBackground()
118 return useDefaultSim(defaultPhoneAccount, candidates, dataId.orNull()); in doInBackground()
126 return useSuggestedSim(suggestion.get(), candidates, dataId.orNull()); in doInBackground()
131 createDialogOptionsBuilder(candidates, dataId.orNull(), suggestion.orNull())); in doInBackground()
142 PhoneAccountHandle preferred, List<PhoneAccountHandle> candidates, String dataId) { in usePreferredSim() argument
150 resultBuilder = Result.builder(createDialogOptionsBuilder(candidates, dataId, null)); in usePreferredSim()
158 List<PhoneAccountHandle> candidates, in useDefaultSim() argument
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DSuggestedWords.java391 @Nonnull final ArrayList<SuggestedWordInfo> candidates) { in removeDups() argument
392 if (candidates.isEmpty()) { in removeDups()
398 typedWord, candidates, -1 /* startIndexExclusive */); in removeDups()
400 for (int i = 0; i < candidates.size(); ++i) { in removeDups()
402 candidates.get(i).mWord, candidates, i /* startIndexExclusive */); in removeDups() local
409 @Nonnull final ArrayList<SuggestedWordInfo> candidates, in removeSuggestedWordInfoFromList() argument
412 for (int i = startIndexExclusive + 1; i < candidates.size(); ++i) { in removeSuggestedWordInfoFromList()
413 final SuggestedWordInfo previous = candidates.get(i); in removeSuggestedWordInfoFromList()
418 candidates.remove(i); in removeSuggestedWordInfoFromList()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/inputmethod/
DKeyboardFragment.java195 List<DefaultAppInfo> candidates = getAutofillCandidates(); in updateAutofill() local
196 if (candidates.isEmpty()) { in updateAutofill()
207 updateCurrentAutofillPreference(currentAutofillPref, candidates); in updateAutofill()
208 updateAutofillSettings(candidates); in updateAutofill()
220 List<DefaultAppInfo> candidates) { in updateCurrentAutofillPreference() argument
222 DefaultAppInfo app = AutofillHelper.getCurrentAutofill(getContext(), candidates); in updateCurrentAutofillPreference()
229 private void updateAutofillSettings(List<DefaultAppInfo> candidates) { in updateAutofillSettings() argument
235 final Set<String> autofillServicesKeys = new ArraySet<>(candidates.size()); in updateAutofillSettings()
236 for (final DefaultAppInfo info : candidates) { in updateAutofillSettings()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/autofill/
DAutofillHelper.java54 final List<DefaultAppInfo> candidates = new ArrayList<>(); in getAutofillCandidates() local
61 candidates.add(new DefaultAppInfo(context, pm, myUserId, new ComponentName( in getAutofillCandidates()
65 return candidates; in getAutofillCandidates()
92 @NonNull List<DefaultAppInfo> candidates) { in getCurrentAutofill() argument
94 for (int i = 0; i < candidates.size(); i++) { in getCurrentAutofill()
95 DefaultAppInfo appInfo = candidates.get(i); in getCurrentAutofill()
DAutofillPickerFragment.java104 List<DefaultAppInfo> candidates = AutofillHelper.getAutofillCandidates(context, in bind() local
106 DefaultAppInfo current = AutofillHelper.getCurrentAutofill(context, candidates); in bind()
109 for (final DefaultAppInfo appInfo : candidates) { in bind()
139 List<DefaultAppInfo> candidates = AutofillHelper.getAutofillCandidates(context, in onPreferenceTreeClick() local
142 candidates); in onPreferenceTreeClick()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationAssistantPickerTest.java107 List<? extends CandidateInfo> candidates = mFragment.getCandidates(); in candidateListHasNoneAtEnd() local
108 assertTrue(candidates.size() > 0); in candidateListHasNoneAtEnd()
109 assertEquals(candidates.get(candidates.size() - 1).getKey(), ""); in candidateListHasNoneAtEnd()
120 List<? extends CandidateInfo> candidates = mFragment.getCandidates(); in candidateListHasCorrectCandidate() local
122 for (CandidateInfo c : candidates) { in candidateListHasCorrectCandidate()
/packages/apps/Settings/src/com/android/settings/display/
DColorModePreferenceFragment.java118 List<ColorModeCandidateInfo> candidates = new ArrayList<>(); in getCandidates() local
122 candidates.add(new ColorModeCandidateInfo( in getCandidates()
126 candidates.add(new ColorModeCandidateInfo( in getCandidates()
130 candidates.add(new ColorModeCandidateInfo( in getCandidates()
134 candidates.add(new ColorModeCandidateInfo( in getCandidates()
140 return candidates; in getCandidates()
DVrDisplayPreferencePicker.java48 List<VrCandidateInfo> candidates = new ArrayList<>(); in getCandidates() local
50 candidates.add(new VrCandidateInfo(context, 0, R.string.display_vr_pref_low_persistence)); in getCandidates()
51 candidates.add(new VrCandidateInfo(context, 1, R.string.display_vr_pref_off)); in getCandidates()
52 return candidates; in getCandidates()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DColorModePreferenceFragment.java118 List<ColorModeCandidateInfo> candidates = new ArrayList<>(); in getCandidates() local
122 candidates.add(new ColorModeCandidateInfo( in getCandidates()
126 candidates.add(new ColorModeCandidateInfo( in getCandidates()
130 candidates.add(new ColorModeCandidateInfo( in getCandidates()
134 candidates.add(new ColorModeCandidateInfo( in getCandidates()
140 return candidates; in getCandidates()
DVrDisplayPreferencePicker.java48 List<VrCandidateInfo> candidates = new ArrayList<>(); in getCandidates() local
50 candidates.add(new VrCandidateInfo(context, 0, R.string.display_vr_pref_low_persistence)); in getCandidates()
51 candidates.add(new VrCandidateInfo(context, 1, R.string.display_vr_pref_off)); in getCandidates()
52 return candidates; in getCandidates()
DDarkUISettings.java65 final List<CandidateInfo> candidates = new ArrayList<>(); in getCandidates() local
66 candidates.add(new DarkUISettingsCandidateInfo( in getCandidates()
72 candidates.add(new DarkUISettingsCandidateInfo( in getCandidates()
78 return candidates; in getCandidates()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterysaver/
DBatterySaverScheduleSettings.java84 List<CandidateInfo> candidates = Lists.newArrayList(); in getCandidates() local
87 candidates.add(new BatterySaverScheduleCandidateInfo( in getCandidates()
94 candidates.add(new BatterySaverScheduleCandidateInfo( in getCandidates()
103 candidates.add(new BatterySaverScheduleCandidateInfo( in getCandidates()
109 return candidates; in getCandidates()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverScheduleSettings.java116 List<CandidateInfo> candidates = Lists.newArrayList(); in getCandidates() local
119 candidates.add(new BatterySaverScheduleCandidateInfo( in getCandidates()
126 candidates.add(new BatterySaverScheduleCandidateInfo( in getCandidates()
135 candidates.add(new BatterySaverScheduleCandidateInfo( in getCandidates()
141 return candidates; in getCandidates()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DVibrationPreferenceFragmentTest.java128 final List<? extends CandidateInfo> candidates = mFragment.getCandidates(); in candidates_shouldBeSortedByIntensity() local
129 assertThat(candidates.size()).isEqualTo(INTENSITY_TO_KEY.size()); in candidates_shouldBeSortedByIntensity()
131 (VibrationIntensityCandidateInfo) candidates.get(0); in candidates_shouldBeSortedByIntensity()
132 for (int i = 1; i < candidates.size(); i++) { in candidates_shouldBeSortedByIntensity()
134 (VibrationIntensityCandidateInfo) candidates.get(i); in candidates_shouldBeSortedByIntensity()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DAppStoragePreference.java45 final List<VolumeInfo> candidates = in refresh() local
47 if (candidates.size() > 1 || in refresh()
48 (candidates.size() == 1 && !candidates.contains(volumeInfo))) { in refresh()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStorageSettings.java329 final List<VolumeInfo> candidates = context.getPackageManager() in initMoveDialog() local
331 if (candidates.size() > 1) { in initMoveDialog()
332 Collections.sort(candidates, VolumeInfo.getDescriptionComparator()); in initMoveDialog()
334 CharSequence[] labels = new CharSequence[candidates.size()]; in initMoveDialog()
336 for (int i = 0; i < candidates.size(); i++) { in initMoveDialog()
337 final String volDescrip = storage.getBestVolumeDescription(candidates.get(i)); in initMoveDialog()
343 mCandidates = candidates.toArray(new VolumeInfo[candidates.size()]); in initMoveDialog()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/assist/
DDefaultVoiceInputPickerPreferenceController.java63 List<DefaultAppInfo> candidates = new ArrayList<>(); in getCandidates() local
68 candidates.add( in getCandidates()
75 candidates.add( in getCandidates()
79 return candidates; in getCandidates()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStorageSettings.java333 final List<VolumeInfo> candidates = context.getPackageManager() in initMoveDialog() local
335 if (candidates.size() > 1) { in initMoveDialog()
336 Collections.sort(candidates, VolumeInfo.getDescriptionComparator()); in initMoveDialog()
338 CharSequence[] labels = new CharSequence[candidates.size()]; in initMoveDialog()
340 for (int i = 0; i < candidates.size(); i++) { in initMoveDialog()
341 final String volDescrip = storage.getBestVolumeDescription(candidates.get(i)); in initMoveDialog()
347 mCandidates = candidates.toArray(new VolumeInfo[candidates.size()]); in initMoveDialog()
/packages/apps/Settings/src/com/android/settings/applications/assist/
DDefaultVoiceInputPicker.java65 final List<VoiceInputDefaultAppInfo> candidates = new ArrayList<>(); in getCandidates() local
71 candidates.add(new VoiceInputDefaultAppInfo(context, mPm, mUserId, info, enabled)); in getCandidates()
77 candidates.add(new VoiceInputDefaultAppInfo(context, mPm, mUserId, info, enabled)); in getCandidates()
79 return candidates; in getCandidates()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/assist/
DDefaultVoiceInputPicker.java65 final List<VoiceInputDefaultAppInfo> candidates = new ArrayList<>(); in getCandidates() local
71 candidates.add(new VoiceInputDefaultAppInfo(context, mPm, mUserId, info, enabled)); in getCandidates()
77 candidates.add(new VoiceInputDefaultAppInfo(context, mPm, mUserId, info, enabled)); in getCandidates()
79 return candidates; in getCandidates()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCardLoader.java127 List<ContextualCard> getDisplayableCards(List<ContextualCard> candidates) { in getDisplayableCards() argument
128 final List<ContextualCard> eligibleCards = filterEligibleCards(candidates); in getDisplayableCards()
158 List<ContextualCard> filterEligibleCards(List<ContextualCard> candidates) { in filterEligibleCards() argument
162 for (ContextualCard card : candidates) { in filterEligibleCards()

1234