Home
last modified time | relevance | path

Searched refs:newHeight (Results 1 – 25 of 33) sorted by relevance

12

/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/libs/hwui/surfacetexture/
DSurfaceTexture.cpp366 uint32_t newHeight = static_cast<uint32_t>(crop.height()); in scaleDownCrop() local
368 if (newWidth * bufferHeight > newHeight * bufferWidth) { in scaleDownCrop()
369 newWidth = newHeight * bufferWidth / bufferHeight; in scaleDownCrop()
371 } else if (newWidth * bufferHeight < newHeight * bufferWidth) { in scaleDownCrop()
372 newHeight = newWidth * bufferHeight / bufferWidth; in scaleDownCrop()
373 ALOGV("too tall: newHeight = %d", newHeight); in scaleDownCrop()
387 } else if (newHeight < currentHeight) { in scaleDownCrop()
388 uint32_t dh = currentHeight - newHeight; in scaleDownCrop()
/frameworks/base/services/core/java/com/android/server/wm/utils/
DCoordinateTransforms.java129 @Rotation int newRotation, int newWidth, int newHeight, Matrix out) { in transformToRotation() argument
131 final int h = flipped ? newWidth : newHeight; in transformToRotation()
132 final int w = flipped ? newHeight : newWidth; in transformToRotation()
/frameworks/base/core/java/android/content/res/
DCompatibilityInfo.java527 int newWidth, newHeight; in computeCompatibleScaling() local
530 newHeight = newLongSize; in computeCompatibleScaling()
533 newHeight = newShortSize; in computeCompatibleScaling()
537 float sh = height/(float)newHeight; in computeCompatibleScaling()
545 outDm.heightPixels = newHeight; in computeCompatibleScaling()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DHardwareUiLayout.java167 int newHeight = mList.getMeasuredHeight(); in onMeasure() local
168 if (newHeight != mOldHeight) { in onMeasure()
169 animateChild(mOldHeight, newHeight); in onMeasure()
408 private void animateChild(int oldHeight, int newHeight) { in animateChild() argument
423 int toTop = fromTop - ((newHeight - oldHeight) / 2); in animateChild()
424 int toBottom = fromBottom + ((newHeight - oldHeight) / 2); in animateChild()
DExpandHelper.java197 float newHeight = clamp(target); in updateExpansion() local
198 mScaler.setHeight(newHeight); in updateExpansion()
447 final float newHeight = clamp(rawHeight); in onTouchEvent() local
466 mScaler.setHeight(newHeight); in onTouchEvent()
/frameworks/base/core/java/android/app/
DWallpaperColors.java439 int newHeight = (int) (height * scale); in calculateOptimalSize() local
445 if (newHeight == 0) { in calculateOptimalSize()
446 newHeight = 1; in calculateOptimalSize()
449 return new Size(newWidth, newHeight); in calculateOptimalSize()
/frameworks/native/libs/gui/
DGLConsumer.cpp753 uint32_t newHeight = static_cast<uint32_t>(crop.height()); in scaleDownCrop() local
755 if (newWidth * bufferHeight > newHeight * bufferWidth) { in scaleDownCrop()
756 newWidth = newHeight * bufferWidth / bufferHeight; in scaleDownCrop()
758 } else if (newWidth * bufferHeight < newHeight * bufferWidth) { in scaleDownCrop()
759 newHeight = newWidth * bufferHeight / bufferWidth; in scaleDownCrop()
760 ALOGV("too tall: newHeight = %d", newHeight); in scaleDownCrop()
774 } else if (newHeight < currentHeight) { in scaleDownCrop()
775 uint32_t dh = currentHeight - newHeight; in scaleDownCrop()
/frameworks/base/core/java/com/android/internal/widget/
DMessagingLinearLayout.java112 int newHeight = Math.max(totalHeight, totalHeight + childHeight + lp.topMargin + in onMeasure() local
124 if (newHeight <= targetHeight && !isTooSmall) { in onMeasure()
125 totalHeight = newHeight; in onMeasure()
DFloatingToolbar.java1074 final int newHeight = calculateOverflowHeight(maxItemSize); in updateOverflowHeight() local
1075 if (mOverflowPanelSize.getHeight() != newHeight) { in updateOverflowHeight()
1076 mOverflowPanelSize = new Size(mOverflowPanelSize.getWidth(), newHeight); in updateOverflowHeight()
1082 final int deltaHeight = mOverflowPanelSize.getHeight() - newHeight; in updateOverflowHeight()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DPulseExpansionHandler.kt238 val newHeight = Math.min((child.collapsedHeight + expansionHeight).toInt(), in <lambda>() constant
240 child.actualHeight = newHeight in <lambda>()
241 expansionHeight = max(newHeight.toFloat(), expansionHeight) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DExpandableViewState.java142 int newHeight = this.height; in applyToView() local
145 if (height != newHeight) { in applyToView()
146 expandableView.setActualHeight(newHeight, false /* notifyListeners */); in applyToView()
DNotificationChildrenContainer.java643 int newHeight = intrinsicHeight;
646 newHeight = Math.max((parentHeight - top), 0);
648 childState.hidden = newHeight == 0;
649 childState.height = newHeight;
DStackScrollAlgorithm.java172 float newHeight = state.height; in updateClipping() local
173 float newNotificationEnd = newYTranslation + newHeight; in updateClipping()
/frameworks/av/media/libstagefright/omx/
DSoftVideoDecoderOMXComponent.cpp500 uint32_t newHeight = video_def->nFrameHeight; in internalSetParameter() local
504 if (newWidth > 32768 || newHeight > 32768 in internalSetParameter()
510 if (newWidth != oldWidth || newHeight != oldHeight) { in internalSetParameter()
515 mHeight = newHeight; in internalSetParameter()
525 def->format.video.nFrameHeight = newHeight; in internalSetParameter()
/frameworks/native/services/surfaceflinger/
DDisplayDevice.cpp198 void DisplayDevice::setDisplaySize(const int newWidth, const int newHeight) { in setDisplaySize() argument
199 mCompositionDisplay->setBounds(ui::Size(newWidth, newHeight)); in setDisplaySize()
DDisplayDevice.h95 void setDisplaySize(const int newWidth, const int newHeight);
/frameworks/av/cmds/screenrecord/
Dscreenrecord.cpp639 uint32_t newHeight = needSwap ? kFallbackWidth : kFallbackHeight; in recordScreen() local
640 if (gVideoWidth != newWidth && gVideoHeight != newHeight) { in recordScreen()
643 gVideoWidth, gVideoHeight, newWidth, newHeight); in recordScreen()
645 gVideoHeight = newHeight; in recordScreen()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPanelView.java374 float newHeight = Math.max(0, h + mInitialOffsetOnTouch); in onTouchEvent() local
375 if (newHeight > mPeekHeight) { in onTouchEvent()
388 newHeight = Math.max(newHeight, mMinExpandHeight); in onTouchEvent()
395 setExpandedHeightInternal(newHeight); in onTouchEvent()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskPositioner.java590 int newHeight) { in updateDraggedBounds() argument
598 top = bottom - newHeight; in updateDraggedBounds()
600 bottom = top + newHeight; in updateDraggedBounds()
/frameworks/base/core/java/android/widget/
DImageView.java1204 int newHeight = (int)((widthSize - pleft - pright) / desiredAspect) + in onMeasure() local
1209 heightSize = resolveAdjustedSize(newHeight, mMaxHeight, in onMeasure()
1213 if (newHeight <= heightSize) { in onMeasure()
1214 heightSize = newHeight; in onMeasure()
/frameworks/base/media/java/android/media/session/
DMediaSessionLegacyHelper.java304 int newHeight = Math.round(scale * height); in scaleBitmapIfTooBig() local
309 Bitmap outBitmap = Bitmap.createBitmap(newWidth, newHeight, newConfig); in scaleBitmapIfTooBig()
/frameworks/base/core/jni/
Dandroid_app_NativeActivity.cpp590 int32_t newHeight = getWindowProp(code->nativeWindow.get(), in onSurfaceChanged_native() local
593 || newHeight != code->lastWindowHeight) { in onSurfaceChanged_native()
/frameworks/base/core/java/android/inputmethodservice/
DInputMethodService.java1363 final int newHeight = isFullscreen ? MATCH_PARENT : WRAP_CONTENT; in onConfigureWindow() local
1364 if (mIsInputViewShown && currentHeight != newHeight) { in onConfigureWindow()
1367 + "window: " + currentHeight + " -> " + newHeight); in onConfigureWindow()
1370 mWindow.getWindow().setLayout(MATCH_PARENT, newHeight); in onConfigureWindow()
/frameworks/base/core/java/com/android/internal/app/
DChooserActivity.java3727 int newHeight = Math.min(prevHeight + yDiff, mDirectShareMaxHeight);
3728 newHeight = Math.max(newHeight, mDirectShareMinHeight);
3729 yDiff = newHeight - prevHeight;
3746 int heightSpec = MeasureSpec.makeMeasureSpec(newHeight,
3759 mDirectShareCurrHeight = newHeight;

12