Home
last modified time | relevance | path

Searched refs:newHeight (Results 1 – 25 of 25) 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/shortcuts/
DShortcutsItemView.java186 final int newHeight = getResources().getDimensionPixelSize(R.dimen.bg_popup_item_height); in hideShortcuts() local
187 mHiddenShortcutsHeight = (newHeight - oldHeight) * mShortcutsLayout.getChildCount(); in hideShortcuts()
231 final int newHeight = getResources().getDimensionPixelSize(R.dimen.bg_popup_item_height); in showAllShortcuts() local
234 view.getLayoutParams().height = newHeight; in showAllShortcuts()
266 int heightDiff = newHeight - oldHeight; in showAllShortcuts()
/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.java656 int newHeight = bitmap.getHeight(); in createScreenshot() local
657 float smallestWidth = (float)Math.min(newWidth, newHeight); in createScreenshot()
661 newHeight = bitmap.getHeight() - statusBarHeight - navBarHeight; in createScreenshot()
666 newHeight = bitmap.getHeight() - statusBarHeight - navBarHeightLandscape; in createScreenshot()
668 newHeight = bitmap.getHeight() - statusBarHeight; in createScreenshot()
672 bitmap = Bitmap.createBitmap(bitmap, newLeft, newTop, newWidth, newHeight); in createScreenshot()
/packages/apps/Launcher3/src/com/android/launcher3/
DAppWidgetResizeFrame.java397 int newHeight = sTmpRect.height(); in snapToWidget() local
410 if (newY + newHeight > mDragLayer.getHeight()) { in snapToWidget()
412 mBottomTouchRegionAdjustment = -(newY + newHeight - mDragLayer.getHeight()); in snapToWidget()
420 lp.height = newHeight; in snapToWidget()
430 newHeight); in snapToWidget()
DCellLayout.java811 int newHeight = childHeightSize; in onMeasure() local
814 newHeight = mFixedHeight; in onMeasure()
828 MeasureSpec.makeMeasureSpec(newHeight, MeasureSpec.EXACTLY)); in onMeasure()
/packages/services/Telecomm/src/com/android/server/telecom/
DContactsAsyncHelper.java170 int newHeight = (int) (orgHeight / ratio); in getPhotoIconWhenAppropriate() local
173 if (newWidth <= 0 || newHeight <= 0) { in getPhotoIconWhenAppropriate()
180 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/apps/Dialer/java/com/android/incallui/
DContactsAsyncHelper.java253 int newHeight = (int) (orgHeight / ratio); in getPhotoIconWhenAppropriate() local
256 if (newWidth <= 0 || newHeight <= 0) { in getPhotoIconWhenAppropriate()
263 return Bitmap.createScaledBitmap(orgBitmap, newWidth, newHeight, true); in getPhotoIconWhenAppropriate()
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DNotificationFooterLayout.java203 final int newHeight = getResources().getDimensionPixelSize( in removeViewFromIconRow() local
205 … Animator collapseFooter = popup.reduceNotificationViewHeight(getHeight() - newHeight, in removeViewFromIconRow()
213 getLayoutParams().height = newHeight; in removeViewFromIconRow()
/packages/apps/Messaging/src/com/android/messaging/util/
DImageUtils.java826 final int newHeight) { in scaleCenterCrop() argument
834 final float yScale = (float) newHeight / sourceHeight; in scaleCenterCrop()
844 final float top = (newHeight - scaledHeight) / 2; in scaleCenterCrop()
852 final Bitmap dest = Bitmap.createBitmap(newWidth, newHeight, source.getConfig()); in scaleCenterCrop()
/packages/apps/Dialer/java/com/android/dialer/animation/
DAnimUtils.java219 public static void changeDimensions(final View view, final int newWidth, final int newHeight) { in changeDimensions() argument
225 final int deltaHeight = newHeight - oldHeight; in changeDimensions()
/packages/apps/PhoneCommon/src/com/android/phone/common/animation/
DAnimUtils.java199 public static void changeDimensions(final View view, final int newWidth, final int newHeight) { in changeDimensions() argument
205 final int deltaHeight = newHeight - oldHeight; in changeDimensions()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DUtils.java674 int newHeight = SCALED_SCREENSHOT_MAX_HEIGHT_WIDTH; in getReducedSizeBitmap() local
678 scaleY = newHeight / originalHeight; in getReducedSizeBitmap()
681 newHeight = (int)Math.round(originalHeight * scale); in getReducedSizeBitmap()
682 return Bitmap.createScaledBitmap(originalBitmap, newWidth, newHeight, true); in getReducedSizeBitmap()
/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/Camera2/src/com/android/camera/
DPhotoModule.java830 int newHeight; in cropJpegDataToAspectRatio() local
833 newHeight = (int) (originalWidth / targetAspectRatio); in cropJpegDataToAspectRatio()
837 newHeight = originalHeight; in cropJpegDataToAspectRatio()
840 int yOffset = (originalHeight - newHeight)/2; in cropJpegDataToAspectRatio()
846 Bitmap resized = Bitmap.createBitmap(original,xOffset,yOffset,newWidth, newHeight); in cropJpegDataToAspectRatio()
848 exif.setTagValue(ExifInterface.TAG_PIXEL_Y_DIMENSION, new Integer(newHeight)); in cropJpegDataToAspectRatio()
/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/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/UnifiedEmail/src/com/android/mail/browse/
DConversationFooterView.java31 void onConversationFooterHeightChange(int newHeight); in onConversationFooterHeightChange() argument
DConversationViewHeader.java64 void onConversationViewHeaderHeightChange(int newHeight); in onConversationViewHeaderHeightChange() argument
/packages/apps/Car/Media/src/com/android/car/media/
DMediaPlaybackFragment.java789 int newHeight = height > mAlbumArtHeight ? mAlbumArtHeight : height; in cropAlbumArt() local
791 return Bitmap.createBitmap(icon, startX, startY, newWidth, newHeight); in cropAlbumArt()