Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/app/
DApplicationPackageManagerTest.java159 List<VolumeInfo> candidates = in testGetCandidateVolumes_systemApp() local
161 verifyReturnedVolumes(candidates, sInternalVol); in testGetCandidateVolumes_systemApp()
165 candidates = appPkgMgr.getPackageCandidateVolumes(sysAppInfo, storageManager, pm); in testGetCandidateVolumes_systemApp()
166 verifyReturnedVolumes(candidates, sInternalVol); in testGetCandidateVolumes_systemApp()
170 candidates = appPkgMgr.getPackageCandidateVolumes(sysAppInfo, storageManager, pm); in testGetCandidateVolumes_systemApp()
171 verifyReturnedVolumes(candidates, sInternalVol); in testGetCandidateVolumes_systemApp()
175 candidates = appPkgMgr.getPackageCandidateVolumes(sysAppInfo, storageManager, pm); in testGetCandidateVolumes_systemApp()
176 verifyReturnedVolumes(candidates, sInternalVol); in testGetCandidateVolumes_systemApp()
198 List<VolumeInfo> candidates = appPkgMgr.getPackageCandidateVolumes( in testGetCandidateVolumes_3rdParty_internalOnly() local
200 verifyReturnedVolumes(candidates, sInternalVol, sAdoptedVol); in testGetCandidateVolumes_3rdParty_internalOnly()
[all …]
/frameworks/minikin/libs/minikin/
DOptimalLineBreaker.cpp89 std::vector<Candidate> candidates; member
102 candidates.emplace_back(offset, sumOfCharWidths, sumOfCharWidths, SCORE_DESPERATE, in pushDesperate()
111 candidates.emplace_back(offset, preBreak, postBreak, penalty, spaceCount, spaceCount, type, in pushHyphenation()
119 candidates.emplace_back(offset, preBreak, postBreak, penalty, preSpaceCount, postSpaceCount, in pushWordBreak()
124 candidates.emplace_back(0, 0.0f, 0.0f, 0.0f, 0, 0, HyphenationType::DONT_BREAK, false); in OptimizeContext()
290 const std::vector<Candidate>& candidates);
297 const std::vector<Candidate>& candidates) { in finishBreaksOptimal() argument
299 const uint32_t nCand = candidates.size(); in finishBreaksOptimal()
303 const Candidate& cand = candidates[i]; in finishBreaksOptimal()
304 const Candidate& prev = candidates[prevIndex]; in finishBreaksOptimal()
[all …]
/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/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/base/telephony/common/com/android/internal/telephony/
DCarrierAppUtils.java146 List<ApplicationInfo> candidates = getDefaultCarrierAppCandidatesHelper( in disableCarrierAppsUntilPrivileged() local
148 if (candidates == null || candidates.isEmpty()) { in disableCarrierAppsUntilPrivileged()
166 for (ApplicationInfo ai : candidates) { in disableCarrierAppsUntilPrivileged()
337 List<ApplicationInfo> candidates = getDefaultCarrierAppCandidates(userId, context); in getDefaultCarrierApps() local
338 if (candidates == null || candidates.isEmpty()) { in getDefaultCarrierApps()
345 for (int i = candidates.size() - 1; i >= 0; i--) { in getDefaultCarrierApps()
346 ApplicationInfo ai = candidates.get(i); in getDefaultCarrierApps()
352 candidates.remove(i); in getDefaultCarrierApps()
356 return candidates; in getDefaultCarrierApps()
/frameworks/base/core/java/android/text/method/
DLinkMovementMethod.java115 ClickableSpan[] candidates = buffer.getSpans(first, last, ClickableSpan.class); in action() local
160 for (int i = 0; i < candidates.length; i++) { in action()
161 int end = buffer.getSpanEnd(candidates[i]); in action()
165 bestStart = buffer.getSpanStart(candidates[i]); in action()
182 for (int i = 0; i < candidates.length; i++) { in action()
183 int start = buffer.getSpanStart(candidates[i]); in action()
188 bestEnd = buffer.getSpanEnd(candidates[i]); in action()
/frameworks/opt/car/services/src/com/android/server/wm/
DCarLaunchParamsModifier.java450 List<WindowProcessController> candidates = new ArrayList<>(3); in candidateControllers() local
453 candidates.add(firstController); in candidateControllers()
456 candidates.add(secondController); in candidateControllers()
459 candidates.add(thirdController); in candidateControllers()
462 return candidates; in candidateControllers()
/frameworks/opt/vcard/
DOWNERS2 # Please update this list if you find better candidates.
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DHeavyHitterSketchTest.java110 final List<Integer> candidates = getCandidates(input, capacity);
113 assertTrue(candidates != null);
115 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.java884 ArrayList<ActivityRecord> candidates = null; in releaseSomeActivities() local
904 if (candidates == null) { in releaseSomeActivities()
905 candidates = new ArrayList<>(); in releaseSomeActivities()
907 candidates.add(r); in releaseSomeActivities()
911 if (candidates != null) { in releaseSomeActivities()
913 candidates.sort(WindowContainer::compareTo); in releaseSomeActivities()
915 int maxRelease = Math.max(candidates.size(), 1); in releaseSomeActivities()
917 final ActivityRecord r = candidates.remove(0); in releaseSomeActivities()
DAppTransitionController.java602 final LinkedList<WindowContainer> candidates = new LinkedList<>(); in getAnimationTargets() local
607 candidates.add(app); in getAnimationTargets()
627 while (!candidates.isEmpty()) { in getAnimationTargets()
628 final WindowContainer current = candidates.removeFirst(); in getAnimationTargets()
675 if (candidates.remove(sibling)) { in getAnimationTargets()
684 candidates.add(parent); in getAnimationTargets()
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()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecController.java471 final List<Integer> candidates, final int retryCount, in runDevicePolling() argument
474 if (candidates.isEmpty()) { in runDevicePolling()
482 final Integer candidate = candidates.remove(0); in runDevicePolling()
494 runDevicePolling(sourceAddress, candidates, retryCount, callback, in runDevicePolling()
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java2375 final List<VolumeInfo> candidates = new ArrayList<>(); in getPackageCandidateVolumes() local
2379 candidates.add(vol); in getPackageCandidateVolumes()
2382 return candidates; in getPackageCandidateVolumes()
2469 final List<VolumeInfo> candidates = new ArrayList<>(); in getPrimaryStorageCandidateVolumes() local
2473 candidates.add(currentVol); in getPrimaryStorageCandidateVolumes()
2477 candidates.add(vol); in getPrimaryStorageCandidateVolumes()
2481 return candidates; in getPrimaryStorageCandidateVolumes()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBaseShortcutManagerTest.java2614 List<ResolveInfo> candidates, int userId) {
2616 ((List) inv.getArguments()[0]).addAll(candidates);
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java6916 private void initializeRarelyUsedPackagesList(@NonNull ArraySet<String> candidates) {
6936 if (!candidates.contains(packageName)) {
6942 candidates.remove(packageName);
6949 candidates.add(mRarelyUsedPackages.valueAt(i));
6951 mRarelyUsedPackages = candidates;
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/
DAlarmManagerService.java1719 final String[] candidates = mLocalPermissionManager.getAppOpPermissionPackages( in refreshExactAlarmCandidates() local
1721 final Set<Integer> newAppIds = new ArraySet<>(candidates.length); in refreshExactAlarmCandidates()
1722 for (final String candidate : candidates) { in refreshExactAlarmCandidates()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutService.java4401 final List<ResolveInfo> candidates = queryActivities(
4403 for (ResolveInfo ri : candidates) {
DPackageManagerService.java2755 Intent intent, int matchFlags, List<ResolveInfo> candidates, in filterCandidatesWithDomainPreferredActivitiesLPrBody() argument
2768 final int count = candidates.size(); in filterCandidatesWithDomainPreferredActivitiesLPrBody()
2771 ResolveInfo info = candidates.get(n); in filterCandidatesWithDomainPreferredActivitiesLPrBody()
2868 result.addAll(candidates); in filterCandidatesWithDomainPreferredActivitiesLPrBody()
3156 int matchFlags, List<ResolveInfo> candidates, CrossProfileDomainInfo xpDomainInfo, in filterCandidatesWithDomainPreferredActivitiesLPr() argument
3162 candidates.size()); in filterCandidatesWithDomainPreferredActivitiesLPr()
3167 intent, matchFlags, candidates, xpDomainInfo, userId, debug); in filterCandidatesWithDomainPreferredActivitiesLPr()
4920 Intent intent, int matchFlags, List<ResolveInfo> candidates, in filterCandidatesWithDomainPreferredActivitiesLPrBody() argument
4924 matchFlags, candidates, xpDomainInfo, userId, debug); in filterCandidatesWithDomainPreferredActivitiesLPrBody()