Home
last modified time | relevance | path

Searched refs:heightMode (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
DFixedAspectSurfaceView.java89 int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() local
102 if (widthMode == MeasureSpec.EXACTLY && heightMode == MeasureSpec.EXACTLY) { in onMeasure()
107 } else if (heightMode == MeasureSpec.EXACTLY) { in onMeasure()
110 } else if (widthMode == MeasureSpec.AT_MOST && heightMode == 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.java89 int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() local
102 if (widthMode == MeasureSpec.EXACTLY && heightMode == MeasureSpec.EXACTLY) { in onMeasure()
107 } else if (heightMode == MeasureSpec.EXACTLY) { in onMeasure()
110 } else if (widthMode == MeasureSpec.AT_MOST && heightMode == MeasureSpec.AT_MOST) { in onMeasure()
125 } else if (heightMode == MeasureSpec.AT_MOST) { in onMeasure()
/frameworks/base/core/java/com/android/internal/widget/
DPreferenceImageView.java59 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() local
60 if (heightMode == MeasureSpec.AT_MOST || heightMode == MeasureSpec.UNSPECIFIED) { in onMeasure()
64 && (maxHeight < heightSize || heightMode == MeasureSpec.UNSPECIFIED)) { in onMeasure()
DAlertDialogLayout.java111 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in tryOnMeasure() local
139 if (heightMode == MeasureSpec.UNSPECIFIED) { in tryOnMeasure()
143 Math.max(0, heightSize - usedHeight), heightMode); in tryOnMeasure()
188 middleHeight, heightMode); in tryOnMeasure()
DActionBarContextView.java309 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() local
310 if (heightMode == MeasureSpec.UNSPECIFIED) { in onMeasure()
DActionBarView.java908 int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() local
909 if (heightMode != MeasureSpec.AT_MOST) { in onMeasure()
1516 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() local
1531 switch (heightMode) { in onMeasure()
DViewPager.java1398 int heightMode = MeasureSpec.AT_MOST;
1405 heightMode = MeasureSpec.EXACTLY;
1417 heightMode = MeasureSpec.EXACTLY;
1423 final int heightSpec = MeasureSpec.makeMeasureSpec(heightSize, heightMode);
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityViewFlipper.java201 final int heightMode = MeasureSpec.getMode(heightSpec); in onMeasure() local
206 if (DEBUG && heightMode != MeasureSpec.AT_MOST) { in onMeasure()
234 int height = heightMode == MeasureSpec.EXACTLY ? heightSize : 0; in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DExpandableView.java73 int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() local
74 if (heightMode != MeasureSpec.UNSPECIFIED && givenSize != 0) { in onMeasure()
103 int ownHeight = heightMode == MeasureSpec.EXACTLY in onMeasure()
DNotificationContentView.java188 int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() local
189 boolean hasFixedHeight = heightMode == MeasureSpec.EXACTLY; in onMeasure()
190 boolean isHeightLimited = heightMode == MeasureSpec.AT_MOST; in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DTileLayout.java108 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() local
109 if (heightMode == MeasureSpec.UNSPECIFIED) { in onMeasure()
/frameworks/base/core/java/android/widget/
DLinearLayout.java784 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in measureVertical() local
820 if (heightMode == MeasureSpec.EXACTLY && useExcessSpace) { in measureVertical()
917 (heightMode == MeasureSpec.AT_MOST || heightMode == MeasureSpec.UNSPECIFIED)) { in measureVertical()
977 if (mUseLargestChild && heightMode != MeasureSpec.EXACTLY) { in measureVertical()
980 || heightMode == MeasureSpec.EXACTLY)) { in measureVertical()
1029 if (useLargestChild && heightMode != MeasureSpec.EXACTLY) { in measureVertical()
1114 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in measureHorizontal() local
1231 if (heightMode != MeasureSpec.EXACTLY && lp.height == LayoutParams.MATCH_PARENT) { in measureHorizontal()
1399 boolean matchHeightLocally = heightMode != MeasureSpec.EXACTLY && in measureHorizontal()
1470 if (!allFillParent && heightMode != MeasureSpec.EXACTLY) { in measureHorizontal()
DAnalogClock.java157 int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() local
167 if (heightMode != MeasureSpec.UNSPECIFIED && heightSize < mDialHeight) { in onMeasure()
DRelativeLayout.java418 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() local
427 if (heightMode != MeasureSpec.UNSPECIFIED) { in onMeasure()
435 if (heightMode == MeasureSpec.EXACTLY) { in onMeasure()
458 final boolean isWrapContentHeight = heightMode != MeasureSpec.EXACTLY; in onMeasure()
725 final int heightMode; in measureChildHorizontal() local
727 heightMode = MeasureSpec.EXACTLY; in measureChildHorizontal()
729 heightMode = MeasureSpec.AT_MOST; in measureChildHorizontal()
731 childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(maxHeight, heightMode); in measureChildHorizontal()
DActionMenuView.java175 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasureExactFormat() local
379 if (heightMode != MeasureSpec.EXACTLY) { in onMeasureExactFormat()
DSearchView.java839 int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() local
842 switch (heightMode) { in onMeasure()
850 heightMode = MeasureSpec.EXACTLY; in onMeasure()
853 MeasureSpec.makeMeasureSpec(height, heightMode)); in onMeasure()
DGridView.java1063 int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() local
1111 if (heightMode == MeasureSpec.UNSPECIFIED) { in onMeasure()
1116 if (heightMode == MeasureSpec.AT_MOST) { in onMeasure()
DScrollView.java458 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() local
459 if (heightMode == MeasureSpec.UNSPECIFIED) { in onMeasure()
DListView.java1282 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() local
1292 || heightMode == MeasureSpec.UNSPECIFIED)) { in onMeasure()
1316 if (heightMode == MeasureSpec.UNSPECIFIED) { in onMeasure()
1321 if (heightMode == MeasureSpec.AT_MOST) { in onMeasure()
DTextView.java9260 int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() local
9399 if (heightMode == MeasureSpec.EXACTLY) { in onMeasure()
9409 if (heightMode == MeasureSpec.AT_MOST) { in onMeasure()
/frameworks/base/core/java/android/app/
DMediaRouteButton.java283 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() local
305 switch (heightMode) { in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationChildrenContainer.java183 int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() local
184 boolean hasFixedHeight = heightMode == MeasureSpec.EXACTLY; in onMeasure()
185 boolean isHeightLimited = heightMode == MeasureSpec.AT_MOST; in onMeasure()
217 if (heightMode != MeasureSpec.UNSPECIFIED) { in onMeasure()
/frameworks/ex/widget/java/com/android/ex/widget/
DStaggeredGridView.java616 int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() local
625 if (heightMode != MeasureSpec.EXACTLY) { in onMeasure()
628 heightMode = MeasureSpec.EXACTLY; in onMeasure()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderSessionImpl.java604 int width, int widthMode, int height, int heightMode) { in measureView() argument
606 int h_spec = MeasureSpec.makeMeasureSpec(height, heightMode); in measureView()
/frameworks/base/core/java/com/android/internal/policy/
DDecorView.java668 final int heightMode = getMode(heightMeasureSpec);
699 if (heightMode == AT_MOST) {

12