/frameworks/av/drm/libmediadrm/ |
H A D | PluginMetricsReporting.cpp | 105 char candidate = input[i]; local 106 if ((candidate >= 'a' && candidate <= 'z') || 107 (candidate >= 'A' && candidate <= 'Z') || 108 (candidate >= '0' && candidate <= '9')) { 109 output.append(&candidate, 1);
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
H A D | SavedNetworkEvaluatorTest.java | 168 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 D | ScoredNetworkEvaluatorTest.java | 242 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 D | WifiNetworkSelectorTest.java | 100 * Sets whether the evaluator should return a candidate for connection or null. 107 * This NetworkEvaluator can be configured to return a candidate or null. If returning a 108 * candidate, the first entry in the provided scanDetails will be selected. This requires 213 WifiConfiguration candidate = mWifiNetworkSelector.selectNetwork(scanDetails, 215 assertEquals("Expect null configuration", null, candidate); 243 WifiConfiguration candidate = mWifiNetworkSelector.selectNetwork(scanDetails, 245 assertEquals("Expect null configuration", null, candidate); 274 WifiConfiguration candidate = mWifiNetworkSelector.selectNetwork(scanDetails, 281 candidate = mWifiNetworkSelector.selectNetwork(scanDetails, 284 assertEquals("Expect null configuration", null, candidate); [all...] |
H A D | WifiConnectivityManagerTest.java | 257 WifiConfiguration candidate = generateWifiConfig( 259 candidate.BSSID = WifiStateMachine.SUPPLICANT_BSSID_ANY; 263 candidate.getNetworkSelectionStatus().setCandidate(candidateScanResult); 266 anyBoolean(), anyBoolean())).thenReturn(candidate); 307 * expected candidate network ID and BSSID. 327 * expected candidate network ID and BSSID. 347 * expected candidate network ID and BSSID. 367 * expected candidate network ID and BSSID. 413 * with the expected candidate network ID and BSSID for only the expected number of times within 452 * with the expected candidate networ [all...] |
/frameworks/base/telephony/java/android/telephony/mbms/vendor/ |
H A D | VendorUtils.java | 146 ComponentName candidate = new ComponentName(packageName, 149 queryIntent.setComponent(candidate); 153 return candidate;
|
/frameworks/base/core/java/com/android/internal/colorextraction/types/ |
H A D | Tonal.java | 372 final TonalPalette candidate = mTonalPalettes.get(i); 374 if (h >= candidate.minHue && h <= candidate.maxHue) { 375 best = candidate; 379 if (candidate.maxHue > 1.0f && h >= 0.0f && h <= fract(candidate.maxHue)) { 380 best = candidate; 384 if (candidate.minHue < 0.0f && h >= fract(candidate.minHue) && h <= 1.0f) { 385 best = candidate; [all...] |
/frameworks/base/tools/aapt2/util/ |
H A D | ImmutableMap.h | 54 auto cmp = [](const std::pair<TKey, TValue>& candidate, 56 return candidate.first < target;
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | AudioProfile.cpp | 80 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 D | ApplicationErrorReport.java | 172 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 D | IdenticalCodeFolding.cpp | 166 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 D | WifiConnectivityManager.java | 246 * @return true - if a candidate is selected by WifiNetworkSelector 247 * false - if no candidate is selected by WifiNetworkSelector 262 WifiConfiguration candidate = 269 if (candidate != null) { 270 localLog(listenerName + ": WNS candidate-" + candidate.SSID); 271 connectToNetwork(candidate); 423 // WifiNetworkSelector selects a candidate from the PNO scan results. 666 * Attempt to connect to a network candidate. 669 * connect or roam to the network candidate recommende 671 connectToNetwork(WifiConfiguration candidate) argument [all...] |
H A D | WifiNetworkSelector.java | 436 * Overrides the {@code candidate} chosen by the {@link #mEvaluators} with the user chosen 439 * @return the user chosen {@link WifiConfiguration} if one exists, {@code candidate} otherwise 442 @NonNull WifiConfiguration candidate) { 443 WifiConfiguration tempConfig = candidate; 444 WifiConfiguration originalCandidate = candidate; 445 ScanResult scanResultCandidate = candidate.getNetworkSelectionStatus().getCandidate(); 456 candidate = tempConfig; 464 if (candidate != originalCandidate) { 465 localLog("After user selection adjustment, the final candidate is:" 466 + WifiNetworkSelector.toNetworkString(candidate) 441 overrideCandidateWithUserConnectChoice( @onNull WifiConfiguration candidate) argument [all...] |
H A D | SavedNetworkEvaluator.java | 118 // Clear the cached candidate, score and seen. 240 WifiConfiguration candidate = null; 281 // configuration. So only the matching ScanResult can be a candidate. 295 // Set candidate ScanResult for all saved networks to ensure that users can 334 candidate = mWifiConfigManager.getConfiguredNetwork(candidateIdOfScanResult); 345 return candidate;
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
H A D | PasspointNetworkEvaluator.java | 46 * Contained information for a Passpoint network candidate. 104 // Done if no candidate is found. 177 for (PasspointNetworkCandidate candidate : networkList) { 178 ScanDetail scanDetail = candidate.mScanDetail; 179 PasspointMatch match = candidate.mMatchStatus; 188 bestCandidate = candidate;
|
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | find_region.rs | 147 float3 candidate = rsGetElementAt_float3(border_values, i).xyz; 148 sum += distance(orig, candidate);
|
H A D | healing.rs | 149 float3 candidate = rsGetElementAt_float3(border, i).xyz; 150 sum += distance(orig, candidate);
|
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
H A D | PreferenceGroupAdapter.java | 369 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 D | FocusStrategy.java | 143 // 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 D | GridLayoutManager.java | 1021 // 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 D | AppWindowToken.java | 487 WindowState candidate = null; 500 candidate = win; 506 return candidate; 1011 final WindowState candidate = mChildren.get(i); 1012 gotReplacementWindow |= candidate.setReplacementWindowIfNeeded(w); 1030 final WindowState candidate = mChildren.get(i); 1031 if (candidate.waitingForReplacement()) { 1308 int getOrientation(int candidate) { argument 1309 if (candidate == SCREEN_ORIENTATION_BEHIND) { 1311 // candidate wan [all...] |
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
H A D | MtpManager.java | 78 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 D | NotificationIconAreaController.java | 201 StatusBarIconView candidate = toShow.get(j); 202 if (candidate.getSourceIcon().sameAs((removedIcon.getSourceIcon())) 203 && candidate.getNotification().getGroupKey().equals(removedGroupKey)) {
|
/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | FocusFinderTest.java | 238 * 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 D | find_region.rs | 99 float3 candidate = rsGetElementAt_float3(mBorderValues, i).xyz; 100 sum += distance(orig, candidate);
|