Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/tests/common/scenes/
DBitmapFillrate.cpp58 int itemWidth = 2 * width / 3; in createNode() local
61 left, top, left + itemWidth, top + itemHeight, in createNode()
62 [this, itemWidth, itemHeight, color](RenderProperties& props, Canvas& canvas) { in createNode()
64 mAllocator(itemWidth, itemHeight, kRGBA_8888_SkColorType, in createNode()
DListViewAnimation.cpp86 void createListItem(RenderProperties& props, Canvas& canvas, int cardId, int itemWidth, in createListItem() argument
94 canvas.drawRoundRect(0, 0, itemWidth, itemHeight, dp(6), dp(6), roundRectPaint); in createListItem()
111 canvas.drawBitmap(*box, itemWidth - dp(10) - box->width(), dp(10), nullptr); in createListItem()
DStretchyListViewAnimation.cpp131 void createListItem(RenderProperties& props, Canvas& canvas, int cardId, int itemWidth, in createListItem() argument
142 canvas.punchHole(SkRRect::MakeRect(SkRect::MakeWH(itemWidth, itemHeight)), 1.f); in createListItem()
144 canvas.drawRoundRect(0, 0, itemWidth, itemHeight, dp(6), dp(6), roundRectPaint); in createListItem()
166 canvas.drawBitmap(*box, itemWidth - dp(10) - box->width(), dp(10), nullptr); in createListItem()
DListOfFadedTextAnimation.cpp32 void createListItem(RenderProperties& props, Canvas& canvas, int id, int itemWidth, in createListItem() argument
/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.java350 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/
DFrameworkActionBar.java217 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/
DTestListViewSceneBase.h28 virtual void createListItem(RenderProperties& props, Canvas& canvas, int id, int itemWidth,
/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java580 final int itemWidth = (int) (width * info.widthFactor + 0.5f); in getLeftEdgeForItem() local
581 return MAX_SCROLL_X - itemWidth - scaledOffset; in getLeftEdgeForItem()