Searched refs:newWidth (Results 1 - 18 of 18) sorted by relevance

/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
H A DEmbeddedContentContainer.java39 protected void onSizeChanged(int newWidth, int newHeight, int oldWidth, int oldHeight) { argument
40 super.onSizeChanged(newWidth, newHeight, oldWidth, oldHeight);
42 mSizeChangeListener.onSizeChanged(newWidth, newHeight);
/frameworks/base/core/java/android/content/res/
H A DCompatibilityInfo.java494 int newWidth, newHeight;
496 newWidth = newShortSize;
499 newWidth = newLongSize;
503 float sw = width/(float)newWidth;
511 outDm.widthPixels = newWidth;
/frameworks/base/core/java/android/widget/
H A DTabWidget.java194 final int newWidth = Math.max(0, childWidth - delta);
195 mImposedTabWidths[i] = newWidth;
197 extraWidth -= childWidth - newWidth; // delta may have been clamped
H A DImageView.java1080 int newWidth = (int)(desiredAspect * (heightSize - ptop - pbottom)) +
1085 widthSize = resolveAdjustedSize(newWidth, mMaxWidth, widthMeasureSpec);
1088 if (newWidth <= widthSize) {
1089 widthSize = newWidth;
/frameworks/native/services/surfaceflinger/
H A 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);
H A DDisplayDevice.h127 void setDisplaySize(const int newWidth, const int newHeight);
/frameworks/native/libs/gui/
H A DGLConsumer.cpp931 uint32_t newWidth = static_cast<uint32_t>(mCurrentCrop.width()); local
934 if (newWidth * mDefaultHeight > newHeight * mDefaultWidth) {
935 newWidth = newHeight * mDefaultWidth / mDefaultHeight;
936 GLC_LOGV("too wide: newWidth = %d", newWidth);
937 } else if (newWidth * mDefaultHeight < newHeight * mDefaultWidth) {
938 newHeight = newWidth * mDefaultHeight / mDefaultWidth;
946 if (newWidth < currentWidth) {
947 uint32_t dw = currentWidth - newWidth;
/frameworks/av/media/libstagefright/omx/
H A DSoftVideoDecoderOMXComponent.cpp489 uint32_t newWidth = video_def->nFrameWidth; local
494 if (newWidth > 32768 || newHeight > 32768
499 if (newWidth != oldWidth || newHeight != oldHeight) {
503 mWidth = newWidth;
513 def->format.video.nFrameWidth = newWidth;
/frameworks/av/cmds/screenrecord/
H A Dscreenrecord.cpp573 uint32_t newWidth = needSwap ? kFallbackHeight : kFallbackWidth;
575 if (gVideoWidth != newWidth && gVideoHeight != newHeight) {
578 gVideoWidth, gVideoHeight, newWidth, newHeight);
579 gVideoWidth = newWidth;
/frameworks/base/core/java/android/inputmethodservice/
H A DKeyboard.java626 final void resize(int newWidth, int newHeight) { argument
640 if (totalGap + totalWidth > newWidth) {
642 float scaleFactor = (float)(newWidth - totalGap) / totalWidth;
651 mTotalWidth = newWidth;
/frameworks/base/core/java/com/android/internal/widget/
H A DScrollingTabContainerView.java121 final int newWidth = getMeasuredWidth();
123 if (lockedExpanded && oldWidth != newWidth) {
/frameworks/base/core/jni/
H A Dandroid_app_NativeActivity.cpp560 int32_t newWidth = getWindowProp(code->nativeWindow.get(), local
564 if (newWidth != code->lastWindowWidth
/frameworks/base/media/java/android/media/session/
H A DMediaSessionLegacyHelper.java344 int newWidth = Math.round(scale * width);
350 Bitmap outBitmap = Bitmap.createBitmap(newWidth, newHeight, newConfig);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DScrollingTabContainerView.java132 final int newWidth = getMeasuredWidth();
134 if (lockedExpanded && oldWidth != newWidth) {
/frameworks/support/core-ui/java/android/support/v4/widget/
H A DSlidingPaneLayout.java633 final int newWidth = widthAvailable - horizontalMargin;
635 newWidth, MeasureSpec.EXACTLY);
636 if (measuredWidth != newWidth) {
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DParameters.cpp99 int newWidth = availablePreviewSizes[i].width; local
101 if (newWidth >= previewWidth && newHeight >= previewHeight &&
102 newWidth <= MAX_INITIAL_PREVIEW_WIDTH &&
105 if (availableVideoSizes[j].width == newWidth &&
107 previewWidth = newWidth;
/frameworks/base/core/java/android/view/
H A DView.java17709 int newWidth = right - left;
17711 boolean sizeChanged = (newWidth != oldWidth) || (newHeight != oldHeight);
17726 sizeChange(newWidth, newHeight, oldWidth, oldHeight);
17763 private void sizeChange(int newWidth, int newHeight, int oldWidth, int oldHeight) { argument
17764 onSizeChanged(newWidth, newHeight, oldWidth, oldHeight);
17766 mOverlay.getOverlayView().setRight(newWidth);
/frameworks/base/services/core/java/com/android/server/am/
H A DActivityStack.java4710 final int newWidth = taskConfig.screenWidthDp;
4712 if ((oldWidth == undefinedWidth && newWidth != undefinedWidth)
4713 || (oldWidth != undefinedWidth && newWidth == undefinedWidth)) {

Completed in 1630 milliseconds