Home
last modified time | relevance | path

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

/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DEmbeddedContentContainer.java39 protected void onSizeChanged(int newWidth, int newHeight, int oldWidth, int oldHeight) { in onSizeChanged() argument
40 super.onSizeChanged(newWidth, newHeight, oldWidth, oldHeight); in onSizeChanged()
42 mSizeChangeListener.onSizeChanged(newWidth, newHeight); in onSizeChanged()
/frameworks/base/core/java/android/content/res/
DCompatibilityInfo.java494 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/av/media/libstagefright/omx/
DSoftVideoDecoderOMXComponent.cpp489 uint32_t newWidth = video_def->nFrameWidth; in internalSetParameter() local
494 if (newWidth > 32768 || newHeight > 32768 in internalSetParameter()
499 if (newWidth != oldWidth || newHeight != oldHeight) { in internalSetParameter()
503 mWidth = newWidth; in internalSetParameter()
513 def->format.video.nFrameWidth = newWidth; in internalSetParameter()
/frameworks/native/libs/gui/
DGLConsumer.cpp931 uint32_t newWidth = static_cast<uint32_t>(mCurrentCrop.width()); in getCurrentCrop() local
934 if (newWidth * mDefaultHeight > newHeight * mDefaultWidth) { in getCurrentCrop()
935 newWidth = newHeight * mDefaultWidth / mDefaultHeight; in getCurrentCrop()
936 GLC_LOGV("too wide: newWidth = %d", newWidth); in getCurrentCrop()
937 } else if (newWidth * mDefaultHeight < newHeight * mDefaultWidth) { in getCurrentCrop()
938 newHeight = newWidth * mDefaultHeight / mDefaultWidth; in getCurrentCrop()
946 if (newWidth < currentWidth) { in getCurrentCrop()
947 uint32_t dw = currentWidth - newWidth; in getCurrentCrop()
/frameworks/native/services/surfaceflinger/
DDisplayDevice.cpp480 void DisplayDevice::setDisplaySize(const int newWidth, const int newHeight) { argument
488 mDisplaySurface->resizeBuffers(newWidth, newHeight);
495 LOG_FATAL_IF(mDisplayWidth != newWidth,
496 "Unable to set new width to %d", newWidth);
DDisplayDevice.h127 void setDisplaySize(const int newWidth, const int newHeight);
/frameworks/base/core/java/android/widget/
DTabWidget.java194 final int newWidth = Math.max(0, childWidth - delta); in measureHorizontal() local
195 mImposedTabWidths[i] = newWidth; in measureHorizontal()
197 extraWidth -= childWidth - newWidth; // delta may have been clamped in measureHorizontal()
DImageView.java1080 int newWidth = (int)(desiredAspect * (heightSize - ptop - pbottom)) +
1085 widthSize = resolveAdjustedSize(newWidth, mMaxWidth, widthMeasureSpec);
1088 if (newWidth <= widthSize) {
1089 widthSize = newWidth;
DPopupWindow.java2187 final int newWidth = width < 0 ? width : p.width;
2189 update(p.x, p.y, newWidth, newHeight, paramsChanged);
/frameworks/av/cmds/screenrecord/
Dscreenrecord.cpp573 uint32_t newWidth = needSwap ? kFallbackHeight : kFallbackWidth; in recordScreen() local
575 if (gVideoWidth != newWidth && gVideoHeight != newHeight) { in recordScreen()
578 gVideoWidth, gVideoHeight, newWidth, newHeight); in recordScreen()
579 gVideoWidth = newWidth; in recordScreen()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java626 final void resize(int newWidth, int newHeight) { in resize() argument
640 if (totalGap + totalWidth > newWidth) { in resize()
642 float scaleFactor = (float)(newWidth - totalGap) / totalWidth; in resize()
651 mTotalWidth = newWidth; in resize()
/frameworks/base/media/java/android/media/session/
DMediaSessionLegacyHelper.java344 int newWidth = Math.round(scale * width); in scaleBitmapIfTooBig() local
350 Bitmap outBitmap = Bitmap.createBitmap(newWidth, newHeight, newConfig); in scaleBitmapIfTooBig()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DScrollingTabContainerView.java132 final int newWidth = getMeasuredWidth(); in onMeasure() local
134 if (lockedExpanded && oldWidth != newWidth) { in onMeasure()
/frameworks/base/core/java/com/android/internal/widget/
DScrollingTabContainerView.java121 final int newWidth = getMeasuredWidth(); in onMeasure() local
123 if (lockedExpanded && oldWidth != newWidth) { in onMeasure()
/frameworks/base/docs/html/training/gestures/
Dscroll.jd319 float newWidth = (1f - mZoomer.getCurrZoom()) *
330 mZoomFocalPoint.x - newWidth * pointWithinViewportX,
332 mZoomFocalPoint.x + newWidth * (1 - pointWithinViewportX),
Dscale.jd381 float newWidth = lastSpanX / spanX * mCurrentViewport.width();
394 - newWidth * (focusX - mContentRect.left)
401 mCurrentViewport.right = mCurrentViewport.left + newWidth;
/frameworks/base/core/jni/
Dandroid_app_NativeActivity.cpp560 int32_t newWidth = getWindowProp(code->nativeWindow.get(), in onSurfaceChanged_native() local
564 if (newWidth != code->lastWindowWidth in onSurfaceChanged_native()
/frameworks/support/core-ui/java/android/support/v4/widget/
DSlidingPaneLayout.java633 final int newWidth = widthAvailable - horizontalMargin; in onMeasure()
635 newWidth, MeasureSpec.EXACTLY); in onMeasure()
636 if (measuredWidth != newWidth) { in onMeasure()
/frameworks/av/services/camera/libcameraservice/api1/client2/
DParameters.cpp99 int newWidth = availablePreviewSizes[i].width; in initialize() local
101 if (newWidth >= previewWidth && newHeight >= previewHeight && in initialize()
102 newWidth <= MAX_INITIAL_PREVIEW_WIDTH && in initialize()
105 if (availableVideoSizes[j].width == newWidth && in initialize()
107 previewWidth = newWidth; in initialize()
/frameworks/base/core/java/android/view/
DView.java17709 int newWidth = right - left; in setFrame() local
17711 boolean sizeChanged = (newWidth != oldWidth) || (newHeight != oldHeight); in setFrame()
17726 sizeChange(newWidth, newHeight, oldWidth, oldHeight); in setFrame()
17763 private void sizeChange(int newWidth, int newHeight, int oldWidth, int oldHeight) { in sizeChange() argument
17764 onSizeChanged(newWidth, newHeight, oldWidth, oldHeight); in sizeChange()
17766 mOverlay.getOverlayView().setRight(newWidth); in sizeChange()
/frameworks/base/services/core/java/com/android/server/am/
DActivityStack.java4710 final int newWidth = taskConfig.screenWidthDp; in catchConfigChangesFromUnset() local
4712 if ((oldWidth == undefinedWidth && newWidth != undefinedWidth) in catchConfigChangesFromUnset()
4713 || (oldWidth != undefinedWidth && newWidth == undefinedWidth)) { in catchConfigChangesFromUnset()