Home
last modified time | relevance | path

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

/frameworks/base/media/java/android/media/videoeditor/
DVideoEditor.java262 int newWidth = ((overlayCanvas.getHeight() * mOverlayBitmap.getWidth()) in renderOverlay() local
264 left = (overlayCanvas.getWidth() - newWidth) / 2; in renderOverlay()
266 right = left + newWidth; in renderOverlay()
292 int newWidth = ((mOverlayBitmap.getHeight() * overlayCanvas.getWidth()) in renderOverlay() local
294 left = (mOverlayBitmap.getWidth() - newWidth) / 2; in renderOverlay()
296 right = left + newWidth; in renderOverlay()
DOverlayFrame.java374 int newWidth = ((overlayCanvas.getHeight() * overlayBitmap.getWidth()) in generateOverlayWithRenderingMode() local
376 left = (overlayCanvas.getWidth() - newWidth) / 2; in generateOverlayWithRenderingMode()
378 right = left + newWidth; in generateOverlayWithRenderingMode()
404 int newWidth = ((overlayBitmap.getHeight() * overlayCanvas.getWidth()) in generateOverlayWithRenderingMode() local
406 left = (overlayBitmap.getWidth() - newWidth) / 2; in generateOverlayWithRenderingMode()
408 right = left + newWidth; in generateOverlayWithRenderingMode()
DMediaImageItem.java179 int newWidth = mScaledWidth; in MediaImageItem() local
184 final int [] framingBuffer = new int[newWidth]; in MediaImageItem()
191 tmp, newWidth, 1); in MediaImageItem()
193 intBuffer.put(framingBuffer, 0, newWidth); in MediaImageItem()
/frameworks/base/core/java/android/content/res/
DCompatibilityInfo.java490 int newWidth, newHeight; in computeCompatibleScaling() local
492 newWidth = newShortSize; in computeCompatibleScaling()
495 newWidth = newLongSize; in computeCompatibleScaling()
499 float sw = width/(float)newWidth; in computeCompatibleScaling()
507 outDm.widthPixels = newWidth; in computeCompatibleScaling()
/frameworks/native/libs/gui/
DSurfaceTexture.cpp667 int32_t newWidth = mCurrentCrop.width(); in getCurrentCrop() local
670 if (newWidth * mDefaultHeight > newHeight * mDefaultWidth) { in getCurrentCrop()
671 newWidth = newHeight * mDefaultWidth / mDefaultHeight; in getCurrentCrop()
672 ST_LOGV("too wide: newWidth = %d", newWidth); in getCurrentCrop()
673 } else if (newWidth * mDefaultHeight < newHeight * mDefaultWidth) { in getCurrentCrop()
674 newHeight = newWidth * mDefaultHeight / mDefaultWidth; in getCurrentCrop()
679 if (newWidth < mCurrentCrop.width()) { in getCurrentCrop()
680 int32_t dw = (newWidth - mCurrentCrop.width())/2; in getCurrentCrop()
/frameworks/base/core/java/android/widget/
DTabWidget.java198 final int newWidth = Math.max(0, childWidth - delta); in measureHorizontal() local
199 mImposedTabWidths[i] = newWidth; in measureHorizontal()
201 extraWidth -= childWidth - newWidth; // delta may have been clamped in measureHorizontal()
DImageView.java784 int newWidth = (int)(desiredAspect * (heightSize - ptop - pbottom)) + in onMeasure() local
786 if (newWidth <= widthSize) { in onMeasure()
787 widthSize = newWidth; in onMeasure()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java613 final void resize(int newWidth, int newHeight) { in resize() argument
627 if (totalGap + totalWidth > newWidth) { in resize()
629 float scaleFactor = (float)(newWidth - totalGap) / totalWidth; in resize()
638 mTotalWidth = newWidth; in resize()
/frameworks/base/core/java/com/android/internal/widget/
DScrollingTabContainerView.java118 final int newWidth = getMeasuredWidth(); in onMeasure() local
120 if (lockedExpanded && oldWidth != newWidth) { in onMeasure()
/frameworks/base/media/java/android/media/
DRemoteControlClient.java1123 int newWidth = Math.round(scale * width); in scaleBitmapIfTooBig() local
1129 Bitmap outBitmap = Bitmap.createBitmap(newWidth, newHeight, newConfig); in scaleBitmapIfTooBig()
/frameworks/base/core/jni/
Dandroid_app_NativeActivity.cpp864 int32_t newWidth = getWindowProp(code->nativeWindow.get(), in onSurfaceChanged_native() local
868 if (newWidth != code->lastWindowWidth in onSurfaceChanged_native()
/frameworks/base/core/java/android/webkit/
DWebViewClassic.java3169 int newWidth = Math.round(viewWidth * mZoomManager.getInvScale()); in sendViewSizeZoom() local
3184 if (newWidth > mLastWidthSent && mWrapContent) { in sendViewSizeZoom()
3191 if (newWidth != mLastWidthSent || newHeight != mLastHeightSent || force || in sendViewSizeZoom()
3194 data.mWidth = newWidth; in sendViewSizeZoom()
3205 mLastWidthSent = newWidth; in sendViewSizeZoom()
/frameworks/base/core/java/android/view/
DView.java13815 int newWidth = right - left;
13817 boolean sizeChanged = (newWidth != oldWidth) || (newHeight != oldHeight);
13840 onSizeChanged(newWidth, newHeight, oldWidth, oldHeight);