Home
last modified time | relevance | path

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

/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DRandomScheduler.java43 Vector<Filter> candidates = new Vector<Filter>(); in scheduleNextNode() local
46 candidates.add(filter); in scheduleNextNode()
48 if (candidates.size() > 0) { in scheduleNextNode()
49 int r = mRand.nextInt(candidates.size()); in scheduleNextNode()
50 return candidates.elementAt(r); in scheduleNextNode()
/frameworks/base/core/tests/coretests/src/android/app/
DApplicationPackageManagerTest.java199 List<VolumeInfo> candidates = in testGetCandidateVolumes_systemApp() local
201 verifyReturnedVolumes(candidates, sInternalVol); in testGetCandidateVolumes_systemApp()
205 candidates = appPkgMgr.getPackageCandidateVolumes(sysAppInfo, storageManager, pm); in testGetCandidateVolumes_systemApp()
206 verifyReturnedVolumes(candidates, sInternalVol); in testGetCandidateVolumes_systemApp()
210 candidates = appPkgMgr.getPackageCandidateVolumes(sysAppInfo, storageManager, pm); in testGetCandidateVolumes_systemApp()
211 verifyReturnedVolumes(candidates, sInternalVol); in testGetCandidateVolumes_systemApp()
215 candidates = appPkgMgr.getPackageCandidateVolumes(sysAppInfo, storageManager, pm); in testGetCandidateVolumes_systemApp()
216 verifyReturnedVolumes(candidates, sInternalVol); in testGetCandidateVolumes_systemApp()
238 List<VolumeInfo> candidates = appPkgMgr.getPackageCandidateVolumes( in testGetCandidateVolumes_3rdParty_internalOnly() local
240 verifyReturnedVolumes(candidates, sInternalVol, sAdoptedVol); in testGetCandidateVolumes_3rdParty_internalOnly()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DDisplayColorProfile.cpp93 std::vector<ColorMode> candidates; in getColorModeCandidates() local
96 candidates.push_back(mode); in getColorModeCandidates()
105 candidates.push_back(hdrMode); in getColorModeCandidates()
113 candidates.push_back(sdrMode); in getColorModeCandidates()
117 return candidates; in getColorModeCandidates()
122 std::vector<RenderIntent> candidates; in getRenderIntentCandidates() local
125 candidates.push_back(intent); in getRenderIntentCandidates()
140 candidates.push_back(hdrIntent); in getRenderIntentCandidates()
147 candidates.push_back(sdrIntent); in getRenderIntentCandidates()
152 return candidates; in getRenderIntentCandidates()
[all …]
/frameworks/minikin/libs/minikin/
DOptimalLineBreaker.cpp90 std::vector<Candidate> candidates; member
146 candidates.emplace_back(offset, preBreak + letterSpacingHalf, postBreak - letterSpacingHalf, in pushBreakCandidate()
363 const std::vector<Candidate>& candidates,
370 const std::vector<OptimalBreaksData>& breaksData, const std::vector<Candidate>& candidates, in finishBreaksOptimal() argument
373 const uint32_t nCand = candidates.size(); in finishBreaksOptimal()
377 const Candidate& cand = candidates[i]; in finishBreaksOptimal()
378 const Candidate& prev = candidates[prevIndex]; in finishBreaksOptimal()
419 const std::vector<Candidate>& candidates = context.candidates; in computeBreaks() local
421 const uint32_t nCand = candidates.size(); in computeBreaks()
438 ParaWidth leftEdge = candidates[i].postBreak - width; in computeBreaks()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DCrossProfileIntentResolverEngine.java391 int filterCallingUid, boolean resolveForStart, List<ResolveInfo> candidates, in combineFilterAndCreateQueryActivitiesResponse() argument
401 candidates = resolveInfoFromCrossProfileDomainInfo(crossProfileCandidates); in combineFilterAndCreateQueryActivitiesResponse()
402 return new QueryIntentActivitiesResult(computer.applyPostResolutionFilter(candidates, in combineFilterAndCreateQueryActivitiesResponse()
408 if (!addInstant && ((candidates.size() <= 1 && crossProfileCandidates.isEmpty()) in combineFilterAndCreateQueryActivitiesResponse()
409 || (candidates.isEmpty() && !crossProfileCandidates.isEmpty()))) { in combineFilterAndCreateQueryActivitiesResponse()
410 candidates.addAll(resolveInfoFromCrossProfileDomainInfo(crossProfileCandidates)); in combineFilterAndCreateQueryActivitiesResponse()
412 candidates, instantAppPkgName, allowDynamicSplits, filterCallingUid, in combineFilterAndCreateQueryActivitiesResponse()
419 candidates = filterCandidatesWithDomainPreferredActivitiesLPr(computer, intent, in combineFilterAndCreateQueryActivitiesResponse()
420 matchFlags, candidates, crossProfileCandidates, userId, in combineFilterAndCreateQueryActivitiesResponse()
423 candidates.addAll(resolveInfoFromCrossProfileDomainInfo(crossProfileCandidates)); in combineFilterAndCreateQueryActivitiesResponse()
[all …]
DShortcutService.java4448 final List<ResolveInfo> candidates = queryActivities(
4450 for (ResolveInfo ri : candidates) {
/frameworks/base/telephony/common/com/android/internal/telephony/
DCarrierAppUtils.java147 List<ApplicationInfo> candidates = getDefaultCarrierAppCandidatesHelper( in disableCarrierAppsUntilPrivileged() local
149 if (candidates == null || candidates.isEmpty()) { in disableCarrierAppsUntilPrivileged()
167 for (ApplicationInfo ai : candidates) { in disableCarrierAppsUntilPrivileged()
348 List<ApplicationInfo> candidates = getDefaultCarrierAppCandidates(userId, context); in getDefaultCarrierApps() local
349 if (candidates == null || candidates.isEmpty()) { in getDefaultCarrierApps()
356 for (int i = candidates.size() - 1; i >= 0; i--) { in getDefaultCarrierApps()
357 ApplicationInfo ai = candidates.get(i); in getDefaultCarrierApps()
363 candidates.remove(i); in getDefaultCarrierApps()
367 return candidates; in getDefaultCarrierApps()
/frameworks/base/core/java/android/text/method/
DLinkMovementMethod.java119 ClickableSpan[] candidates = buffer.getSpans(first, last, ClickableSpan.class); in action() local
164 for (int i = 0; i < candidates.length; i++) { in action()
165 int end = buffer.getSpanEnd(candidates[i]); in action()
169 bestStart = buffer.getSpanStart(candidates[i]); in action()
186 for (int i = 0; i < candidates.length; i++) { in action()
187 int start = buffer.getSpanStart(candidates[i]); in action()
192 bestEnd = buffer.getSpanEnd(candidates[i]); in action()
/frameworks/opt/vcard/
DOWNERS2 # Please update this list if you find better candidates.
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DHeavyHitterSketchTest.java118 final List<Integer> candidates = getCandidates(input, capacity);
121 assertTrue(candidates != null);
123 assertTrue(candidates.contains(expected[i]));
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DLocaleUtils.java206 private static Locale lookupFallback(Locale target, List<Locale> candidates) { in lookupFallback() argument
209 if (candidates.contains(fallback)) { in lookupFallback()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowProcessController.java1104 ArrayList<ActivityRecord> candidates = null; in releaseSomeActivities() local
1124 if (candidates == null) { in releaseSomeActivities()
1125 candidates = new ArrayList<>(); in releaseSomeActivities()
1127 candidates.add(r); in releaseSomeActivities()
1131 if (candidates != null) { in releaseSomeActivities()
1133 candidates.sort(WindowContainer::compareTo); in releaseSomeActivities()
1135 int maxRelease = Math.max(candidates.size(), 1); in releaseSomeActivities()
1137 final ActivityRecord r = candidates.remove(0); in releaseSomeActivities()
DLaunchParamsPersister.java320 ArraySet<ComponentName> candidates = mWindowLayoutAffinityMap.get(windowLayoutAffinity); in getLaunchParams() local
321 for (int i = 0; i < candidates.size(); ++i) { in getLaunchParams()
322 ComponentName candidate = candidates.valueAt(i); in getLaunchParams()
DAppTransitionController.java967 final ArrayDeque<WindowContainer> candidates = new ArrayDeque<>(); in getAnimationTargets() local
972 candidates.add(app); in getAnimationTargets()
992 while (!candidates.isEmpty()) { in getAnimationTargets()
993 final WindowContainer current = candidates.removeFirst(); in getAnimationTargets()
1058 if (candidates.remove(sibling)) { in getAnimationTargets()
1073 candidates.add(parent); in getAnimationTargets()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
DTvPipKeepClearAlgorithm.kt253 val candidates = mutableListOf<Rect>() in <lambda>() constant
266 candidates.add(candidate) in <lambda>()
269 return candidates.minByOrNull { candidateCost(it, pipAnchorBounds) } in <lambda>()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecController.java581 private void runDevicePolling(final int sourceAddress, final List<Integer> candidates, in runDevicePolling() argument
586 if (candidates.isEmpty()) { in runDevicePolling()
593 final Integer candidate = candidates.remove(0); in runDevicePolling()
605 runDevicePolling(sourceAddress, candidates, retryCount, callback, allocated, in runDevicePolling()
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java2714 final List<VolumeInfo> candidates = new ArrayList<>(); in getPackageCandidateVolumes() local
2718 candidates.add(vol); in getPackageCandidateVolumes()
2721 return candidates; in getPackageCandidateVolumes()
2808 final List<VolumeInfo> candidates = new ArrayList<>(); in getPrimaryStorageCandidateVolumes() local
2812 candidates.add(currentVol); in getPrimaryStorageCandidateVolumes()
2816 candidates.add(vol); in getPrimaryStorageCandidateVolumes()
2820 return candidates; in getPrimaryStorageCandidateVolumes()
/frameworks/proto_logging/stats/atoms/credentials/
Dcredentials_extension_atoms.proto309 // Indicates for all returned candidates if that candidate was primary
334 * to generate 'more' candidates. This atom captures these details.
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBaseShortcutManagerTest.java2421 List<ResolveInfo> candidates, int userId) {
2423 ((List) inv.getArguments()[0]).addAll(candidates);
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java6858 private void initializeRarelyUsedPackagesList(@NonNull ArraySet<String> candidates) {
6878 if (!candidates.contains(packageName)) {
6884 candidates.remove(packageName);
6891 candidates.add(mRarelyUsedPackages.valueAt(i));
6893 mRarelyUsedPackages = candidates;
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/
DAlarmManagerService.java1940 final String[] candidates = mLocalPermissionManager.getAppOpPermissionPackages( in refreshExactAlarmCandidates() local
1942 final Set<Integer> newAppIds = new ArraySet<>(candidates.length); in refreshExactAlarmCandidates()
1943 for (final String candidate : candidates) { in refreshExactAlarmCandidates()