Home
last modified time | relevance | path

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

123

/frameworks/av/drm/libmediadrm/
DPluginMetricsReporting.cpp55 char candidate = input[i]; in sanitize() local
56 if ((candidate >= 'a' && candidate <= 'z') || in sanitize()
57 (candidate >= 'A' && candidate <= 'Z') || in sanitize()
58 (candidate >= '0' && candidate <= '9')) { in sanitize()
59 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.java146 ComponentName candidate = new ComponentName(packageName, in getAppReceiverFromPackageName() local
149 queryIntent.setComponent(candidate); in getAppReceiverFromPackageName()
153 return candidate; in getAppReceiverFromPackageName()
/frameworks/base/core/java/android/app/slice/
DSliceSpec.java100 public boolean canRender(@NonNull SliceSpec candidate) { in canRender() argument
101 if (!mType.equals(candidate.mType)) return false; in canRender()
102 return mRevision >= candidate.mRevision; in canRender()
/frameworks/compile/mclinker/lib/LD/
DIdenticalCodeFolding.cpp165 CandidateMap::iterator candidate, candidateEnd = candidate_map.end(); in findCandidates() local
166 for (candidate = candidate_map.begin(); candidate != candidateEnd; in findCandidates()
167 ++candidate) { in findCandidates()
169 (funcptr_access_set.count(candidate->first) == 0)) { in findCandidates()
171 m_KeptSections[candidate->first] = ObjectAndId(*obj, index); in findCandidates()
173 FoldingCandidate(candidate->first, candidate->second, *obj)); in findCandidates()
/frameworks/av/services/oboeservice/
DAAudioStreamTracker.cpp60 auto candidate = it->second; in findStreamByPortHandle() local
61 if (candidate->getPortHandle() == portHandle) { in findStreamByPortHandle()
62 serviceStream = candidate; in findStreamByPortHandle()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
DTvPipKeepClearAlgorithm.kt257 val candidate = findRelaxedMovePosition( in <lambda>() constant
265 if (candidate != null) { in <lambda>()
266 candidates.add(candidate) in <lambda>()
317 val candidate = pipAnchorBounds.offsetCopy(dx, dy) in <lambda>() constant
318 val isOnScreen = candidate.top > movementBounds.top in <lambda>()
319 val hangingMidAir = !candidate.intersectsY(edgeRect) in <lambda>()
321 candidateBounds.add(candidate) in <lambda>()
330 val candidate = pipAnchorBounds.offsetCopy(dx, dy) in <lambda>() constant
331 val isOnScreen = candidate.bottom < movementBounds.bottom in <lambda>()
332 val hangingMidAir = !candidate.intersectsY(edgeRect) in <lambda>()
[all …]
/frameworks/base/core/java/com/android/internal/util/dump/
DDumpableContainerImpl.java76 Dumpable candidate = mDumpables.get(name); in removeDumpable() local
77 if (candidate == null) { in removeDumpable()
85 if (candidate != dumpable) { in removeDumpable()
87 + ", but internal dumpable with that name is " + candidate); in removeDumpable()
/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/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/base/services/core/java/com/android/server/wm/
DDisplayAreaGroup.java59 int getOrientation(int candidate) { in getOrientation() argument
60 int orientation = super.getOrientation(candidate); in getOrientation()
DLetterboxUiController.java560 int overrideOrientationIfNeeded(@ScreenOrientation int candidate) { in overrideOrientationIfNeeded() argument
571 Slog.v(TAG, "Requested orientation " + screenOrientationToString(candidate) + " for " in overrideOrientationIfNeeded()
580 candidate = mActivityRecord.mWmService.mapOrientationRequest(candidate); in overrideOrientationIfNeeded()
582 if (shouldApplyUserMinAspectRatioOverride() && (!isFixedOrientation(candidate) in overrideOrientationIfNeeded()
583 || candidate == SCREEN_ORIENTATION_LOCKED)) { in overrideOrientationIfNeeded()
584 Slog.v(TAG, "Requested orientation " + screenOrientationToString(candidate) + " for " in overrideOrientationIfNeeded()
592 return candidate; in overrideOrientationIfNeeded()
599 return candidate; in overrideOrientationIfNeeded()
612 Slog.v(TAG, "Requested orientation " + screenOrientationToString(candidate) + " for " in overrideOrientationIfNeeded()
619 && (isFixedOrientationLandscape(candidate) || mIsOverrideAnyOrientationEnabled)) { in overrideOrientationIfNeeded()
[all …]
/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/libs/binary_translation/tools/nogrod/
Dbyte_input_stream.cc107 const char* candidate = reinterpret_cast<const char*>(buffer_ + offset_); in ReadString() local
112 return std::string{candidate}; in ReadString()
Ddwarf_abbrev.cc46 auto candidate = classes_.find(version); in get() local
47 if (candidate != classes_.end()) { in get()
48 return &candidate->second; in get()
53 candidate = it; in get()
59 return candidate != classes_.end() ? &candidate->second : nullptr; in get()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskStackChangedListenerTest.java370 candidate -> candidate[0] == activity.getTaskId()); in testNotifyTaskRequestedOrientationChanged()
377 candidate -> candidate[0] == activity.getTaskId()); in testNotifyTaskRequestedOrientationChanged()
383 candidate -> candidate[0] == activity.getTaskId()); in testNotifyTaskRequestedOrientationChanged()
DDisplayPolicyTests.java134 final WindowState candidate = createOpaqueFullscreen(false); in testChooseNavigationColorWindowLw() local
147 assertEquals(candidate, DisplayPolicy.chooseNavigationColorWindowLw( in testChooseNavigationColorWindowLw()
148 candidate, null, NAV_BAR_BOTTOM)); in testChooseNavigationColorWindowLw()
157 assertEquals(candidate, DisplayPolicy.chooseNavigationColorWindowLw( in testChooseNavigationColorWindowLw()
158 candidate, invisibleIme, NAV_BAR_BOTTOM)); in testChooseNavigationColorWindowLw()
168 candidate, visibleIme, NAV_BAR_BOTTOM)); in testChooseNavigationColorWindowLw()
181 assertEquals(candidate, DisplayPolicy.chooseNavigationColorWindowLw( in testChooseNavigationColorWindowLw()
182 candidate, imeNonDrawNavBar, NAV_BAR_BOTTOM)); in testChooseNavigationColorWindowLw()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
DActivityTransitionAnimator.kt926 var candidate: RemoteAnimationTarget? = null in findTargetWindowIfPossible() variable
948 candidate == null || in findTargetWindowIfPossible()
949 !it.hasAnimatingParent && candidate.hasAnimatingParent in findTargetWindowIfPossible()
951 candidate = it in findTargetWindowIfPossible()
956 it.screenSpaceBounds.hasGreaterAreaThan(candidate.screenSpaceBounds) in findTargetWindowIfPossible()
958 candidate = it in findTargetWindowIfPossible()
964 if (candidate == null) { in findTargetWindowIfPossible()
965 candidate = it in findTargetWindowIfPossible()
971 return candidate in findTargetWindowIfPossible()
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/ims/
DSipTransportImplBaseTest.java91 mDelegates.removeIf(candidate -> { in destroySipDelegate()
92 if (delegate.equals(candidate.sipDelegate)) { in destroySipDelegate()
93 candidate.delegateStateCallback.onDestroyed(reason); in destroySipDelegate()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/surfaceeffects/ripple/
DRippleShader.kt450 var candidate = sizes[currentSizeIndex] in updateTargetIndex() variable
452 while (progress > candidate.t) { in updateTargetIndex()
454 candidate = sizes[currentSizeIndex] in updateTargetIndex()
/frameworks/base/core/java/android/widget/
DSelectionActionModeHelper.java417 final RectF candidate, final Function<T, RectF> extractor, in mergeRectangleIntoList() argument
419 if (candidate.isEmpty()) { in mergeRectangleIntoList()
426 if (existingRectangle.contains(candidate)) { in mergeRectangleIntoList()
429 if (candidate.contains(existingRectangle)) { in mergeRectangleIntoList()
434 final boolean rectanglesContinueEachOther = candidate.left == existingRectangle.right in mergeRectangleIntoList()
435 || candidate.right == existingRectangle.left; in mergeRectangleIntoList()
436 final boolean canMerge = candidate.top == existingRectangle.top in mergeRectangleIntoList()
437 && candidate.bottom == existingRectangle.bottom in mergeRectangleIntoList()
438 && (RectF.intersects(candidate, existingRectangle) in mergeRectangleIntoList()
442 candidate.union(existingRectangle); in mergeRectangleIntoList()
[all …]
/frameworks/base/services/core/java/com/android/server/vcn/routeselection/
DUnderlyingNetworkController.java501 UnderlyingNetworkRecord candidate = in reevaluateNetworks() local
503 if (Objects.equals(mCurrentRecord, candidate)) { in reevaluateNetworks()
516 if (!UnderlyingNetworkRecord.isSameNetwork(mCurrentRecord, candidate)) { in reevaluateNetworks()
519 + (candidate == null ? null : candidate.network) in reevaluateNetworks()
524 mCurrentRecord = candidate; in reevaluateNetworks()
/frameworks/base/core/tests/coretests/src/android/view/
DFocusFinderTest.java251 Rect candidate = new Rect(src); in testSomeCandidateBetterThanNonCandidate() local
252 candidate.offset(-(4 * src.width()), 0); in testSomeCandidateBetterThanNonCandidate()
253 assertDirectionIsCandidate(View.FOCUS_LEFT, src, candidate); in testSomeCandidateBetterThanNonCandidate()
255 assertBetterCandidate(View.FOCUS_LEFT, src, candidate, nonCandidate); in testSomeCandidateBetterThanNonCandidate()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioProfileVectorHelper.cpp231 uint32_t candidate = *(--desiredRate); in checkCompatibleSamplingRate() local
232 if (candidate * AUDIO_RESAMPLER_UP_RATIO_MAX >= samplingRate) { in checkCompatibleSamplingRate()
233 updatedSamplingRate = candidate; in checkCompatibleSamplingRate()
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
Dfind_region.rscript147 float3 candidate = rsGetElementAt_float3(border_values, i).xyz;
148 sum += distance(orig, candidate);

123