Home
last modified time | relevance | path

Searched refs:newHeight (Results 1 – 23 of 23) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterDownsample.java69 int newHeight = orig_h * p / 100; in apply() local
72 if (newWidth <= 0 || newHeight <= 0 || newWidth >= w || newHeight >= h) { in apply()
75 Bitmap ret = Bitmap.createScaledBitmap(bitmap, newWidth, newHeight, true); in apply()
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedViewCellLayout.java194 int newHeight = heightSpecSize; in onMeasure() local
198 newHeight = getPaddingTop() + getPaddingBottom() + (mCellCountY * mCellHeight) + in onMeasure()
200 setMeasuredDimension(newWidth, newHeight); in onMeasure()
210 MeasureSpec.makeMeasureSpec(newHeight - getPaddingTop() - in onMeasure()
215 setMeasuredDimension(newWidth, newHeight); in onMeasure()
DAppWidgetResizeFrame.java401 int newHeight = mWidgetView.getHeight() + 2 * mBackgroundPadding - mWidgetPaddingTop - in snapToWidget() local
420 if (newY + newHeight > mDragLayer.getHeight()) { in snapToWidget()
422 mBottomTouchRegionAdjustment = -(newY + newHeight - mDragLayer.getHeight()); in snapToWidget()
429 lp.height = newHeight; in snapToWidget()
440 newHeight); in snapToWidget()
DCellLayout.java856 int newHeight = childHeightSize; in onMeasure() local
859 newHeight = mFixedHeight; in onMeasure()
887 int childheightMeasureSpec = MeasureSpec.makeMeasureSpec(newHeight, in onMeasure()
/packages/apps/Launcher2/src/com/android/launcher2/
DPagedViewCellLayout.java200 int newHeight = heightSpecSize; in onMeasure() local
204 newHeight = getPaddingTop() + getPaddingBottom() + (mCellCountY * mCellHeight) + in onMeasure()
206 setMeasuredDimension(newWidth, newHeight); in onMeasure()
216 MeasureSpec.makeMeasureSpec(newHeight - getPaddingTop() - in onMeasure()
221 setMeasuredDimension(newWidth, newHeight); in onMeasure()
DAppWidgetResizeFrame.java409 int newHeight = mWidgetView.getHeight() + 2 * mBackgroundPadding - mWidgetPaddingTop - in snapToWidget() local
424 if (newY + newHeight > mDragLayer.getHeight()) { in snapToWidget()
426 mBottomTouchRegionAdjustment = -(newY + newHeight - mDragLayer.getHeight()); in snapToWidget()
433 lp.height = newHeight; in snapToWidget()
444 newHeight); in snapToWidget()
DCellLayout.java1006 int newHeight = heightSpecSize; in onMeasure() local
1010 newHeight = getPaddingTop() + getPaddingBottom() + (mCountY * mCellHeight) + in onMeasure()
1012 setMeasuredDimension(newWidth, newHeight); in onMeasure()
1020 int childheightMeasureSpec = MeasureSpec.makeMeasureSpec(newHeight - getPaddingTop() - in onMeasure()
1024 setMeasuredDimension(newWidth, newHeight); in onMeasure()
/packages/apps/Nfc/src/com/android/nfc/beam/
DSendUi.java642 int newHeight = bitmap.getHeight(); in createScreenshot() local
643 float smallestWidth = (float)Math.min(newWidth, newHeight); in createScreenshot()
647 newHeight = bitmap.getHeight() - statusBarHeight - navBarHeight; in createScreenshot()
652 newHeight = bitmap.getHeight() - statusBarHeight - navBarHeightLandscape; in createScreenshot()
654 newHeight = bitmap.getHeight() - statusBarHeight; in createScreenshot()
658 bitmap = Bitmap.createBitmap(bitmap, newLeft, newTop, newWidth, newHeight); in createScreenshot()
/packages/apps/InCallUI/src/com/android/incallui/
DContactsAsyncHelper.java182 int newHeight = (int) (orgHeight / ratio); in getPhotoIconWhenAppropriate() local
185 if (newWidth <= 0 || newHeight <= 0) { in getPhotoIconWhenAppropriate()
192 return Bitmap.createScaledBitmap(orgBitmap, newWidth, newHeight, true); in getPhotoIconWhenAppropriate()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoProcessor.java226 final int newHeight = (int) (cropHeight * scaleFactor); in getNormalizedBitmap() local
227 if (newWidth <= 0 || newHeight <= 0) { in getNormalizedBitmap()
230 final Bitmap scaledBitmap = Bitmap.createBitmap(newWidth, newHeight, in getNormalizedBitmap()
/packages/services/Telecomm/src/com/android/server/telecom/
DContactsAsyncHelper.java182 int newHeight = (int) (orgHeight / ratio); in getPhotoIconWhenAppropriate() local
185 if (newWidth <= 0 || newHeight <= 0) { in getPhotoIconWhenAppropriate()
192 return Bitmap.createScaledBitmap(orgBitmap, newWidth, newHeight, true); in getPhotoIconWhenAppropriate()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DUtils.java669 int newHeight = SCALED_SCREENSHOT_MAX_HEIGHT_WIDTH; in getReducedSizeBitmap() local
673 scaleY = newHeight / originalHeight; in getReducedSizeBitmap()
676 newHeight = (int)Math.round(originalHeight * scale); in getReducedSizeBitmap()
677 return Bitmap.createScaledBitmap(originalBitmap, newWidth, newHeight, true); in getReducedSizeBitmap()
/packages/apps/Camera2/src/com/android/camera/
DPhotoModule.java989 int newHeight;
992 newHeight = (int) (originalWidth / targetAspectRatio);
996 newHeight = originalHeight;
999 int yOffset = (originalHeight - newHeight)/2;
1005 Bitmap resized = Bitmap.createBitmap(original,xOffset,yOffset,newWidth, newHeight);
1007 exif.setTagValue(ExifInterface.TAG_PIXEL_Y_DIMENSION, new Integer(newHeight));
/packages/apps/Settings/src/com/android/settings/dashboard/
DDashboardContainerView.java80 final int newHeight = (int) ((mNumRows * cellHeight) + ((mNumRows - 1) * mCellGapY)) + in onMeasure() local
83 setMeasuredDimension(width, newHeight); in onMeasure()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGeometryMathUtils.java204 public static float scale(float oldWidth, float oldHeight, float newWidth, float newHeight) { in scale() argument
205 if (oldHeight == 0 || oldWidth == 0 || (oldWidth == newWidth && oldHeight == newHeight)) { in scale()
208 return Math.min(newWidth / oldWidth, newHeight / oldHeight); in scale()
/packages/apps/PhoneCommon/src/com/android/phone/common/animation/
DAnimUtils.java195 public static void changeDimensions(final View view, final int newWidth, final int newHeight) { in changeDimensions() argument
201 final int deltaHeight = newHeight - oldHeight; in changeDimensions()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DConversationViewFragment.java969 public void onConversationViewHeaderHeightChange(int newHeight) { in onConversationViewHeaderHeightChange() argument
970 final int h = mWebView.screenPxToWebPx(newHeight); in onConversationViewHeaderHeightChange()
980 public void onConversationFooterHeightChange(int newHeight) { in onConversationFooterHeightChange() argument
981 final int h = mWebView.screenPxToWebPx(newHeight); in onConversationFooterHeightChange()
DSecureConversationViewFragment.java227 public void onConversationViewHeaderHeightChange(int newHeight) { in onConversationViewHeaderHeightChange() argument
DAbstractConversationViewFragment.java223 public abstract void onConversationViewHeaderHeightChange(int newHeight); in onConversationViewHeaderHeightChange() argument
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DBoundedRect.java304 float newHeight = Math.abs(fixed_y - p[1]); in fixedAspectResizeInner() local
305 newWidth = Math.max(newWidth, aspRatio * newHeight); in fixedAspectResizeInner()
/packages/apps/Dialer/src/com/android/dialer/widget/
DOverlappingPaneLayout.java531 final int newHeight = heightAvailable - verticalMargin; in onMeasure()
533 newHeight, MeasureSpec.EXACTLY); in onMeasure()
534 if (measuredHeight != newHeight) { in onMeasure()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationFooterView.java31 void onConversationFooterHeightChange(int newHeight); in onConversationFooterHeightChange() argument
DConversationViewHeader.java64 void onConversationViewHeaderHeightChange(int newHeight); in onConversationViewHeaderHeightChange() argument