Home
last modified time | relevance | path

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

123456

/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.java263 coord[0] = lp.x + (child.getMeasuredWidth() * (1 - childScale) / 2); in animateViewIntoPosition()
290 toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2; in animateViewIntoPosition()
297 toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2; in animateViewIntoPosition()
300 toX -= (Math.round(scale * (dragView.getMeasuredWidth() in animateViewIntoPosition()
301 - child.getMeasuredWidth()))) / 2; in animateViewIntoPosition()
317 view.getMeasuredWidth(), fromY + view.getMeasuredHeight()); in animateViewIntoPosition()
318 Rect to = new Rect(toX, toY, toX + view.getMeasuredWidth(), toY + view.getMeasuredHeight()); in animateViewIntoPosition()
378 final int width = view.getMeasuredWidth(); in animateView()
579 child.setPivotX(child.getMeasuredWidth() / 2); in onMeasure()
617 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/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/Launcher3/src/com/android/launcher3/
DPagedView.java498 return getMeasuredWidth(); in getExpectedWidth()
636 final int childWidth = child.getMeasuredWidth(); in getPageScrolls()
977 final int halfScreenSize = getMeasuredWidth() / 2; in getScrollProgress()
990 totalDistance = v.getMeasuredWidth() + mPageSpacing; in getScrollProgress()
1043 int overScrollAmount = OverScroll.dampedScroll(amount, getMeasuredWidth()); in dampedOverScroll()
1163 final int pageWidth = getPageAt(mCurrentPage).getMeasuredWidth(); in onTouchEvent()
1364 int screenCenter = scaledScrollX + (getMeasuredWidth() / 2); in getPageNearestToCenterOfScreen()
1370 int childWidth = layout.getMeasuredWidth(); in getPageNearestToCenterOfScreen()
1409 int halfScreenSize = getMeasuredWidth() / 2; in snapToPageWithVelocity()
1639 float visibleRight = visibleLeft + getMeasuredWidth(); in getVisibleChildrenRange()
[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/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/apps/Settings/src/com/android/settings/datausage/
DMeasurableLinearLayout.java33 if (mDisposableView != null && getMeasuredWidth() - mFixedView.getMeasuredWidth() in onMeasure()
34 < mDisposableView.getMeasuredWidth()) { in onMeasure()
/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/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/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DTaskThumbnailView.java208 getMeasuredWidth() + currentDrawnInsets.right, in onDraw()
303 if (getMeasuredWidth() == 0) { in updateThumbnailMatrix()
317 ? getMeasuredWidth() / thumbnailHeight in updateThumbnailMatrix()
318 : getMeasuredWidth() / thumbnailWidth; in updateThumbnailMatrix()
355 mClippedInsets.right = widthWithInsets - mClippedInsets.left - getMeasuredWidth(); in updateThumbnailMatrix()
/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()
/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()
468 arrowCenterX = getMeasuredWidth() - arrowCenterX; in createOpenCloseOutlineProvider()
475 mEndRect.set(0, 0, getMeasuredWidth(), getMeasuredHeight()); 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/UnifiedEmail/src/com/android/mail/ui/
DTwoPaneLayout.java281 final int width = getMeasuredWidth(); in onLayout()
311 if (parentWidth != getMeasuredWidth()) { in setupPaneWidths()
622 return computeConversationListWidth(getMeasuredWidth());
634 return computeConversationWidth(getMeasuredWidth());
707 final int width = getMeasuredWidth();
DAttachmentTileGrid.java192 final int width = getMeasuredWidth(); in onLayoutForTiles()
193 int childLeft = (isRtl) ? width - getChildAt(0).getMeasuredWidth() : 0; in onLayoutForTiles()
201 final int childWidth = child.getMeasuredWidth(); in onLayoutForTiles()
/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.java318 view.getMeasuredWidth(), in onMeasure()
335 final int cellWidth = getMeasuredWidth() / GRID_WIDTH; in onLayout()
347 tileLeft + view.getMeasuredWidth(), in onLayout()
362 tileLeft + mPlusTextView.getMeasuredWidth(), in onLayout()

123456