Home
last modified time | relevance | path

Searched refs:newHeight (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterDownsample.java66 int newHeight = orig_h * p / 100; in apply() local
69 if (newWidth <= 0 || newHeight <= 0 || newWidth >= w || newHeight >= h) { in apply()
72 Bitmap ret = Bitmap.createScaledBitmap(bitmap, newWidth, newHeight, true); in apply()
/packages/apps/Nfc/src/com/android/nfc/
DSendUi.java606 int newHeight = bitmap.getHeight(); in createScreenshot() local
607 float smallestWidth = (float)Math.min(newWidth, newHeight); in createScreenshot()
611 newHeight = bitmap.getHeight() - statusBarHeight - navBarHeight; in createScreenshot()
616 newHeight = bitmap.getHeight() - statusBarHeight - navBarHeightLandscape; in createScreenshot()
618 newHeight = bitmap.getHeight() - statusBarHeight; in createScreenshot()
622 bitmap = Bitmap.createBitmap(bitmap, newLeft, newTop, newWidth, newHeight); in createScreenshot()
/packages/apps/Launcher2/src/com/android/launcher2/
DPagedViewCellLayout.java200 int newHeight = heightSpecSize; in onMeasure() local
204 newHeight = getPaddingTop() + getPaddingBottom() + (mCellCountY * mCellHeight) + in onMeasure()
206 setMeasuredDimension(newWidth, newHeight); in onMeasure()
216 MeasureSpec.makeMeasureSpec(newHeight - getPaddingTop() - in onMeasure()
221 setMeasuredDimension(newWidth, newHeight); in onMeasure()
DAppWidgetResizeFrame.java409 int newHeight = mWidgetView.getHeight() + 2 * mBackgroundPadding - mWidgetPaddingTop - in snapToWidget() local
424 if (newY + newHeight > mDragLayer.getHeight()) { in snapToWidget()
426 mBottomTouchRegionAdjustment = -(newY + newHeight - mDragLayer.getHeight()); in snapToWidget()
433 lp.height = newHeight; in snapToWidget()
444 newHeight); in snapToWidget()
DCellLayout.java1006 int newHeight = heightSpecSize; in onMeasure() local
1010 newHeight = getPaddingTop() + getPaddingBottom() + (mCountY * mCellHeight) + in onMeasure()
1012 setMeasuredDimension(newWidth, newHeight); in onMeasure()
1020 int childheightMeasureSpec = MeasureSpec.makeMeasureSpec(newHeight - getPaddingTop() - in onMeasure()
1024 setMeasuredDimension(newWidth, newHeight); in onMeasure()
/packages/apps/Phone/src/com/android/phone/
DContactsAsyncHelper.java284 int newHeight = (int) (orgHeight / ratio); in getPhotoIconWhenAppropriate() local
287 if (newWidth <= 0 || newHeight <= 0) { in getPhotoIconWhenAppropriate()
294 return Bitmap.createScaledBitmap(orgBitmap, newWidth, newHeight, true); in getPhotoIconWhenAppropriate()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGeometryMath.java131 public static float scale(float oldWidth, float oldHeight, float newWidth, float newHeight) { in scale() argument
134 return Math.min(newWidth / oldWidth, newHeight / oldHeight); in scale()
DImageCrop.java249 float newHeight = cbounds.height(); in setCropBounds() local
260 if (newWidth < minWidthHeight || newHeight < minWidthHeight) { in setCropBounds()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoProcessor.java224 final int newHeight = (int) (cropHeight * scaleFactor); in getNormalizedBitmap() local
225 final Bitmap scaledBitmap = Bitmap.createBitmap(newWidth, newHeight, in getNormalizedBitmap()
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DBalloonHint.java247 int newHeight = mBalloonView.getMeasuredHeight() + getPaddingTop() in setBalloonSize() local
250 setHeight(newHeight); in setBalloonSize()
/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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DSuggestionStripView.java229 final int newHeight = getMoreSuggestionsHeight(); in setMoreSuggestionsHeight() local
230 return newHeight; in setMoreSuggestionsHeight()