Home
last modified time | relevance | path

Searched refs:newHeight (Results 1 – 15 of 15) 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/Car/libs/car-ui-lib/src/com/android/car/ui/preference/
DMultiSelectListPreferenceFragment.java80 toolbar.registerToolbarHeightChangeListener(newHeight -> { in onViewCreated()
81 if (recyclerView.getPaddingTop() == newHeight) { in onViewCreated()
86 recyclerView.setPadding(0, newHeight, 0, 0); in onViewCreated()
87 recyclerView.scrollBy(0, oldHeight - newHeight); in onViewCreated()
DListPreferenceFragment.java79 toolbar.registerToolbarHeightChangeListener(newHeight -> { in onViewCreated()
80 if (carUiRecyclerView.getPaddingTop() == newHeight) { in onViewCreated()
85 carUiRecyclerView.setPadding(0, newHeight, 0, 0); in onViewCreated()
86 carUiRecyclerView.scrollBy(0, oldHeight - newHeight); in onViewCreated()
DPreferenceFragment.java92 toolbar.registerToolbarHeightChangeListener(newHeight -> { in onViewCreated()
93 if (recyclerView.getPaddingTop() == newHeight) { in onViewCreated()
98 recyclerView.setPadding(0, newHeight, 0, 0); in onViewCreated()
99 recyclerView.scrollBy(0, oldHeight - newHeight); in onViewCreated()
/packages/apps/Dialer/java/com/android/incallui/
DContactsAsyncHelper.java196 int newHeight = (int) (orgHeight / ratio); in getPhotoIconWhenAppropriate() local
199 if (newWidth <= 0 || newHeight <= 0) { in getPhotoIconWhenAppropriate()
208 return Bitmap.createScaledBitmap(orgBitmap, newWidth, newHeight, true); in getPhotoIconWhenAppropriate()
/packages/services/Telecomm/src/com/android/server/telecom/
DContactsAsyncHelper.java181 int newHeight = (int) (orgHeight / ratio); in getPhotoIconWhenAppropriate() local
184 if (newWidth <= 0 || newHeight <= 0) { in getPhotoIconWhenAppropriate()
191 return Bitmap.createScaledBitmap(orgBitmap, newWidth, newHeight, true); in getPhotoIconWhenAppropriate()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoProcessor.java219 final int newHeight = (int) (cropHeight * scaleFactor); in getNormalizedBitmap() local
220 if (newWidth <= 0 || newHeight <= 0) { in getNormalizedBitmap()
223 final Bitmap scaledBitmap = Bitmap.createBitmap(newWidth, newHeight, in getNormalizedBitmap()
/packages/apps/Launcher3/src/com/android/launcher3/
DAppWidgetResizeFrame.java426 int newHeight = sTmpRect.height(); in snapToWidget() local
439 if (newY + newHeight > mDragLayer.getHeight()) { in snapToWidget()
441 mBottomTouchRegionAdjustment = -(newY + newHeight - mDragLayer.getHeight()); in snapToWidget()
449 lp.height = newHeight; in snapToWidget()
459 PropertyValuesHolder.ofInt(LAYOUT_HEIGHT, lp.height, newHeight), in snapToWidget()
DCellLayout.java792 int newHeight = childHeightSize; in onMeasure() local
795 newHeight = mFixedHeight; in onMeasure()
802 MeasureSpec.makeMeasureSpec(newHeight, MeasureSpec.EXACTLY)); in onMeasure()
/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
224 final int deltaHeight = newHeight - oldHeight; in changeDimensions()
/packages/apps/Messaging/src/com/android/messaging/util/
DImageUtils.java829 final int newHeight) { in scaleCenterCrop() argument
837 final float yScale = (float) newHeight / sourceHeight; in scaleCenterCrop()
847 final float top = (newHeight - scaledHeight) / 2; in scaleCenterCrop()
855 final Bitmap dest = Bitmap.createBitmap(newWidth, newHeight, source.getConfig()); in scaleCenterCrop()
/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/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()