Home
last modified time | relevance | path

Searched refs:targetHeight (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/util/
DMediaDataUtils.java105 float targetHeight = (float) target.second; in getScaleFactor() local
107 if (width == 0 || height == 0 || targetWidth == 0 || targetHeight == 0) { in getScaleFactor()
111 if ((width / height) > (targetWidth / targetHeight)) { in getScaleFactor()
113 return targetHeight / height; in getScaleFactor()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/
DDesktopModeUtils.kt113 val targetHeight = targetArea.height in maximumSizeMaintainingAspectRatio() constant
118 val tempWidth = (targetHeight / aspectRatio).toInt() in maximumSizeMaintainingAspectRatio()
120 finalHeight = targetHeight in maximumSizeMaintainingAspectRatio()
127 val tempWidth = (targetHeight * aspectRatio).toInt() in maximumSizeMaintainingAspectRatio()
129 finalHeight = targetHeight in maximumSizeMaintainingAspectRatio()
/frameworks/base/media/java/android/media/
DThumbnailUtils.java473 int targetHeight, in transform() argument
479 int deltaY = source.getHeight() - targetHeight; in transform()
487 Bitmap b2 = Bitmap.createBitmap(targetWidth, targetHeight, in transform()
497 deltaYHalf + Math.min(targetHeight, source.getHeight())); in transform()
499 int dstY = (targetHeight - src.height()) / 2; in transform()
504 targetHeight - dstY); in transform()
516 float viewAspect = (float) targetWidth / targetHeight; in transform()
519 float scale = targetHeight / bitmapHeightF; in transform()
548 int dy1 = Math.max(0, b1.getHeight() - targetHeight); in transform()
555 targetHeight); in transform()
/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/hdr/
DGainmapDecodeTest.kt90 val targetHeight = (size.height * .33).toInt() in decode() constant
91 decoder.setTargetSize(targetWidth, targetHeight) in decode()
92 val dimen = minOf(targetWidth, targetHeight) in decode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DExpandHelper.java617 float targetHeight = nowExpanded ? naturalHeight : mSmallSize; in finishExpanding() local
618 if (targetHeight != currentHeight && mEnabled && allowAnimation) { in finishExpanding()
619 mScaleAnimation.setFloatValues(targetHeight); in finishExpanding()
649 mFlingAnimationUtils.apply(mScaleAnimation, currentHeight, targetHeight, velocity); in finishExpanding()
652 if (targetHeight != currentHeight) { in finishExpanding()
653 mScaler.setHeight(targetHeight); in finishExpanding()
669 if (DEBUG) Log.d(TAG, "targetHeight is: " + targetHeight); in finishExpanding()
/frameworks/base/core/java/com/android/internal/widget/
DMessagingLinearLayout.java82 int targetHeight = MeasureSpec.getSize(heightMeasureSpec); in onMeasure() local
85 targetHeight = Integer.MAX_VALUE; in onMeasure()
118 for (int i = count - 1; i >= 0 && totalHeight < targetHeight; i--) { in onMeasure()
156 boolean showView = newHeight <= targetHeight && !isTooSmall; in onMeasure()
DSlidingTab.java351 final int targetHeight = targetDrawable.getIntrinsicHeight(); in layout() local
362 final int targetTop = (parentHeight - targetHeight) / 2; in layout()
363 final int targetBottom = targetTop + targetHeight; in layout()
383 final int top = (int) (THRESHOLD * parentHeight) + handleHeight / 2 - targetHeight; in layout()
388 target.layout(targetLeft, top, targetRight, top + targetHeight); in layout()
393 target.layout(targetLeft, bottom, targetRight, bottom + targetHeight); in layout()
DLocalImageResolver.java228 final int targetHeight = size.getHeight() * maxWidth / size.getWidth(); in resolveImage() local
229 decoder.setTargetSize(maxWidth, targetHeight); in resolveImage()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardClockSwitch.java69 int targetHeight = parent.getResources() in getLargeClockRegion() local
73 int top = parent.getHeight() / 2 - targetHeight / 2 in getLargeClockRegion()
79 top + targetHeight); in getLargeClockRegion()
84 int targetHeight = parent.getResources() in getSmallClockRegion() local
91 parent.getTop() + targetHeight); in getSmallClockRegion()
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/touch/
DBouncerSwipeTouchHandler.java372 final float targetHeight = viewHeight * expansion; in flingToExpansion() local
376 mFlingAnimationUtilsClosing.apply(animator, currentHeight, targetHeight, velocity, in flingToExpansion()
381 animator, currentHeight, targetHeight, velocity, viewHeight); in flingToExpansion()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
DDividerHandleView.java144 private void animateToTarget(int targetWidth, int targetHeight, boolean touching) { in animateToTarget() argument
148 mCurrentHeight, targetHeight); in animateToTarget()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DCropFilter.java106 float targetHeight = croppedDims[1] / (float)extDims[1]; in onProcess() local
107 Quad targetQuad = Quad.fromRect(0f, 0f, targetWidth, targetHeight); in onProcess()
/frameworks/base/libs/hwui/hwui/
DImageDecoder.cpp429 int targetHeight = mTargetSize.height(); in decode() local
431 outputMatrix.preConcat(SkEncodedOriginToMatrix(origin, targetWidth, targetHeight)); in decode()
433 std::swap(targetWidth, targetHeight); in decode()
438 float scaleY = (float) targetHeight / mDecodeSize.height(); in decode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/graphics/
DImageLoader.kt495 val targetHeight = (imgSize.height * scale).toInt() in <lambda>() constant
497 Log.d(TAG, "Configured image size to $targetWidth x $targetHeight") in <lambda>()
500 decoder.setTargetSize(targetWidth, targetHeight) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DBigPictureIconManager.kt291 val targetHeight = (height * scale).toInt() in Size() constant
293 return Size(targetWidth, targetHeight) in Size()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/back/
DCrossTaskBackAnimation.java220 float targetHeight = mStartTaskRect.height() * MIN_WINDOW_SCALE;
225 float height = mapRange(progress, mClosingStartRect.height(), targetHeight);
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/
DBubbleBarAnimationHelper.java371 float targetHeight = bbev.getHeight() * EXPANDED_VIEW_IN_TARGET_SCALE; in animateIntoTarget() local
372 mTmpLocation[1] += (int) (targetHeight / 2f); in animateIntoTarget()
/frameworks/base/libs/hwui/jni/
DImageDecoder.cpp252 jint targetWidth, jint targetHeight, jobject jsubset, in ImageDecoder_nDecodeBitmap() argument
259 if (!decoder->setTargetSize(targetWidth, targetHeight)) { in ImageDecoder_nDecodeBitmap()
/frameworks/base/core/java/com/android/internal/widget/floatingtoolbar/
DLocalFloatingToolbarPopup.java574 final int targetHeight = mOverflowPanelSize.getHeight(); in openOverflow() local
604 int deltaHeight = (int) (interpolatedTime * (targetHeight - startHeight)); in openOverflow()
675 final int targetHeight = mMainPanelSize.getHeight(); in closeOverflow() local
681 int deltaHeight = (int) (interpolatedTime * (targetHeight - startHeight)); in closeOverflow()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/volume/ui/composable/
DColumnVolumeSliders.kt219 targetHeight = { (it * SHRINK_FRACTION).toInt() }, in exitTransition()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/binder/
DMediaControlViewBinder.kt502 targetHeight: Int in <lambda>()
508 MediaDataUtils.getScaleFactor(Pair(width, height), Pair(targetWidth, targetHeight)) in <lambda>()
/frameworks/base/core/java/android/app/
DActivityOptions.java964 Bitmap thumbnail, int startX, int startY, int targetWidth, int targetHeight, in makeThumbnailAspectScaleDownAnimation() argument
967 targetWidth, targetHeight, handler, listener, false); in makeThumbnailAspectScaleDownAnimation()
972 int startX, int startY, int targetWidth, int targetHeight, in makeAspectScaledThumbnailAnimation() argument
984 opts.mHeight = targetHeight; in makeAspectScaledThumbnailAnimation()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/qs/footer/ui/compose/
DFooterActions.kt109 targetHeight = { 0 }, in <lambda>()
/frameworks/base/graphics/java/android/graphics/
DImageDecoder.java1245 int targetHeight = getTargetDimension(mHeight, sampleSize, size.getHeight()); in setTargetSampleSize() local
1246 this.setTargetSize(targetWidth, targetHeight); in setTargetSampleSize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DNotificationPanelViewController.java2703 float targetHeight = mQsController.getMinExpansionHeight() + qsExpansionFraction in onHeightUpdated() local
2706 mQsController.setExpansionHeight(targetHeight); in onHeightUpdated()
4180 private ValueAnimator createHeightAnimator(float targetHeight) {
4181 return createHeightAnimator(targetHeight, 0.0f /* performOvershoot */);
4190 private ValueAnimator createHeightAnimator(float targetHeight, float overshootAmount) {
4192 ValueAnimator animator = ValueAnimator.ofFloat(mExpandedHeight, targetHeight);
4198 || (targetHeight == 0.0f && startExpansion != 0)) {

12