/frameworks/base/core/java/android/widget/ |
D | AbsSeekBar.java | 692 final int trackWidth = w - mPaddingRight - mPaddingLeft; 718 int available = w - mPaddingLeft - mPaddingRight; 743 final int offsetX = mPaddingLeft - mThumbOffset; 769 mThumbRect.offset(mPaddingLeft - mThumbOffset, mPaddingTop); 817 tempRect.offset(mPaddingLeft - mThumbOffset, mPaddingTop); 845 final float spacing = (getWidth() - mPaddingLeft - mPaddingRight) / (float) count; 847 canvas.translate(mPaddingLeft, getHeight() / 2); 866 canvas.translate(mPaddingLeft - mThumbOffset, mPaddingTop); 884 dw += mPaddingLeft + mPaddingRight; 900 final int availableWidth = getWidth() - mPaddingLeft - mPaddingRight; [all …]
|
D | HorizontalScrollView.java | 369 return getWidth() < childWidth + mPaddingLeft + mPaddingRight ; in canScroll() 438 widthPadding = mPaddingLeft + mPaddingRight + lp.leftMargin + lp.rightMargin; in onMeasure() 441 widthPadding = mPaddingLeft + mPaddingRight; in onMeasure() 903 final int viewportWidth = getWidth() - mPaddingLeft - mPaddingRight; in performAccessibilityActionInternal() 915 final int viewportWidth = getWidth() - mPaddingLeft - mPaddingRight; in performAccessibilityActionInternal() 963 child.getWidth() - (getWidth() - mPaddingLeft - mPaddingRight)); in getScrollRange() 1298 final int width = getWidth() - mPaddingRight - mPaddingLeft; in smoothScrollBy() 1332 final int contentWidth = getWidth() - mPaddingLeft - mPaddingRight; in computeHorizontalScrollRange() 1359 final int horizontalPadding = mPaddingLeft + mPaddingRight; in measureChild() 1377 final int usedTotal = mPaddingLeft + mPaddingRight + lp.leftMargin + lp.rightMargin + in measureChildWithMargins() [all …]
|
D | Gallery.java | 488 return (getWidth() - mPaddingLeft - mPaddingRight) / 2 + mPaddingLeft; in getCenterOfGallery() 512 final int galleryLeft = mPaddingLeft; in detachOffScreenChildren() 723 int galleryLeft = mPaddingLeft; in fillToGalleryLeftRtl() 754 int galleryLeft = mPaddingLeft; in fillToGalleryLeftLtr() 807 curLeftEdge = mPaddingLeft; in fillToGalleryRightRtl() 840 curLeftEdge = mPaddingLeft; in fillToGalleryRightLtr() 1551 delta = Math.min(getWidth() - mPaddingLeft - mPaddingRight - 1, delta); 1559 delta = Math.max(-(getWidth() - mPaddingRight - mPaddingLeft - 1), delta);
|
D | AbsoluteLayout.java | 88 maxWidth += mPaddingLeft + mPaddingRight; in onMeasure() 122 int childLeft = mPaddingLeft + lp.x; in onLayout()
|
D | AdapterViewAnimator.java | 685 final int childWidth = getMeasuredWidth() - mPaddingLeft - mPaddingRight; in measureChildren() 722 widthSpecSize = haveChildRefSize ? mReferenceChildWidth + mPaddingLeft + in onMeasure() 726 int width = mReferenceChildWidth + mPaddingLeft + mPaddingRight; in onMeasure() 770 int childRight = mPaddingLeft + child.getMeasuredWidth(); in onLayout() 773 child.layout(mPaddingLeft, mPaddingTop, childRight, childBottom); in onLayout()
|
D | ScrollView.java | 470 widthPadding = mPaddingLeft + mPaddingRight + lp.leftMargin + lp.rightMargin; in onMeasure() 473 widthPadding = mPaddingLeft + mPaddingRight; in onMeasure() 1388 childWidthMeasureSpec = getChildMeasureSpec(parentWidthMeasureSpec, mPaddingLeft in measureChild() 1404 mPaddingLeft + mPaddingRight + lp.leftMargin + lp.rightMargin in measureChildWithMargins() 1782 x = clamp(x, getWidth() - mPaddingRight - mPaddingLeft, child.getWidth()); in scrollTo() 1844 width = getWidth() - mPaddingLeft - mPaddingRight; in draw() 1846 translateX = mPaddingLeft; in draw() 1868 width = getWidth() - mPaddingLeft - mPaddingRight; in draw() 1870 translateX = mPaddingLeft; in draw()
|
D | CheckedTextView.java | 396 mNeedRequestlayout |= (mPaddingLeft != newPadding); in updatePadding() 397 mPaddingLeft = newPadding; in updatePadding() 410 mBasePadding = mPaddingLeft; in setBasePadding()
|
D | ImageView.java | 1157 final int pleft = mPaddingLeft; in onMeasure() 1279 final int vwidth = getWidth() - mPaddingLeft - mPaddingRight; in configureBounds() 1391 final int vwidth = getWidth() - mPaddingLeft - mPaddingRight; in animateTransform() 1417 if (mDrawMatrix == null && mPaddingTop == 0 && mPaddingLeft == 0) { in onDraw() 1426 canvas.clipRect(scrollX + mPaddingLeft, scrollY + mPaddingTop, in onDraw() 1431 canvas.translate(mPaddingLeft, mPaddingTop); in onDraw()
|
D | QuickContactBadge.java | 164 if (mPaddingTop == 0 && mPaddingLeft == 0) { in onDraw() 169 canvas.translate(mPaddingLeft, mPaddingTop); in onDraw()
|
D | LinearLayout.java | 993 mPaddingLeft + mPaddingRight + lp.leftMargin + lp.rightMargin, in measureVertical() 1055 maxWidth += mPaddingLeft + mPaddingRight; in measureVertical() 1325 mTotalLength += mPaddingLeft + mPaddingRight; in measureHorizontal() 1427 mTotalLength += mPaddingLeft + mPaddingRight; in measureHorizontal() 1601 final int paddingLeft = mPaddingLeft; in layoutVertical() 1733 childLeft = mPaddingLeft + right - left - mTotalLength; in layoutHorizontal() 1738 childLeft = mPaddingLeft + (right - left - mTotalLength) / 2; in layoutHorizontal() 1743 childLeft = mPaddingLeft; in layoutHorizontal()
|
D | AbsSpinner.java | 183 mSpinnerPadding.left = mPaddingLeft > mSelectionLeftPadding ? mPaddingLeft in onMeasure()
|
D | FrameLayout.java | 159 return isForegroundInsidePadding() ? Math.max(mPaddingLeft, mForegroundPaddingLeft) : in getPaddingLeftWithForeground() 160 mPaddingLeft + mForegroundPaddingLeft; in getPaddingLeftWithForeground()
|
D | RelativeLayout.java | 619 selfBounds.set(mPaddingLeft, mPaddingTop, width - mPaddingRight, in onMeasure() 689 mPaddingLeft, mPaddingRight, in measureChild() 702 params.width, params.leftMargin, params.rightMargin, mPaddingLeft, mPaddingRight, in measureChildHorizontal() 873 params.mLeft = mPaddingLeft + params.leftMargin; in positionAtEdge() 934 childParams.mLeft = mPaddingLeft + childParams.leftMargin; in applyHorizontalSizeRules() 941 childParams.mLeft = mPaddingLeft + childParams.leftMargin; in applyHorizontalSizeRules() 954 childParams.mLeft = mPaddingLeft + childParams.leftMargin; in applyHorizontalSizeRules()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | LabelView.java | 80 mPaddingLeft = 3; in initLabelView() 140 result = (int) mTextPaint.measureText(mText) + mPaddingLeft in measureWidth() 185 canvas.drawText(mText, mPaddingLeft, mPaddingTop - mAscent, mTextPaint); in onDraw()
|
/frameworks/base/core/java/android/app/ |
D | FragmentBreadCrumbs.java | 222 childLeft = mPaddingLeft + (mRight - mLeft - child.getMeasuredWidth()) / 2; in onLayout() 228 childLeft = mPaddingLeft; in onLayout() 233 if (childLeft < mPaddingLeft) { in onLayout() 234 childLeft = mPaddingLeft; in onLayout() 265 maxWidth += mPaddingLeft + mPaddingRight; in onMeasure()
|
/frameworks/layoutlib/studio-custom-widgets/src/com/android/tools/idea/editors/theme/widgets/ |
D | ThemePreviewLayout.java | 100 int wSize = MeasureSpec.getSize(widthMeasureSpec) - mPaddingLeft - mPaddingRight; in onMeasure() 159 mPaddingRight + mPaddingLeft; in onMeasure() 176 int x = mPaddingLeft; in onLayout()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | InternalSelectionView.java | 112 int desiredWidth = 300 + mPaddingLeft + mPaddingRight; in measureWidth() 144 int rectLeft = mPaddingLeft; in onDraw() 196 rect.set(mPaddingLeft, in getRectForRow()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | NotificationActionListLayout.java | 116 final int innerWidth = MeasureSpec.getSize(widthMeasureSpec) - mPaddingLeft - mPaddingRight; in onMeasure() 154 mTotalWidth = usedWidth + mPaddingRight + mPaddingLeft; in onMeasure() 211 childLeft = mPaddingLeft + left + (right - left) / 2 - mTotalWidth / 2; in onLayout() 213 childLeft = mPaddingLeft; in onLayout()
|
D | MessagingLinearLayout.java | 79 int measuredWidth = mPaddingLeft + mPaddingRight; in onMeasure() 154 + mPaddingLeft + mPaddingRight); in onMeasure() 183 final int paddingLeft = mPaddingLeft; in onLayout()
|
D | SubtitleView.java | 226 final int paddingX = mPaddingLeft + mPaddingRight + mInnerPaddingX * 2; in onMeasure() 248 final int paddingX = mPaddingLeft + mPaddingRight + mInnerPaddingX * 2; in computeMeasurements() 302 c.translate(mPaddingLeft + innerPaddingX, mPaddingTop); in onDraw()
|
D | WatchListDecorLayout.java | 265 return isForegroundInsidePadding() ? Math.max(mPaddingLeft, mForegroundPaddingLeft) : in getPaddingLeftWithForeground() 266 mPaddingLeft + mForegroundPaddingLeft; in getPaddingLeftWithForeground()
|
D | LockPatternView.java | 668 final int width = w - mPaddingLeft - mPaddingRight; in onSizeChanged() 677 mNotSelectedDrawable.setBounds(mPaddingLeft, mPaddingTop, width, height); in onSizeChanged() 678 mSelectedDrawable.setBounds(mPaddingLeft, mPaddingTop, width, height); in onSizeChanged() 889 float offset = mPaddingLeft + (squareWidth - hitSize) / 2f; in getColumnHit() 1094 return mPaddingLeft + column * mSquareWidth + mSquareWidth / 2f; in getCenterXForColumn() 1286 (int) (mPaddingLeft + j * mSquareWidth), 1288 (int) (mPaddingLeft + (j + 1) * mSquareWidth),
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | LayerDrawable.java | 320 state.mPaddingLeft = a.getDimensionPixelOffset(attr, state.mPaddingLeft); in updateStateFromTypedArray() 1045 final int paddingL = paddingRtlL >= 0 ? paddingRtlL : layerState.mPaddingLeft; in getPadding() 1092 layerState.mPaddingLeft = left; in setPadding() 1131 layerState.mPaddingLeft = -1; in setPaddingRelative() 1148 return mLayerState.mPaddingLeft; in getLeftPadding() 1942 int mPaddingLeft = -1; 1989 mPaddingLeft = orig.mPaddingLeft; 2018 if (mPaddingLeft > 0) { 2019 mPaddingLeft = Drawable.scaleFromDensity( 2020 mPaddingLeft, sourceDensity, targetDensity, false);
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | KeyboardView.java | 609 setMeasuredDimension(mPaddingLeft + mPaddingRight, mPaddingTop + mPaddingBottom); in onMeasure() 611 int width = mKeyboard.getMinWidth() + mPaddingLeft + mPaddingRight; in onMeasure() 683 final int kbdPaddingLeft = mPaddingLeft; in onBufferDraw() 955 mPopupPreviewX = key.x - mPreviewText.getPaddingLeft() + mPaddingLeft; in showKey() 1059 mDirtyRect.union(key.x + mPaddingLeft, key.y + mPaddingTop, in invalidateKey() 1060 key.x + key.width + mPaddingLeft, key.y + key.height + mPaddingTop); in invalidateKey() 1062 invalidate(key.x + mPaddingLeft, key.y + mPaddingTop, in invalidateKey() 1063 key.x + key.width + mPaddingLeft, key.y + key.height + mPaddingTop); in invalidateKey() 1148 mPopupX = popupKey.x + mPaddingLeft; in onLongPress() 1231 int touchX = (int) me.getX() - mPaddingLeft;
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/ |
D | PrintOptionsLayout.java | 59 ? (widthSize - mPaddingLeft - mPaddingRight) / mColumnCount : 0; in onMeasure()
|