/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 | 494 int newWidth, newHeight; in computeCompatibleScaling() local 496 newWidth = newShortSize; in computeCompatibleScaling() 499 newWidth = newLongSize; in computeCompatibleScaling() 503 float sw = width/(float)newWidth; in computeCompatibleScaling() 511 outDm.widthPixels = newWidth; in computeCompatibleScaling()
|
/frameworks/native/libs/gui/ |
D | GLConsumer.cpp | 917 int32_t newWidth = mCurrentCrop.width(); in getCurrentCrop() local 920 if (newWidth * mDefaultHeight > newHeight * mDefaultWidth) { in getCurrentCrop() 921 newWidth = newHeight * mDefaultWidth / mDefaultHeight; in getCurrentCrop() 922 ST_LOGV("too wide: newWidth = %d", newWidth); in getCurrentCrop() 923 } else if (newWidth * mDefaultHeight < newHeight * mDefaultWidth) { in getCurrentCrop() 924 newHeight = newWidth * mDefaultHeight / mDefaultWidth; in getCurrentCrop() 929 if (newWidth < mCurrentCrop.width()) { in getCurrentCrop() 930 int32_t dw = (newWidth - mCurrentCrop.width())/2; in getCurrentCrop()
|
/frameworks/av/cmds/screenrecord/ |
D | screenrecord.cpp | 469 uint32_t newWidth = needSwap ? kFallbackHeight : kFallbackWidth; in recordScreen() local 471 if (gVideoWidth != newWidth && gVideoHeight != newHeight) { in recordScreen() 474 gVideoWidth, gVideoHeight, newWidth, newHeight); in recordScreen() 475 gVideoWidth = newWidth; in recordScreen()
|
/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 | 829 int newWidth = (int)(desiredAspect * (heightSize - ptop - pbottom)) + in onMeasure() local 834 widthSize = resolveAdjustedSize(newWidth, mMaxWidth, widthMeasureSpec); in onMeasure() 837 if (newWidth <= widthSize) { in onMeasure() 838 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 | 511 int32_t newWidth = getWindowProp(code->nativeWindow.get(), in onSurfaceChanged_native() local 515 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 | 611 final int newWidth = widthSize - horizontalMargin; in onMeasure() 613 newWidth, MeasureSpec.EXACTLY); in onMeasure() 614 if (measuredWidth != newWidth) { in onMeasure()
|
/frameworks/base/media/java/android/media/ |
D | RemoteControlClient.java | 1688 int newWidth = Math.round(scale * width); in scaleBitmapIfTooBig() local 1694 Bitmap outBitmap = Bitmap.createBitmap(newWidth, newHeight, newConfig); in scaleBitmapIfTooBig()
|
/frameworks/base/core/java/android/view/ |
D | View.java | 14880 int newWidth = right - left; 14882 boolean sizeChanged = (newWidth != oldWidth) || (newHeight != oldHeight); 14905 sizeChange(newWidth, newHeight, oldWidth, oldHeight); 14931 private void sizeChange(int newWidth, int newHeight, int oldWidth, int oldHeight) { 14932 onSizeChanged(newWidth, newHeight, oldWidth, oldHeight); 14934 mOverlay.getOverlayView().setRight(newWidth);
|