Home
last modified time | relevance | path

Searched refs:paddingLeft (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/ex/widget/java/com/android/ex/widget/
DStaggeredGridView.java746 final int paddingLeft = getPaddingLeft(); in layoutChildren() local
750 … (getWidth() - paddingLeft - paddingRight - itemMargin * (mColCount - 1)) / mColCount; in layoutChildren()
804 final int childLeft = paddingLeft + col * (colWidth + itemMargin); in layoutChildren()
882 final int paddingLeft = getPaddingLeft(); in fillUp() local
886 … (getWidth() - paddingLeft - paddingRight - itemMargin * (mColCount - 1)) / mColCount; in fillUp()
967 final int childLeft = paddingLeft + nextCol * (colWidth + itemMargin); in fillUp()
996 final int paddingLeft = getPaddingLeft(); in fillDown() local
1000 … (getWidth() - paddingLeft - paddingRight - itemMargin * (mColCount - 1)) / mColCount; in fillDown()
1081 final int childLeft = paddingLeft + nextCol * (colWidth + itemMargin); in fillDown()
/frameworks/base/core/java/android/widget/
DSimpleMonthView.java606 final int paddingLeft = getPaddingLeft(); in onDraw() local
608 canvas.translate(paddingLeft, paddingTop); in onDraw()
614 canvas.translate(-paddingLeft, -paddingTop); in onDraw()
887 final int paddingLeft = getPaddingLeft(); in onLayout() local
893 final int paddedWidth = paddedRight - paddingLeft; in onLayout()
915 final int maxSelectorWidth = cellWidth / 2 + Math.min(paddingLeft, paddingRight); in onLayout()
DSwitch.java854 int paddingLeft = padding.left; in onMeasure() local
858 paddingLeft = Math.max(paddingLeft, inset.left); in onMeasure()
863 2 * mThumbWidth + paddingLeft + paddingRight); in onMeasure()
DLinearLayout.java1513 final int paddingLeft = mPaddingLeft; in layoutVertical() local
1523 int childSpace = width - paddingLeft - mPaddingRight; in layoutVertical()
1566 childLeft = paddingLeft + ((childSpace - childWidth) / 2) in layoutVertical()
1576 childLeft = paddingLeft + lp.leftMargin; in layoutVertical()
DToolbar.java1681 final int paddingLeft = getPaddingLeft(); in onLayout() local
1685 int left = paddingLeft; in onLayout()
1875 final int parentCenter = paddingLeft + (width - paddingLeft - paddingRight) / 2; in onLayout()
DGridLayout.java1114 int paddingLeft = getPaddingLeft(); in onLayout() local
1119 mHorizontalAxis.layout(targetWidth - paddingLeft - paddingRight); in onLayout()
1174 int cx = !isLayoutRtl() ? paddingLeft + leftMargin + dx : in onLayout()
/frameworks/base/core/java/com/android/internal/widget/
DMessagingLinearLayout.java188 final int paddingLeft = mPaddingLeft; in onLayout() local
218 childLeft = paddingLeft + lp.leftMargin; in onLayout()
DViewPager.java1497 int paddingLeft = getPaddingLeft();
1518 childLeft = paddingLeft;
1521 childLeft = paddingLeft;
1522 paddingLeft += child.getMeasuredWidth();
1526 paddingLeft);
1559 final int childWidth = width - paddingLeft - paddingRight;
1596 childLeft = paddingLeft + startOffset;
1693 int paddingLeft = getPaddingLeft();
1706 childLeft = paddingLeft;
1709 childLeft = paddingLeft;
[all …]
/frameworks/base/tools/aapt/
DImages.cpp565 image->info9Patch.paddingLeft = image->info9Patch.paddingRight = in do_9patch()
615 … if (get_horizontal_ticks(image->rows[H-1], W, transparent, false, &image->info9Patch.paddingLeft, in do_9patch()
617 errorPixel = image->info9Patch.paddingLeft; in do_9patch()
655 if (image->info9Patch.paddingLeft < 0) { in do_9patch()
656 image->info9Patch.paddingLeft = xDivs[0]; in do_9patch()
675 image->info9Patch.paddingLeft, image->info9Patch.paddingRight, in do_9patch()
806 assert(outPatch->paddingLeft == inPatch->paddingLeft); in checkNinePatchSerialization()
/frameworks/base/tools/aapt2/compile/
DPng.cpp163 assert(outPatch->paddingLeft == inPatch->paddingLeft); in checkNinePatchSerialization()
963 image->info9Patch.paddingLeft = image->info9Patch.paddingRight = -1; in do9Patch()
1014 &image->info9Patch.paddingLeft, &image->info9Patch.paddingRight, in do9Patch()
1016 errorPixel = image->info9Patch.paddingLeft; in do9Patch()
1053 if (image->info9Patch.paddingLeft < 0) { in do9Patch()
1054 image->info9Patch.paddingLeft = xDivs[0]; in do9Patch()
/frameworks/support/core-ui/java/android/support/v4/view/
DPagerTitleStrip.java354 final int paddingLeft = getPaddingLeft(); in updateTextPositions() local
358 final int textPaddedLeft = paddingLeft + halfCurrWidth; in updateTextPositions()
413 final int prevLeft = Math.min(paddingLeft, currLeft - mScaledTextSpacing - prevWidth); in updateTextPositions()
DViewPager.java1708 int paddingLeft = getPaddingLeft();
1729 childLeft = paddingLeft;
1732 childLeft = paddingLeft;
1733 paddingLeft += child.getMeasuredWidth();
1737 paddingLeft);
1770 final int childWidth = width - paddingLeft - paddingRight;
1779 int childLeft = paddingLeft + loff;
1890 int paddingLeft = getPaddingLeft();
1903 childLeft = paddingLeft;
1906 childLeft = paddingLeft;
[all …]
/frameworks/base/core/jni/android/graphics/
DBitmapFactory.cpp119 chunk->paddingLeft = int(chunk->paddingLeft * scale + 0.5f); in scaleNinePatchChunk()
509 peeker.mPatch->paddingLeft, peeker.mPatch->paddingTop, in doDecode()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSwitchCompat.java824 int paddingLeft = padding.left; in onMeasure() local
828 paddingLeft = Math.max(paddingLeft, inset.left); in onMeasure()
833 2 * mThumbWidth + paddingLeft + paddingRight); in onMeasure()
DLinearLayoutCompat.java1420 final int paddingLeft = getPaddingLeft(); in layoutVertical() local
1430 int childSpace = width - paddingLeft - getPaddingRight(); in layoutVertical()
1474 childLeft = paddingLeft + ((childSpace - childWidth) / 2) in layoutVertical()
1484 childLeft = paddingLeft + lp.leftMargin; in layoutVertical()
DListViewCompat.java274 final int paddingLeft = getListPaddingLeft(); in measureHeightOfChildrenCompat() local
DToolbar.java1704 final int paddingLeft = getPaddingLeft(); in onLayout() local
1708 int left = paddingLeft; in onLayout()
1899 final int parentCenter = paddingLeft + (width - paddingLeft - paddingRight) / 2; in onLayout()
/frameworks/base/media/java/android/media/
DWebVttRenderer.java1431 final int paddingLeft = 100 * getPaddingLeft() / viewportWidth; in layoutCue() local
1433 if (xPosition < paddingLeft && xPosition + size > paddingLeft) { in layoutCue()
1434 xPosition += paddingLeft; in layoutCue()
1435 size -= paddingLeft; in layoutCue()
DCea708CaptionRenderer.java1262 int paddingLeft = getPaddingLeft(); in onLayout() local
1268 int childLeft = paddingLeft + mRectArray[i].left; in onLayout()
1270 int childBottom = paddingLeft + mRectArray[i].bottom; in onLayout()
1284 int paddingLeft = getPaddingLeft(); in dispatchDraw() local
1293 int childLeft = paddingLeft + mRectArray[i].left; in dispatchDraw()
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
DGridWidgetTest.java454 final int paddingLeft = mGridView.getPaddingLeft(); in testItemDecorationAndMargins() local
477 assertEquals(paddingLeft + leftMargin + decorationLeft, child0.getLeft()); in testItemDecorationAndMargins()
478 assertEquals(paddingLeft + leftMargin + decorationLeft, child1.getLeft()); in testItemDecorationAndMargins()
479 assertEquals(paddingLeft + leftMargin + decorationLeft, child2.getLeft()); in testItemDecorationAndMargins()
509 final int paddingLeft = mGridView.getPaddingLeft(); in testItemDecorationAndMarginsAndOpticalBounds() local
544 assertEquals(paddingLeft + leftMargin + decorationLeft - opticalInsetsLeft, in testItemDecorationAndMarginsAndOpticalBounds()
546 assertEquals(paddingLeft + leftMargin + decorationLeft - opticalInsetsLeft, in testItemDecorationAndMarginsAndOpticalBounds()
548 assertEquals(paddingLeft + leftMargin + decorationLeft - opticalInsetsLeft, in testItemDecorationAndMarginsAndOpticalBounds()
/frameworks/base/docs/html/guide/topics/ui/layout/
Dlinear.jd87 android:paddingLeft="16dp"
Drelative.jd87 android:paddingLeft="16dp"
/frameworks/base/core/java/com/android/internal/app/
DAlertController.java919 final int paddingLeft = getPaddingLeft(); in setHasDecor() local
923 setPadding(paddingLeft, paddingTop, paddingRight, paddingBottom); in setHasDecor()
/frameworks/base/docs/html/training/wearables/ui/
Dcards.jd156 android:paddingLeft="5dp">
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
DGridLayout.java1013 int paddingLeft = getPaddingLeft(); in onLayout() local
1018 mHorizontalAxis.layout(targetWidth - paddingLeft - paddingRight); in onLayout()
1073 int cx = !isLayoutRtlCompat() ? paddingLeft + leftMargin + dx : in onLayout()

12