Home
last modified time | relevance | path

Searched refs:newHeight (Results 1 – 19 of 19) 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/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/util/
DSurfaceViewUtil.kt27 fun SurfaceView.attachView(view: View, newWidth: Int = width, newHeight: Int = height) { in attachView()
31 host.setView(view, newWidth, newHeight) in attachView()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DHeightRecordTest.java570 Length newHeight = Length.fromMeters(2.0); in insertRecords_sameClientRecordIdAndNewData_readNewData() local
571 List<HeightRecord> newRecords = insertAndReadRecords(recordCount, newHeight); in insertRecords_sameClientRecordIdAndNewData_readNewData()
574 assertThat(record.getHeight()).isEqualTo(newHeight); in insertRecords_sameClientRecordIdAndNewData_readNewData()
586 Length newHeight = Length.fromMeters(2.0); in insertRecords_sameClientRecordIdAndNewerVersion_readNewData() local
587 List<HeightRecord> newRecords = insertAndReadRecords(recordCount, newVersion, newHeight); in insertRecords_sameClientRecordIdAndNewerVersion_readNewData()
590 assertThat(record.getHeight()).isEqualTo(newHeight); in insertRecords_sameClientRecordIdAndNewerVersion_readNewData()
601 Length newHeight = Length.fromMeters(2.0); in insertRecords_sameClientRecordIdAndSameVersion_readNewData() local
602 List<HeightRecord> newRecords = insertAndReadRecords(recordCount, version, newHeight); in insertRecords_sameClientRecordIdAndSameVersion_readNewData()
605 assertThat(record.getHeight()).isEqualTo(newHeight); in insertRecords_sameClientRecordIdAndSameVersion_readNewData()
617 Length newHeight = Length.fromMeters(2.0); in insertRecords_sameClientRecordIdAndOlderVersion_readOldData() local
[all …]
/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/tests/tapl/com/android/launcher3/tapl/
DWidgetResizeFrame.java77 float newHeight = mLauncher.waitForLauncherObject( in resize() local
79 assertTrue("Widget not resized.", newHeight >= originalWidgetSize.height() * 2); in resize()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DWallpaperCropUtils.java402 int newHeight = screenHeight; in getScaleOfScreenResolution() local
404 if (newWidth > rectRealWidth || newHeight > rectRealHeight) { in getScaleOfScreenResolution()
406 newHeight = rectRealWidth; in getScaleOfScreenResolution()
408 float screenScale = Math.min((float) newWidth / cropWidth, (float) newHeight / cropHeight); in getScaleOfScreenResolution()
/packages/apps/Settings/src/com/android/settings/dashboard/profileselector/
DProfileSelectFragment.java190 int newHeight = newPage.getMeasuredHeight(); in updateHeight() local
191 if (newHeight != 0 && currentHeight != newHeight) { in updateHeight()
193 layoutParams.height = newHeight; in updateHeight()
/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/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/Launcher3/quickstep/src/com/android/launcher3/taskbar/bubbles/
DBubbleBarBackground.kt184 fun setBackgroundHeight(newHeight: Float) { in setBackgroundHeight()
185 backgroundHeight = newHeight in setBackgroundHeight()
/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/Launcher3/src/com/android/launcher3/
DAppWidgetResizeFrame.java598 int newHeight = sTmpRect.height();
611 if (newY + newHeight > mDragLayer.getHeight()) {
613 mBottomTouchRegionAdjustment = -(newY + newHeight - mDragLayer.getHeight());
628 lp.height = newHeight;
642 PropertyValuesHolder.ofInt(LAYOUT_HEIGHT, lp.height, newHeight),
DCellLayout.java989 int newHeight = childHeightSize; in onMeasure() local
992 newHeight = mFixedHeight; in onMeasure()
999 MeasureSpec.makeMeasureSpec(newHeight, MeasureSpec.EXACTLY)); in onMeasure()
/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/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()
/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/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/src/com/android/car/portraitlauncher/homeactivities/
DCarUiPortraitHomeScreen.java211 int newHeight = bottom - top;
213 if (oldHeight == newHeight) {
216 logIfDebuggable("container height change from " + oldHeight + " to " + newHeight);