Home
last modified time | relevance | path

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

/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
DMediaLinearLayout.java2308 int newWidth = mTrimmedView.getRight() - position;
2309 if (newWidth == mTrimmedView.getWidth()) {
2315 (newWidth * mProject.computeDuration()) /
2324 newWidth = (int)(((newDurationMs - mTransitionsDurationMs) *
2327 position = mTrimmedView.getRight() - newWidth;
2330 newWidth = (int)(((newDurationMs - mTransitionsDurationMs) *
2333 position = mTrimmedView.getRight() - newWidth;
2350 mHalfParentWidth - (newWidth - mOriginalWidth));
2478 int newWidth = position - mTrimmedView.getLeft();
2479 if (newWidth == mTrimmedView.getWidth()) {
[all …]
DOverlayLinearLayout.java883 final int newWidth = position - overlayView.getLeft();
886 long newDurationMs = (newWidth * mProject.computeDuration()) /
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterDownsample.java65 int newWidth = orig_w * 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/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/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DBalloonHint.java245 int newWidth = mBalloonView.getMeasuredWidth() + getPaddingLeft() in setBalloonSize() local
249 setWidth(newWidth); in setBalloonSize()
264 mForceDismiss = oldWidth - newWidth > 1 || newWidth - oldWidth > 1; in setBalloonSize()
/packages/apps/Phone/src/com/android/phone/
DContactsAsyncHelper.java283 int newWidth = (int) (orgWidth / ratio); in getPhotoIconWhenAppropriate() local
287 if (newWidth <= 0 || newHeight <= 0) { in getPhotoIconWhenAppropriate()
294 return Bitmap.createScaledBitmap(orgBitmap, newWidth, newHeight, true); in getPhotoIconWhenAppropriate()
/packages/apps/Nfc/src/com/android/nfc/
DSendUi.java605 int newWidth = bitmap.getWidth(); in createScreenshot() local
607 float smallestWidth = (float)Math.min(newWidth, newHeight); in createScreenshot()
619 newWidth = bitmap.getWidth() - navBarWidth; in createScreenshot()
622 bitmap = Bitmap.createBitmap(bitmap, newLeft, newTop, newWidth, newHeight); in createScreenshot()
/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.java248 float newWidth = cbounds.width(); in setCropBounds() local
260 if (newWidth < minWidthHeight || newHeight < minWidthHeight) { in setCropBounds()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoProcessor.java223 final int newWidth = (int) (cropWidth * scaleFactor); in getNormalizedBitmap() local
225 final Bitmap scaledBitmap = Bitmap.createBitmap(newWidth, newHeight, in getNormalizedBitmap()