/frameworks/base/media/java/android/media/videoeditor/ |
D | VideoEditor.java | 262 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()
|
D | OverlayFrame.java | 374 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()
|
D | MediaImageItem.java | 179 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/ |
D | CompatibilityInfo.java | 490 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/ |
D | SurfaceTexture.cpp | 667 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/ |
D | TabWidget.java | 198 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()
|
D | ImageView.java | 784 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/ |
D | Keyboard.java | 613 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/ |
D | ScrollingTabContainerView.java | 118 final int newWidth = getMeasuredWidth(); in onMeasure() local 120 if (lockedExpanded && oldWidth != newWidth) { in onMeasure()
|
/frameworks/base/media/java/android/media/ |
D | RemoteControlClient.java | 1123 int newWidth = Math.round(scale * width); in scaleBitmapIfTooBig() local 1129 Bitmap outBitmap = Bitmap.createBitmap(newWidth, newHeight, newConfig); in scaleBitmapIfTooBig()
|
/frameworks/base/core/jni/ |
D | android_app_NativeActivity.cpp | 864 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/ |
D | WebViewClassic.java | 3169 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/ |
D | View.java | 13815 int newWidth = right - left; 13817 boolean sizeChanged = (newWidth != oldWidth) || (newHeight != oldHeight); 13840 onSizeChanged(newWidth, newHeight, oldWidth, oldHeight);
|