Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4bfda868 authored by Yein Jo's avatar Yein Jo
Browse files

Add a turbulence noise shader for media player and ghost loading

effects.

Some of the ripple shader utility code has moved to a new util package.
Design doc: go/surface-effects-umo

Test: TurbulenceNoiseViewTest, TurbulenceNoiseControllerTest
Bug: 249536060
Change-Id: Id345a7ab06928da3f51a7ae649ef861f9c54708a
parent 6af3a824
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@
        android:background="@drawable/qs_media_outline_album_bg"
        />

    <com.android.systemui.ripple.MultiRippleView
    <com.android.systemui.surfaceeffects.ripple.MultiRippleView
        android:id="@+id/touch_ripple_view"
        android:layout_width="match_parent"
        android:layout_height="@dimen/qs_media_session_height_expanded"
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <com.android.systemui.ripple.RippleView
    <com.android.systemui.surfaceeffects.ripple.RippleView
        android:id="@+id/wireless_charging_ripple"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ import android.view.View
import android.view.animation.PathInterpolator
import com.android.internal.graphics.ColorUtils
import com.android.systemui.animation.Interpolators
import com.android.systemui.ripple.RippleShader
import com.android.systemui.surfaceeffects.ripple.RippleShader

private const val RIPPLE_SPARKLE_STRENGTH: Float = 0.4f

+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ import com.android.systemui.R
import com.android.systemui.dagger.SysUISingleton
import com.android.systemui.flags.FeatureFlags
import com.android.systemui.flags.Flags
import com.android.systemui.ripple.RippleView
import com.android.systemui.surfaceeffects.ripple.RippleView
import com.android.systemui.statusbar.commandline.Command
import com.android.systemui.statusbar.commandline.CommandRegistry
import com.android.systemui.statusbar.policy.BatteryController
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ import android.view.WindowManager;

import com.android.internal.logging.UiEvent;
import com.android.internal.logging.UiEventLogger;
import com.android.systemui.ripple.RippleShader.RippleShape;
import com.android.systemui.surfaceeffects.ripple.RippleShader.RippleShape;

/**
 * A WirelessChargingAnimation is a view containing view + animation for wireless charging.
Loading