Home
last modified time | relevance | path

Searched refs:itemWidth (Results 1 – 13 of 13) sorted by relevance

/frameworks/layoutlib/studio-custom-widgets/src/com/android/tools/idea/editors/theme/widgets/
DThemePreviewLayout.java107 int itemWidth = 0; in onMeasure() local
118 itemWidth = Math.max(itemWidth, v.getMeasuredWidth()); in onMeasure()
122 itemWidth = Math.min(Math.max(itemWidth, mMinColumnWidth), mMaxColumnWidth); in onMeasure()
123 mNumColumns = Math.min((int) Math.ceil((double) wSize / itemWidth), mMaxColumns); in onMeasure()
127 int wSizeNeeded = mNumColumns * itemWidth + (mNumColumns - 1) * mItemHorizontalMargin; in onMeasure()
140 childWidthSpec = MeasureSpec.makeMeasureSpec(itemWidth, MeasureSpec.EXACTLY); in onMeasure()
158 int totalWidth = mNumColumns * itemWidth + horizontalMarginsTotalWidth + in onMeasure()
166 mItemWidth = itemWidth; in onMeasure()
/frameworks/base/libs/hwui/tests/common/scenes/
DBitmapFillrate.cpp57 int itemWidth = 2 * width / 3; in createNode() local
60 left, top, left + itemWidth, top + itemHeight, in createNode()
61 [this, itemWidth, itemHeight, color](RenderProperties& props, Canvas& canvas) { in createNode()
63 mAllocator(itemWidth, itemHeight, kRGBA_8888_SkColorType, in createNode()
DListViewAnimation.cpp75 void createListItem(RenderProperties& props, Canvas& canvas, int cardId, int itemWidth, in createListItem() argument
83 canvas.drawRoundRect(0, 0, itemWidth, itemHeight, dp(6), dp(6), roundRectPaint); in createListItem()
100 canvas.drawBitmap(*box, itemWidth - dp(10) - box->width(), dp(10), nullptr); in createListItem()
DListOfFadedTextAnimation.cpp31 void createListItem(RenderProperties& props, Canvas& canvas, int id, int itemWidth, in createListItem() argument
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/menu/
DMenuPopup.java164 final int itemWidth = itemView.getMeasuredWidth(); in measureIndividualMenuWidth() local
165 if (itemWidth >= maxAllowedWidth) { in measureIndividualMenuWidth()
167 } else if (itemWidth > maxWidth) { in measureIndividualMenuWidth()
168 maxWidth = itemWidth; in measureIndividualMenuWidth()
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuPopup.java161 final int itemWidth = itemView.getMeasuredWidth(); in measureIndividualMenuWidth() local
162 if (itemWidth >= maxAllowedWidth) { in measureIndividualMenuWidth()
164 } else if (itemWidth > maxWidth) { in measureIndividualMenuWidth()
165 maxWidth = itemWidth; in measureIndividualMenuWidth()
DIconMenuView.java345 float itemWidth; in positionChildren() local
355 itemWidth = (menuWidth - mVerticalDividerWidth * (numItemsForRow[row] - 1)) in positionChildren()
361 child.measure(MeasureSpec.makeMeasureSpec((int) itemWidth, MeasureSpec.EXACTLY), in positionChildren()
367 childLayoutParams.right = (int) (itemLeft + itemWidth); in positionChildren()
372 itemLeft += itemWidth; in positionChildren()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DFrameworkActionBar.java219 final int itemWidth = itemView.getMeasuredWidth(); in measureContentWidth() local
222 if (itemWidth >= popupMaxWidth) { in measureContentWidth()
224 } else if (itemWidth > maxWidth) { in measureContentWidth()
225 maxWidth = itemWidth; in measureContentWidth()
/frameworks/base/libs/hwui/tests/common/
DTestListViewSceneBase.h28 virtual void createListItem(RenderProperties& props, Canvas& canvas, int id, int itemWidth,
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
DBaseWrapContentTest.java71 final int itemWidth = 15; in unspecifiedWithHintTest() local
79 holder.itemView.setLayoutParams(new ViewGroup.LayoutParams(itemWidth, itemHeight)); in unspecifiedWithHintTest()
101 int expectedWidth = rv.getPaddingLeft() + rv.getPaddingRight() + itemWidth; in unspecifiedWithHintTest()
103 expectedWidth += itemWidth; in unspecifiedWithHintTest()
/frameworks/support/media-widget/src/main/java/androidx/media/widget/
DMediaControlView2.java1546 int itemWidth = (mSizeType == SIZE_TYPE_EMBEDDED) in displaySettingsWindow() local
1548 mSettingsWindow.setWidth(itemWidth); in displaySettingsWindow()
/frameworks/av/packages/MediaComponents/src/com/android/widget/
DMediaControlView2Impl.java1403 int itemWidth = (mSizeType == SIZE_TYPE_EMBEDDED) in displaySettingsWindow() local
1405 mSettingsWindow.setWidth(itemWidth); in displaySettingsWindow()
/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java574 final int itemWidth = (int) (width * info.widthFactor + 0.5f); in getLeftEdgeForItem() local
575 return MAX_SCROLL_X - itemWidth - scaledOffset; in getLeftEdgeForItem()