Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/com/android/internal/widget/
DPreferenceImageView.java50 if (widthMode == MeasureSpec.AT_MOST || widthMode == MeasureSpec.UNSPECIFIED) { in onMeasure()
55 widthMeasureSpec = MeasureSpec.makeMeasureSpec(maxWidth, MeasureSpec.AT_MOST); in onMeasure()
60 if (heightMode == MeasureSpec.AT_MOST || heightMode == MeasureSpec.UNSPECIFIED) { in onMeasure()
65 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 …]
DActionBarContainer.java287 MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST && mHeight >= 0) { in onMeasure()
289 Math.min(mHeight, MeasureSpec.getSize(heightMeasureSpec)), MeasureSpec.AT_MOST); in onMeasure()
307 final int maxHeight = mode == MeasureSpec.AT_MOST ? in onMeasure()
DWeightedLinearLayout.java73 if (widthMode == AT_MOST) { in onMeasure()
DActionBarContextView.java323 final int childSpecHeight = MeasureSpec.makeMeasureSpec(height, MeasureSpec.AT_MOST); in onMeasure()
355 MeasureSpec.EXACTLY : MeasureSpec.AT_MOST; in onMeasure()
359 MeasureSpec.EXACTLY : MeasureSpec.AT_MOST; in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSHeaderInfoLayout.kt77 MeasureSpec.getSize(widthMeasureSpec), MeasureSpec.AT_MOST), in onMeasure()
93 MeasureSpec.AT_MOST), in onMeasure()
99 MeasureSpec.AT_MOST), in onMeasure()
104 MeasureSpec.makeMeasureSpec(availableSpace / 2, MeasureSpec.AT_MOST), in onMeasure()
108 MeasureSpec.makeMeasureSpec(availableSpace / 2, MeasureSpec.AT_MOST), in onMeasure()
DSignalTileView.java86 int ws = MeasureSpec.makeMeasureSpec(mIconFrame.getMeasuredHeight(), MeasureSpec.AT_MOST); in onMeasure()
100 return MeasureSpec.AT_MOST; in getIconMeasureMode()
/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()
/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/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/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DFixedSizeFrameLayout.java82 super.onMeasure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.AT_MOST), in measureContents()
83 MeasureSpec.makeMeasureSpec(height, MeasureSpec.AT_MOST)); in measureContents()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSmartReplyViewTest.java87 private static final int HEIGHT_SPEC = MeasureSpec.makeMeasureSpec(400, MeasureSpec.AT_MOST);
398 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testMeasure_squeezeLongest()
420 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testLayout_squeezeLongest()
444 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testMeasure_dropLongest()
809 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testMeasure_squeezeLongestSmartAction()
831 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testLayout_squeezeLongestSmartAction()
854 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testMeasure_dropLongestSmartAction()
913 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testMeasure_choicesAndActionsSqueezeLongestAction()
935 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testMeasure_choicesAndActionsPrioritizeActionsOnlyActions()
959 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testMeasure_choicesAndActionsPrioritizeActions()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/text/
DTextViewSetTextMeasurePerfTest.java18 import static android.view.View.MeasureSpec.AT_MOST;
109 textView.measure(AT_MOST | mLineWidth, UNSPECIFIED); in timeCreate()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityViewFlipper.java202 if (DEBUG && widthMode != MeasureSpec.AT_MOST) { in onMeasure()
206 if (DEBUG && heightMode != MeasureSpec.AT_MOST) { in onMeasure()
255 mode = MeasureSpec.AT_MOST; in makeChildMeasureSpec()
/frameworks/base/core/tests/coretests/src/android/util/
DInternalSelectionView.java116 } else if (specMode == MeasureSpec.AT_MOST) { in measureWidth()
133 } else if (specMode == MeasureSpec.AT_MOST) { in measureHeight()
/frameworks/base/core/java/android/widget/
DSpace.java84 case MeasureSpec.AT_MOST: in getDefaultSize2()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DImageFloatingTextViewTest.java119 int heightMeasureSpec = MeasureSpec.makeMeasureSpec(500, MeasureSpec.AT_MOST); in parametrizedTest()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DIntrinsicSizeFrameLayout.java84 } else if (mode == MeasureSpec.AT_MOST) { in getIntrinsicMeasureSpec()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DResizingSpace.java87 case MeasureSpec.AT_MOST: in getDefaultSize2()

123