Searched refs:newHeight (Results 1 - 25 of 25) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/anim/
H A DPillHeightRevealOutlineProvider.java31 public PillHeightRevealOutlineProvider(Rect pillRect, float radius, int newHeight) { argument
34 mNewHeight = newHeight;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DImageFilterDownsample.java69 int newHeight = orig_h * p / 100;
72 if (newWidth <= 0 || newHeight <= 0 || newWidth >= w || newHeight >= h) {
75 Bitmap ret = Bitmap.createScaledBitmap(bitmap, newWidth, newHeight, true);
/packages/services/Telecomm/src/com/android/server/telecom/
H A DContactsAsyncHelper.java170 int newHeight = (int) (orgHeight / ratio);
173 if (newWidth <= 0 || newHeight <= 0) {
180 return Bitmap.createScaledBitmap(orgBitmap, newWidth, newHeight, true);
/packages/apps/Launcher3/src/com/android/launcher3/notification/
H A DNotificationItemView.java90 final int newHeight = getHeight() - heightToRemove;
92 getBackgroundRadius(), newHeight).createRevealAnimator(this, true /* isReversed */);
/packages/apps/Dialer/java/com/android/incallui/
H A DContactsAsyncHelper.java253 int newHeight = (int) (orgHeight / ratio);
256 if (newWidth <= 0 || newHeight <= 0) {
263 return Bitmap.createScaledBitmap(orgBitmap, newWidth, newHeight, true);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DPhotoProcessor.java226 final int newHeight = (int) (cropHeight * scaleFactor);
227 if (newWidth <= 0 || newHeight <= 0) {
230 final Bitmap scaledBitmap = Bitmap.createBitmap(newWidth, newHeight,
/packages/apps/Launcher2/src/com/android/launcher2/
H A DPagedViewCellLayout.java200 int newHeight = heightSpecSize;
204 newHeight = getPaddingTop() + getPaddingBottom() + (mCellCountY * mCellHeight) +
206 setMeasuredDimension(newWidth, newHeight);
216 MeasureSpec.makeMeasureSpec(newHeight - getPaddingTop() -
221 setMeasuredDimension(newWidth, newHeight);
H A DAppWidgetResizeFrame.java409 int newHeight = mWidgetView.getHeight() + 2 * mBackgroundPadding - mWidgetPaddingTop -
424 if (newY + newHeight > mDragLayer.getHeight()) {
426 mBottomTouchRegionAdjustment = -(newY + newHeight - mDragLayer.getHeight());
433 lp.height = newHeight;
444 newHeight);
H A DCellLayout.java1006 int newHeight = heightSpecSize;
1010 newHeight = getPaddingTop() + getPaddingBottom() + (mCountY * mCellHeight) +
1012 setMeasuredDimension(newWidth, newHeight);
1020 int childheightMeasureSpec = MeasureSpec.makeMeasureSpec(newHeight - getPaddingTop() -
1024 setMeasuredDimension(newWidth, newHeight);
/packages/apps/Dialer/java/com/android/dialer/animation/
H A DAnimUtils.java217 * @param newHeight The new height of the view.
219 public static void changeDimensions(final View view, final int newWidth, final int newHeight) { argument
225 final int deltaHeight = newHeight - oldHeight;
/packages/apps/PhoneCommon/src/com/android/phone/common/animation/
H A DAnimUtils.java197 * @param newHeight The new height of the view.
199 public static void changeDimensions(final View view, final int newWidth, final int newHeight) { argument
205 final int deltaHeight = newHeight - oldHeight;
/packages/apps/Launcher3/src/com/android/launcher3/
H A DAppWidgetResizeFrame.java399 int newHeight = sTmpRect.height();
412 if (newY + newHeight > mDragLayer.getHeight()) {
414 mBottomTouchRegionAdjustment = -(newY + newHeight - mDragLayer.getHeight());
422 lp.height = newHeight;
432 newHeight);
H A DCellLayout.java816 int newHeight = childHeightSize;
819 newHeight = mFixedHeight;
833 MeasureSpec.makeMeasureSpec(newHeight, MeasureSpec.EXACTLY));
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DConversationFooterView.java29 * @param newHeight the new height in px
31 void onConversationFooterHeightChange(int newHeight); argument
H A DConversationViewHeader.java62 * @param newHeight the new height in px
64 void onConversationViewHeaderHeightChange(int newHeight); argument
/packages/apps/Nfc/src/com/android/nfc/beam/
H A DSendUi.java656 int newHeight = bitmap.getHeight();
657 float smallestWidth = (float)Math.min(newWidth, newHeight);
661 newHeight = bitmap.getHeight() - statusBarHeight - navBarHeight;
666 newHeight = bitmap.getHeight() - statusBarHeight - navBarHeightLandscape;
668 newHeight = bitmap.getHeight() - statusBarHeight;
672 bitmap = Bitmap.createBitmap(bitmap, newLeft, newTop, newWidth, newHeight);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DGeometryMathUtils.java204 public static float scale(float oldWidth, float oldHeight, float newWidth, float newHeight) { argument
205 if (oldHeight == 0 || oldWidth == 0 || (oldWidth == newWidth && oldHeight == newHeight)) {
208 return Math.min(newWidth / oldWidth, newHeight / oldHeight);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
H A DBoundedRect.java304 float newHeight = Math.abs(fixed_y - p[1]);
305 newWidth = Math.max(newWidth, aspRatio * newHeight);
/packages/apps/Messaging/src/com/android/messaging/util/
H A DImageUtils.java822 * @param newHeight destination height
826 final int newHeight) {
834 final float yScale = (float) newHeight / sourceHeight;
844 final float top = (newHeight - scaledHeight) / 2;
852 final Bitmap dest = Bitmap.createBitmap(newWidth, newHeight, source.getConfig());
825 scaleCenterCrop(final Bitmap source, final int newWidth, final int newHeight) argument
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DSecureConversationViewFragment.java227 public void onConversationViewHeaderHeightChange(int newHeight) { argument
H A DConversationViewFragment.java969 public void onConversationViewHeaderHeightChange(int newHeight) { argument
970 final int h = mWebView.screenPxToWebPx(newHeight);
980 public void onConversationFooterHeightChange(int newHeight) { argument
981 final int h = mWebView.screenPxToWebPx(newHeight);
H A DAbstractConversationViewFragment.java223 public abstract void onConversationViewHeaderHeightChange(int newHeight); argument
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DUtils.java674 int newHeight = SCALED_SCREENSHOT_MAX_HEIGHT_WIDTH;
678 scaleY = newHeight / originalHeight;
681 newHeight = (int)Math.round(originalHeight * scale);
682 return Bitmap.createScaledBitmap(originalBitmap, newWidth, newHeight, true);
/packages/apps/Camera2/src/com/android/camera/
H A DPhotoModule.java830 int newHeight;
833 newHeight = (int) (originalWidth / targetAspectRatio);
837 newHeight = originalHeight;
840 int yOffset = (originalHeight - newHeight)/2;
846 Bitmap resized = Bitmap.createBitmap(original,xOffset,yOffset,newWidth, newHeight);
848 exif.setTagValue(ExifInterface.TAG_PIXEL_Y_DIMENSION, new Integer(newHeight));
/packages/apps/Car/Media/src/com/android/car/media/
H A DMediaPlaybackFragment.java741 int newHeight = height > mAlbumArtHeight ? mAlbumArtHeight : height;
742 return Bitmap.createBitmap(icon, startX, startY, newWidth, newHeight);

Completed in 495 milliseconds