/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiLastResortWatchdogTest.java | 100 List<Pair<ScanDetail, WifiConfiguration>> candidates = new ArrayList<>(); in createFilteredQnsCandidates() local 115 candidates.add(Pair.create(scanDetail, config)); in createFilteredQnsCandidates() 117 return candidates; in createFilteredQnsCandidates() 123 List<Pair<ScanDetail, WifiConfiguration>> candidates = in createFilteredQnsCandidates() local 140 candidates.add(Pair.create(scanDetail, config)); in createFilteredQnsCandidates() 142 return candidates; in createFilteredQnsCandidates() 165 List<Pair<ScanDetail, WifiConfiguration>> candidates = createFilteredQnsCandidates(mSsids, in testAvailableNetworkBuffering_ageCullingWorks() local 167 mLastResortWatchdog.updateAvailableNetworks(candidates); in testAvailableNetworkBuffering_ageCullingWorks() 171 candidates = createFilteredQnsCandidates(Arrays.copyOfRange(mSsids, 0, 2), in testAvailableNetworkBuffering_ageCullingWorks() 178 mLastResortWatchdog.updateAvailableNetworks(candidates); in testAvailableNetworkBuffering_ageCullingWorks() [all …]
|
D | WifiNetworkSelectorTest.java | 336 List<WifiCandidates.Candidate> candidates = mWifiNetworkSelector.getCandidatesFromScan( in emptyScanResults() local 338 WifiConfiguration candidate = mWifiNetworkSelector.selectNetwork(candidates); in emptyScanResults() 367 List<WifiCandidates.Candidate> candidates = mWifiNetworkSelector.getCandidatesFromScan( in verifyMinimumRssiThreshold() local 369 WifiConfiguration candidate = mWifiNetworkSelector.selectNetwork(candidates); in verifyMinimumRssiThreshold() 399 List<WifiCandidates.Candidate> candidates = mWifiNetworkSelector.getCandidatesFromScan( in verifyMinimumTimeGapWhenConnected() local 401 WifiConfiguration candidate = mWifiNetworkSelector.selectNetwork(candidates); in verifyMinimumTimeGapWhenConnected() 407 candidates = mWifiNetworkSelector.getCandidatesFromScan( in verifyMinimumTimeGapWhenConnected() 409 candidate = mWifiNetworkSelector.selectNetwork(candidates); in verifyMinimumTimeGapWhenConnected() 443 List<WifiCandidates.Candidate> candidates = mWifiNetworkSelector.getCandidatesFromScan( in verifyNoMinimumTimeGapWhenDisconnected() local 445 WifiConfiguration candidate = mWifiNetworkSelector.selectNetwork(candidates); in verifyNoMinimumTimeGapWhenDisconnected() [all …]
|
D | CandidateScorerTest.java | 131 ArrayList<Candidate> candidates = new ArrayList<>(1); in evaluate() local 132 candidates.add(candidate); in evaluate() 133 ScoredCandidate choice = mCandidateScorer.scoreCandidates(candidates); in evaluate()
|
D | NetworkSuggestionNominatorTest.java | 1011 private void setupAddToWifiConfigManager(WifiConfiguration...candidates) { in setupAddToWifiConfigManager() argument 1012 for (int i = 0; i < candidates.length; i++) { in setupAddToWifiConfigManager() 1013 WifiConfiguration candidate = candidates[i]; in setupAddToWifiConfigManager() 1041 private void verifyAddToWifiConfigManager(WifiConfiguration...candidates) { in verifyAddToWifiConfigManager() argument 1043 verify(mWifiConfigManager, atLeast(candidates.length)).getConfiguredNetwork(anyString()); in verifyAddToWifiConfigManager() 1047 verify(mWifiConfigManager, times(candidates.length)).addOrUpdateNetwork( in verifyAddToWifiConfigManager() 1049 for (int i = 0; i < candidates.length; i++) { in verifyAddToWifiConfigManager() 1052 if (configuration.SSID.equals(candidates[i].SSID)) { in verifyAddToWifiConfigManager() 1062 verify(mWifiConfigManager, times(candidates.length)).updateNetworkSelectionStatus( in verifyAddToWifiConfigManager() 1064 verify(mWifiConfigManager, times(candidates.length)).getConfiguredNetwork(anyInt()); in verifyAddToWifiConfigManager()
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | ApplicationPackageManagerTest.java | 159 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkNominateHelperTest.java | 177 List<Pair<ScanDetail, WifiConfiguration>> candidates = mNominateHelper in evaluateScansWithNoMatch() local 179 assertTrue(candidates.isEmpty()); in evaluateScansWithNoMatch() 196 List<Pair<ScanDetail, WifiConfiguration>> candidates = mNominateHelper in evaluateScansWithNoInterworkingAP() local 198 assertTrue(candidates.isEmpty()); in evaluateScansWithNoInterworkingAP() 225 List<Pair<ScanDetail, WifiConfiguration>> candidates = mNominateHelper in evaluateScansWithNetworkMatchingHomeProvider() local 227 assertEquals(1, candidates.size()); in evaluateScansWithNetworkMatchingHomeProvider() 266 List<Pair<ScanDetail, WifiConfiguration>> candidates = mNominateHelper in evaluateScansWithNetworkMatchingRoamingProvider() local 268 assertEquals(1, candidates.size()); in evaluateScansWithNetworkMatchingRoamingProvider() 314 List<Pair<ScanDetail, WifiConfiguration>> candidates = mNominateHelper in evaluateScansWithHomeProviderNetworkAndRoamingProviderNetwork() local 316 assertEquals(2, candidates.size()); in evaluateScansWithHomeProviderNetworkAndRoamingProviderNetwork() [all …]
|
/frameworks/minikin/libs/minikin/ |
D | OptimalLineBreaker.cpp | 89 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/ |
D | RandomScheduler.java | 43 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/ |
D | DisplayColorProfile.cpp | 93 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/ |
D | CarrierAppUtils.java | 148 List<ApplicationInfo> candidates = getDefaultCarrierAppCandidatesHelper( in disableCarrierAppsUntilPrivileged() local 150 if (candidates == null || candidates.isEmpty()) { in disableCarrierAppsUntilPrivileged() 167 for (ApplicationInfo ai : candidates) { in disableCarrierAppsUntilPrivileged() 338 List<ApplicationInfo> candidates = getDefaultCarrierAppCandidates(userId, context); in getDefaultCarrierApps() local 339 if (candidates == null || candidates.isEmpty()) { in getDefaultCarrierApps() 346 for (int i = candidates.size() - 1; i >= 0; i--) { in getDefaultCarrierApps() 347 ApplicationInfo ai = candidates.get(i); in getDefaultCarrierApps() 353 candidates.remove(i); in getDefaultCarrierApps() 357 return candidates; in getDefaultCarrierApps()
|
/frameworks/base/core/java/android/text/method/ |
D | LinkMovementMethod.java | 115 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/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkNominateHelper.java | 149 List<PasspointNetworkCandidate> candidates = candidatesPerProvider in findBestMatchScanDetailForProviders() local 151 candidates.add(new PasspointNetworkCandidate(matchedProvider.first, in findBestMatchScanDetailForProviders() 156 for (List<PasspointNetworkCandidate> candidates : candidatesPerProvider.values()) { in findBestMatchScanDetailForProviders() 157 List<PasspointNetworkCandidate> bestCandidates = findHomeNetworksIfPossible(candidates); in findBestMatchScanDetailForProviders()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | CompatibilityScorer.java | 111 public ScoredCandidate scoreCandidates(@NonNull Collection<Candidate> candidates) { in scoreCandidates() argument 113 for (Candidate candidate : candidates) { in scoreCandidates()
|
D | BubbleFunScorer.java | 121 public ScoredCandidate scoreCandidates(@NonNull Collection<Candidate> candidates) { in scoreCandidates() argument 123 for (Candidate candidate : candidates) { in scoreCandidates()
|
D | WifiConnectivityManager.java | 318 List<WifiCandidates.Candidate> candidates = mNetworkSelector.getCandidatesFromScan( in handleScanResults() local 321 mLatestCandidates = candidates; in handleScanResults() 327 candidates = filterCandidatesHighMovement(candidates, listenerName, isFullScan); in handleScanResults() 330 WifiConfiguration candidate = mNetworkSelector.selectNetwork(candidates); in handleScanResults() 349 List<WifiCandidates.Candidate> candidates, String listenerName, boolean isFullScan) { in filterCandidatesHighMovement() argument 351 if (candidates == null || candidates.isEmpty()) { in filterCandidatesHighMovement() 372 List<WifiCandidates.Candidate> filteredCandidates = candidates.stream().filter( in filterCandidatesHighMovement() 382 candidates); in filterCandidatesHighMovement() 393 candidates); in filterCandidatesHighMovement() 394 localLog("Found " + candidates.size() + " candidates at high mobility state. " in filterCandidatesHighMovement() [all …]
|
D | WifiCandidates.java | 51 @NonNull List<Candidate> candidates) { in WifiCandidates() argument 54 for (Candidate c : candidates) { in WifiCandidates() 357 @Nullable ScoredCandidate scoreCandidates(@NonNull Collection<Candidate> candidates); in scoreCandidates() argument 592 Collection<Candidate> candidates = new ArrayList<>(mCandidates.values()); in choose() local 593 ScoredCandidate choice = candidateScorer.scoreCandidates(candidates); in choose()
|
D | ScoreCardBasedScorer.java | 134 public ScoredCandidate scoreCandidates(@NonNull Collection<Candidate> candidates) { in scoreCandidates() argument 136 for (Candidate candidate : candidates) { in scoreCandidates()
|
D | ThroughputScorer.java | 150 public ScoredCandidate scoreCandidates(@NonNull Collection<Candidate> candidates) { in scoreCandidates() argument 152 for (Candidate candidate : candidates) { in scoreCandidates()
|
D | SavedNetworkNominator.java | 176 List<Pair<ScanDetail, WifiConfiguration>> candidates = in findMatchedPasspointNetworks() local 178 for (Pair<ScanDetail, WifiConfiguration> candidate : candidates) { in findMatchedPasspointNetworks()
|
/frameworks/opt/vcard/ |
D | OWNERS | 2 # Please update this list if you find better candidates.
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/ |
D | LocaleUtils.java | 206 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/ |
D | AppTransitionController.java | 402 final LinkedList<WindowContainer> candidates = new LinkedList<>(); in getAnimationTargets() local 407 candidates.add(app); in getAnimationTargets() 415 return new ArraySet<>(candidates); in getAnimationTargets() 431 while (!candidates.isEmpty()) { in getAnimationTargets() 432 final WindowContainer current = candidates.removeFirst(); in getAnimationTargets() 475 if (candidates.remove(sibling)) { in getAnimationTargets() 484 candidates.add(parent); in getAnimationTargets()
|
D | WindowProcessController.java | 836 ArrayList<ActivityRecord> candidates = null; in releaseSomeActivities() local 856 if (candidates == null) { in releaseSomeActivities() 857 candidates = new ArrayList<>(); in releaseSomeActivities() 859 candidates.add(r); in releaseSomeActivities() 863 if (candidates != null) { in releaseSomeActivities() 865 candidates.sort(WindowContainer::compareTo); in releaseSomeActivities() 867 int maxRelease = Math.max(candidates.size(), 1); in releaseSomeActivities() 869 final ActivityRecord r = candidates.remove(0); in releaseSomeActivities()
|
D | LaunchParamsPersister.java | 299 ArraySet<ComponentName> candidates = mWindowLayoutAffinityMap.get(windowLayoutAffinity); in getLaunchParams() local 300 for (int i = 0; i < candidates.size(); ++i) { in getLaunchParams() 301 ComponentName candidate = candidates.valueAt(i); in getLaunchParams()
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | HdmiCecController.java | 492 final List<Integer> candidates, final int retryCount, in runDevicePolling() argument 495 if (candidates.isEmpty()) { in runDevicePolling() 503 final Integer candidate = candidates.remove(0); in runDevicePolling() 515 runDevicePolling(sourceAddress, candidates, retryCount, callback, in runDevicePolling()
|