Home
last modified time | relevance | path

Searched refs:maxHeight (Results 1 – 18 of 18) sorted by relevance

/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/
DTargetDrawable.java129 int maxHeight = 0; in resizeDrawables() local
135 maxHeight = Math.max(maxHeight, childDrawable.getIntrinsicHeight()); in resizeDrawables()
139 + maxWidth + "x" + maxHeight); in resizeDrawables()
140 d.setBounds(0, 0, maxWidth, maxHeight); in resizeDrawables()
146 + maxWidth + "x" + maxHeight); in resizeDrawables()
147 childDrawable.setBounds(0, 0, maxWidth, maxHeight); in resizeDrawables()
DGlowPadView.java621 int maxHeight = mHandleDrawable.getHeight(); in internalSetTargetResources() local
626 maxHeight = Math.max(maxHeight, target.getHeight()); in internalSetTargetResources()
628 if (mMaxTargetWidth != maxWidth || mMaxTargetHeight != maxHeight) { in internalSetTargetResources()
630 mMaxTargetHeight = maxHeight; in internalSetTargetResources()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DCameraManager.java931 final int maxWidth, final int maxHeight) { in getScaleFactorForMaxAllowedSize() argument
932 if (maxWidth <= 0 || maxHeight <= 0) { in getScaleFactorForMaxAllowedSize()
939 if (width <= maxWidth && height <= maxHeight) { in getScaleFactorForMaxAllowedSize()
944 return Math.min(maxWidth * 1.0f / width, maxHeight * 1.0f / height); in getScaleFactorForMaxAllowedSize()
986 final int maxHeight = mmsConfig.getMaxImageHeight(); in chooseBestPictureSize() local
990 maxWidth, maxHeight); in chooseBestPictureSize()
999 final int maxPixels = maxWidth * maxHeight; in chooseBestPictureSize()
1002 Collections.sort(sizes, new SizeComparator(maxWidth, maxHeight, aspectRatio, maxPixels)); in chooseBestPictureSize()
1049 public SizeComparator(final int maxWidth, final int maxHeight, in SizeComparator() argument
1052 mMaxHeight = maxHeight; in SizeComparator()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DSharePopup.java172 float maxHeight = mPreviewFrame.getHeight() - vPaddingRootView; in setOrientation() local
176 maxWidth = maxHeight; in setOrientation()
177 maxHeight = temp; in setOrientation()
179 float actualAspect = maxWidth / maxHeight; in setOrientation()
191 params.width = Math.round(maxHeight * desiredAspect); in setOrientation()
192 params.height = Math.round(maxHeight); in setOrientation()
/packages/apps/Messaging/src/com/android/messaging/ui/
DAttachmentPreviewFactory.java171 int maxHeight = imageView.getMaxHeight(); in createImagePreview() local
174 maxWidth = maxHeight = resources.getDimensionPixelSize( in createImagePreview()
180 if (maxHeight <= 0 || maxHeight == Integer.MAX_VALUE) { in createImagePreview()
181 maxHeight = ImageRequest.UNSPECIFIED_SIZE; in createImagePreview()
185 maxWidth, maxHeight)); in createImagePreview()
DVideoThumbnailView.java161 final int maxHeight = typedAttributes.getDimensionPixelSize( in VideoThumbnailView() local
163 if (maxHeight != ImageRequest.UNSPECIFIED_SIZE) { in VideoThumbnailView()
164 mThumbnailImage.setMaxHeight(maxHeight); in VideoThumbnailView()
DMultiAttachmentLayout.java298 final int maxHeight = getResources().getDimensionPixelSize( in onMeasure() local
301 final int height = maxHeight; in onMeasure()
/packages/apps/Launcher2/src/com/android/launcher2/
DWidgetPreviewLoader.java460 int maxHeight = maxHeightForWidgetPreview(cellSpans[1]); in generateWidgetPreview() local
462 maxHeight, preview, null); in generateWidgetPreview()
620 ResolveInfo info, int maxWidth, int maxHeight, Bitmap preview) { in generateShortcutPreview() argument
625 tempBitmap.getHeight() != maxHeight) { in generateShortcutPreview()
626 tempBitmap = Bitmap.createBitmap(maxWidth, maxHeight, Config.ARGB_8888); in generateShortcutPreview()
649 (preview.getWidth() != maxWidth || preview.getHeight() != maxHeight)) { in generateShortcutPreview()
652 preview = Bitmap.createBitmap(maxWidth, maxHeight, Config.ARGB_8888); in generateShortcutPreview()
DAppsCustomizePagedView.java724 int maxWidth, maxHeight; in beginDraggingWidget() local
726 maxHeight = Math.min((int) (previewDrawable.getIntrinsicHeight() * minScale), size[1]); in beginDraggingWidget()
731 spanY, maxWidth, maxHeight, null, previewSizeBeforeScale); in beginDraggingWidget()
/packages/apps/Browser/src/com/android/browser/
DWallpaperHandler.java108 int maxHeight = wm.getDesiredMinimumHeight(); in run() local
111 maxHeight *= 1.25; in run()
116 while (bmWidth > maxWidth || bmHeight > maxHeight) { in run()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPopupList.java144 int maxHeight = mPopupWindow.getMaxAvailableHeight(mAnchorView) - p.top - p.bottom; in updatePopupLayoutParams() local
147 MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST)); in updatePopupLayoutParams()
149 mPopupHeight = Math.min(maxHeight, content.getMeasuredHeight() + p.left + p.right); in updatePopupLayoutParams()
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
DHtmlTree.java328 int maxHeight = 0; in getTreeHeight() local
334 if (currentHeight > maxHeight) { in getTreeHeight()
335 maxHeight = currentHeight; in getTreeHeight()
347 return maxHeight; in getTreeHeight()
/packages/apps/Launcher3/src/com/android/launcher3/
DDeviceProfile.java183 int maxHeight = (availableHeightPx - workspacePadding.top - workspacePadding.bottom); in updateAvailableDimensions() local
184 if (usedHeight > maxHeight) { in updateAvailableDimensions()
185 scale = maxHeight / usedHeight; in updateAvailableDimensions()
DWidgetPreviewLoader.java448 Launcher launcher, ResolveInfo info, int maxWidth, int maxHeight, Bitmap preview) { in generateShortcutPreview() argument
451 preview = Bitmap.createBitmap(maxWidth, maxHeight, Config.ARGB_8888); in generateShortcutPreview()
453 } else if (preview.getWidth() != maxWidth || preview.getHeight() != maxHeight) { in generateShortcutPreview()
DPendingAppWidgetHostView.java88 int maxHeight) { in updateAppWidgetSize() argument
DCellLayout.java866 int maxHeight = mShortcutsAndWidgets.getMeasuredHeight(); in onMeasure() local
868 setMeasuredDimension(maxWidth, maxHeight); in onMeasure()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DMasterImage.java560 float maxHeight = mOriginalBounds.height() / (float) h; in setImageShowSize() local
561 mMaxScaleFactor = Math.max(3.f, Math.max(maxWidth, maxHeight)); in setImageShowSize()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationMessageView.java185 final int maxHeight = Math.max(mContactIconView.getMeasuredHeight(), in onMeasure() local
187 setMeasuredDimension(horizontalSpace, maxHeight + getPaddingBottom() + getPaddingTop()); in onMeasure()