/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | ImageFilterDownsample.java | 69 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/ |
D | ShortcutsItemView.java | 186 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/ |
D | PagedViewCellLayout.java | 200 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()
|
D | AppWidgetResizeFrame.java | 409 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()
|
D | CellLayout.java | 1006 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/ |
D | SendUi.java | 656 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/ |
D | AppWidgetResizeFrame.java | 397 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()
|
D | CellLayout.java | 811 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/ |
D | ContactsAsyncHelper.java | 170 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/ |
D | PhotoProcessor.java | 226 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/ |
D | ContactsAsyncHelper.java | 253 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/ |
D | NotificationFooterLayout.java | 203 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/ |
D | ImageUtils.java | 826 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/ |
D | AnimUtils.java | 219 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/ |
D | AnimUtils.java | 199 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/ |
D | Utils.java | 674 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/ |
D | GeometryMathUtils.java | 204 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/ |
D | PhotoModule.java | 830 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/ |
D | BoundedRect.java | 304 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/ |
D | ConversationViewFragment.java | 969 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()
|
D | SecureConversationViewFragment.java | 227 public void onConversationViewHeaderHeightChange(int newHeight) { in onConversationViewHeaderHeightChange() argument
|
D | AbstractConversationViewFragment.java | 223 public abstract void onConversationViewHeaderHeightChange(int newHeight); in onConversationViewHeaderHeightChange() argument
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | ConversationFooterView.java | 31 void onConversationFooterHeightChange(int newHeight); in onConversationFooterHeightChange() argument
|
D | ConversationViewHeader.java | 64 void onConversationViewHeaderHeightChange(int newHeight); in onConversationViewHeaderHeightChange() argument
|
/packages/apps/Car/Media/src/com/android/car/media/ |
D | MediaPlaybackFragment.java | 789 int newHeight = height > mAlbumArtHeight ? mAlbumArtHeight : height; in cropAlbumArt() local 791 return Bitmap.createBitmap(icon, startX, startY, newWidth, newHeight); in cropAlbumArt()
|