Home
last modified time | relevance | path

Searched refs:mPaddingTop (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/widget/
DLabelView.java81 mPaddingTop = 3; in initLabelView()
167 result = (int) (-mAscent + mTextPaint.descent()) + mPaddingTop in measureHeight()
185 canvas.drawText(mText, mPaddingLeft, mPaddingTop - mAscent, mTextPaint); in onDraw()
/frameworks/base/core/tests/coretests/src/android/util/
DInternalSelectionView.java129 mNumRows * mEstimatedPixelHeight + mPaddingTop + mPaddingBottom; in measureHeight()
143 int rectTop = mPaddingTop; in onDraw()
183 final int availableHeight = getHeight() - mPaddingTop - mPaddingBottom; in getRowHeight()
195 final int top = mPaddingTop + row * rowHeight; in getRectForRow()
/frameworks/base/core/java/android/widget/
DScrollView.java402 return getHeight() < childHeight + mPaddingTop + mPaddingBottom; in canScroll()
471 heightPadding = mPaddingTop + mPaddingBottom + lp.topMargin + lp.bottomMargin; in onMeasure()
474 heightPadding = mPaddingTop + mPaddingBottom; in onMeasure()
961 final int viewportHeight = getHeight() - mPaddingBottom - mPaddingTop; in performAccessibilityActionInternal()
970 final int viewportHeight = getHeight() - mPaddingBottom - mPaddingTop; in performAccessibilityActionInternal()
1024 child.getHeight() - (getHeight() - mPaddingBottom - mPaddingTop)); in getScrollRange()
1322 final int height = getHeight() - mPaddingBottom - mPaddingTop; in smoothScrollBy()
1360 final int contentHeight = getHeight() - mPaddingBottom - mPaddingTop; in computeVerticalScrollRange()
1392 final int verticalPadding = mPaddingTop + mPaddingBottom; in measureChild()
1408 final int usedTotal = mPaddingTop + mPaddingBottom + lp.topMargin + lp.bottomMargin + in measureChildWithMargins()
[all …]
DAbsoluteLayout.java89 maxHeight += mPaddingTop + mPaddingBottom; in onMeasure()
123 int childTop = mPaddingTop + lp.y; in onLayout()
DAbsSeekBar.java669 final int paddedHeight = h - mPaddingTop - mPaddingBottom;
744 final int offsetY = mPaddingTop;
769 mThumbRect.offset(mPaddingLeft - mThumbOffset, mPaddingTop);
817 tempRect.offset(mPaddingLeft - mThumbOffset, mPaddingTop);
866 canvas.translate(mPaddingLeft - mThumbOffset, mPaddingTop);
885 dh += mPaddingTop + mPaddingBottom;
DAdapterViewAnimator.java686 final int childHeight = getMeasuredHeight() - mPaddingTop - mPaddingBottom; in measureChildren()
708 heightSpecSize = haveChildRefSize ? mReferenceChildHeight + mPaddingTop + in onMeasure()
712 int height = mReferenceChildHeight + mPaddingTop + mPaddingBottom; in onMeasure()
771 int childBottom = mPaddingTop + child.getMeasuredHeight(); in onLayout()
773 child.layout(mPaddingLeft, mPaddingTop, childRight, childBottom); in onLayout()
DHorizontalScrollView.java439 heightPadding = mPaddingTop + mPaddingBottom + lp.topMargin + lp.bottomMargin; in onMeasure()
442 heightPadding = mPaddingTop + mPaddingBottom; in onMeasure()
1367 mPaddingTop + mPaddingBottom, lp.height); in measureChild()
1377 mPaddingTop + mPaddingBottom + lp.topMargin + lp.bottomMargin in measureChildWithMargins()
1731 y = clamp(y, getHeight() - mPaddingBottom - mPaddingTop, child.getHeight()); in scrollTo()
1750 final int height = getHeight() - mPaddingTop - mPaddingBottom; in draw()
1753 canvas.translate(-height + mPaddingTop, Math.min(0, scrollX)); in draw()
1763 final int height = getHeight() - mPaddingTop - mPaddingBottom; in draw()
1766 canvas.translate(-mPaddingTop, in draw()
DImageView.java1159 final int ptop = mPaddingTop; in onMeasure()
1280 final int vheight = getHeight() - mPaddingTop - mPaddingBottom; in configureBounds()
1392 final int vheight = getHeight() - mPaddingTop - mPaddingBottom; 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()
DLinearLayout.java626 childTop += ((mBottom - mTop - mPaddingTop - mPaddingBottom) - in getBaseline()
942 mTotalLength += mPaddingTop + mPaddingBottom; in measureVertical()
1020 mTotalLength += mPaddingTop + mPaddingBottom; in measureVertical()
1381 mPaddingTop + mPaddingBottom + lp.topMargin + lp.bottomMargin, in measureHorizontal()
1474 maxHeight += mPaddingTop + mPaddingBottom; in measureHorizontal()
1621 childTop = mPaddingTop + bottom - top - mTotalLength; in layoutVertical()
1626 childTop = mPaddingTop + (bottom - top - mTotalLength) / 2; in layoutVertical()
1631 childTop = mPaddingTop; in layoutVertical()
1707 final int paddingTop = mPaddingTop; in layoutHorizontal()
DQuickContactBadge.java164 if (mPaddingTop == 0 && mPaddingLeft == 0) { in onDraw()
169 canvas.translate(mPaddingLeft, mPaddingTop); in onDraw()
DRelativeLayout.java618 selfBounds.set(mPaddingLeft, mPaddingTop, width - mPaddingRight, in onMeasure()
693 mPaddingTop, mPaddingBottom, in measureChild()
719 maxHeight = Math.max(0, myHeight - mPaddingTop - mPaddingBottom in measureChildHorizontal()
894 params.mTop = mPaddingTop + params.topMargin; in positionChildVertical()
899 params.mTop = mPaddingTop + params.topMargin; in positionChildVertical()
997 childParams.mTop = mPaddingTop + childParams.topMargin; in applyVerticalSizeRules()
1004 childParams.mTop = mPaddingTop + childParams.topMargin; in applyVerticalSizeRules()
1017 childParams.mTop = mPaddingTop + childParams.topMargin; in applyVerticalSizeRules()
DAbsSpinner.java185 mSpinnerPadding.top = mPaddingTop > mSelectionTopPadding ? mPaddingTop in onMeasure()
DFrameLayout.java169 return isForegroundInsidePadding() ? Math.max(mPaddingTop, mForegroundPaddingTop) : in getPaddingTopWithForeground()
170 mPaddingTop + mForegroundPaddingTop; in getPaddingTopWithForeground()
DStackView.java1112 int childBottom = mPaddingTop + child.getMeasuredHeight();
1115 child.layout(mPaddingLeft + lp.horizontalOffset, mPaddingTop + lp.verticalOffset,
1145 - mPaddingTop - mPaddingBottom;
1195 mPaddingTop + mPaddingBottom : 0;
1199 + mPaddingTop + mPaddingBottom;
/frameworks/layoutlib/studio-custom-widgets/src/com/android/tools/idea/editors/theme/widgets/
DThemePreviewLayout.java161 mPaddingBottom + mPaddingTop; in onMeasure()
177 int y = mPaddingTop; in onLayout()
191 y = mPaddingTop; in onLayout()
/frameworks/base/core/java/com/android/internal/widget/
DMessagingLinearLayout.java89 totalHeight = mPaddingTop + mPaddingBottom; in onMeasure()
109 - mPaddingTop - mPaddingBottom + spacing); in onMeasure()
158 childTop = mPaddingTop; in onLayout()
DAlertDialogLayout.java294 childTop = mPaddingTop + bottom - top - totalLength; in onLayout()
299 childTop = mPaddingTop + (bottom - top - totalLength) / 2; in onLayout()
304 childTop = mPaddingTop; in onLayout()
DWatchListDecorLayout.java275 return isForegroundInsidePadding() ? Math.max(mPaddingTop, mForegroundPaddingTop) : in getPaddingTopWithForeground()
276 mPaddingTop + mForegroundPaddingTop; in getPaddingTopWithForeground()
DLockPatternView.java672 final int height = h - mPaddingTop - mPaddingBottom; in onSizeChanged()
677 mNotSelectedDrawable.setBounds(mPaddingLeft, mPaddingTop, width, height); in onSizeChanged()
678 mSelectedDrawable.setBounds(mPaddingLeft, mPaddingTop, width, height); in onSizeChanged()
869 float offset = mPaddingTop + (squareHeight - hitSize) / 2f; in getRowHit()
1098 return mPaddingTop + row * mSquareHeight + mSquareHeight / 2f; in getCenterYForRow()
1287 (int) (mPaddingTop + i * mSquareHeight),
1289 (int) (mPaddingTop + (i + 1) * mSquareHeight));
DSubtitleView.java228 final int height = layout.getHeight() + mPaddingTop + mPaddingBottom; in onMeasure()
302 c.translate(mPaddingLeft + innerPaddingX, mPaddingTop); in onDraw()
DImageFloatingTextView.java121 int availableHeight = MeasureSpec.getSize(heightMeasureSpec) - mPaddingTop - mPaddingBottom; in onMeasure()
/frameworks/base/graphics/java/android/graphics/drawable/
DLayerDrawable.java314 state.mPaddingTop = a.getDimensionPixelOffset(attr, state.mPaddingTop); in updateStateFromTypedArray()
1037 final int paddingT = layerState.mPaddingTop; in getPadding()
1093 layerState.mPaddingTop = top; in setPadding()
1126 layerState.mPaddingTop = top; in setPaddingRelative()
1213 return mLayerState.mPaddingTop; in getTopPadding()
1940 int mPaddingTop = -1;
1987 mPaddingTop = orig.mPaddingTop;
2022 if (mPaddingTop > 0) {
2023 mPaddingTop = Drawable.scaleFromDensity(
2024 mPaddingTop, sourceDensity, targetDensity, false);
/frameworks/base/core/java/android/app/
DFragmentBreadCrumbs.java207 final int childTop = mPaddingTop; in onLayout()
208 final int childBottom = mPaddingTop + child.getMeasuredHeight() - mPaddingBottom; in onLayout()
266 maxHeight += mPaddingTop + mPaddingBottom; in onMeasure()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboardView.java609 setMeasuredDimension(mPaddingLeft + mPaddingRight, mPaddingTop + mPaddingBottom); in onMeasure()
615 setMeasuredDimension(width, mKeyboard.getHeight() + mPaddingTop + mPaddingBottom); in onMeasure()
684 final int kbdPaddingTop = mPaddingTop; in onBufferDraw()
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()
1149 mPopupY = popupKey.y + mPaddingTop; in onLongPress()
1232 int touchY = (int) me.getY() - mPaddingTop;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DObservableScrollView.java64 child.getHeight() - (getHeight() - mPaddingBottom - mPaddingTop)); in getMaxScrollY()

12