/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 | 495 int newWidth, newHeight; in computeCompatibleScaling() local 497 newWidth = newShortSize; in computeCompatibleScaling() 500 newWidth = newLongSize; in computeCompatibleScaling() 504 float sw = width/(float)newWidth; in computeCompatibleScaling() 512 outDm.widthPixels = newWidth; in computeCompatibleScaling()
|
/frameworks/native/libs/gui/ |
D | GLConsumer.cpp | 725 int32_t newWidth = mCurrentCrop.width(); in getCurrentCrop() local 728 if (newWidth * mDefaultHeight > newHeight * mDefaultWidth) { in getCurrentCrop() 729 newWidth = newHeight * mDefaultWidth / mDefaultHeight; in getCurrentCrop() 730 ST_LOGV("too wide: newWidth = %d", newWidth); in getCurrentCrop() 731 } else if (newWidth * mDefaultHeight < newHeight * mDefaultWidth) { in getCurrentCrop() 732 newHeight = newWidth * mDefaultHeight / mDefaultWidth; in getCurrentCrop() 737 if (newWidth < mCurrentCrop.width()) { in getCurrentCrop() 738 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 | 817 int newWidth = (int)(desiredAspect * (heightSize - ptop - pbottom)) + in onMeasure() local 822 widthSize = resolveAdjustedSize(newWidth, mMaxWidth, widthMeasureSpec); in onMeasure() 825 if (newWidth <= widthSize) { in onMeasure() 826 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/support/v7/appcompat/src/android/support/v7/internal/widget/ |
D | ScrollingTabContainerView.java | 114 final int newWidth = getMeasuredWidth(); in onMeasure() local 116 if (lockedExpanded && oldWidth != newWidth) { in onMeasure()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ScrollingTabContainerView.java | 123 final int newWidth = getMeasuredWidth(); in onMeasure() local 125 if (lockedExpanded && oldWidth != newWidth) { in onMeasure()
|
/frameworks/base/core/jni/ |
D | android_app_NativeActivity.cpp | 507 int32_t newWidth = getWindowProp(code->nativeWindow.get(), in onSurfaceChanged_native() local 511 if (newWidth != code->lastWindowWidth in onSurfaceChanged_native()
|
/frameworks/base/docs/html/training/gestures/ |
D | scale.jd | 381 float newWidth = lastSpanX / spanX * mCurrentViewport.width(); 394 - newWidth * (focusX - mContentRect.left) 401 mCurrentViewport.right = mCurrentViewport.left + newWidth;
|
D | scroll.jd | 319 float newWidth = (1f - mZoomer.getCurrZoom()) * 330 mZoomFocalPoint.x - newWidth * pointWithinViewportX, 332 mZoomFocalPoint.x + newWidth * (1 - pointWithinViewportX),
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | SlidingPaneLayout.java | 604 final int newWidth = widthSize - horizontalMargin; in onMeasure() 606 newWidth, MeasureSpec.EXACTLY); in onMeasure() 607 if (measuredWidth != newWidth) { in onMeasure()
|
/frameworks/base/media/java/android/media/ |
D | RemoteControlClient.java | 1560 int newWidth = Math.round(scale * width); in scaleBitmapIfTooBig() local 1566 Bitmap outBitmap = Bitmap.createBitmap(newWidth, newHeight, newConfig); in scaleBitmapIfTooBig()
|
/frameworks/base/core/java/android/view/ |
D | View.java | 14350 int newWidth = right - left; 14352 boolean sizeChanged = (newWidth != oldWidth) || (newHeight != oldHeight); 14375 sizeChange(newWidth, newHeight, oldWidth, oldHeight); 14399 private void sizeChange(int newWidth, int newHeight, int oldWidth, int oldHeight) { 14400 onSizeChanged(newWidth, newHeight, oldWidth, oldHeight); 14402 mOverlay.getOverlayView().setRight(newWidth);
|
/frameworks/base/core/java/android/webkit/ |
D | WebViewClassic.java | 3255 int newWidth = Math.round(viewWidth * mZoomManager.getInvScale()); in sendViewSizeZoom() local 3270 if (newWidth > mLastWidthSent && mWrapContent) { in sendViewSizeZoom() 3277 if (newWidth != mLastWidthSent || newHeight != mLastHeightSent || force || in sendViewSizeZoom() 3280 data.mWidth = newWidth; in sendViewSizeZoom() 3291 mLastWidthSent = newWidth; in sendViewSizeZoom()
|