/developers/build/prebuilts/androidtv/visual-game-controller/src/com/example/android/visualgamecontroller/ |
ControllerView.java | 308 int widthSpecMode = MeasureSpec.getMode(widthMeasureSpec); 309 int widthSpecSize = MeasureSpec.getSize(widthMeasureSpec); 310 int heightSpecMode = MeasureSpec.getMode(heightMeasureSpec); 311 int heightSpecSize = MeasureSpec.getSize(heightMeasureSpec); 314 if (widthSpecMode == MeasureSpec.EXACTLY) { 316 } else if (widthSpecMode == MeasureSpec.AT_MOST) { 322 if (heightSpecMode == MeasureSpec.EXACTLY) { 324 } else if (heightSpecMode == MeasureSpec.AT_MOST) {
|
/frameworks/base/apct-tests/perftests/core/src/android/text/ |
TextViewSetTextMeasurePerfTest.java | 18 import static android.view.View.MeasureSpec.AT_MOST; 19 import static android.view.View.MeasureSpec.UNSPECIFIED;
|
/frameworks/base/core/java/android/view/ |
NotificationHeaderView.java | 126 final int givenWidth = MeasureSpec.getSize(widthMeasureSpec); 127 final int givenHeight = MeasureSpec.getSize(heightMeasureSpec); 128 int wrapContentWidthSpec = MeasureSpec.makeMeasureSpec(givenWidth, 129 MeasureSpec.AT_MOST); 130 int wrapContentHeightSpec = MeasureSpec.makeMeasureSpec(givenHeight, 131 MeasureSpec.AT_MOST); 170 int childWidthSpec = MeasureSpec.makeMeasureSpec(newSize, MeasureSpec.AT_MOST);
|
/frameworks/base/core/java/com/android/internal/widget/ |
NumericTextView.java | 220 measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED);
|
MessagingLinearLayout.java | 72 int targetHeight = MeasureSpec.getSize(heightMeasureSpec); 73 switch (MeasureSpec.getMode(heightMeasureSpec)) { 74 case MeasureSpec.UNSPECIFIED:
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
NotificationContentViewTest.java | 68 mView.measure(View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED);
|
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/view/ |
ViewTest.kt | 188 View.MeasureSpec.makeMeasureSpec(size, View.MeasureSpec.EXACTLY), 189 View.MeasureSpec.makeMeasureSpec(size, View.MeasureSpec.EXACTLY))
|
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
MultiRecyclerViewPrefetchTest.java | 146 rv.measure(View.MeasureSpec.AT_MOST | 200, View.MeasureSpec.AT_MOST | 200);
|
TestResizingRelayoutWithAutoMeasure.java | 19 import static android.view.View.MeasureSpec.AT_MOST; 20 import static android.view.View.MeasureSpec.EXACTLY; 21 import static android.view.View.MeasureSpec.makeMeasureSpec;
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
MainActivityLayout.java | 152 MeasureSpec.getSize(widthMeasureSpec), MeasureSpec.getSize(heightMeasureSpec),
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
PinnedHeaderListView.java | 367 widthSpec = View.MeasureSpec 368 .makeMeasureSpec(layoutParams.width, View.MeasureSpec.EXACTLY); 370 widthSpec = View.MeasureSpec 371 .makeMeasureSpec(mHeaderWidth, View.MeasureSpec.EXACTLY); 375 heightSpec = View.MeasureSpec 376 .makeMeasureSpec(layoutParams.height, View.MeasureSpec.EXACTLY); 378 heightSpec = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
AbsSpinnerTest.java | 196 absSpinner.measure(View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED); 258 mAbsSpinner.measure(View.MeasureSpec.EXACTLY, View.MeasureSpec.EXACTLY);
|
/frameworks/support/compat/src/androidTest/java/androidx/core/widget/ |
NestedScrollViewTest.java | 394 View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY); 396 View.MeasureSpec.makeMeasureSpec(height, View.MeasureSpec.EXACTLY);
|
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/ |
GridWidgetPrefetchTest.java | 36 View.MeasureSpec.makeMeasureSpec(width, View.MeasureSpec.EXACTLY), 37 View.MeasureSpec.makeMeasureSpec(height, View.MeasureSpec.EXACTLY));
|
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
GuidedActionsRelativeLayout.java | 50 final int heightSize = MeasureSpec.getSize(heightMeasureSpec);
|
ScaleFrameLayout.java | 181 private static int getScaledMeasureSpec(int measureSpec, float scale) { 182 return scale == 1f ? measureSpec : MeasureSpec.makeMeasureSpec( 183 (int) (MeasureSpec.getSize(measureSpec) / scale + 0.5f), 184 MeasureSpec.getMode(measureSpec));
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
ActionableToastBar.java | 177 widthMeasureSpec = View.MeasureSpec.makeMeasureSpec(mMinWidth, MeasureSpec.EXACTLY); 180 widthMeasureSpec = View.MeasureSpec.makeMeasureSpec(mMaxWidth, MeasureSpec.EXACTLY);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
HeadsUpStatusBarView.java | 97 int newSize = Math.min(MeasureSpec.getSize(widthMeasureSpec), mMaxWidth); 98 widthMeasureSpec = MeasureSpec.makeMeasureSpec(newSize, 99 MeasureSpec.getMode(widthMeasureSpec));
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/ |
AppsSearchContainerLayout.java | 18 import static android.view.View.MeasureSpec.EXACTLY; 19 import static android.view.View.MeasureSpec.getSize; 20 import static android.view.View.MeasureSpec.makeMeasureSpec;
|
/packages/apps/Settings/src/com/android/settings/shortcut/ |
CreateShortcut.java | 40 import android.view.View.MeasureSpec; 125 int spec = MeasureSpec.makeMeasureSpec(size, MeasureSpec.EXACTLY);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
ScrollAdapterView.java | [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
PrintCustomContent.java | 39 import android.view.View.MeasureSpec; 442 MeasureSpec.makeMeasureSpec(mRenderPageWidth, 443 MeasureSpec.EXACTLY), 0, view.getLayoutParams().width); 445 MeasureSpec.makeMeasureSpec(mRenderPageHeight, 446 MeasureSpec.EXACTLY), 0, view.getLayoutParams().height);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
PagedView.java | 497 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); 498 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); 499 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); 500 int heightSize = MeasureSpec.getSize(heightMeasureSpec); 501 if (widthMode != MeasureSpec.EXACTLY) { 533 childWidthMode = MeasureSpec.AT_MOST; 535 childWidthMode = MeasureSpec.EXACTLY; 540 childHeightMode = MeasureSpec.AT_MOST; 542 childHeightMode = MeasureSpec.EXACTLY; 546 MeasureSpec.makeMeasureSpec(widthSize - horizontalPadding, childWidthMode) [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/ |
MultiAttachmentLayout.java | 95 return MeasureSpec.makeMeasureSpec((endX - startX + 1) * cellWidth - padding * 2, 96 MeasureSpec.EXACTLY); 100 return MeasureSpec.makeMeasureSpec((endY - startY + 1) * cellHeight - padding * 2, 101 MeasureSpec.EXACTLY); 300 final int width = Math.min(MeasureSpec.getSize(widthMeasureSpec), maxWidth);
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
MediaPickerPanel.java | 127 int requestedHeight = MeasureSpec.getSize(heightMeasureSpec); 161 int viewPagerHeightMeasureSpec = MeasureSpec.makeMeasureSpec( 162 viewPagerHeight, MeasureSpec.EXACTLY); 312 final int measureSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE, MeasureSpec.AT_MOST); 313 measureChild(mTabStrip, measureSpec, measureSpec);
|