Home
last modified time | relevance | path

Searched refs:fromValue (Results 1 – 24 of 24) sorted by relevance

/aosp14/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/animation/scene/
H A DAnimateSharedAsState.kt150 val fromValue = sceneValue(state.fromScene) regex
152 return if (fromValue != null && toValue != null) {
154 lerp(fromValue.value, toValue.value, progress)
155 } else if (fromValue != null) {
156 fromValue.value
/aosp14/frameworks/base/core/java/android/view/
H A DViewPropertyAnimator.java238 NameValuesHolder(int nameConstant, float fromValue, float deltaValue) { in NameValuesHolder() argument
240 mFromValue = fromValue; in NameValuesHolder()
914 float fromValue = getValue(constantName); in animateProperty() local
915 float deltaValue = toValue - fromValue; in animateProperty()
916 animatePropertyBy(constantName, fromValue, deltaValue); in animateProperty()
928 float fromValue = getValue(constantName); in animatePropertyBy() local
929 animatePropertyBy(constantName, fromValue, byValue); in animatePropertyBy()
H A DMenuItem.java319 return BlendMode.fromValue(mode.nativeInt); in getIconTintBlendMode()
H A DView.java25437 mode = BlendMode.fromValue(tintMode.nativeInt); in setBackgroundTintMode()
25702 mode = BlendMode.fromValue(tintMode.nativeInt); in setForegroundTintMode()
/aosp14/frameworks/base/libs/hwui/
H A DPropertyValuesHolder.cpp29 inline constexpr float lerp(float fromValue, float toValue, float fraction) { in lerp() argument
30 return float(fromValue * (1 - fraction) + toValue * fraction); in lerp()
/aosp14/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/common/material/
H A DSwipeable.kt622 fun Density.computeThreshold(fromValue: Float, toValue: Float): Float
632 override fun Density.computeThreshold(fromValue: Float, toValue: Float): Float {
633 return fromValue + offset.toPx() * sign(toValue - fromValue)
647 override fun Density.computeThreshold(fromValue: Float, toValue: Float): Float {
648 return lerp(fromValue, toValue, fraction)
/aosp14/frameworks/base/services/core/java/com/android/server/input/
H A DKeyboardBacklightController.java624 int fromValue = Color.alpha(mNative.getLightColor(mDeviceId, mLight.getId())); in setBacklightValue() local
625 if (fromValue == toValue) { in setBacklightValue()
629 startAnimation(fromValue, toValue); in setBacklightValue()
635 private void startAnimation(int fromValue, int toValue) { in startAnimation() argument
638 mAnimator = mAnimatorFactory.makeIntAnimator(fromValue, toValue); in startAnimation()
/aosp14/frameworks/base/graphics/java/android/graphics/
H A DBlendMode.java506 public static @Nullable BlendMode fromValue(int value) { in fromValue() method in BlendMode
H A DPaint.java1346 return BlendMode.fromValue(mXfermode.porterDuffMode); in getBlendMode()
/aosp14/frameworks/base/cmds/screencap/
H A Dscreencap.cpp146 displayIdOpt = DisplayId::fromValue(atoll(optarg)); in main()
/aosp14/frameworks/base/services/core/jni/
H A Dcom_android_server_display_DisplayControl.cpp171 const auto id = DisplayId::fromValue<PhysicalDisplayId>(physicalDisplayId); in nativeGetPhysicalDisplayToken()
/aosp14/frameworks/base/core/java/android/widget/
H A DProgressBar.java813 ? BlendMode.fromValue(tintMode.nativeInt) : null); in setIndeterminateTintMode()
1123 setProgressTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : null); in setProgressTintMode()
1240 ? BlendMode.fromValue(tintMode.nativeInt) : null); in setProgressBackgroundTintMode()
1353 ? BlendMode.fromValue(tintMode.nativeInt) : null); in setSecondaryProgressTintMode()
H A DAbsSeekBar.java293 setThumbTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : in setThumbTintMode()
479 setTickMarkTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : null); in setTickMarkTintMode()
H A DCheckedTextView.java265 ? BlendMode.fromValue(tintMode.nativeInt) : null); in setCheckMarkTintMode()
H A DCompoundButton.java410 setButtonTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : null); in setButtonTintMode()
H A DSwitch.java638 setTrackTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : null); in setTrackTintMode()
819 setThumbTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : null); in setThumbTintMode()
H A DImageView.java686 setImageTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : null);
H A DRemoteViews.java2151 this.value = BlendMode.fromValue(in.readInt()); in ReflectionAction()
H A DTextView.java3575 ? BlendMode.fromValue(tintMode.nativeInt) : null); in setCompoundDrawableTintMode()
/aosp14/frameworks/base/graphics/java/android/graphics/drawable/
H A DIcon.java835 mBlendMode = BlendMode.fromValue(mode.nativeInt); in setTintMode()
963 mBlendMode = BlendMode.fromValue(in.readInt()); in Icon()
H A DDrawable.java695 BlendMode mode = tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : null; in setTintMode()
/aosp14/frameworks/base/core/jni/
H A Dandroid_view_SurfaceControl.cpp923 transaction->setLayerStack(ctrl, ui::LayerStack::fromValue(layerStack)); in nativeSetLayerStack()
1097 transaction->setDisplayLayerStack(token, ui::LayerStack::fromValue(layerStack)); in nativeSetDisplayLayerStack()
/aosp14/frameworks/base/boot/
H A Dboot-image-profile.txt6141 HSPLandroid/graphics/BlendMode;->fromValue(I)Landroid/graphics/BlendMode;
/aosp14/frameworks/base/config/
H A Dboot-image-profile.txt6144 HSPLandroid/graphics/BlendMode;->fromValue(I)Landroid/graphics/BlendMode;