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

123

/frameworks/av/drm/libmediadrm/
H A DPluginMetricsReporting.cpp57 char candidate = input[i]; local
58 if ((candidate >= 'a' && candidate <= 'z') ||
59 (candidate >= 'A' && candidate <= 'Z') ||
60 (candidate >= '0' && candidate <= '9')) {
61 output.append(&candidate, 1);
/frameworks/support/slices/core/src/main/java/androidx/slice/
H A DSliceSpec.java73 * @param candidate candidate format of data.
77 public boolean canRender(@NonNull SliceSpec candidate) { argument
78 if (!mType.equals(candidate.mType)) return false;
79 return mRevision >= candidate.mRevision;
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DSavedNetworkEvaluatorTest.java169 WifiConfiguration candidate = mSavedNetworkEvaluator.evaluateNetworks(scanDetails,
172 assertNull(candidate);
196 WifiConfiguration candidate = mSavedNetworkEvaluator.evaluateNetworks(scanDetails,
199 assertNull(candidate);
203 * Set the candidate {@link ScanResult} for all {@link WifiConfiguration}s regardless of
260 WifiConfiguration candidate = mSavedNetworkEvaluator.evaluateNetworks(scanDetails,
264 WifiConfigurationTestUtil.assertConfigurationEqual(savedConfigs[1], candidate);
266 chosenScanResult, candidate);
288 WifiConfiguration candidate = mSavedNetworkEvaluator.evaluateNetworks(scanDetails,
292 WifiConfigurationTestUtil.assertConfigurationEqual(savedConfigs[1], candidate);
[all...]
H A DScoredNetworkEvaluatorTest.java299 WifiConfiguration candidate = mScoredNetworkEvaluator.evaluateNetworks(scanDetails,
302 WifiConfigurationTestUtil.assertConfigurationEqual(ephemeralNetworkConfig, candidate);
304 scanResult, candidate);
305 assertEquals(meteredHints[1], candidate.meteredHint);
339 WifiConfiguration candidate = mScoredNetworkEvaluator.evaluateNetworks(scanDetails,
342 WifiConfigurationTestUtil.assertConfigurationEqual(ephemeralNetworkConfigs[1], candidate);
344 scanResults[1], candidate);
345 assertEquals(meteredHints[1], candidate.meteredHint);
375 WifiConfiguration candidate = mScoredNetworkEvaluator.evaluateNetworks(scanDetails,
378 assertEquals("Expect null configuration", null, candidate);
[all...]
H A DWifiNetworkSelectorTest.java102 * Sets whether the evaluator should return a candidate for connection or null.
109 * This NetworkEvaluator can be configured to return a candidate or null. If returning a
110 * candidate, the first entry in the provided scanDetails will be selected. This requires
217 WifiConfiguration candidate = mWifiNetworkSelector.selectNetwork(scanDetails,
219 assertEquals("Expect null configuration", null, candidate);
247 WifiConfiguration candidate = mWifiNetworkSelector.selectNetwork(scanDetails,
249 assertEquals("Expect null configuration", null, candidate);
278 WifiConfiguration candidate = mWifiNetworkSelector.selectNetwork(scanDetails,
285 candidate = mWifiNetworkSelector.selectNetwork(scanDetails,
288 assertEquals("Expect null configuration", null, candidate);
[all...]
H A DWifiConnectivityManagerTest.java273 WifiConfiguration candidate = generateWifiConfig(
275 candidate.BSSID = WifiStateMachine.SUPPLICANT_BSSID_ANY;
279 candidate.getNetworkSelectionStatus().setCandidate(candidateScanResult);
282 anyBoolean(), anyBoolean())).thenReturn(candidate);
328 * expected candidate network ID and BSSID.
348 * expected candidate network ID and BSSID.
368 * expected candidate network ID and BSSID.
388 * expected candidate network ID and BSSID.
434 * with the expected candidate network ID and BSSID for only the expected number of times within
473 * with the expected candidate networ
[all...]
/frameworks/base/core/java/android/app/slice/
H A DSliceSpec.java90 * @param candidate candidate format of data.
94 public boolean canRender(@NonNull SliceSpec candidate) { argument
95 if (!mType.equals(candidate.mType)) return false;
96 return mRevision >= candidate.mRevision;
/frameworks/base/telephony/java/android/telephony/mbms/vendor/
H A DVendorUtils.java148 ComponentName candidate = new ComponentName(packageName,
151 queryIntent.setComponent(candidate);
155 return candidate;
/frameworks/base/core/java/com/android/internal/colorextraction/types/
H A DTonal.java367 final TonalPalette candidate = mTonalPalettes.get(i);
369 if (h >= candidate.minHue && h <= candidate.maxHue) {
370 best = candidate;
374 if (candidate.maxHue > 1.0f && h >= 0.0f && h <= fract(candidate.maxHue)) {
375 best = candidate;
379 if (candidate.minHue < 0.0f && h >= fract(candidate.minHue) && h <= 1.0f) {
380 best = candidate;
[all...]
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemalarm/
H A DConstraintsCommandHandler.java74 for (WorkSpec candidate: candidates) {
75 if (candidate.scheduleRequestedAt != WorkSpec.SCHEDULE_NOT_REQUESTED_YET) {
76 eligibleWorkSpecs.add(candidate);
/frameworks/av/services/oboeservice/
H A DAAudioStreamTracker.cpp72 auto candidate = it->second; local
73 if (candidate->getPortHandle() == portHandle) {
74 serviceStream = candidate;
/frameworks/base/tools/aapt2/util/
H A DImmutableMap.h54 auto cmp = [](const std::pair<TKey, TValue>& candidate,
56 return candidate.first < target;
/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/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiConnectivityManager.java252 * @return true - if a candidate is selected by WifiNetworkSelector
253 * false - if no candidate is selected by WifiNetworkSelector
268 WifiConfiguration candidate =
275 if (candidate != null) {
276 localLog(listenerName + ": WNS candidate-" + candidate.SSID);
277 connectToNetwork(candidate);
450 // WifiNetworkSelector selects a candidate from the PNO scan results.
697 * Attempt to connect to a network candidate.
700 * connect or roam to the network candidate recommende
702 connectToNetwork(WifiConfiguration candidate) argument
[all...]
H A DWifiNetworkSelector.java466 * Overrides the {@code candidate} chosen by the {@link #mEvaluators} with the user chosen
469 * @return the user chosen {@link WifiConfiguration} if one exists, {@code candidate} otherwise
472 @NonNull WifiConfiguration candidate) {
473 WifiConfiguration tempConfig = candidate;
474 WifiConfiguration originalCandidate = candidate;
475 ScanResult scanResultCandidate = candidate.getNetworkSelectionStatus().getCandidate();
486 candidate = tempConfig;
494 if (candidate != originalCandidate) {
495 localLog("After user selection adjustment, the final candidate is:"
496 + WifiNetworkSelector.toNetworkString(candidate)
471 overrideCandidateWithUserConnectChoice( @onNull WifiConfiguration candidate) argument
[all...]
/frameworks/support/jetifier/jetifier/processor/src/main/kotlin/com/android/tools/build/jetifier/processor/transform/proguard/
H A DProGuardTypesMapper.kt150 var candidate: String? = null
161 // We got a candidate
162 candidate = selector
172 if (candidate != null) {
174 newSet.add(candidate.replace('/', '.'))
/frameworks/support/slices/builders/src/main/java/androidx/slice/builders/
H A DTemplateSliceBuilder.java123 protected boolean checkCompatible(SliceSpec candidate) { argument
126 if (mSpecs.get(i).canRender(candidate)) {
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
H A DPasspointNetworkEvaluator.java46 * Contained information for a Passpoint network candidate.
104 // Done if no candidate is found.
179 for (PasspointNetworkCandidate candidate : networkList) {
180 ScanDetail scanDetail = candidate.mScanDetail;
181 PasspointMatch match = candidate.mMatchStatus;
190 bestCandidate = 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/preference/src/main/java/androidx/preference/
H A DPreferenceGroupAdapter.java382 final Preference candidate = mPreferenceList.get(i);
383 if (TextUtils.equals(key, candidate.getKey())) {
394 final Preference candidate = mPreferenceList.get(i);
395 if (candidate != null && candidate.equals(preference)) {
/frameworks/support/customview/src/main/java/androidx/customview/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/main/java/androidx/recyclerview/widget/
H A DGridLayoutManager.java1022 // The focusable candidate to be picked if no perfect focusable candidate is found.
1023 // The best focusable candidate is the one with the highest amount of span overlap with
1029 // The unfocusable candidate to become visible on the screen next, if no perfect or
1033 // or above RV's padded bounded area. The best unfocusable candidate is the one with the
1047 View candidate = getChildAt(i);
1048 if (candidate == prevFocusedChild) {
1052 if (candidate.hasFocusable() && spanGroupIndex != focusableSpanGroupIndex) {
1055 // until this point, in order to find the best unfocusable candidate to become
1063 final LayoutParams candidateLp = (LayoutParams) candidate
[all...]

Completed in 494 milliseconds

123