Searched refs:itemWidth (Results 1 – 9 of 9) sorted by relevance
/frameworks/layoutlib/studio-custom-widgets/src/com/android/tools/idea/editors/theme/widgets/ |
D | ThemePreviewLayout.java | 107 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/ |
D | BitmapFillrate.cpp | 57 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()
|
D | ListViewAnimation.cpp | 77 void createListItem(RenderProperties& props, Canvas& canvas, int cardId, int itemWidth, in createListItem() argument 85 canvas.drawRoundRect(0, 0, itemWidth, itemHeight, dp(6), dp(6), roundRectPaint); in createListItem() 102 canvas.drawBitmap(*box, itemWidth - dp(10) - box->width(), dp(10), nullptr); in createListItem()
|
D | ListOfFadedTextAnimation.cpp | 31 void createListItem(RenderProperties& props, Canvas& canvas, int id, int itemWidth, in createListItem() argument
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | MenuPopup.java | 161 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()
|
D | IconMenuView.java | 350 float itemWidth; in positionChildren() local 360 itemWidth = (menuWidth - mVerticalDividerWidth * (numItemsForRow[row] - 1)) in positionChildren() 366 child.measure(MeasureSpec.makeMeasureSpec((int) itemWidth, MeasureSpec.EXACTLY), in positionChildren() 372 childLayoutParams.right = (int) (itemLeft + itemWidth); in positionChildren() 377 itemLeft += itemWidth; in positionChildren()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | FrameworkActionBar.java | 217 final int itemWidth = itemView.getMeasuredWidth(); in measureContentWidth() local 220 if (itemWidth >= popupMaxWidth) { in measureContentWidth() 222 } else if (itemWidth > maxWidth) { in measureContentWidth() 223 maxWidth = itemWidth; in measureContentWidth()
|
/frameworks/base/libs/hwui/tests/common/ |
D | TestListViewSceneBase.h | 28 virtual void createListItem(RenderProperties& props, Canvas& canvas, int id, int itemWidth,
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ViewPager.java | 580 final int itemWidth = (int) (width * info.widthFactor + 0.5f); in getLeftEdgeForItem() local 581 return MAX_SCROLL_X - itemWidth - scaledOffset; in getLeftEdgeForItem()
|