Searched refs:candidate (Results 1 - 25 of 51) sorted by relevance

123

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DSavedNetworkEvaluatorTest.java168 WifiConfiguration candidate = mSavedNetworkEvaluator.evaluateNetworks(scanDetails,
171 assertNull(candidate);
195 WifiConfiguration candidate = mSavedNetworkEvaluator.evaluateNetworks(scanDetails,
198 assertNull(candidate);
202 * Set the candidate {@link ScanResult} for all {@link WifiConfiguration}s regardless of
259 WifiConfiguration candidate = mSavedNetworkEvaluator.evaluateNetworks(scanDetails,
263 WifiConfigurationTestUtil.assertConfigurationEqual(savedConfigs[1], candidate);
265 chosenScanResult, candidate);
287 WifiConfiguration candidate = mSavedNetworkEvaluator.evaluateNetworks(scanDetails,
291 WifiConfigurationTestUtil.assertConfigurationEqual(savedConfigs[1], candidate);
[all...]
H A DWifiNetworkSelectorTest.java185 WifiConfiguration candidate = mWifiNetworkSelector.selectNetwork(scanDetails,
187 assertEquals("Expect null configuration", null, candidate);
214 WifiConfiguration candidate = mWifiNetworkSelector.selectNetwork(scanDetails,
216 assertEquals("Expect null configuration", null, candidate);
244 WifiConfiguration candidate = mWifiNetworkSelector.selectNetwork(scanDetails,
251 candidate = mWifiNetworkSelector.selectNetwork(scanDetails,
254 assertEquals("Expect null configuration", null, candidate);
283 WifiConfiguration candidate = mWifiNetworkSelector.selectNetwork(scanDetails,
285 WifiConfigurationTestUtil.assertConfigurationEqual(savedConfigs[0], candidate);
291 candidate
[all...]
H A DScoredNetworkEvaluatorTest.java242 WifiConfiguration candidate = mScoredNetworkEvaluator.evaluateNetworks(scanDetails,
245 WifiConfigurationTestUtil.assertConfigurationEqual(ephemeralNetworkConfig, candidate);
247 scanResult, candidate);
248 assertEquals(meteredHints[1], candidate.meteredHint);
282 WifiConfiguration candidate = mScoredNetworkEvaluator.evaluateNetworks(scanDetails,
285 WifiConfigurationTestUtil.assertConfigurationEqual(ephemeralNetworkConfigs[1], candidate);
287 scanResults[1], candidate);
288 assertEquals(meteredHints[1], candidate.meteredHint);
318 WifiConfiguration candidate = mScoredNetworkEvaluator.evaluateNetworks(scanDetails,
321 assertEquals("Expect null configuration", null, candidate);
[all...]
H A DWifiConnectivityManagerTest.java243 WifiConfiguration candidate = generateWifiConfig(
245 candidate.BSSID = WifiStateMachine.SUPPLICANT_BSSID_ANY;
249 candidate.getNetworkSelectionStatus().setCandidate(candidateScanResult);
252 anyBoolean(), anyBoolean())).thenReturn(candidate);
293 * expected candidate network ID and BSSID.
312 * expected candidate network ID and BSSID.
331 * expected candidate network ID and BSSID.
351 * expected candidate network ID and BSSID.
397 * with the expected candidate network ID and BSSID for only the expected number of times within
436 * with the expected candidate networ
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
H A DPasspointNetworkEvaluator.java46 * Contained information for a Passpoint network candidate.
100 // Done if no candidate is found.
166 for (PasspointNetworkCandidate candidate : networkList) {
167 ScanDetail scanDetail = candidate.mScanDetail;
168 PasspointMatch match = candidate.mMatchStatus;
177 bestCandidate = candidate;
/frameworks/base/tools/aapt2/util/
H A DImmutableMap.h54 auto cmp = [](const std::pair<TKey, TValue>& candidate,
56 return candidate.first < target;
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DClusterManager.java196 // assign each candidate to a semantic cluster and check if new semantic
198 for (LocationCluster candidate : mLocationClusters) {
199 if (candidate.hasSemanticId() ||
200 candidate.hasSemanticClusterId() ||
201 !candidate.passThreshold(SEMANTIC_CLUSTER_THRESHOLD)) {
209 float distance = cluster.distanceToCluster(candidate);
219 // if candidate doesn't belong to any semantic cluster, create a new
222 candidate.generateSemanticId(mSemanticClusterCount++);
223 mSemanticClusters.add(candidate);
225 candidate
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiNetworkSelector.java380 * Overrides the {@code candidate} chosen by the {@link #mEvaluators} with the user chosen
383 * @return the user chosen {@link WifiConfiguration} if one exists, {@code candidate} otherwise
386 @NonNull WifiConfiguration candidate) {
387 WifiConfiguration tempConfig = candidate;
388 WifiConfiguration originalCandidate = candidate;
389 ScanResult scanResultCandidate = candidate.getNetworkSelectionStatus().getCandidate();
400 candidate = tempConfig;
408 if (candidate != originalCandidate) {
409 localLog("After user selection adjustment, the final candidate is:"
410 + WifiNetworkSelector.toNetworkString(candidate)
385 overrideCandidateWithUserConnectChoice( @onNull WifiConfiguration candidate) argument
[all...]
H A DWifiConnectivityManager.java244 * @return true - if a candidate is selected by WifiNetworkSelector
245 * false - if no candidate is selected by WifiNetworkSelector
260 WifiConfiguration candidate =
267 if (candidate != null) {
268 localLog(listenerName + ": WNS candidate-" + candidate.SSID);
269 connectToNetwork(candidate);
414 // WifiNetworkSelector selects a candidate from the PNO scan results.
645 * Attempt to connect to a network candidate.
648 * connect or roam to the network candidate recommende
650 connectToNetwork(WifiConfiguration candidate) argument
[all...]
H A DSavedNetworkEvaluator.java117 // Clear the cached candidate, score and seen.
239 WifiConfiguration candidate = null;
280 // configuration. So only the matching ScanResult can be a candidate.
290 // Set candidate ScanResult for all saved networks to ensure that users can
329 candidate = mWifiConfigManager.getConfiguredNetwork(candidateIdOfScanResult);
340 return candidate;
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioProfile.cpp80 uint32_t candidate = mSamplingRates[orderOfDesiredRate]; local
81 if (candidate / AUDIO_RESAMPLER_DOWN_RATIO_MAX <= samplingRate) {
82 updatedSamplingRate = candidate;
88 uint32_t candidate = mSamplingRates[orderOfDesiredRate - 1]; local
89 if (candidate * AUDIO_RESAMPLER_UP_RATIO_MAX >= samplingRate) {
90 updatedSamplingRate = candidate;
/frameworks/base/core/java/android/app/
H A DApplicationErrorReport.java172 String candidate = null;
176 candidate = pm.getInstallerPackageName(packageName);
181 if (candidate != null) {
182 result = getErrorReportReceiver(pm, packageName, candidate);
191 candidate = SystemProperties.get(SYSTEM_APPS_ERROR_RECEIVER_PROPERTY);
192 result = getErrorReportReceiver(pm, packageName, candidate);
199 candidate = SystemProperties.get(DEFAULT_ERROR_RECEIVER_PROPERTY);
200 return getErrorReportReceiver(pm, packageName, candidate);
208 * @param receiverPackage candidate package to receive the error
/frameworks/compile/mclinker/lib/LD/
H A DIdenticalCodeFolding.cpp166 CandidateMap::iterator candidate, candidateEnd = candidate_map.end(); local
167 for (candidate = candidate_map.begin(); candidate != candidateEnd;
168 ++candidate) {
170 (funcptr_access_set.count(candidate->first) == 0)) {
172 m_KeptSections[candidate->first] = ObjectAndId(*obj, index);
174 FoldingCandidate(candidate->first, candidate->second, *obj));
176 } // for each possible candidate
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
H A Dfind_region.rs147 float3 candidate = rsGetElementAt_float3(border_values, i).xyz;
148 sum += distance(orig, candidate);
H A Dhealing.rs149 float3 candidate = rsGetElementAt_float3(border, i).xyz;
150 sum += distance(orig, candidate);
/frameworks/support/v7/preference/src/android/support/v7/preference/
H A DPreferenceGroupAdapter.java369 final Preference candidate = mPreferenceList.get(i);
370 if (TextUtils.equals(key, candidate.getKey())) {
381 final Preference candidate = mPreferenceList.get(i);
382 if (candidate != null && candidate.equals(preference)) {
/frameworks/support/core-ui/java/android/support/v4/widget/
H A DFocusStrategy.java143 // Initialize the best candidate to something impossible so that
187 * Is candidate a better candidate than currentBest for a focus search
193 * @param candidate the candidate rectangle
195 * @return {@code true} if the candidate rectangle is a better than the
200 @NonNull Rect candidate, @NonNull Rect currentBest) {
201 // To be a better candidate, need to at least be a candidate in the
203 if (!isCandidate(source, candidate, directio
198 isBetterCandidate( @ocusRealDirection int direction, @NonNull Rect source, @NonNull Rect candidate, @NonNull Rect currentBest) argument
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DGridLayoutManager.java1021 // The focusable candidate to be picked if no perfect focusable candidate is found.
1022 // The best focusable candidate is the one with the highest amount of span overlap with
1028 // The unfocusable candidate to become visible on the screen next, if no perfect or
1032 // or above RV's padded bounded area. The best unfocusable candidate is the one with the
1046 View candidate = getChildAt(i);
1047 if (candidate == prevFocusedChild) {
1051 if (candidate.hasFocusable() && spanGroupIndex != focusableSpanGroupIndex) {
1054 // until this point, in order to find the best unfocusable candidate to become
1062 final LayoutParams candidateLp = (LayoutParams) candidate
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DAppWindowToken.java462 WindowState candidate = null;
475 candidate = win;
481 return candidate;
986 final WindowState candidate = mChildren.get(i);
987 gotReplacementWindow |= candidate.setReplacementWindowIfNeeded(w);
1005 final WindowState candidate = mChildren.get(i);
1006 if (candidate.waitingForReplacement()) {
1283 int getOrientation(int candidate) { argument
1293 if (candidate == SCREEN_ORIENTATION_BEHIND) {
1295 // candidate wan
[all...]
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
H A DMtpManager.java78 for (final UsbDevice candidate : mManager.getDeviceList().values()) {
79 if (candidate.getDeviceId() == deviceId) {
80 rawDevice = candidate;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DNotificationIconAreaController.java203 StatusBarIconView candidate = toShow.get(j);
204 if (candidate.getSourceIcon().sameAs((removedIcon.getSourceIcon()))
205 && candidate.getNotification().getGroupKey().equals(removedGroupKey)) {
/frameworks/base/core/tests/coretests/src/android/view/
H A DFocusFinderTest.java238 * A non-candidate (even a much closer one) is always a worse choice
239 * than a real candidate.
250 Rect candidate = new Rect(src);
251 candidate.offset(-(4 * src.width()), 0);
252 assertDirectionIsCandidate(View.FOCUS_LEFT, src, candidate);
254 assertBetterCandidate(View.FOCUS_LEFT, src, candidate, nonCandidate);
320 * down (and not those next to but still a candidate because
457 new Rect(0, 0, 20, 1)); // candidate
462 new Rect(0, -1, 20, 0)); // candidate
467 new Rect(-1, 0, 0, 20)); // candidate
[all...]
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
H A Dfind_region.rs99 float3 candidate = rsGetElementAt_float3(mBorderValues, i).xyz;
100 sum += distance(orig, candidate);
H A Dhealing.rs102 float3 candidate = rsGetElementAt_float3(border, i).xyz;
103 sum += distance(orig, candidate);
/frameworks/native/cmds/dumpsys/
H A Ddumpsys.cpp67 for (const auto& candidate : skipped) {
68 if (candidate == service) {

Completed in 1538 milliseconds

123