Home
last modified time | relevance | path

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

/packages/apps/UnifiedEmail/assets/
Dscript.js216 var newWidth = elWidth;
248 newWidth = el.scrollWidth;
249 console.log("ran div-width munger on el=" + el + " oldW=" + elWidth + " newW=" + newWidth
252 transformText += " DIV:newW=" + newWidth;
254 if (newWidth <= docWidth) {
264 newWidth = el.scrollWidth;
265 console.log("ran img munger on el=" + el + " oldW=" + elWidth + " newW=" + newWidth
268 transformText += " IMG:newW=" + newWidth;
270 if (newWidth <= docWidth) {
284 newWidth = el.scrollWidth;
[all …]
/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/PackageInstaller/src/com/android/packageinstaller/permission/ui/
DManualLayoutFrame.java39 int newWidth = mWidth; in onMeasure() local
43 newWidth = Math.min(mWidth, MeasureSpec.getSize(widthMeasureSpec)); in onMeasure()
46 newWidth = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()
49 if (newWidth != mWidth) { in onMeasure()
50 mWidth = newWidth; in onMeasure()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DCustomViewToolbar.java142 final int newWidth; in onConversationListLayout() local
144 newWidth = coords[0] + mCustomView.getWidth() - xEnd; in onConversationListLayout()
146 newWidth = xEnd - coords[0]; in onConversationListLayout()
150 if (mCustomView.getWidth() != newWidth) { in onConversationListLayout()
152 params.width = newWidth; in onConversationListLayout()
/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/Launcher2/src/com/android/launcher2/
DPagedViewCellLayout.java199 int newWidth = widthSpecSize; in onMeasure() local
202 newWidth = getPaddingLeft() + getPaddingRight() + (mCellCountX * mCellWidth) + in onMeasure()
206 setMeasuredDimension(newWidth, newHeight); in onMeasure()
213 MeasureSpec.makeMeasureSpec(newWidth - getPaddingLeft() - in onMeasure()
221 setMeasuredDimension(newWidth, newHeight); in onMeasure()
DAppWidgetResizeFrame.java407 int newWidth = mWidgetView.getWidth() + 2 * mBackgroundPadding - mWidgetPaddingLeft - in snapToWidget() local
432 lp.width = newWidth; in snapToWidget()
442 PropertyValuesHolder width = PropertyValuesHolder.ofInt("width", lp.width, newWidth); in snapToWidget()
DCellLayout.java1005 int newWidth = widthSpecSize; in onMeasure() local
1008 newWidth = getPaddingLeft() + getPaddingRight() + (mCountX * mCellWidth) + in onMeasure()
1012 setMeasuredDimension(newWidth, newHeight); in onMeasure()
1018 int childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(newWidth - getPaddingLeft() - in onMeasure()
1024 setMeasuredDimension(newWidth, newHeight); in onMeasure()
/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/services/Telecomm/src/com/android/server/telecom/
DContactsAsyncHelper.java169 int newWidth = (int) (orgWidth / 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.java225 final int newWidth = (int) (cropWidth * 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.java252 int newWidth = (int) (orgWidth / ratio); in getPhotoIconWhenAppropriate() local
256 if (newWidth <= 0 || newHeight <= 0) { in getPhotoIconWhenAppropriate()
263 return Bitmap.createScaledBitmap(orgBitmap, newWidth, newHeight, true); in getPhotoIconWhenAppropriate()
/packages/apps/Messaging/src/com/android/messaging/util/
DImageUtils.java825 public static Bitmap scaleCenterCrop(final Bitmap source, final int newWidth, in scaleCenterCrop() argument
833 final float xScale = (float) newWidth / sourceWidth; in scaleCenterCrop()
843 final float left = (newWidth - scaledWidth) / 2; in scaleCenterCrop()
852 final Bitmap dest = Bitmap.createBitmap(newWidth, newHeight, source.getConfig()); in scaleCenterCrop()
/packages/apps/Nfc/src/com/android/nfc/beam/
DSendUi.java655 int newWidth = bitmap.getWidth(); in createScreenshot() local
657 float smallestWidth = (float)Math.min(newWidth, newHeight); in createScreenshot()
669 newWidth = bitmap.getWidth() - navBarWidth; in createScreenshot()
672 bitmap = Bitmap.createBitmap(bitmap, newLeft, newTop, newWidth, newHeight); in createScreenshot()
/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
224 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/UnifiedEmail/src/com/android/mail/utils/
DUtils.java675 int newWidth = SCALED_SCREENSHOT_MAX_HEIGHT_WIDTH; in getReducedSizeBitmap() local
677 scaleX = newWidth / originalWidth; in getReducedSizeBitmap()
680 newWidth = (int)Math.round(originalWidth * 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/Launcher3/src/com/android/launcher3/
DAppWidgetResizeFrame.java396 int newWidth = sTmpRect.width(); in snapToWidget() local
419 lp.width = newWidth; in snapToWidget()
428 PropertyValuesHolder width = PropertyValuesHolder.ofInt("width", lp.width, newWidth); in snapToWidget()
DCellLayout.java810 int newWidth = childWidthSize; in onMeasure() local
813 newWidth = mFixedWidth; in onMeasure()
827 MeasureSpec.makeMeasureSpec(newWidth, MeasureSpec.EXACTLY), in onMeasure()
/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/Car/Media/src/com/android/car/media/
DMediaPlaybackFragment.java788 int newWidth = width > mAlbumArtWidth ? mAlbumArtWidth : width; in cropAlbumArt() local
791 return Bitmap.createBitmap(icon, startX, startY, newWidth, newHeight); in cropAlbumArt()