Home
last modified time | relevance | path

Searched refs:getMeasuredWidth (Results 1 – 25 of 132) 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/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()
/packages/apps/Settings/src/com/android/settings/datausage/
DMeasurableLinearLayout.java34 if (mDisposableView != null && getMeasuredWidth() - mFixedView.getMeasuredWidth() in onMeasure()
35 < mDisposableView.getMeasuredWidth()) { in onMeasure()
/packages/apps/Launcher3/src/com/android/launcher3/
DDropTargetBar.java203 availableWidth -= firstButton.getMeasuredWidth() + dp.dropTargetGapPx; in onMeasure()
254 button.layout(barCenter - (button.getMeasuredWidth() / 2), 0, in onLayout()
255 barCenter + (button.getMeasuredWidth() / 2), button.getMeasuredHeight()); in onLayout()
262 leftButton.layout(barCenter - leftButton.getMeasuredWidth() - (buttonGap / 2), 0, in onLayout()
265 barCenter + (buttonGap / 2) + rightButton.getMeasuredWidth(), in onLayout()
270 int leftButtonWidth = leftButton.getMeasuredWidth(); in onLayout()
271 int rightButtonWidth = rightButton.getMeasuredWidth(); in onLayout()
DButtonDropTarget.java159 x = -getMeasuredWidth() - message.getMeasuredWidth() / 2; in onDragEnter()
161 x = getMeasuredWidth() / 2 + message.getMeasuredWidth() / 2; in onDragEnter()
247 final float scale = (float) to.width() / dragView.getMeasuredWidth(); in onDrop()
285 int viewWidth = dragObject.dragView.getMeasuredWidth(); in getIconRect()
452 int availableWidth = getMeasuredWidth(); in resizeTextToFit()
/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()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
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/Settings/tests/unit/src/com/android/settings/widget/
DRingProgressBarTest.java50 assertEquals(100, mProgressBar.getMeasuredWidth()); in testMeasurePortrait()
59 assertEquals(100, mProgressBar.getMeasuredWidth()); in testMeasureLandscape()
/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()
DZoomControlBar.java76 mIconWidth = mZoomIn.getMeasuredWidth(); in onSizeChanged()
148 int sliderWidth = mZoomSlider.getMeasuredWidth(); in onLayout()
/packages/apps/Camera2/src/com/android/camera/ui/
DRotateLayout.java76 w = mChild.getMeasuredWidth(); in onMeasure()
83 h = mChild.getMeasuredWidth(); in onMeasure()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DLockScreenPreviewer.java84 int cardWidth = previewContainer.getMeasuredWidth(); in LockScreenPreviewer()
98 contentView.setPivotX(directionLTR ? 0f : contentView.getMeasuredWidth()); in LockScreenPreviewer()
104 contentView.getMeasuredWidth(), in LockScreenPreviewer()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragLayer.java255 coord[0] = lp.x + (child.getMeasuredWidth() * (1 - childScale) / 2); in animateViewIntoPosition()
281 / (dragView.getMeasuredWidth() - dragView.getBlurSizeOutline())); in animateViewIntoPosition()
285 float scaleShiftX = dragView.getMeasuredWidth() * (1 - toScale) / 2; in animateViewIntoPosition()
305 Rect to = new Rect(toX, toY, toX + view.getMeasuredWidth(), toY + view.getMeasuredHeight()); in animateViewIntoPosition()
489 float transX = getMeasuredWidth() * progress; in onOverlayScrollChanged()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DBummerView.java47 final float framew = parent.getMeasuredWidth();
49 final float textw = getMeasuredWidth();
/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/Launcher3/src/com/android/launcher3/popup/
DArrowPopup.java342 return getMeasuredWidth() - mArrowOffsetHorizontal - mArrowWidth; in getArrowLeft()
372 mOutlineRadius, getMeasuredWidth(), getMeasuredHeight(), in updateArrowColor()
429 int width = getMeasuredWidth() + getPaddingLeft() + getPaddingRight(); in orientAboutObject()
538 setX(dragLayer.getWidth() / 2 - getMeasuredWidth() / 2); in onLayout()
645 setPivotX(mIsLeftAligned ? 0f : getMeasuredWidth()); in setPivotForOpenCloseAnimation()
648 setPivotX(mIsLeftAligned ? arrowCenter : getMeasuredWidth() - arrowCenter); in setPivotForOpenCloseAnimation()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/
DUdfpsEnrollEnrollingView.java115 new LinearLayout.LayoutParams(mHeaderView.getMeasuredWidth(), in setSecondaryButtonBackground()
233 firstPosition[0] + view1.getMeasuredWidth(), in hasOverlap()
236 secondPosition[0] + view2.getMeasuredWidth(), in hasOverlap()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DDefaultPagedViewHandler.java71 return view.getMeasuredWidth(); in getMeasuredSize()
118 final int childWidth = child.getMeasuredWidth(); in getChildBounds()
/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/src/com/android/launcher3/widget/
DWidgetsBottomSheet.java83 if (getMeasuredWidth() == 0) return false; in updateMaxSpansPerRow()
85 @Px int maxHorizontalSpan = mContent.getMeasuredWidth() - (2 * mContentHorizontalMargin); in updateMaxSpansPerRow()
101 int contentWidth = mContent.getMeasuredWidth(); in onLayout()
/packages/apps/Contacts/src/com/android/contacts/widget/
DInterpolatingLayout.java257 width += child.getMeasuredWidth(); in onMeasure()
270 width += fillChild.getMeasuredWidth(); in onMeasure()
311 Gravity.apply(gravity, child.getMeasuredWidth(), child.getMeasuredHeight(), in onLayout()

123456