Searched refs:newWidth (Results 1 - 17 of 17) sorted by last modified time

/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DScrollingTabContainerView.java129 final int newWidth = getMeasuredWidth();
131 if (lockedExpanded && oldWidth != newWidth) {
/frameworks/support/v4/java/android/support/v4/widget/
H A DSlidingPaneLayout.java622 final int newWidth = widthAvailable - horizontalMargin;
624 newWidth, MeasureSpec.EXACTLY);
625 if (measuredWidth != newWidth) {
/frameworks/native/libs/gui/
H A DGLConsumer.cpp875 int32_t newWidth = mCurrentCrop.width(); local
878 if (newWidth * mDefaultHeight > newHeight * mDefaultWidth) {
879 newWidth = newHeight * mDefaultWidth / mDefaultHeight;
880 ST_LOGV("too wide: newWidth = %d", newWidth);
881 } else if (newWidth * mDefaultHeight < newHeight * mDefaultWidth) {
882 newHeight = newWidth * mDefaultHeight / mDefaultWidth;
887 if (newWidth < mCurrentCrop.width()) {
888 int32_t dw = (newWidth - mCurrentCrop.width())/2;
/frameworks/native/services/surfaceflinger/
H A DDisplayDevice.cpp403 void DisplayDevice::setDisplaySize(const int newWidth, const int newHeight) { argument
411 mDisplaySurface->resizeBuffers(newWidth, newHeight);
418 LOG_FATAL_IF(mDisplayWidth != newWidth,
419 "Unable to set new width to %d", newWidth);
H A DDisplayDevice.h113 void setDisplaySize(const int newWidth, const int newHeight);
/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/media/java/android/media/session/
H A DMediaSessionLegacyHelper.java351 int newWidth = Math.round(scale * width);
357 Bitmap outBitmap = Bitmap.createBitmap(newWidth, newHeight, newConfig);
/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/inputmethodservice/
H A DKeyboard.java613 final void resize(int newWidth, int newHeight) { argument
627 if (totalGap + totalWidth > newWidth) {
629 float scaleFactor = (float)(newWidth - totalGap) / totalWidth;
638 mTotalWidth = newWidth;
/frameworks/base/core/java/android/view/
H A DView.java15734 int newWidth = right - left;
15736 boolean sizeChanged = (newWidth != oldWidth) || (newHeight != oldHeight);
15751 sizeChange(newWidth, newHeight, oldWidth, oldHeight);
15785 private void sizeChange(int newWidth, int newHeight, int oldWidth, int oldHeight) { argument
15786 onSizeChanged(newWidth, newHeight, oldWidth, oldHeight);
15788 mOverlay.getOverlayView().setRight(newWidth);
/frameworks/base/core/java/android/widget/
H A DImageView.java942 int newWidth = (int)(desiredAspect * (heightSize - ptop - pbottom)) +
947 widthSize = resolveAdjustedSize(newWidth, mMaxWidth, widthMeasureSpec);
950 if (newWidth <= widthSize) {
951 widthSize = newWidth;
H A DTabWidget.java201 final int newWidth = Math.max(0, childWidth - delta);
202 mImposedTabWidths[i] = newWidth;
204 extraWidth -= childWidth - newWidth; // delta may have been clamped
/frameworks/base/core/java/com/android/internal/widget/
H A DScrollingTabContainerView.java122 final int newWidth = getMeasuredWidth();
124 if (lockedExpanded && oldWidth != newWidth) {
/frameworks/base/core/jni/
H A Dandroid_app_NativeActivity.cpp525 int32_t newWidth = getWindowProp(code->nativeWindow.get(), local
529 if (newWidth != code->lastWindowWidth
/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/av/media/libstagefright/omx/
H A DSoftVideoDecoderOMXComponent.cpp389 uint32_t newWidth = video_def->nFrameWidth; local
391 if (newWidth != oldWidth || newHeight != oldHeight) {
395 mWidth = newWidth;
405 def->format.video.nFrameWidth = newWidth;
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DParameters.cpp84 int newWidth = availablePreviewSizes[i].width; local
86 if (newWidth >= previewWidth && newHeight >= previewHeight &&
87 newWidth <= MAX_INITIAL_PREVIEW_WIDTH &&
90 if (availableVideoSizes[j].width == newWidth &&
92 previewWidth = newWidth;

Completed in 310 milliseconds