Home
last modified time | relevance | path

Searched refs:currentWidth (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DCamera2SurfaceViewActivity.java37 private int currentWidth = 0; field in Camera2SurfaceViewActivity
67 if (expectWidth == currentWidth && expectHeight == currentHeight) { in waitForSurfaceSizeChanged()
83 if (currentWidth == expectWidth && currentHeight == expectHeight) { in waitForSurfaceSizeChanged()
105 currentWidth = width; 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()
82 final float widthRatio = (float) currentWidth / physicalWidth; in getPhysicalPixelDisplaySizeRatio()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/wrapper/
DDisplayUtilsWrapper.kt28 currentWidth: Int, in getPhysicalPixelDisplaySizeRatio()
34 currentWidth, in getPhysicalPixelDisplaySizeRatio()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/surfaceeffects/ripple/
DRippleShader.kt234 setFloatUniform("in_size", rippleSize.currentWidth, rippleSize.currentHeight)
239 Math.min(rippleSize.currentWidth, rippleSize.currentHeight)
389 var currentWidth: Float = 0f variable in com.android.systemui.surfaceeffects.ripple.RippleSize
431 currentWidth = targetSize.width * subProgress + prevSize.width in update()
DRippleView.kt234 val maskRadius = rippleShader.rippleSize.currentWidth in <lambda>()
237 val maskWidth = rippleShader.rippleSize.currentWidth * 2 in <lambda>()
/frameworks/base/core/java/com/android/internal/graphics/palette/
DColorCutQuantizer.java493 private static int modifyWordWidth(int value, int currentWidth, int targetWidth) { in modifyWordWidth() argument
495 if (targetWidth > currentWidth) { in modifyWordWidth()
497 newValue = value << (targetWidth - currentWidth); in modifyWordWidth()
500 newValue = value >> (currentWidth - targetWidth); in modifyWordWidth()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/animation/
DTransitionLayoutController.kt60 private var currentWidth: Int = 0 variable in com.android.systemui.util.animation.TransitionLayoutController
86 if (currentHeight != state.height || currentWidth != state.width) { in applyStateToLayout()
88 currentWidth = state.width in applyStateToLayout()
89 sizeChangedListener?.invoke(currentWidth, currentHeight) in applyStateToLayout()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
DPipBoundsStateTest.java99 final int currentWidth = mPipBoundsState.getBounds().width(); in testBoundsScale() local
101 final float expectedBoundsScale = Math.min((float) currentWidth / maxSize.x, 1.0f); in testBoundsScale()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarContentInsetsProvider.kt628 currentWidth: Int, in shareShortEdge()
631 if (currentWidth < currentHeight) { in shareShortEdge()
634 return sbRect.intersects(0, cutoutRect.top, currentWidth, cutoutRect.bottom) in shareShortEdge()
635 } else if (currentWidth > currentHeight) { in shareShortEdge()
/frameworks/native/libs/nativedisplay/surfacetexture/
DSurfaceTexture.cpp366 uint32_t currentWidth = static_cast<uint32_t>(crop.width()); in scaleDownCrop() local
370 if (newWidth < currentWidth) { in scaleDownCrop()
371 uint32_t dw = currentWidth - newWidth; in scaleDownCrop()
/frameworks/av/services/camera/libcameraservice/api2/
DDepthCompositeStream.cpp854 auto currentWidth = std::get<0>(it); in getMatchingDepthSize() local
856 if ((currentWidth == width) && (currentHeight == height)) { in getMatchingDepthSize()
861 float currentRatio = static_cast<float> (currentWidth) / in getMatchingDepthSize()
863 auto currentSize = currentWidth * currentHeight; in getMatchingDepthSize()
866 *depthWidth = currentWidth; in getMatchingDepthSize()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/wifi/ui/view/
DModernStatusBarWifiViewTest.kt180 val currentWidth = view.width in setVisibleState_hidden_keepWidth() constant
188 assertThat(view.width).isAtLeast(currentWidth) in setVisibleState_hidden_keepWidth()
/frameworks/native/libs/gui/
DGLConsumer.cpp762 uint32_t currentWidth = static_cast<uint32_t>(crop.width()); in scaleDownCrop() local
766 if (newWidth < currentWidth) { in scaleDownCrop()
767 uint32_t dw = currentWidth - newWidth; in scaleDownCrop()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/
DBubbleBarAnimationHelper.java365 float currentWidth = bbev.getWidth() * bbev.getScaleX(); in animateIntoTarget() local
366 mTmpLocation[0] += (int) (currentWidth / 2f); in animateIntoTarget()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthRippleView.kt343 rippleShader.rippleSize.currentWidth, ripplePaint) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/
DMediaViewController.kt146 var currentWidth: Int = 0 in <lambda>() variable in com.android.systemui.media.controls.ui.controller.MediaViewController
327 currentWidth = width in <lambda>()
DMediaCarouselController.kt1279 width = Math.max(width, controller.currentWidth + controller.translationX.toInt()) in <lambda>()
1287 width = Math.max(width, it.currentWidth + it.translationX.toInt()) in <lambda>()