Home
last modified time | relevance | path

Searched refs:parentWidth (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
DCenteredLinearLayout.java39 int parentWidth = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
42 float value = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, parentWidth, in onMeasure()
44 if (mMaxWidth > 0 && parentWidth > mMaxWidth) { in onMeasure()
/packages/apps/Dialer/java/com/android/contacts/common/util/
DContactListViewUtils.java32 ListView listView, int parentWidth, int listSpaceWeight, int listViewWeight) { in addPaddingToView() argument
37 (int) (parentWidth * paddingPercent * TEXT_LEFT_PADDING_TO_CARD_PADDING_RATIO), in addPaddingToView()
39 (int) (parentWidth * paddingPercent * TEXT_LEFT_PADDING_TO_CARD_PADDING_RATIO), in addPaddingToView()
/packages/apps/DeskClock/src/com/android/deskclock/widget/
DEllipsizeLayout.kt80 val parentWidth = MeasureSpec.getSize(widthMeasureSpec) in onMeasure() constant
122 if (!outOfSpec && totalLength > parentWidth) { in onMeasure()
123 var maxWidth = ellipsizeView!!.measuredWidth - (totalLength - parentWidth) in onMeasure()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DDisplayAspectRatioLinearLayout.kt40 val parentWidth = this.measuredWidth in <lambda>() constant
46 parentWidth - paddingStart - paddingEnd - (childCount - 1) * itemSpacingPx in <lambda>()
56 val availableWidth = parentWidth - paddingStart - paddingEnd in <lambda>()
/packages/apps/Contacts/src/com/android/contacts/widget/
DInterpolatingLayout.java205 int parentWidth = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
228 int childWidth = params.resolveWidth(parentWidth); in onMeasure()
261 width += params.resolveLeftMargin(parentWidth) + params.resolveRightMargin(parentWidth); in onMeasure()
265 int remainder = parentWidth - width; in onMeasure()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/src/com/android/car/portraitlauncher/panel/
DTaskViewPanel.java473 int parentWidth = ((ViewGroup) getParent()).getWidth(); in onParentDimensionChanged() local
476 logIfDebuggable("onDimensionChanged: " + parentWidth + " " + parentHeight); in onParentDimensionChanged()
497 int parentWidth = ((ViewGroup) getParent()).getWidth(); in recalculateBounds() local
500 mOpenState.mBounds.set(0, mPanelTopMargin + mGripBar.getHeight(), parentWidth, in recalculateBounds()
502 mCloseState.mBounds.set(0, parentHeight, parentWidth, in recalculateBounds()
504 mFullScreenState.mBounds.set(0, 0, parentWidth, parentHeight); in recalculateBounds()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/view/
DDualPreviewViewPager.kt42 val parentWidth = in onMeasure() constant
55 val viewPagerHeight = parentWidth / (largeDisplayAspectRatio + smallDisplayAspectRatio) in onMeasure()
DDualDisplayAspectRatioLayout.kt57 val parentWidth = this.measuredWidth - totalMarginPixels in onMeasure() constant
68 val sizeMultiplier = parentWidth / (largeDisplayAR + smallDisplayAR) in onMeasure()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/orientation/
DSeascapePagedViewHandler.kt272 parentWidth: Int, in measureGroupedTaskViewThumbnailBounds()
292 getGroupedTaskViewSizes(dp, splitBoundsConfig, parentWidth, parentHeight) in measureGroupedTaskViewThumbnailBounds()
309 parentWidth: Int, in getGroupedTaskViewSizes()
324 val firstTaskViewSize = Point(parentWidth, (totalThumbnailHeight * taskPercent).toInt()) in getGroupedTaskViewSizes()
326 Point(parentWidth, totalThumbnailHeight - firstTaskViewSize.y - dividerBar) in getGroupedTaskViewSizes()
DPortraitPagedViewHandler.java535 int parentWidth, int parentHeight, SplitBounds splitBoundsConfig, in measureGroupedTaskViewThumbnailBounds() argument
543 getGroupedTaskViewSizes(dp, splitBoundsConfig, parentWidth, parentHeight); in measureGroupedTaskViewThumbnailBounds()
545 int scaledDividerBar = Math.round(parentWidth * dividerScale); in measureGroupedTaskViewThumbnailBounds()
593 int parentWidth, in getGroupedTaskViewSizes() argument
608 int scaledDividerBar = Math.round(parentWidth * dividerScale); in getGroupedTaskViewSizes()
609 firstTaskViewSize.x = Math.round(parentWidth * taskPercent); in getGroupedTaskViewSizes()
612 secondTaskViewSize.x = parentWidth - firstTaskViewSize.x - scaledDividerBar; in getGroupedTaskViewSizes()
620 firstTaskViewSize.x = parentWidth; in getGroupedTaskViewSizes()
623 secondTaskViewSize.x = parentWidth; in getGroupedTaskViewSizes()
DLandscapePagedViewHandler.kt448 parentWidth: Int, in measureGroupedTaskViewThumbnailBounds()
468 getGroupedTaskViewSizes(dp, splitBoundsConfig, parentWidth, parentHeight) in measureGroupedTaskViewThumbnailBounds()
486 parentWidth: Int, in getGroupedTaskViewSizes()
499 val firstTaskViewSize = Point(parentWidth, (totalThumbnailHeight * taskPercent).toInt()) in getGroupedTaskViewSizes()
501 Point(parentWidth, totalThumbnailHeight - firstTaskViewSize.y - dividerBar) in getGroupedTaskViewSizes()
DRecentsPagedOrientationHandler.kt183 parentWidth: Int, in setSecondary()
199 parentWidth: Int, in setSecondary()
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilities.java707 public static void rotateBounds(Rect inOutBounds, int parentWidth, int parentHeight, in rotateBounds() argument
716 inOutBounds.top = parentWidth - inOutBounds.right; in rotateBounds()
718 inOutBounds.bottom = parentWidth - origLeft; in rotateBounds()
721 inOutBounds.left = parentWidth - inOutBounds.right; in rotateBounds()
722 inOutBounds.right = parentWidth - origLeft; in rotateBounds()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageShow.java207 int parentWidth = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
209 setMeasuredDimension(parentWidth, parentHeight); in onMeasure()