Home
last modified time | relevance | path

Searched refs:AT_MOST (Results 1 – 25 of 93) sorted by relevance

1234

/frameworks/base/core/java/com/android/internal/widget/
DPreferenceImageView.java51 if (widthMode == MeasureSpec.AT_MOST || widthMode == MeasureSpec.UNSPECIFIED) { in onMeasure()
56 widthMeasureSpec = MeasureSpec.makeMeasureSpec(maxWidth, MeasureSpec.AT_MOST); in onMeasure()
61 if (heightMode == MeasureSpec.AT_MOST || heightMode == MeasureSpec.UNSPECIFIED) { in onMeasure()
66 heightMeasureSpec = MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST); in onMeasure()
DActionBarView.java909 if (heightMode != MeasureSpec.AT_MOST) { in onMeasure()
923 final int childSpecHeight = MeasureSpec.makeMeasureSpec(height, MeasureSpec.AT_MOST); in onMeasure()
938 homeWidthSpec = MeasureSpec.makeMeasureSpec(availableWidth, MeasureSpec.AT_MOST); in onMeasure()
983 MeasureSpec.makeMeasureSpec(availableWidth, MeasureSpec.AT_MOST), in onMeasure()
996 MeasureSpec.makeMeasureSpec(availableWidth, MeasureSpec.AT_MOST), in onMeasure()
1030 customNavHeightMode = MeasureSpec.AT_MOST; in onMeasure()
1033 MeasureSpec.EXACTLY : MeasureSpec.AT_MOST; in onMeasure()
1039 MeasureSpec.EXACTLY : MeasureSpec.AT_MOST; in onMeasure()
1089 MeasureSpec.makeMeasureSpec(getMeasuredHeight(), MeasureSpec.AT_MOST)); in onMeasure()
1521 case MeasureSpec.AT_MOST: in onMeasure()
[all …]
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
DFixedAspectSurfaceView.java110 } else if (widthMode == MeasureSpec.AT_MOST && heightMode == MeasureSpec.AT_MOST) { in onMeasure()
122 } else if (widthMode == MeasureSpec.AT_MOST) { in onMeasure()
125 } else if (heightMode == MeasureSpec.AT_MOST) { in onMeasure()
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DFixedAspectSurfaceView.java110 } else if (widthMode == MeasureSpec.AT_MOST && heightMode == MeasureSpec.AT_MOST) { in onMeasure()
122 } else if (widthMode == MeasureSpec.AT_MOST) { in onMeasure()
125 } else if (heightMode == MeasureSpec.AT_MOST) { in onMeasure()
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
DFlowLayout.java48 if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST) { in onMeasure()
49 childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(height, MeasureSpec.AT_MOST); in onMeasure()
57 child.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.AT_MOST), in onMeasure()
74 } else if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST) { in onMeasure()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewPerformanceTest.java56 mLabelView.measure(View.MeasureSpec.AT_MOST | 320, View.MeasureSpec.AT_MOST | 240); in setUp()
67 mTextView.measure(View.MeasureSpec.AT_MOST | 320, View.MeasureSpec.AT_MOST | 240); in setUp()
DLabelView.java142 if (specMode == MeasureSpec.AT_MOST) { in measureWidth()
169 if (specMode == MeasureSpec.AT_MOST) { in measureHeight()
DInternalSelectionView.java117 } else if (specMode == MeasureSpec.AT_MOST) { in measureWidth()
134 } else if (specMode == MeasureSpec.AT_MOST) { in measureHeight()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyboardShortcutKeysLayout.java54 if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST) { in onMeasure()
55 childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(height, MeasureSpec.AT_MOST); in onMeasure()
64 child.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.AT_MOST), in onMeasure()
81 } else if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST) { in onMeasure()
/frameworks/base/core/java/com/android/internal/app/
DResolverViewPager.java56 if (MeasureSpec.getMode(heightMeasureSpec) != MeasureSpec.AT_MOST) { in onMeasure()
65 MeasureSpec.makeMeasureSpec(height, MeasureSpec.AT_MOST)); in onMeasure()
/frameworks/base/apct-tests/perftests/core/src/android/widget/
DTextViewOnMeasurePerfTest.java19 import static android.view.View.MeasureSpec.AT_MOST;
115 textView.measure(AT_MOST | VIEW_WIDTH, AT_MOST | VIEW_HEIGHT); in testMeasure_AtMost()
DTextViewPrecomputedTextPerfTest.java247 int width = MeasureSpec.makeMeasureSpec(TEXT_WIDTH, MeasureSpec.AT_MOST); in testOnMeasure_RandomText()
267 int width = MeasureSpec.makeMeasureSpec(TEXT_WIDTH, MeasureSpec.AT_MOST); in testOnMeasure_RandomText_Selectable()
288 int width = MeasureSpec.makeMeasureSpec(TEXT_WIDTH, MeasureSpec.AT_MOST); in testOnMeasure_PrecomputedText()
311 int width = MeasureSpec.makeMeasureSpec(TEXT_WIDTH, MeasureSpec.AT_MOST); in testOnMeasure_PrecomputedText_Selectable()
335 int width = MeasureSpec.makeMeasureSpec(TEXT_WIDTH, MeasureSpec.AT_MOST); in testOnDraw_RandomText()
361 int width = MeasureSpec.makeMeasureSpec(TEXT_WIDTH, MeasureSpec.AT_MOST); in testOnDraw_RandomText_Selectable()
388 int width = MeasureSpec.makeMeasureSpec(TEXT_WIDTH, MeasureSpec.AT_MOST); in testOnDraw_PrecomputedText()
417 int width = MeasureSpec.makeMeasureSpec(MeasureSpec.AT_MOST, TEXT_WIDTH); in testOnDraw_PrecomputedText_Selectable()
DLayoutPerfTest.java21 import static android.view.View.MeasureSpec.AT_MOST;
63 private int[] mMeasureSpecs = {EXACTLY, AT_MOST, UNSPECIFIED};
/frameworks/base/apct-tests/perftests/core/src/android/text/
DTextViewSetTextMeasurePerfTest.java18 import static android.view.View.MeasureSpec.AT_MOST;
112 View.MeasureSpec.makeMeasureSpec(mLineWidth, AT_MOST), in timeCreate()
139 View.MeasureSpec.makeMeasureSpec(mLineWidth, AT_MOST), in timeDraw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsDialogMeasureAdapter.java132 MeasureSpec.makeMeasureSpec(sensorDiameter, MeasureSpec.AT_MOST), in onMeasureInternalPortrait()
133 MeasureSpec.makeMeasureSpec(sensorDiameter, MeasureSpec.AT_MOST)); in onMeasureInternalPortrait()
160 MeasureSpec.makeMeasureSpec(height, MeasureSpec.AT_MOST)); in onMeasureInternalPortrait()
234 MeasureSpec.makeMeasureSpec(sensorDiameter, MeasureSpec.AT_MOST), in onMeasureInternalLandscape()
235 MeasureSpec.makeMeasureSpec(sensorDiameter, MeasureSpec.AT_MOST)); in onMeasureInternalLandscape()
259 MeasureSpec.makeMeasureSpec(height, MeasureSpec.AT_MOST)); in onMeasureInternalLandscape()
/frameworks/base/core/java/android/view/
DNotificationTopLineView.java113 final boolean wrapHeight = MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST; in onMeasure()
114 int wrapContentWidthSpec = MeasureSpec.makeMeasureSpec(givenWidth, MeasureSpec.AT_MOST); in onMeasure()
115 int heightSpec = MeasureSpec.makeMeasureSpec(givenHeight, MeasureSpec.AT_MOST); in onMeasure()
439 int childWidthSpec = MeasureSpec.makeMeasureSpec(newSize, MeasureSpec.AT_MOST); in adjust()
449 int dividerWidthSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.AT_MOST); in adjust()
458 int regrowWidthSpec = MeasureSpec.makeMeasureSpec(maxSize, MeasureSpec.AT_MOST); in adjust()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/
DBiometricPromptLayout.java126 MeasureSpec.makeMeasureSpec(width, MeasureSpec.AT_MOST), in onMeasureInternal()
127 MeasureSpec.makeMeasureSpec(height, MeasureSpec.AT_MOST)); in onMeasureInternal()
131 MeasureSpec.makeMeasureSpec(height, MeasureSpec.AT_MOST)); in onMeasureInternal()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSmartReplyViewTest.java97 private static final int HEIGHT_SPEC = MeasureSpec.makeMeasureSpec(400, MeasureSpec.AT_MOST);
453 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testMeasure_squeezeLongest()
475 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testLayout_squeezeLongest()
499 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testMeasure_dropLongest()
889 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testMeasure_squeezeLongestSmartAction()
911 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testLayout_squeezeLongestSmartAction()
934 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testMeasure_dropLongestSmartAction()
1001 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testMeasure_choicesAndActionsSqueezeLongestAction()
1023 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testMeasure_choicesAndActionsPrioritizeActionsOnlyActions()
1047 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testMeasure_choicesAndActionsPrioritizeActions()
[all …]
DVariableDateViewControllerTest.kt196 onMeasureListenerCaptor.value.onMeasureAction(10000, View.MeasureSpec.AT_MOST) in testQsExpansionTrue_ignoreAtMostMeasureRequests()
211 onMeasureListenerCaptor.value.onMeasureAction(10000, View.MeasureSpec.AT_MOST) in testQsExpansionFalse_acceptAtMostMeasureRequests()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityViewFlipper.java115 if (DEBUG && widthMode != MeasureSpec.AT_MOST) { in onMeasure()
119 if (DEBUG && heightMode != MeasureSpec.AT_MOST) { in onMeasure()
170 mode = MeasureSpec.AT_MOST; in makeChildMeasureSpec()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DNeverExactlyLinearLayout.kt56 newSpec = MeasureSpec.makeMeasureSpec(size, MeasureSpec.AT_MOST) in getNonExactlyMeasureSpec()
/frameworks/base/core/java/android/widget/
DSpace.java84 case MeasureSpec.AT_MOST: in getDefaultSize2()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/
DSystemEventChipAnimationController.kt25 import android.view.View.MeasureSpec.AT_MOST
97 (animationWindowView.parent as View).width, AT_MOST), in prepareChipAnimation()
99 (animationWindowView.parent as View).height, AT_MOST)) in prepareChipAnimation()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DImageFloatingTextViewTest.java119 int heightMeasureSpec = MeasureSpec.makeMeasureSpec(500, MeasureSpec.AT_MOST); in parametrizedTest()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DMenuEduTooltipView.java20 import static android.view.View.MeasureSpec.AT_MOST;
161 getAvailableTextViewWidth(isTooltipOnRightOfAnchor), AT_MOST); in updateLocationWith()

1234