Home
last modified time | relevance | path

Searched refs:newWidth (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/ui/
DModeSelectorItem.java167 public void setVisibleWidth(int newWidth) { in setVisibleWidth() argument
169 newWidth = Math.max(newWidth, 0); in setVisibleWidth()
171 newWidth = Math.min(newWidth, fullyShownIconWidth); in setVisibleWidth()
173 if (mVisibleWidth != newWidth) { in setVisibleWidth()
174 mVisibleWidth = newWidth; in setVisibleWidth()
176 mListener.onVisibleWidthChanged(newWidth); in setVisibleWidth()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterDownsample.java68 int newWidth = orig_w * 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/Gallery2/src/com/android/gallery3d/filtershow/crop/
DBoundedRect.java303 float newWidth = Math.abs(fixed_x - p[0]); in fixedAspectResizeInner() local
305 newWidth = Math.max(newWidth, aspRatio * newHeight); in fixedAspectResizeInner()
306 if (newWidth < widthSoFar) in fixedAspectResizeInner()
307 widthSoFar = newWidth; in fixedAspectResizeInner()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationMessageBubbleView.java97 public void kickOffMorphAnimation(final int oldWidth, final int newWidth) { in kickOffMorphAnimation() argument
99 mAnimator.setIntValues(mRunningStartWidth, newWidth); in kickOffMorphAnimation()
103 mAnimator = ObjectAnimator.ofInt(this, "morphWidth", oldWidth, newWidth); in kickOffMorphAnimation()
/packages/apps/Dialer/java/com/android/incallui/
DContactsAsyncHelper.java195 int newWidth = (int) (orgWidth / ratio); in getPhotoIconWhenAppropriate() local
199 if (newWidth <= 0 || newHeight <= 0) { in getPhotoIconWhenAppropriate()
208 return Bitmap.createScaledBitmap(orgBitmap, newWidth, newHeight, true); in getPhotoIconWhenAppropriate()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoProcessor.java218 final int newWidth = (int) (cropWidth * scaleFactor); in getNormalizedBitmap() local
220 if (newWidth <= 0 || newHeight <= 0) { in getNormalizedBitmap()
223 final Bitmap scaledBitmap = Bitmap.createBitmap(newWidth, newHeight, in getNormalizedBitmap()
/packages/services/Telecomm/src/com/android/server/telecom/
DContactsAsyncHelper.java180 int newWidth = (int) (orgWidth / ratio); in getPhotoIconWhenAppropriate() local
184 if (newWidth <= 0 || newHeight <= 0) { in getPhotoIconWhenAppropriate()
191 return Bitmap.createScaledBitmap(orgBitmap, newWidth, newHeight, true); in getPhotoIconWhenAppropriate()
/packages/apps/Dialer/java/com/android/dialer/animation/
DAnimUtils.java218 public static void changeDimensions(final View view, final int newWidth, final int newHeight) { in changeDimensions() argument
223 final int deltaWidth = newWidth - oldWidth; 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
204 final int deltaWidth = newWidth - oldWidth; in changeDimensions()
/packages/apps/Messaging/src/com/android/messaging/util/
DImageUtils.java828 public static Bitmap scaleCenterCrop(final Bitmap source, final int newWidth, in scaleCenterCrop() argument
836 final float xScale = (float) newWidth / sourceWidth; in scaleCenterCrop()
846 final float left = (newWidth - scaledWidth) / 2; in scaleCenterCrop()
855 final Bitmap dest = Bitmap.createBitmap(newWidth, newHeight, source.getConfig()); in scaleCenterCrop()
/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.java829 int newWidth; in cropJpegDataToAspectRatio() local
834 newWidth = originalWidth; in cropJpegDataToAspectRatio()
836 newWidth = (int) (originalHeight / targetAspectRatio); in cropJpegDataToAspectRatio()
839 int xOffset = (originalWidth - newWidth)/2; in cropJpegDataToAspectRatio()
846 Bitmap resized = Bitmap.createBitmap(original,xOffset,yOffset,newWidth, newHeight); in cropJpegDataToAspectRatio()
847 exif.setTagValue(ExifInterface.TAG_PIXEL_X_DIMENSION, new Integer(newWidth)); in cropJpegDataToAspectRatio()
/packages/apps/Launcher3/src/com/android/launcher3/
DAppWidgetResizeFrame.java496 int newWidth = sTmpRect.width(); in snapToWidget() local
519 lp.width = newWidth; in snapToWidget()
529 PropertyValuesHolder.ofInt(LAYOUT_WIDTH, lp.width, newWidth), in snapToWidget()
DCellLayout.java874 int newWidth = childWidthSize; in onMeasure() local
877 newWidth = mFixedWidth; in onMeasure()
884 MeasureSpec.makeMeasureSpec(newWidth, MeasureSpec.EXACTLY), in onMeasure()