Home
last modified time | relevance | path

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

/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DTwoPaneLayout.java309 private void setupPaneWidths(int parentWidth) { in setupPaneWidths() argument
311 if (parentWidth != getMeasuredWidth()) { in setupPaneWidths()
312 final int convWidth = computeConversationWidth(parentWidth); in setupPaneWidths()
314 setPaneWidth(mListView, computeConversationListWidth(parentWidth)); in setupPaneWidths()
628 private int computeConversationListWidth(int parentWidth) {
629 final int availWidth = parentWidth - mDrawerWidthMini;
641 private int computeConversationWidth(int parentWidth) {
642 return mShouldShowPreviewPanel ? parentWidth - computeConversationListWidth(parentWidth)
643 - mDrawerWidthMini : parentWidth;
/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/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.java71 final int parentWidth = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
111 if (!outOfSpec && totalLength > parentWidth) { in onMeasure()
112 int maxWidth = ellipsizeView.getMeasuredWidth() - (totalLength - parentWidth); in onMeasure()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragLayer.java598 final int parentWidth = right - left; in onLayout() local
650 childLeft = (parentWidth - width) / 2 + in onLayout()
654 childLeft = parentWidth - width / 2 - height / 2 - lp.bottomMargin; in onLayout()
663 childLeft = (parentWidth - width) / 2 + in onLayout()
667 childLeft = parentWidth - width - lp.rightMargin; in onLayout()
/packages/apps/PermissionController/src/android/support/wearable/view/
DWearableListView.java1152 final int parentWidth = getWidth(); in recycleViewsOutOfBounds() local
1161 if (v.hasFocus() || (v.getRight() >= 0 && v.getLeft() <= parentWidth && in recycleViewsOutOfBounds()
/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()