Home
last modified time | relevance | path

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

123

/aosp14/frameworks/base/core/java/com/android/internal/colorextraction/types/
H A DTonal.java359 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()
377 } else if (h >= candidate.maxHue && h - candidate.maxHue < error) { in findTonalPalette()
380 } else if (candidate.maxHue > 1.0f && h >= fract(candidate.maxHue) in findTonalPalette()
[all …]
/aosp14/system/core/fastboot/
H A Dutil.cpp85 auto candidate = android::fs_mgr::GetPartitionName(partition); in should_flash_in_userspace() local
90 if (candidate + "_a" == partition_name || candidate + "_b" == partition_name) { in should_flash_in_userspace()
93 } else if (candidate == partition_name) { in should_flash_in_userspace()
/aosp14/frameworks/base/telephony/java/android/telephony/mbms/vendor/
H A DVendorUtils.java146 ComponentName candidate = new ComponentName(packageName, in getAppReceiverFromPackageName() local
149 queryIntent.setComponent(candidate); in getAppReceiverFromPackageName()
153 return candidate; in getAppReceiverFromPackageName()
/aosp14/frameworks/base/core/java/android/app/slice/
H A DSliceSpec.java95 public boolean canRender(@NonNull SliceSpec candidate) { in canRender() argument
96 if (!mType.equals(candidate.mType)) return false; in canRender()
97 return mRevision >= candidate.mRevision; in canRender()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
H A DTvPipKeepClearAlgorithm.kt257 val candidate = findRelaxedMovePosition( regex
265 if (candidate != null) {
266 candidates.add(candidate)
317 val candidate = pipAnchorBounds.offsetCopy(dx, dy) regex
318 val isOnScreen = candidate.top > movementBounds.top
319 val hangingMidAir = !candidate.intersectsY(edgeRect)
321 candidateBounds.add(candidate)
330 val candidate = pipAnchorBounds.offsetCopy(dx, dy) regex
334 candidateBounds.add(candidate)
576 val candidate = event.pos regex
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/util/dump/
H A DDumpableContainerImpl.java75 Dumpable candidate = mDumpables.get(name); in removeDumpable() local
76 if (candidate == null) { in removeDumpable()
84 if (candidate != dumpable) { in removeDumpable()
86 + ", but internal dumpable with that name is " + candidate); in removeDumpable()
/aosp14/frameworks/base/core/java/android/app/
H A 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()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DLetterboxUiController.java663 int overrideOrientationIfNeeded(@ScreenOrientation int candidate) { in overrideOrientationIfNeeded() argument
665 Slog.v(TAG, "Requested orientation " + screenOrientationToString(candidate) + " for " in overrideOrientationIfNeeded()
674 candidate = mActivityRecord.mWmService.mapOrientationRequest(candidate); in overrideOrientationIfNeeded()
676 if (shouldApplyUserMinAspectRatioOverride() && (!isFixedOrientation(candidate) in overrideOrientationIfNeeded()
677 || candidate == SCREEN_ORIENTATION_LOCKED)) { in overrideOrientationIfNeeded()
678 Slog.v(TAG, "Requested orientation " + screenOrientationToString(candidate) + " for " in overrideOrientationIfNeeded()
686 return candidate; in overrideOrientationIfNeeded()
694 return candidate; in overrideOrientationIfNeeded()
705 if (!mIsOverrideAnyOrientationEnabled && isFixedOrientation(candidate)) { in overrideOrientationIfNeeded()
706 return candidate; in overrideOrientationIfNeeded()
[all …]
H A DDisplayAreaGroup.java59 int getOrientation(int candidate) { in getOrientation() argument
60 int orientation = super.getOrientation(candidate); in getOrientation()
H A DDisplayArea.java149 int getOrientation(int candidate) { in getOrientation() argument
150 final int orientation = super.getOrientation(candidate); in getOrientation()
734 int getOrientation(int candidate) { in getOrientation() argument
741 return candidate; in getOrientation()
H A DDisplayPolicy.java2334 static WindowState chooseNavigationColorWindowLw(WindowState candidate, WindowState imeWindow,
2345 return candidate;
2348 if (candidate != null && candidate.isDimming()) {
2351 if (LayoutParams.mayUseInputMethod(candidate.mAttrs.flags)) {
2356 return candidate;
2588 static WindowState chooseNavigationBackgroundWindow(WindowState candidate,
2594 if (drawsBarBackground(candidate)) {
2595 return candidate;
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DTaskStackChangedListenerTest.java338 candidate -> candidate[0] == activity.getTaskId()); in testNotifyTaskRequestedOrientationChanged()
344 candidate -> candidate[0] == activity.getTaskId()); in testNotifyTaskRequestedOrientationChanged()
350 candidate -> candidate[0] == activity.getTaskId()); in testNotifyTaskRequestedOrientationChanged()
H A DDisplayPolicyTests.java131 final WindowState candidate = createOpaqueFullscreen(false); in testChooseNavigationColorWindowLw() local
144 assertEquals(candidate, DisplayPolicy.chooseNavigationColorWindowLw( in testChooseNavigationColorWindowLw()
145 candidate, null, NAV_BAR_BOTTOM)); in testChooseNavigationColorWindowLw()
154 assertEquals(candidate, DisplayPolicy.chooseNavigationColorWindowLw( in testChooseNavigationColorWindowLw()
155 candidate, invisibleIme, NAV_BAR_BOTTOM)); in testChooseNavigationColorWindowLw()
165 candidate, visibleIme, NAV_BAR_BOTTOM)); in testChooseNavigationColorWindowLw()
178 assertEquals(candidate, DisplayPolicy.chooseNavigationColorWindowLw( in testChooseNavigationColorWindowLw()
179 candidate, imeNonDrawNavBar, NAV_BAR_BOTTOM)); in testChooseNavigationColorWindowLw()
H A DDisplayAreaPolicyBuilderTest.java968 WindowContainer candidate = actual; in descendantOfOneOf()
969 while (candidate != null && candidate.getParent() != candidate) { in descendantOfOneOf()
970 if (candidate.getParent() == expected) { in descendantOfOneOf()
973 candidate = candidate.getParent(); in descendantOfOneOf()
/aosp14/frameworks/base/tools/aapt2/util/
H A DImmutableMap.h54 auto cmp = [](const std::pair<TKey, TValue>& candidate, in find()
56 return candidate.first < target; in find()
/aosp14/frameworks/base/core/java/android/widget/
H A 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 …]
/aosp14/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/surfaceeffects/ripple/
H A DRippleShader.kt450 var candidate = sizes[currentSizeIndex] regex
452 while (progress > candidate.t) {
454 candidate = sizes[currentSizeIndex]
/aosp14/frameworks/base/services/core/java/com/android/server/vcn/routeselection/
H A DUnderlyingNetworkController.java428 UnderlyingNetworkRecord candidate = sorted.isEmpty() ? null : sorted.first(); in reevaluateNetworks() local
429 if (Objects.equals(mCurrentRecord, candidate)) { in reevaluateNetworks()
442 + (candidate == null ? null : candidate.network) in reevaluateNetworks()
445 mCurrentRecord = candidate; in reevaluateNetworks()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
H A DActivityLaunchAnimator.kt630 var candidate: RemoteAnimationTarget? = null
636 if (candidate == null) {
637 candidate = it
641 return candidate
/aosp14/frameworks/base/services/core/java/com/android/server/inputmethod/
H A DInputMethodSubtypeSwitchingController.java290 final ImeSubtypeListItem candidate = mImeSubtypeList.get(candidateIndex); in getNextInputMethodLocked() local
293 if (onlyCurrentIme && !imi.equals(candidate.mImi)) { in getNextInputMethodLocked()
296 return candidate; in getNextInputMethodLocked()
/aosp14/frameworks/base/core/java/android/provider/
H A DFontsContract.java706 final Font candidate = family.getFont(i); in buildTypeface() local
707 final int score = normal.getMatchScore(candidate.getStyle()); in buildTypeface()
709 bestFont = candidate; in buildTypeface()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/icon/ui/viewbinder/
H A DNotificationIconAreaControllerViewBinderWrapperImpl.kt502 val candidate = toShow[j] regex
504 candidate.sourceIcon.sameAs(child.sourceIcon) &&
505 candidate.notification.groupKey == removedGroupKey
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DLegacyNotificationIconAreaControllerImpl.java415 StatusBarIconView candidate = toShow.get(j); in updateIconsForLayout() local
416 if (candidate.getSourceIcon().sameAs((removedIcon.getSourceIcon())) in updateIconsForLayout()
417 && candidate.getNotification().getGroupKey().equals(removedGroupKey)) { in updateIconsForLayout()
/aosp14/system/core/fs_mgr/liblp/include/liblp/
H A Dbuilder.h407 const LinearExtent& candidate) const;
408 bool IsAnyRegionAllocated(const LinearExtent& candidate) const;

123