Home
last modified time | relevance | path

Searched refs:getMeasuredWidth (Results 1 – 25 of 121) sorted by relevance

12345

/packages/apps/Camera2/src/com/android/camera/widget/
DSettingsCling.java63 float referenceRight = referenceView.getX() + referenceView.getMeasuredWidth(); in updatePosition()
64 setTranslationX(referenceRight - getMeasuredWidth()); in updatePosition()
70 float triangleStartX = getMeasuredWidth() - referenceView.getMeasuredWidth() / 2; in updatePosition()
82 float triangleStartX = getMeasuredWidth() - referenceView.getMeasuredWidth() / 2; in updatePosition()
DFilmstripLayout.java306 mFilmstripContentLayout.setTranslationX(fraction * getMeasuredWidth()); in translateContentLayout()
311 mFilmstripContentTranslationProgress = pixel / getMeasuredWidth(); in translateContentLayoutByPixel()
356 if (dx > 0 && mFilmstripContentLayout.getTranslationX() == getMeasuredWidth()) { in onScroll()
366 if (translate > getMeasuredWidth()) { in onScroll()
367 translate = getMeasuredWidth(); in onScroll()
461 if (mFilmstripContentLayout.getTranslationX() >= getMeasuredWidth() / 2) { in onUp()
525 int width = getMeasuredWidth() - mOffset; in draw()
532 canvas.drawRect(0, 0, getMeasuredWidth(), getMeasuredHeight(), mPaint); in draw()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragLayer.java266 coord[0] = lp.x + (child.getMeasuredWidth() * (1 - childScale) / 2); in animateViewIntoPosition()
294 toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2; in animateViewIntoPosition()
301 toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2; in animateViewIntoPosition()
304 toX -= (Math.round(scale * (dragView.getMeasuredWidth() in animateViewIntoPosition()
305 - child.getMeasuredWidth()))) / 2; in animateViewIntoPosition()
321 view.getMeasuredWidth(), fromY + view.getMeasuredHeight()); in animateViewIntoPosition()
322 Rect to = new Rect(toX, toY, toX + view.getMeasuredWidth(), toY + view.getMeasuredHeight()); in animateViewIntoPosition()
382 final int width = view.getMeasuredWidth(); in animateView()
597 child.setPivotX(child.getMeasuredWidth() / 2); in onMeasure()
635 final int width = child.getMeasuredWidth(); in onLayout()
/packages/apps/Gallery/src/com/android/camera/
DEvenlySpacedLayout.java58 width += child.getMeasuredWidth(); in onMeasure()
62 width = Math.max(width, child.getMeasuredWidth()); in onMeasure()
77 usedWidth += child.getMeasuredWidth(); in layoutHorizontal()
88 int w = child.getMeasuredWidth(); in layoutHorizontal()
115 int w = child.getMeasuredWidth(); in layoutVertical()
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedView.java499 return getMeasuredWidth(); in getExpectedWidth()
637 final int childWidth = child.getMeasuredWidth(); in getPageScrolls()
981 final int halfScreenSize = getMeasuredWidth() / 2; in getScrollProgress()
994 totalDistance = v.getMeasuredWidth() + mPageSpacing; in getScrollProgress()
1047 int overScrollAmount = OverScroll.dampedScroll(amount, getMeasuredWidth()); in dampedOverScroll()
1171 final int pageWidth = getPageAt(mCurrentPage).getMeasuredWidth(); in onTouchEvent()
1383 int screenCenter = scaledScrollX + (getMeasuredWidth() / 2); in getPageNearestToCenterOfScreen()
1389 int childWidth = layout.getMeasuredWidth(); in getPageNearestToCenterOfScreen()
1428 int halfScreenSize = getMeasuredWidth() / 2; in snapToPageWithVelocity()
1553 return onOverscroll(-getMeasuredWidth()); in scrollLeft()
[all …]
DButtonDropTarget.java172 x = - getMeasuredWidth() - message.getMeasuredWidth() / 2; in onDragEnter()
174 x = getMeasuredWidth() / 2 + message.getMeasuredWidth() / 2; in onDragEnter()
326 int viewWidth = dragObject.dragView.getMeasuredWidth(); in getIconRect()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DAspectRatioFrameLayoutTest.java51 assertThat(mLayout.getMeasuredWidth()).isEqualTo(50); in measure_squareAspectRatio_squeezeWidth()
64 assertThat(mLayout.getMeasuredWidth()).isEqualTo(100); in measure_squareAspectRatio_stretchWidth()
77 assertThat(mLayout.getMeasuredWidth()).isEqualTo(100); in measure_squareAspectRatio_doNotStretch()
93 assertThat(mLayout.getMeasuredWidth()).isEqualTo(200); in measure_rectangleAspectRatio_stretch()
DRingProgressBarTest.java49 assertEquals(100, mProgressBar.getMeasuredWidth()); in testMeasurePortrait()
58 assertEquals(100, mProgressBar.getMeasuredWidth()); in testMeasureLandscape()
/packages/apps/Settings/src/com/android/settings/widget/
DSlidingTabLayout.java77 mTitleView.getMeasuredWidth() / titleCount, MeasureSpec.EXACTLY); in onMeasure()
89 final int indicatorWidth = mIndicatorView.getMeasuredWidth(); in onLayout()
90 final int totalWidth = getMeasuredWidth(); in onLayout()
94 mTitleView.layout(leftPadding, 0, mTitleView.getMeasuredWidth() + rightPadding, in onLayout()
DMatchParentShrinkingLinearLayout.java755 final int measuredWidth = child.getMeasuredWidth() + margin; in measureVertical()
892 final int measuredWidth = child.getMeasuredWidth() + margin; in measureVertical()
931 MeasureSpec.makeMeasureSpec(child.getMeasuredWidth(), in measureVertical()
959 int uniformMeasureSpec = MeasureSpec.makeMeasureSpec(getMeasuredWidth(), in forceUniformWidth()
1013 lp.width = child.getMeasuredWidth(); in forceUniformHeight()
1150 final int childWidth = child.getMeasuredWidth(); in layoutVertical()
1272 final int childWidth = child.getMeasuredWidth(); in layoutHorizontal()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DSlidingTabLayout.java77 mTitleView.getMeasuredWidth() / titleCount, MeasureSpec.EXACTLY); in onMeasure()
89 final int indicatorWidth = mIndicatorView.getMeasuredWidth(); in onLayout()
90 final int totalWidth = getMeasuredWidth(); in onLayout()
94 mTitleView.layout(leftPadding, 0, mTitleView.getMeasuredWidth() + rightPadding, in onLayout()
DMatchParentShrinkingLinearLayout.java755 final int measuredWidth = child.getMeasuredWidth() + margin; in measureVertical()
892 final int measuredWidth = child.getMeasuredWidth() + margin; in measureVertical()
931 MeasureSpec.makeMeasureSpec(child.getMeasuredWidth(), in measureVertical()
959 int uniformMeasureSpec = MeasureSpec.makeMeasureSpec(getMeasuredWidth(), in forceUniformWidth()
1013 lp.width = child.getMeasuredWidth(); in forceUniformHeight()
1150 final int childWidth = child.getMeasuredWidth(); in layoutVertical()
1272 final int childWidth = child.getMeasuredWidth(); in layoutHorizontal()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DMeasurableLinearLayout.java33 if (mDisposableView != null && getMeasuredWidth() - mFixedView.getMeasuredWidth() in onMeasure()
34 < mDisposableView.getMeasuredWidth()) { in onMeasure()
/packages/apps/Settings/src/com/android/settings/datausage/
DMeasurableLinearLayout.java33 if (mDisposableView != null && getMeasuredWidth() - mFixedView.getMeasuredWidth() in onMeasure()
34 < mDisposableView.getMeasuredWidth()) { in onMeasure()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollAdapterView.java1164 mScrapWidth = scrapView.getMeasuredWidth();
1261 maxSize = Math.max(maxSize, mOrientation == HORIZONTAL ? child.getMeasuredWidth() :
1281 child.layout(left + maxSize / 2 - child.getMeasuredWidth() / 2, top,
1282 left + maxSize / 2 + child.getMeasuredWidth() / 2,
1286 child.layout(left, top, left + child.getMeasuredWidth(),
1290 child.layout(left + maxSize - child.getMeasuredWidth(), top, left + maxSize,
1300 left + child.getMeasuredWidth(),
1304 child.layout(left, top, left + child.getMeasuredWidth(),
1309 left + getMeasuredWidth(), top + maxSize);
1312 left += child.getMeasuredWidth();
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchLandscapeLayout.java100 lapsListWidth = Math.max(mLapsListView.getMeasuredWidth(), halfWidth); in onMeasure()
131 lapsListWidth = mLapsListView.getMeasuredWidth(); in onLayout()
151 final int stopwatchWidth = mStopwatchView.getMeasuredWidth(); in onLayout()
DStopwatchLandscapeLayout.kt97 lapsListWidth = max(lapsListView.getMeasuredWidth(), halfWidth) in onMeasure()
128 lapsListWidth = lapsListView.getMeasuredWidth() in onLayout()
147 val stopwatchWidth: Int = mStopwatchView.getMeasuredWidth() in onLayout()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DTaskThumbnailView.java218 getMeasuredWidth() + currentDrawnInsets.right, in onDraw()
340 if (getMeasuredWidth() == 0) { in updateThumbnailMatrix()
354 ? getMeasuredWidth() / thumbnailHeight in updateThumbnailMatrix()
355 : getMeasuredWidth() / thumbnailWidth; in updateThumbnailMatrix()
392 mClippedInsets.right = widthWithInsets - mClippedInsets.left - getMeasuredWidth(); in updateThumbnailMatrix()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactListItemView.java471 mCheckBoxWidth = mCheckBox.getMeasuredWidth(); in onMeasure()
480 mDeleteImageButtonWidth = mDeleteImageButton.getMeasuredWidth(); in onMeasure()
574 statusWidth = (effectiveWidth - mPresenceIcon.getMeasuredWidth() in onMeasure()
762 workProfileIconWidth = mWorkProfileIcon.getMeasuredWidth(); in onLayout()
806 int iconWidth = mPresenceIcon.getMeasuredWidth(); in onLayout()
824 int iconWidth = mPresenceIcon.getMeasuredWidth(); in onLayout()
862 dataLeftBound += mLabelView.getMeasuredWidth() + mGapBetweenLabelAndData; in onLayout()
864 dataLeftBound = leftBound + mLabelView.getMeasuredWidth(); in onLayout()
865 mLabelView.layout(rightBound - mLabelView.getMeasuredWidth(), in onLayout()
869 rightBound -= (mLabelView.getMeasuredWidth() + mGapBetweenLabelAndData); in onLayout()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DArrowPopup.java181 mArrow.setX(getX() + getMeasuredWidth() - arrowCenterOffset - halfArrowWidth); in reorderAndShow()
235 int width = getMeasuredWidth(); in orientAboutObject()
345 setX(dragLayer.getWidth() / 2 - getMeasuredWidth() / 2); in onLayout()
363 mEndRect.set(0, 0, getMeasuredWidth(), getMeasuredHeight()); in animateOpen()
471 arrowCenterX = getMeasuredWidth() - arrowCenterX; in createOpenCloseOutlineProvider()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DSecondLevelIndicatorControlBar.java85 int iconWidth = firstIndicatorButton.getMeasuredWidth(); in getTouchViewIndex()
178 int iconWidth = mCloseIcon.getMeasuredWidth(); in onLayout()
191 mDivider.layout(offsetX, padding, (offsetX + mDivider.getMeasuredWidth()), in onLayout()
DRotateLayout.java71 w = mChild.getMeasuredWidth(); in onMeasure()
78 h = mChild.getMeasuredWidth(); in onMeasure()
/packages/apps/Messaging/src/com/android/messaging/ui/
DLineWrapLayout.java71 int childMeasuredWidth = currChild.getMeasuredWidth() + startMargin + endMargin; in onMeasure()
116 int childWidth = currChild.getMeasuredWidth(); in onLayout()
145 int childWidth = currChild.getMeasuredWidth(); in onLayout()
DMultiAttachmentLayout.java323 view.getMeasuredWidth(), in onMeasure()
340 final int cellWidth = getMeasuredWidth() / GRID_WIDTH; in onLayout()
352 tileLeft + view.getMeasuredWidth(), in onLayout()
367 tileLeft + mPlusTextView.getMeasuredWidth(), in onLayout()
/packages/apps/DeskClock/src/com/android/deskclock/widget/
DEllipsizeLayout.java101 totalLength += child.getMeasuredWidth() in onMeasure()
112 int maxWidth = ellipsizeView.getMeasuredWidth() - (totalLength - parentWidth); in onMeasure()

12345