Searched refs:candidates (Results 1 - 18 of 18) sorted by relevance

/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DRandomScheduler.java43 Vector<Filter> candidates = new Vector<Filter>();
46 candidates.add(filter);
48 if (candidates.size() > 0) {
49 int r = mRand.nextInt(candidates.size());
50 return candidates.elementAt(r);
/frameworks/base/core/tests/coretests/src/android/app/
H A DApplicationPackageManagerTest.java158 List<VolumeInfo> candidates =
160 verifyReturnedVolumes(candidates, sInternalVol);
164 candidates = appPkgMgr.getPackageCandidateVolumes(sysAppInfo, storageManager, pm);
165 verifyReturnedVolumes(candidates, sInternalVol);
169 candidates = appPkgMgr.getPackageCandidateVolumes(sysAppInfo, storageManager, pm);
170 verifyReturnedVolumes(candidates, sInternalVol);
174 candidates = appPkgMgr.getPackageCandidateVolumes(sysAppInfo, storageManager, pm);
175 verifyReturnedVolumes(candidates, sInternalVol);
197 List<VolumeInfo> candidates = appPkgMgr.getPackageCandidateVolumes(
199 verifyReturnedVolumes(candidates, sInternalVo
[all...]
/frameworks/minikin/libs/minikin/
H A DOptimalLineBreaker.cpp64 // between two candidates. The line width between two line break
65 // candidates i and j is calculated as postBreak(j) - preBreak(i).
88 // The break candidates.
89 std::vector<Candidate> candidates; member in struct:minikin::__anon1302::OptimizeContext
99 // Append desperate break point to the candidates.
102 candidates.emplace_back(offset, sumOfCharWidths, sumOfCharWidths, SCORE_DESPERATE,
107 // Append hyphenation break point to the candidates.
111 candidates.emplace_back(offset, preBreak, postBreak, penalty, spaceCount, spaceCount, type,
115 // Append word break point to the candidates.
119 candidates
307 finishBreaksOptimal( const U16StringPiece& textBuf, const MeasuredText& measured, const std::vector<OptimalBreaksData>& breaksData, const std::vector<Candidate>& candidates) argument
338 const std::vector<Candidate>& candidates = context.candidates; local
[all...]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DWifiLastResortWatchdogTest.java72 List<Pair<ScanDetail, WifiConfiguration>> candidates = new ArrayList<>();
87 candidates.add(Pair.create(scanDetail, config));
89 return candidates;
95 List<Pair<ScanDetail, WifiConfiguration>> candidates =
112 candidates.add(Pair.create(scanDetail, config));
114 return candidates;
136 // Buffer potential candidates 1,2,3 & 4
137 List<Pair<ScanDetail, WifiConfiguration>> candidates = createFilteredQnsCandidates(mSsids,
139 mLastResortWatchdog.updateAvailableNetworks(candidates);
142 // Repeatedly buffer candidates
[all...]
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemalarm/
H A DConstraintsCommandHandler.java68 List<WorkSpec> candidates = mDispatcher.getWorkManager().getWorkDatabase()
72 // Filter candidates that are marked as SCHEDULE_NOT_REQUESTED_AT
73 List<WorkSpec> eligibleWorkSpecs = new ArrayList<>(candidates.size());
74 for (WorkSpec candidate: candidates) {
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DCarrierAppUtils.java125 List<ApplicationInfo> candidates = getDefaultCarrierAppCandidatesHelper(packageManager,
127 if (candidates == null || candidates.isEmpty()) {
142 for (ApplicationInfo ai : candidates) {
258 List<ApplicationInfo> candidates = getDefaultCarrierAppCandidates(packageManager, userId);
259 if (candidates == null || candidates.isEmpty()) {
266 for (int i = candidates.size() - 1; i >= 0; i--) {
267 ApplicationInfo ai = candidates.get(i);
273 candidates
[all...]
/frameworks/base/core/java/android/text/method/
H A DLinkMovementMethod.java114 ClickableSpan[] candidates = buffer.getSpans(first, last, ClickableSpan.class);
159 for (int i = 0; i < candidates.length; i++) {
160 int end = buffer.getSpanEnd(candidates[i]);
164 bestStart = buffer.getSpanStart(candidates[i]);
181 for (int i = 0; i < candidates.length; i++) {
182 int start = buffer.getSpanStart(candidates[i]);
187 bestEnd = buffer.getSpanEnd(candidates[i]);
/frameworks/native/services/surfaceflinger/
H A DDisplayDevice.cpp116 std::vector<ColorMode> candidates; local
119 candidates.push_back(mode);
130 // add other HDR candidates when mode is HDR
134 candidates.push_back(hdrMode);
139 // add other SDR candidates
142 candidates.push_back(sdrMode);
146 return candidates;
151 std::vector<RenderIntent> candidates; local
154 candidates.push_back(intent);
166 // add other HDR candidates whe
188 std::vector<ColorMode> candidates = getColorModeCandidates(mode); local
201 std::vector<RenderIntent> candidates = getRenderIntentCandidates(intent); local
[all...]
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/solver/
H A DTypeAdapterStore.kt445 fun exactMatch(candidates: List<TypeConverter>): TypeConverter? {
446 return candidates.firstOrNull {
451 val candidates = getAllTypeConverters(input, excludes)
452 val match = exactMatch(candidates)
456 candidates.forEach {
465 val candidates = getAllTypeConverters(from, excludes)
466 val match = exactMatch(candidates)
470 candidates.forEach {
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/processor/
H A DEntityProcessor.kt242 val candidates = collectPrimaryKeysFromEntityAnnotations(element, fields) +
246 context.checker.check(candidates.isNotEmpty(), element, ProcessorErrors.MISSING_PRIMARY_KEY)
253 candidates.filter { candidate -> !candidate.autoGenerateId }
274 if (candidates.size == 1) {
276 return candidates.first()
279 return choosePrimaryKey(candidates, element)
369 candidates: List<PrimaryKey>, typeElement: TypeElement): PrimaryKey {
374 val myPKeys = candidates.filter { candidate ->
379 (candidates - myPKeys).forEach {
389 return choosePrimaryKey(candidates, MoreType
[all...]
H A DPojoProcessor.kt582 candidates = getterCandidates,
624 candidates = setterCandidates,
657 candidates: List<PojoMethod>,
670 val matching = candidates
699 candidates: List<PojoMethod>?,
702 if (candidates == null) {
705 if (candidates.size > 1) {
706 reportAmbiguity(candidates.map { it.name })
708 return candidates.first()
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DHdmiCecController.java387 * @param pickStrategy strategy how to pick polling candidates
395 // Extract polling candidates. No need to poll against local devices.
460 final List<Integer> candidates, final int retryCount,
463 if (candidates.isEmpty()) {
471 final Integer candidate = candidates.remove(0);
483 runDevicePolling(sourceAddress, candidates, retryCount, callback,
459 runDevicePolling(final int sourceAddress, final List<Integer> candidates, final int retryCount, final DevicePollingCallback callback, final List<Integer> allocated) argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DMccTable.java241 * Finds a suitable locale among {@code candidates} to use as the fallback locale for
243 * until a locale in {@code candidates} is found.
244 * This function assumes that {@code target} is not in {@code candidates}.
252 private static Locale lookupFallback(Locale target, List<Locale> candidates) { argument
255 if (candidates.contains(fallback)) {
/frameworks/base/core/java/android/app/
H A DApplicationPackageManager.java1966 final List<VolumeInfo> candidates = new ArrayList<>();
1970 candidates.add(vol);
1973 return candidates;
2060 final List<VolumeInfo> candidates = new ArrayList<>();
2064 candidates.add(currentVol);
2068 candidates.add(vol);
2072 return candidates;
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DBaseShortcutManagerTest.java2131 List<ResolveInfo> candidates, int userId) {
2133 ((List) inv.getArguments()[0]).addAll(candidates);
2130 prepareGetHomeActivitiesAsUser(ComponentName preferred, List<ResolveInfo> candidates, int userId) argument
/frameworks/base/services/core/java/com/android/server/pm/
H A DShortcutService.java3466 final List<ResolveInfo> candidates = queryActivities(
3468 for (ResolveInfo ri : candidates) {
H A DPackageManagerService.java7064 int matchFlags, List<ResolveInfo> candidates, CrossProfileDomainInfo xpDomainInfo,
7070 candidates.size());
7081 final int count = candidates.size();
7082 // First, try to use linked apps. Partition the candidates into four lists:
7086 ResolveInfo info = candidates.get(n);
7201 // If there is nothing selected, add all candidates and remove the ones that the user
7204 result.addAll(candidates);
7210 Slog.v(TAG, "Filtered results with preferred activities. New candidates count: " +
7063 filterCandidatesWithDomainPreferredActivitiesLPr(Intent intent, int matchFlags, List<ResolveInfo> candidates, CrossProfileDomainInfo xpDomainInfo, int userId) argument
[all...]
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 589 milliseconds