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

Commit 3d9c5d3e authored by Jared Duke's avatar Jared Duke
Browse files

Streamline SystemUI proguard flags

Remove several unnecessary top-level class keep rules, and inline
@Keep annotations for animatable property accessors.

Bug: 196084106
Test: m SystemUI (yields identical binary)
Change-Id: I3b820a59214d2fdc8e94c38c4317a4e5f44a397f
parent bbd05d76
Loading
Loading
Loading
Loading
+0 −17
Original line number Diff line number Diff line
-keep class com.android.systemui.navigationbar.buttons.KeyButtonView {
  public float getDrawingAlpha();
  public void setDrawingAlpha(float);
}

-keep class com.android.systemui.navigationbar.buttons.KeyButtonRipple {
  public float getGlowAlpha();
  public float getGlowScale();
  public void setGlowAlpha(float);
  public void setGlowScale(float);
}

-keep class com.android.systemui.settings.brightness.BrightnessSliderView {
  public float getSliderScaleY();
  public void setSliderScaleY(float);
}

-keep class com.android.systemui.recents.OverviewProxyRecentsImpl
-keep class com.android.systemui.statusbar.car.CarStatusBar
-keep class com.android.systemui.statusbar.phone.StatusBar
+10 −0
Original line number Diff line number Diff line
@@ -34,6 +34,8 @@ import android.view.View;
import android.view.ViewConfiguration;
import android.view.animation.Interpolator;

import androidx.annotation.Keep;

import com.android.systemui.R;
import com.android.systemui.animation.Interpolators;

@@ -184,19 +186,27 @@ public class KeyButtonRipple extends Drawable {
        }
    }

    /** Gets the glow alpha, used by {@link android.animation.ObjectAnimator} via reflection. */
    @Keep
    public float getGlowAlpha() {
        return mGlowAlpha;
    }

    /** Sets the glow alpha, used by {@link android.animation.ObjectAnimator} via reflection. */
    @Keep
    public void setGlowAlpha(float x) {
        mGlowAlpha = x;
        invalidateSelf();
    }

    /** Gets the glow scale, used by {@link android.animation.ObjectAnimator} via reflection. */
    @Keep
    public float getGlowScale() {
        return mGlowScale;
    }

    /** Sets the glow scale, used by {@link android.animation.ObjectAnimator} via reflection. */
    @Keep
    public void setGlowScale(float x) {
        mGlowScale = x;
        invalidateSelf();
+3 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import android.view.View;
import android.widget.FrameLayout;
import android.widget.SeekBar.OnSeekBarChangeListener;

import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

@@ -183,6 +184,7 @@ public class BrightnessSliderView extends FrameLayout {
     *
     * Used in {@link com.android.systemui.qs.QSAnimator}.
     */
    @Keep
    public void setSliderScaleY(float scale) {
        if (scale != mScale) {
            mScale = scale;
@@ -199,6 +201,7 @@ public class BrightnessSliderView extends FrameLayout {
        }
    }

    @Keep
    public float getSliderScaleY() {
        return mScale;
    }