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

Commit ebd7fff2 authored by Steve Kondik's avatar Steve Kondik Committed by Zhao Wei Liew
Browse files

windowmanager: Add support for blur effects

  * Support for blur layer on the lockscreen
  * Additional code for blur-behind and surface-blur has
    been removed from this commit as it is not in use.

  * Original work by CodeAurora / Qualcomm
  * Contributions from:
    - Steve Kondik
    - Danesh Mondegarian
    - Roman Birg
    - Clark Scheff
    - Michael Bestas

Change-Id: I6285905a4e3c00dfb5471876d0cfb16b4b4e9893
parent b5aa705f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -184,6 +184,11 @@ public class SurfaceControl {
     */
    public static final int FX_SURFACE_NORMAL   = 0x00000000;

    /**
     * Surface creation flag: Creates a blur surface.
     */
    public static final int FX_SURFACE_BLUR = 0x00010000;

    /**
     * Surface creation flag: Creates a Dim surface.
     * Everything behind this surface is dimmed by the amount specified
+5 −0
Original line number Diff line number Diff line
@@ -727,6 +727,11 @@ public interface WindowManagerPolicy {
     */
    public WindowState getWinShowWhenLockedLw();

    /**
     * Returns the current keyguard panel, if such a thing exists.
     */
    public WindowState getWinKeyguardPanelLw();

    /**
     * Called when the system would like to show a UI to indicate that an
     * application is starting.  You can use this to add a
+3 −0
Original line number Diff line number Diff line
@@ -79,4 +79,7 @@

    <!-- PlatLogo -->
    <java-symbol type="drawable" name="platlogo_lineage" />

    <!-- Blur effects -->
    <java-symbol type="bool" name="config_uiBlurEnabled" />
</resources>
+4 −0
Original line number Diff line number Diff line
@@ -2793,4 +2793,8 @@

    <!-- Boolean to enable stk functionality on Samsung phones -->
    <bool name="config_samsung_stk">false</bool>

    <!-- Support in Surfaceflinger for blur layers.
         NOTE: This requires additional hardware-specific code. -->
    <bool name="config_uiBlurEnabled">false</bool>
</resources>
+3 −0
Original line number Diff line number Diff line
@@ -30,6 +30,9 @@
    <uses-permission android:name="cyanogenmod.permission.READ_WEATHER" />
    <protected-broadcast android:name="com.cyanogenmod.lockclock.action.FORCE_WEATHER_UPDATE" />

    <!-- Blur surface -->
    <uses-permission android:name="android.permission.ACCESS_SURFACE_FLINGER" />

    <application>

        <activity-alias
Loading