Searched defs:targetHeight (Results 1 - 4 of 4) sorted by relevance

/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
H A DBitmapUtil.java121 * @param targetHeight desired output height
126 public static Bitmap getRoundedBitmap(Bitmap input, int targetWidth, int targetHeight) { argument
130 final Bitmap result = Bitmap.createBitmap(targetWidth, targetHeight, input.getConfig());
135 canvas.drawOval(0, 0, targetWidth, targetHeight, paint);
147 (float) inputHeight / targetHeight);
150 final int yCropAmountHalved = (int) (scaleBy * targetHeight / 2);
158 final RectF dst = new RectF(0, 0, targetWidth, targetHeight);
/packages/apps/Gallery/src/com/android/camera/
H A DUtil.java153 int targetHeight,
157 int deltaY = source.getHeight() - targetHeight;
165 Bitmap b2 = Bitmap.createBitmap(targetWidth, targetHeight,
175 deltaYHalf + Math.min(targetHeight, source.getHeight()));
177 int dstY = (targetHeight - src.height()) / 2;
182 targetHeight - dstY);
193 float viewAspect = (float) targetWidth / targetHeight;
196 float scale = targetHeight / bitmapHeightF;
225 int dy1 = Math.max(0, b1.getHeight() - targetHeight);
232 targetHeight);
150 transform(Matrix scaler, Bitmap source, int targetWidth, int targetHeight, boolean scaleUp, boolean recycle) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/util/
H A DCameraUtil.java538 int targetHeight = Math.min(defaultDisplaySize.getWidth(), defaultDisplaySize.getHeight());
547 double heightDiff = Math.abs(size.getHeight() - targetHeight);
554 if (size.getHeight() < targetHeight) {
567 if (Math.abs(size.getHeight() - targetHeight) < minDiff) {
569 minDiff = Math.abs(size.getHeight() - targetHeight);
584 * @param targetHeight the ideal height of the video snapshot
589 int targetHeight) {
603 if (size.height() == targetHeight && size.width() == targetWidth) {
609 final double targetRatio = (double) targetWidth / targetHeight;
587 getOptimalVideoSnapshotPictureSize( List<com.android.ex.camera2.portability.Size> sizes, int targetWidth, int targetHeight) argument
/packages/apps/FMRadio/src/com/android/fmradio/views/
H A DFmScroller.java1399 int targetHeight = mFullHeight - (mFullHeight - mTargetHeight) / 2;
1400 if (currentHeight <= targetHeight) {
1565 private float getNewSize(int currentHeight, int targetHeight, argument
1567 if (currentHeight == targetHeight) {
1570 return targetSize + (currentHeight - targetHeight) * rate;

Completed in 111 milliseconds