Home
last modified time | relevance | path

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

12345

/packages/apps/Launcher2/src/com/android/launcher2/
DPagedView.java552 if (DEBUG) Log.d(TAG, "\tmeasure-child" + i + ": " + child.getMeasuredWidth() + ", " in onMeasure()
568 if (DEBUG) Log.d(TAG, "getRelativeChildOffset(): " + getMeasuredWidth() + ", " in onMeasure()
579 getChildAt(0).getMeasuredWidth()); in onMeasure()
623 int widthSpec = MeasureSpec.makeMeasureSpec(getMeasuredWidth(), MeasureSpec.EXACTLY); in setLayoutScale()
671 childLeft + child.getMeasuredWidth(), childTop + childHeight); in onLayout()
766 (getMeasuredWidth() - padding - getChildWidth(index)) / 2; in getRelativeChildOffset()
777 final int measuredWidth = child.getMeasuredWidth(); in getScaledMeasuredWidth()
788 final int screenWidth = getMeasuredWidth(); in getVisiblePages()
821 int halfScreenSize = getMeasuredWidth() / 2; in dispatchDraw()
966 return (x > (getMeasuredWidth() - getRelativeChildOffset(mCurrentPage) + mPageSpacing)); in hitsPreviousPage()
[all …]
DDragLayer.java355 r.set(left, top, left + v.getMeasuredWidth(), top + v.getMeasuredHeight()); in getViewRectRelativeToSelf()
486 coord[0] = lp.x + (int) (child.getMeasuredWidth() * (1 - childScale) / 2); in animateViewIntoPosition()
505 toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2; in animateViewIntoPosition()
511 toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2; in animateViewIntoPosition()
514 toX -= (Math.round(scale * (dragView.getMeasuredWidth() in animateViewIntoPosition()
515 - child.getMeasuredWidth()))) / 2; in animateViewIntoPosition()
538 view.getMeasuredWidth(), fromY + view.getMeasuredHeight()); in animateViewIntoPosition()
539 Rect to = new Rect(toX, toY, toX + view.getMeasuredWidth(), toY + view.getMeasuredHeight()); in animateViewIntoPosition()
599 final int width = view.getMeasuredWidth(); in animateView()
DCling.java125 return new int[]{getMeasuredWidth() / 2, getMeasuredHeight() - (mButtonBarHeight / 2)}; in getPunchThroughPositions()
127 return new int[]{getMeasuredWidth() - (mButtonBarHeight / 2), getMeasuredHeight() / 2}; in getPunchThroughPositions()
132 return new int[]{getMeasuredWidth() - cornerXOffset, cornerYOffset}; in getPunchThroughPositions()
201 Bitmap b = Bitmap.createBitmap(getMeasuredWidth(), getMeasuredHeight(), in dispatchDraw()
225 mBackground.setBounds(0, 0, getMeasuredWidth(), getMeasuredHeight()); in dispatchDraw()
DAppsCustomizePagedView.java392 int widthSpec = MeasureSpec.makeMeasureSpec(getMeasuredWidth(), MeasureSpec.AT_MOST); in onDataReady()
427 pos[0] += (getMeasuredWidth() - mWidgetSpacingLayout.getMeasuredWidth()) / 2 + in showAllAppsCling()
1010 int widthSpec = MeasureSpec.makeMeasureSpec(getMeasuredWidth(), MeasureSpec.AT_MOST); in setupPage()
1160 int widthSpec = MeasureSpec.makeMeasureSpec(getMeasuredWidth(), MeasureSpec.AT_MOST); in setupPage()
1388 translationX = maxScrollProgress * v.getMeasuredWidth(); in screenScrolled()
1391 translationX = minScrollProgress * v.getMeasuredWidth(); in screenScrolled()
1408 int pageWidth = v.getMeasuredWidth(); in screenScrolled()
DDeleteDropTarget.java208 Rect to = getIconRect(d.dragView.getMeasuredWidth(), d.dragView.getMeasuredHeight(), in animateToTrashAndCompleteDrop()
268 final Rect to = getIconRect(d.dragView.getMeasuredWidth(), d.dragView.getMeasuredHeight(), in createFlingToTrashAnimatorListener()
301 float x1o = ((1f - scale) * dragView.getMeasuredWidth()) / 2f; in createFlingToTrashAnimatorListener()
350 float xOffset = ((scale - 1f) * dragView.getMeasuredWidth()) / 2f;
DFolderIcon.java328 destView.getMeasuredWidth()); in performCreateAnimation()
342 finalView.getMeasuredWidth()); in performDestroyAnimation()
393 to.offset(center[0] - animateView.getMeasuredWidth() / 2, in onDrop()
458 computePreviewDrawingParams(d.getIntrinsicWidth(), getMeasuredWidth());
/packages/apps/Launcher3/src/com/android/launcher3/
DDragLayer.java377 (int) (mTmpXY[0] + scale * descendant.getMeasuredWidth()), in getDescendantRectRelativeToSelf()
429 r.set(left, top, left + v.getMeasuredWidth(), top + v.getMeasuredHeight()); in getViewRectRelativeToSelf()
582 coord[0] = lp.x + (int) (child.getMeasuredWidth() * (1 - childScale) / 2); in animateViewIntoPosition()
609 toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2; in animateViewIntoPosition()
616 toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2; in animateViewIntoPosition()
619 toX -= (Math.round(scale * (dragView.getMeasuredWidth() in animateViewIntoPosition()
620 - child.getMeasuredWidth()))) / 2; in animateViewIntoPosition()
643 view.getMeasuredWidth(), fromY + view.getMeasuredHeight()); in animateViewIntoPosition()
644 Rect to = new Rect(toX, toY, toX + view.getMeasuredWidth(), toY + view.getMeasuredHeight()); in animateViewIntoPosition()
703 final int width = view.getMeasuredWidth(); in animateView()
[all …]
DPagedView.java365 return (getMeasuredWidth() - getViewportWidth()) / 2; in getViewportOffsetX()
881 final int childWidth = child.getMeasuredWidth(); in onLayout()
886 childLeft + child.getMeasuredWidth(), childTop + childHeight); in onLayout()
1073 sTmpRectF.right = currPage.getMeasuredWidth(); in getVisiblePages()
1491 totalDistance = v.getMeasuredWidth() + mPageSpacing; in getScrollProgress()
1587 int dragX = (int) (mDragView.getLeft() + (mDragView.getMeasuredWidth() / 2) in getNearestHoverOverPageIndex()
1594 int pageX = (int) (page.getLeft() + page.getMeasuredWidth() / 2); in getNearestHoverOverPageIndex()
1763 final int pageWidth = getPageAt(mCurrentPage).getMeasuredWidth(); in onTouchEvent()
1978 int childWidth = layout.getMeasuredWidth(); in getPageNearestToCenterOfScreen()
DFolderIcon.java389 destView.getMeasuredWidth()); in performCreateAnimation()
403 finalView.getMeasuredWidth()); in performDestroyAnimation()
455 to.offset(center[0] - animateView.getMeasuredWidth() / 2, in onDrop()
519 computePreviewDrawingParams(d.getIntrinsicWidth(), getMeasuredWidth());
/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()
DFilmstripView.java301 public int getMeasuredWidth() { in getMeasuredWidth() method in FilmstripView.ViewItem
302 return mView.getMeasuredWidth(); in getMeasuredWidth()
403 return mLeftPosition + mView.getMeasuredWidth() / 2; in getCenterX()
471 mView.layout(left, top, left + mView.getMeasuredWidth(), in layoutAt()
515 l + mView.getMeasuredWidth() * scale, in layoutWithTranslationX()
586 + mView.getMeasuredWidth() + ',' + mView.getMeasuredHeight() in toString()
1140 mCenterX - mViewItems[BUFFER_CENTER].getMeasuredWidth() / 2); in layoutViewItems()
1167 - curr.getMeasuredWidth() - mViewGapInPixel; in layoutViewItems()
1180 prev.getLeftPosition() + prev.getMeasuredWidth() in layoutViewItems()
1353 final int offsetX = removedItem.getMeasuredWidth() + mViewGapInPixel; in animateItemRemoval()
[all …]
/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/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/PackageInstaller/src/com/android/packageinstaller/permission/ui/
DManualLayoutFrame.java56 mWidth = getMeasuredWidth(); in onMeasure()
68 final int contentLeft = (getMeasuredWidth() - content.getMeasuredWidth()) / 2; in onLayout()
70 final int contentRight = contentLeft + content.getMeasuredWidth(); in onLayout()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactListItemView.java459 mCheckBoxWidth = mCheckBox.getMeasuredWidth(); in onMeasure()
553 statusWidth = (effectiveWidth - mPresenceIcon.getMeasuredWidth() in onMeasure()
721 workProfileIconWidth = mWorkProfileIcon.getMeasuredWidth(); in onLayout()
765 int iconWidth = mPresenceIcon.getMeasuredWidth(); in onLayout()
783 int iconWidth = mPresenceIcon.getMeasuredWidth(); in onLayout()
821 dataLeftBound += mLabelView.getMeasuredWidth() + mGapBetweenLabelAndData; in onLayout()
823 dataLeftBound = leftBound + mLabelView.getMeasuredWidth(); in onLayout()
824 mLabelView.layout(rightBound - mLabelView.getMeasuredWidth(), in onLayout()
828 rightBound -= (mLabelView.getMeasuredWidth() + mGapBetweenLabelAndData); in onLayout()
839 mDataView.layout(rightBound - mDataView.getMeasuredWidth(), in onLayout()
/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/Settings/src/com/android/settings/widget/
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/Messaging/src/com/android/messaging/ui/
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()
DLineWrapLayout.java71 int childMeasuredWidth = currChild.getMeasuredWidth() + startMargin + endMargin; in onMeasure()
116 int childWidth = currChild.getMeasuredWidth(); in onLayout()
145 int childWidth = currChild.getMeasuredWidth(); in onLayout()
/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()
/packages/apps/Settings/src/com/android/settings/display/
DConversationMessageView.java105 Math.max(mContactIconView.getMeasuredWidth(), mContactIconView.getMeasuredHeight()), in onMeasure()
115 final int maxLeftoverSpace = horizontalSpace - mContactIconView.getMeasuredWidth() * 2 in onMeasure()
132 final int iconWidth = mContactIconView.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()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DSuggestionStripLayoutHelper.java119 mDividerWidth = dividerView.getMeasuredWidth(); in SuggestionStripLayoutHelper()
389 x += divider.getMeasuredWidth(); in layoutAndReturnStartIndexOfMoreSuggestions()
397 x += wordView.getMeasuredWidth(); in layoutAndReturnStartIndexOfMoreSuggestions()
464 final int infoWidth = debugInfoView.getMeasuredWidth(); in layoutDebugInfo()

12345