Home
last modified time | relevance | path

Searched refs:currentHeight (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/nestedscroll/
DLargeTopAppBarNestedScrollConnection.kt56 val currentHeight = height() in <lambda>() constant
57 minHeight() < currentHeight && currentHeight < maxHeight() in <lambda>()
62 val currentHeight = height() in <lambda>() constant
65 val amountLeft = maxHeight() - currentHeight in <lambda>()
68 val amountLeft = minHeight() - currentHeight in <lambda>()
71 onHeightChanged(currentHeight + amountConsumed) in <lambda>()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/
DNotificationScrimNestedScrollConnection.kt60 val currentHeight = scrimOffset() in <lambda>() constant
61 minScrimOffset() < currentHeight && currentHeight < maxScrimOffset in <lambda>()
66 val currentHeight = scrimOffset() in offsetAvailable() constant
69 val amountLeft = maxScrimOffset - currentHeight in offsetAvailable()
72 val amountLeft = minScrimOffset() - currentHeight in offsetAvailable()
75 snapScrimOffset(currentHeight + amountConsumed) in offsetAvailable()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DCamera2SurfaceViewActivity.java38 private int currentHeight = 0; field in Camera2SurfaceViewActivity
67 if (expectWidth == currentWidth && expectHeight == currentHeight) { in waitForSurfaceSizeChanged()
83 if (currentWidth == expectWidth && currentHeight == expectHeight) { in waitForSurfaceSizeChanged()
106 currentHeight = height; in surfaceChanged()
/frameworks/base/core/java/android/util/
DDisplayUtils.java78 int physicalWidth, int physicalHeight, int currentWidth, int currentHeight) { in getPhysicalPixelDisplaySizeRatio() argument
79 if (physicalWidth == currentWidth && physicalHeight == currentHeight) { in getPhysicalPixelDisplaySizeRatio()
83 final float heightRatio = (float) currentHeight / physicalHeight; in getPhysicalPixelDisplaySizeRatio()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/wrapper/
DDisplayUtilsWrapper.kt29 currentHeight: Int in getPhysicalPixelDisplaySizeRatio()
35 currentHeight in getPhysicalPixelDisplaySizeRatio()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/surfaceeffects/ripple/
DRippleShader.kt234 setFloatUniform("in_size", rippleSize.currentWidth, rippleSize.currentHeight)
235 setFloatUniform("in_thickness", rippleSize.currentHeight * 0.5f)
239 Math.min(rippleSize.currentWidth, rippleSize.currentHeight)
391 var currentHeight: Float = 0f variable in com.android.systemui.surfaceeffects.ripple.RippleSize
432 currentHeight = targetSize.height * subProgress + prevSize.height in update()
DRippleView.kt238 val maskHeight = rippleShader.rippleSize.currentHeight * 2 in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DExpandHelper.java599 float currentHeight = mScaler.getHeight(); in finishExpanding() local
604 nowExpanded = currentHeight > mOldHeight && velocity >= 0; in finishExpanding()
606 nowExpanded = currentHeight >= mOldHeight || velocity > 0; in finishExpanding()
618 if (targetHeight != currentHeight && mEnabled && allowAnimation) { in finishExpanding()
649 mFlingAnimationUtils.apply(mScaleAnimation, currentHeight, targetHeight, velocity); in finishExpanding()
652 if (targetHeight != currentHeight) { in finishExpanding()
667 if (DEBUG) Log.d(TAG, "currentHeight is: " + currentHeight); in finishExpanding()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/animation/
DTransitionLayoutController.kt59 private var currentHeight: Int = 0 variable in com.android.systemui.util.animation.TransitionLayoutController
86 if (currentHeight != state.height || currentWidth != state.width) { in applyStateToLayout()
87 currentHeight = state.height in applyStateToLayout()
89 sizeChangedListener?.invoke(currentWidth, currentHeight) in applyStateToLayout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/touch/
DBouncerSwipeTouchHandler.java371 final float currentHeight = viewHeight * mCurrentExpansion; in flingToExpansion() local
376 mFlingAnimationUtilsClosing.apply(animator, currentHeight, targetHeight, velocity, in flingToExpansion()
381 animator, currentHeight, targetHeight, velocity, viewHeight); in flingToExpansion()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarContentInsetsProvider.kt629 currentHeight: Int in shareShortEdge()
631 if (currentWidth < currentHeight) { in shareShortEdge()
635 } else if (currentWidth > currentHeight) { in shareShortEdge()
637 return sbRect.intersects(cutoutRect.left, 0, cutoutRect.right, currentHeight) in shareShortEdge()
/frameworks/native/libs/nativedisplay/surfacetexture/
DSurfaceTexture.cpp367 uint32_t currentHeight = static_cast<uint32_t>(crop.height()); in scaleDownCrop() local
377 } else if (newHeight < currentHeight) { in scaleDownCrop()
378 uint32_t dh = currentHeight - newHeight; in scaleDownCrop()
/frameworks/av/services/camera/libcameraservice/api2/
DDepthCompositeStream.cpp855 auto currentHeight = std::get<1>(it); in getMatchingDepthSize() local
856 if ((currentWidth == width) && (currentHeight == height)) { in getMatchingDepthSize()
862 static_cast<float> (currentHeight); in getMatchingDepthSize()
863 auto currentSize = currentWidth * currentHeight; in getMatchingDepthSize()
867 *depthHeight = currentHeight; in getMatchingDepthSize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/taptotransfer/receiver/
DReceiverChipRippleView.kt101 val ratio = rippleShader.rippleSize.currentHeight / newHeight in <lambda>()
/frameworks/native/libs/gui/
DGLConsumer.cpp763 uint32_t currentHeight = static_cast<uint32_t>(crop.height()); in scaleDownCrop() local
773 } else if (newHeight < currentHeight) { in scaleDownCrop()
774 uint32_t dh = currentHeight - newHeight; in scaleDownCrop()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSImpl.java647 int currentHeight = getView().getHeight(); in setQsExpansion() local
650 && mLastViewHeight == currentHeight in setQsExpansion()
661 mLastViewHeight = currentHeight; in setQsExpansion()
/frameworks/base/core/java/android/window/
DSplashScreenView.java594 final int currentHeight = b - t; in onLayout() local
607 final int remainingHeight = currentHeight - mTmpPos[1] - iconHeight; in onLayout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/
DMediaViewController.kt151 var currentHeight: Int = 0 in <lambda>() variable in com.android.systemui.media.controls.ui.controller.MediaViewController
328 currentHeight = height in <lambda>()
DMediaCarouselController.kt1281 Math.max(height, controller.currentHeight + controller.translationY.toInt()) in <lambda>()
1288 height = Math.max(height, it.currentHeight + it.translationY.toInt()) in <lambda>()
/frameworks/base/core/java/android/inputmethodservice/
DInputMethodService.java2213 final int currentHeight = mWindow.getWindow().getAttributes().height; in onConfigureWindow() local
2215 if (mIsInputViewShown && currentHeight != newHeight) { in onConfigureWindow()
2218 + "window: " + currentHeight + " -> " + newHeight); in onConfigureWindow()