Home
last modified time | relevance | path

Searched refs:candidate (Results 1 – 25 of 70) sorted by relevance

123

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DCompatibilityScorer.java72 private ScoredCandidate scoreCandidate(Candidate candidate) { in scoreCandidate() argument
73 int rssiSaturationThreshold = mScoringParams.getGoodRssi(candidate.getFrequency()); in scoreCandidate()
74 int rssi = Math.min(candidate.getScanRssi(), rssiSaturationThreshold); in scoreCandidate()
77 if (candidate.getFrequency() >= ScoringParams.MINIMUM_5GHZ_BAND_FREQUENCY_IN_MEGAHERTZ) { in scoreCandidate()
80 score += (int) (candidate.getLastSelectionWeight() * LAST_SELECTION_AWARD_IS_480); in scoreCandidate()
82 if (candidate.isCurrentNetwork()) { in scoreCandidate()
87 if (!candidate.isOpenNetwork()) { in scoreCandidate()
93 score -= 1000 * candidate.getEvaluatorId(); in scoreCandidate()
97 double tieBreaker = candidate.getScanRssi() / 1000.0; in scoreCandidate()
98 return new ScoredCandidate(score + tieBreaker, 10, candidate); in scoreCandidate()
[all …]
DScoreCardBasedScorer.java79 private ScoredCandidate scoreCandidate(Candidate candidate) { in scoreCandidate() argument
80 int rssiSaturationThreshold = mScoringParams.getGoodRssi(candidate.getFrequency()); in scoreCandidate()
81 int rssi = Math.min(candidate.getScanRssi(), rssiSaturationThreshold); in scoreCandidate()
82 int cutoff = estimatedCutoff(candidate); in scoreCandidate()
85 if (candidate.getFrequency() >= ScoringParams.MINIMUM_5GHZ_BAND_FREQUENCY_IN_MEGAHERTZ) { in scoreCandidate()
88 score += (int) (candidate.getLastSelectionWeight() * LAST_SELECTION_AWARD_IS_480); in scoreCandidate()
90 if (candidate.isCurrentNetwork()) { in scoreCandidate()
94 if (!candidate.isOpenNetwork()) { in scoreCandidate()
100 score -= 1000 * candidate.getEvaluatorId(); in scoreCandidate()
102 return new ScoredCandidate(score, 10, candidate); in scoreCandidate()
[all …]
DBubbleFunScorer.java59 private ScoredCandidate scoreCandidate(Candidate candidate) { in scoreCandidate() argument
60 final int rssi = candidate.getScanRssi(); in scoreCandidate()
61 final int rssiEntryThreshold = mScoringParams.getEntryRssi(candidate.getFrequency()); in scoreCandidate()
69 score += candidate.getLastSelectionWeight() * CURRENT_NETWORK_BOOST; in scoreCandidate()
72 if (candidate.isCurrentNetwork()) { in scoreCandidate()
76 if (!candidate.isOpenNetwork()) { in scoreCandidate()
87 if (candidate.getFrequency() < ScoringParams.MINIMUM_5GHZ_BAND_FREQUENCY_IN_MEGAHERTZ) { in scoreCandidate()
92 return new ScoredCandidate(score, TYPICAL_SCAN_RSSI_STD * gain, candidate); in scoreCandidate()
119 for (Candidate candidate : group) { in scoreCandidates()
120 ScoredCandidate scoredCandidate = scoreCandidate(candidate); in scoreCandidates()
DWifiCandidates.java278 public ScoredCandidate(double value, double err, Candidate candidate) { in ScoredCandidate() argument
281 this.candidateKey = (candidate == null) ? null : candidate.getKey(); in ScoredCandidate()
380 CandidateImpl candidate = new CandidateImpl(key, in add() local
385 mCandidates.put(key, candidate); in add()
400 public boolean remove(Candidate candidate) { in remove() argument
401 if (!(candidate instanceof CandidateImpl)) return failure(); in remove()
402 return mCandidates.remove(((CandidateImpl) candidate).key, (CandidateImpl) candidate); in remove()
417 for (CandidateImpl candidate : mCandidates.values()) { in getGroupedCandidates()
418 Collection<Candidate> cc = candidatesForNetworkId.get(candidate.key.networkId); in getGroupedCandidates()
421 candidatesForNetworkId.put(candidate.key.networkId, cc); in getGroupedCandidates()
[all …]
DWifiConnectivityManager.java277 WifiConfiguration candidate = in handleScanResults() local
284 if (candidate != null) { in handleScanResults()
285 localLog(listenerName + ": WNS candidate-" + candidate.SSID); in handleScanResults()
286 connectToNetwork(candidate); in handleScanResults()
703 private void connectToNetwork(WifiConfiguration candidate) { in connectToNetwork() argument
704 ScanResult scanResultCandidate = candidate.getNetworkSelectionStatus().getCandidate(); in connectToNetwork()
706 localLog("connectToNetwork: bad candidate - " + candidate in connectToNetwork()
712 String targetAssociationId = candidate.SSID + " : " + targetBssid; in connectToNetwork()
727 if (candidate.BSSID != null in connectToNetwork()
728 && !candidate.BSSID.equals(ClientModeImpl.SUPPLICANT_BSSID_ANY) in connectToNetwork()
[all …]
DWifiNetworkSelector.java653 @NonNull WifiConfiguration candidate) { in overrideCandidateWithUserConnectChoice()
654 WifiConfiguration tempConfig = Preconditions.checkNotNull(candidate); in overrideCandidateWithUserConnectChoice()
655 WifiConfiguration originalCandidate = candidate; in overrideCandidateWithUserConnectChoice()
656 ScanResult scanResultCandidate = candidate.getNetworkSelectionStatus().getCandidate(); in overrideCandidateWithUserConnectChoice()
667 candidate = tempConfig; in overrideCandidateWithUserConnectChoice()
675 if (candidate != originalCandidate) { in overrideCandidateWithUserConnectChoice()
677 + WifiNetworkSelector.toNetworkString(candidate) + " : " in overrideCandidateWithUserConnectChoice()
679 mWifiMetrics.setNominatorForNetwork(candidate.networkId, in overrideCandidateWithUserConnectChoice()
682 return candidate; in overrideCandidateWithUserConnectChoice()
787 for (WifiCandidates.Candidate candidate: group) { in selectNetwork()
[all …]
DSavedNetworkEvaluator.java192 WifiConfiguration candidate = null; in evaluateNetworks() local
273 candidate = mWifiConfigManager.getConfiguredNetwork(network.networkId); in evaluateNetworks()
284 return candidate; in evaluateNetworks()
DNetworkSuggestionEvaluator.java126 PerNetworkSuggestionMatchMetaInfo candidate = in evaluateNetworks() local
128 if (candidate == null) { // should never happen. in evaluateNetworks()
132 return candidate.wCmConfiguredNetwork; in evaluateNetworks()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DConcreteCandidate.java44 public ConcreteCandidate(WifiCandidates.Candidate candidate) { in ConcreteCandidate() argument
45 mKey = candidate.getKey(); in ConcreteCandidate()
46 mScanDetail = candidate.getScanDetail(); in ConcreteCandidate()
47 mNetworkConfigId = candidate.getNetworkConfigId(); in ConcreteCandidate()
48 mIsOpenNetwork = candidate.isOpenNetwork(); in ConcreteCandidate()
49 mIsCurrentNetwork = candidate.isCurrentNetwork(); in ConcreteCandidate()
50 mIsCurrentBssid = candidate.isCurrentBssid(); in ConcreteCandidate()
51 mIsPasspoint = candidate.isPasspoint(); in ConcreteCandidate()
52 mIsEphemeral = candidate.isEphemeral(); in ConcreteCandidate()
53 mIsTrusted = candidate.isTrusted(); in ConcreteCandidate()
[all …]
DSavedNetworkEvaluatorTest.java176 WifiConfiguration candidate = mSavedNetworkEvaluator.evaluateNetworks(scanDetails, in ignoreNetworksIfUseExternalScores() local
179 assertNull(candidate); in ignoreNetworksIfUseExternalScores()
203 WifiConfiguration candidate = mSavedNetworkEvaluator.evaluateNetworks(scanDetails, in ignoreEphemeralNetworks() local
206 assertNull(candidate); in ignoreEphemeralNetworks()
268 WifiConfiguration candidate = mSavedNetworkEvaluator.evaluateNetworks(scanDetails, in chooseStrongerRssi2GNetwork() local
272 WifiConfigurationTestUtil.assertConfigurationEqual(savedConfigs[1], candidate); in chooseStrongerRssi2GNetwork()
274 chosenScanResult, candidate); in chooseStrongerRssi2GNetwork()
296 WifiConfiguration candidate = mSavedNetworkEvaluator.evaluateNetworks(scanDetails, in chooseStrongerRssi5GNetwork() local
300 WifiConfigurationTestUtil.assertConfigurationEqual(savedConfigs[1], candidate); in chooseStrongerRssi5GNetwork()
302 chosenScanResult, candidate); in chooseStrongerRssi5GNetwork()
[all …]
DScoredNetworkEvaluatorTest.java307 WifiConfiguration candidate = mScoredNetworkEvaluator.evaluateNetworks(scanDetails, in testEvaluateNetworks_newEphemeralNetworkMustBeReportedAsConnectable() local
310 WifiConfigurationTestUtil.assertConfigurationEqual(ephemeralNetworkConfig, candidate); in testEvaluateNetworks_newEphemeralNetworkMustBeReportedAsConnectable()
312 scanResult, candidate); in testEvaluateNetworks_newEphemeralNetworkMustBeReportedAsConnectable()
313 assertEquals(meteredHints[1], candidate.meteredHint); in testEvaluateNetworks_newEphemeralNetworkMustBeReportedAsConnectable()
317 .anyMatch(c -> c.networkId == candidate.networkId)); in testEvaluateNetworks_newEphemeralNetworkMustBeReportedAsConnectable()
348 WifiConfiguration candidate = mScoredNetworkEvaluator.evaluateNetworks(scanDetails, in testEvaluateNetworks_chooseEphemeralNetworkBecauseOfNoSavedNetwork() local
351 WifiConfigurationTestUtil.assertConfigurationEqual(ephemeralNetworkConfig, candidate); in testEvaluateNetworks_chooseEphemeralNetworkBecauseOfNoSavedNetwork()
353 scanResult, candidate); in testEvaluateNetworks_chooseEphemeralNetworkBecauseOfNoSavedNetwork()
354 assertEquals(meteredHints[1], candidate.meteredHint); in testEvaluateNetworks_chooseEphemeralNetworkBecauseOfNoSavedNetwork()
358 .anyMatch(c -> c.networkId == candidate.networkId)); in testEvaluateNetworks_chooseEphemeralNetworkBecauseOfNoSavedNetwork()
[all …]
DNetworkSuggestionEvaluatorTest.java102 WifiConfiguration candidate = mNetworkSuggestionEvaluator.evaluateNetworks( in testSelectNetworkSuggestionForNoMatch() local
108 assertNull(candidate); in testSelectNetworkSuggestionForNoMatch()
142 WifiConfiguration candidate = mNetworkSuggestionEvaluator.evaluateNetworks( in testSelectNetworkSuggestionForOneMatch() local
148 assertNotNull(candidate); in testSelectNetworkSuggestionForOneMatch()
149 assertEquals(suggestionSsids[0] , candidate.SSID); in testSelectNetworkSuggestionForOneMatch()
188 WifiConfiguration candidate = mNetworkSuggestionEvaluator.evaluateNetworks( in testSelectNetworkSuggestionForMultipleMatch() local
194 assertNotNull(candidate); in testSelectNetworkSuggestionForMultipleMatch()
195 assertEquals(suggestionSsids[1] , candidate.SSID); in testSelectNetworkSuggestionForMultipleMatch()
235 WifiConfiguration candidate = mNetworkSuggestionEvaluator.evaluateNetworks( in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins() local
241 assertNotNull(candidate); in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins()
[all …]
DWifiNetworkSelectorTest.java283 WifiConfiguration candidate = mWifiNetworkSelector.selectNetwork(scanDetails, in emptyScanResults() local
285 assertEquals("Expect null configuration", null, candidate); in emptyScanResults()
313 WifiConfiguration candidate = mWifiNetworkSelector.selectNetwork(scanDetails, in verifyMinimumRssiThreshold() local
315 assertEquals("Expect null configuration", null, candidate); in verifyMinimumRssiThreshold()
344 WifiConfiguration candidate = mWifiNetworkSelector.selectNetwork(scanDetails, in verifyMinimumTimeGapWhenConnected() local
351 candidate = mWifiNetworkSelector.selectNetwork(scanDetails, in verifyMinimumTimeGapWhenConnected()
354 assertEquals("Expect null configuration", null, candidate); in verifyMinimumTimeGapWhenConnected()
384 WifiConfiguration candidate = mWifiNetworkSelector.selectNetwork(scanDetails, in verifyNoMinimumTimeGapWhenDisconnected() local
386 WifiConfigurationTestUtil.assertConfigurationEqual(savedConfigs[0], candidate); in verifyNoMinimumTimeGapWhenDisconnected()
392 candidate = mWifiNetworkSelector.selectNetwork(scanDetails, in verifyNoMinimumTimeGapWhenDisconnected()
[all …]
DWifiConnectivityManagerTest.java284 WifiConfiguration candidate = generateWifiConfig( in mockWifiNetworkSelector() local
286 candidate.BSSID = ClientModeImpl.SUPPLICANT_BSSID_ANY; in mockWifiNetworkSelector()
290 candidate.getNetworkSelectionStatus().setCandidate(candidateScanResult); in mockWifiNetworkSelector()
293 anyBoolean(), anyBoolean())).thenReturn(candidate); in mockWifiNetworkSelector()
1744 WifiConfiguration candidate = generateWifiConfig(
1746 candidate.BSSID = CANDIDATE_BSSID; // config specified
1750 candidate.getNetworkSelectionStatus().setCandidate(candidateScanResult);
1753 anyBoolean(), anyBoolean())).thenReturn(candidate);
1798 WifiConfiguration candidate = generateWifiConfig(
1800 candidate.BSSID = CANDIDATE_BSSID; // config specified
[all …]
/frameworks/av/drm/libmediadrm/
DPluginMetricsReporting.cpp57 char candidate = input[i]; in sanitize() local
58 if ((candidate >= 'a' && candidate <= 'z') || in sanitize()
59 (candidate >= 'A' && candidate <= 'Z') || in sanitize()
60 (candidate >= '0' && candidate <= '9')) { in sanitize()
61 output.append(&candidate, 1); in sanitize()
/frameworks/base/core/java/com/android/internal/colorextraction/types/
DTonal.java357 final TonalPalette candidate = mTonalPalettes.get(i); in findTonalPalette() local
359 if (h >= candidate.minHue && h <= candidate.maxHue) { in findTonalPalette()
360 best = candidate; in findTonalPalette()
364 if (candidate.maxHue > 1.0f && h >= 0.0f && h <= fract(candidate.maxHue)) { in findTonalPalette()
365 best = candidate; in findTonalPalette()
369 if (candidate.minHue < 0.0f && h >= fract(candidate.minHue) && h <= 1.0f) { in findTonalPalette()
370 best = candidate; in findTonalPalette()
374 if (h <= candidate.minHue && candidate.minHue - h < error) { in findTonalPalette()
375 best = candidate; in findTonalPalette()
376 error = candidate.minHue - h; in findTonalPalette()
[all …]
/frameworks/base/telephony/java/android/telephony/mbms/vendor/
DVendorUtils.java148 ComponentName candidate = new ComponentName(packageName, in getAppReceiverFromPackageName() local
151 queryIntent.setComponent(candidate); in getAppReceiverFromPackageName()
155 return candidate; in getAppReceiverFromPackageName()
/frameworks/compile/mclinker/lib/LD/
DIdenticalCodeFolding.cpp166 CandidateMap::iterator candidate, candidateEnd = candidate_map.end(); in findCandidates() local
167 for (candidate = candidate_map.begin(); candidate != candidateEnd; in findCandidates()
168 ++candidate) { in findCandidates()
170 (funcptr_access_set.count(candidate->first) == 0)) { in findCandidates()
172 m_KeptSections[candidate->first] = ObjectAndId(*obj, index); in findCandidates()
174 FoldingCandidate(candidate->first, candidate->second, *obj)); in findCandidates()
/frameworks/base/core/java/android/app/slice/
DSliceSpec.java94 public boolean canRender(@NonNull SliceSpec candidate) { in canRender() argument
95 if (!mType.equals(candidate.mType)) return false; in canRender()
96 return mRevision >= candidate.mRevision; in canRender()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DDisplayColorProfile.cpp160 for (auto candidate : candidates) { in getHwcColorMode() local
161 auto iter = hwcColorModes.find(candidate); in getHwcColorMode()
163 return candidate; in getHwcColorMode()
173 for (auto candidate : candidates) { in getHwcRenderIntent() local
175 if (candidate == hwcIntent) { in getHwcRenderIntent()
176 return candidate; in getHwcRenderIntent()
/frameworks/av/services/oboeservice/
DAAudioStreamTracker.cpp72 auto candidate = it->second; in findStreamByPortHandleAndIncrement() local
73 if (candidate->getPortHandle() == portHandle) { in findStreamByPortHandleAndIncrement()
74 serviceStream = candidate; in findStreamByPortHandleAndIncrement()
/frameworks/base/core/java/android/app/
DApplicationErrorReport.java173 String candidate = null; in getErrorReportReceiver() local
177 candidate = pm.getInstallerPackageName(packageName); in getErrorReportReceiver()
182 if (candidate != null) { in getErrorReportReceiver()
183 result = getErrorReportReceiver(pm, packageName, candidate); in getErrorReportReceiver()
192 candidate = SystemProperties.get(SYSTEM_APPS_ERROR_RECEIVER_PROPERTY); in getErrorReportReceiver()
193 result = getErrorReportReceiver(pm, packageName, candidate); in getErrorReportReceiver()
200 candidate = SystemProperties.get(DEFAULT_ERROR_RECEIVER_PROPERTY); in getErrorReportReceiver()
201 return getErrorReportReceiver(pm, packageName, candidate); in getErrorReportReceiver()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointNetworkEvaluator.java270 for (PasspointNetworkCandidate candidate : networkList) { in findBestNetwork()
271 ScanDetail scanDetail = candidate.mScanDetail; in findBestNetwork()
272 PasspointMatch match = candidate.mMatchStatus; in findBestNetwork()
281 bestCandidate = candidate; in findBestNetwork()
/frameworks/base/tools/aapt2/util/
DImmutableMap.h54 auto cmp = [](const std::pair<TKey, TValue>& candidate, in find()
56 return candidate.first < target; in find()
/frameworks/base/core/java/android/widget/
DSelectionActionModeHelper.java408 final RectF candidate, final Function<T, RectF> extractor, in mergeRectangleIntoList() argument
410 if (candidate.isEmpty()) { in mergeRectangleIntoList()
417 if (existingRectangle.contains(candidate)) { in mergeRectangleIntoList()
420 if (candidate.contains(existingRectangle)) { in mergeRectangleIntoList()
425 final boolean rectanglesContinueEachOther = candidate.left == existingRectangle.right in mergeRectangleIntoList()
426 || candidate.right == existingRectangle.left; in mergeRectangleIntoList()
427 final boolean canMerge = candidate.top == existingRectangle.top in mergeRectangleIntoList()
428 && candidate.bottom == existingRectangle.bottom in mergeRectangleIntoList()
429 && (RectF.intersects(candidate, existingRectangle) in mergeRectangleIntoList()
433 candidate.union(existingRectangle); in mergeRectangleIntoList()
[all …]

123