Home
last modified time | relevance | path

Searched refs:newHeight (Results 1 – 25 of 37) 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/native/libs/nativedisplay/surfacetexture/
DSurfaceTexture.cpp354 uint32_t newHeight = static_cast<uint32_t>(crop.height()); in scaleDownCrop() local
356 if (newWidth * bufferHeight > newHeight * bufferWidth) { in scaleDownCrop()
357 newWidth = newHeight * bufferWidth / bufferHeight; in scaleDownCrop()
359 } else if (newWidth * bufferHeight < newHeight * bufferWidth) { in scaleDownCrop()
360 newHeight = newWidth * bufferHeight / bufferWidth; in scaleDownCrop()
361 ALOGV("too tall: newHeight = %d", newHeight); in scaleDownCrop()
375 } else if (newHeight < currentHeight) { in scaleDownCrop()
376 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/packages/SystemUI/src/com/android/systemui/util/
DNeverExactlyLinearLayout.kt40 val newHeight = if (heightExactly) height else measuredHeight in onMeasure() constant
41 setMeasuredDimension(newWidth, newHeight) in onMeasure()
/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/core/java/android/app/
DWallpaperColors.java447 int newHeight = (int) (height * scale); in calculateOptimalSize() local
453 if (newHeight == 0) { in calculateOptimalSize()
454 newHeight = 1; in calculateOptimalSize()
457 return new Size(newWidth, newHeight); in calculateOptimalSize()
/frameworks/native/libs/gui/
DGLConsumer.cpp752 uint32_t newHeight = static_cast<uint32_t>(crop.height()); in scaleDownCrop() local
754 if (newWidth * bufferHeight > newHeight * bufferWidth) { in scaleDownCrop()
755 newWidth = newHeight * bufferWidth / bufferHeight; in scaleDownCrop()
757 } else if (newWidth * bufferHeight < newHeight * bufferWidth) { in scaleDownCrop()
758 newHeight = newWidth * bufferHeight / bufferWidth; in scaleDownCrop()
759 ALOGV("too tall: newHeight = %d", newHeight); in scaleDownCrop()
773 } else if (newHeight < currentHeight) { in scaleDownCrop()
774 uint32_t dh = currentHeight - newHeight; in scaleDownCrop()
/frameworks/base/core/java/com/android/internal/widget/
DMessagingLinearLayout.java130 int newHeight = Math.max(totalHeight, totalHeight + childHeight + lp.topMargin + in onMeasure() local
141 boolean showView = newHeight <= targetHeight && !isTooSmall; in onMeasure()
151 totalHeight = newHeight; in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DPulseExpansionHandler.kt241 val newHeight = Math.min((child.collapsedHeight + expansionHeight).toInt(), in <lambda>() constant
243 child.actualHeight = newHeight in <lambda>()
244 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.java678 int newHeight = intrinsicHeight;
681 newHeight = Math.max((parentHeight - top), 0);
683 childState.hidden = newHeight == 0;
684 childState.height = newHeight;
DStackScrollAlgorithm.java175 float newHeight = state.height; in updateClipping() local
176 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/base/packages/SystemUI/src/com/android/systemui/util/animation/
DTransitionLayout.kt60 val newHeight = value.height constant
61 if (newWidth != desiredMeasureWidth || newHeight != desiredMeasureHeight) {
63 desiredMeasureHeight = newHeight
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DExpandHelper.java200 float newHeight = clamp(target); in updateExpansion() local
201 mScaler.setHeight(newHeight); in updateExpansion()
457 final float newHeight = clamp(rawHeight); in onTouchEvent() local
476 mScaler.setHeight(newHeight); in onTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPanelViewController.java1289 float newHeight = Math.max(0, h + mInitialOffsetOnTouch); in onTouch() local
1290 if (newHeight > mPeekHeight) { in onTouch()
1303 newHeight = Math.max(newHeight, mMinExpandHeight); in onTouch()
1310 setExpandedHeightInternal(newHeight); in onTouch()
/frameworks/av/cmds/screenrecord/
Dscreenrecord.cpp729 uint32_t newHeight = needSwap ? kFallbackWidth : kFallbackHeight; in recordScreen() local
730 if (gVideoWidth != newWidth && gVideoHeight != newHeight) { in recordScreen()
733 gVideoWidth, gVideoHeight, newWidth, newHeight); in recordScreen()
735 gVideoHeight = newHeight; in recordScreen()
/frameworks/base/cmds/bootanimation/
DBootAnimation.h174 void resizeSurface(int newWidth, int newHeight);
DBootAnimation.cpp473 void BootAnimation::resizeSurface(int newWidth, int newHeight) { in resizeSurface() argument
475 if (newWidth == mWidth && newHeight == mHeight) { in resizeSurface()
478 SLOGV("Resizing the boot animation surface to %d %d", newWidth, newHeight); in resizeSurface()
483 const auto limitedSize = limitSurfaceSize(newWidth, newHeight); in resizeSurface()
/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/services/tests/wmtests/src/com/android/server/wm/
DActivityRecordTests.java425 final int newHeight = stableRect.width() - 10; in ignoreRequestedOrientationInFreeformWindows() local
426 bounds.top = stableRect.top + (stableRect.height() - newHeight) / 2; in ignoreRequestedOrientationInFreeformWindows()
427 bounds.bottom = bounds.top + newHeight; in ignoreRequestedOrientationInFreeformWindows()
464 final int newHeight = stableRect.width() - 10; in ignoreRequestedOrientationInSplitWindows() local
465 bounds.top = stableRect.top + (stableRect.height() - newHeight) / 2; in ignoreRequestedOrientationInSplitWindows()
466 bounds.bottom = bounds.top + newHeight; in ignoreRequestedOrientationInSplitWindows()
/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/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthBiometricView.java308 final int newHeight = mIconView.getHeight() + 2 * (int) iconPadding in updateSize() local
310 mPanelController.updateForContentDimensions(mMediumWidth, newHeight, in updateSize()
/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/packages/SystemUI/src/com/android/systemui/qs/
DQSPanel.java295 int newHeight = 10000; in onMeasure() local
297 int excessHeight = newHeight - availableHeight; in onMeasure()
302 heightMeasureSpec = MeasureSpec.makeMeasureSpec(newHeight, MeasureSpec.EXACTLY); in onMeasure()

12