Includes: - Per-app refresh rate config - Extreme refresh rate (Force all apps to run in maximum refresh rate) - Temp refresh rate allowed (Used in MEMC) - Refresh rate QS tile Change-Id: I30024eb8ce63f00a6f2fa1ea0230b004ff93ac74 Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com> Settings: Create BasePerAppConfigFragment * Allow more preference types instead of only ListPreference. Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com> Settings: Create PerAppSwitchConfigFragment Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com> Settings: Add top info for per-app settings Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com> Settings: Don't show system apps for sensor block fragment Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com> Settings: Pass uid in per-app config fragment Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com> Settings: Allow specific allowed system app list for per-app fragment * We need to allow dialer/messages/contact for fullscreen display settings. Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com> Settings: Make sure per-app list has no duplicates Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com> Settings: Warn user app reload before switching fullscreen display Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com> Settings: Adapt for Android U QPR2 Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com> Settings: Use ArrayMap/Set instead of HashMap/Set Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com> [joeyhuab: Squashed all changes by same author] Settings: Add null check for PreferenceScreen in BasePerAppConfigFragment Co-authored-by: NurKeinNeid <nurkeinneid@derpfest.org> Signed-off-by: NurKeinNeid <nurkeinneid@derpfest.org>
78 lines
2.8 KiB
Plaintext
78 lines
2.8 KiB
Plaintext
# This is a configuration file for ProGuard.
|
|
# http://proguard.sourceforge.net/index.html#manual/usage.html
|
|
|
|
# Some tests use thenThrow from Mockito which require information on
|
|
# checked exceptions.
|
|
-keepattributes Exceptions
|
|
|
|
# Keep all Fragments in this package, which are used by reflection.
|
|
# TODO(b/373579455): Evaluate if <init> needs to be kept.
|
|
-keep public class com.android.settings*.** extends androidx.fragment.app.Fragment {
|
|
void <init>();
|
|
}
|
|
-keep,allowoptimization,allowaccessmodification class org.evolution.settings.** { *; }
|
|
|
|
# Keep all preference controllers needed by slice and DashboardFragment.
|
|
-keep class * extends com.android.settings.core.BasePreferenceController {
|
|
*;
|
|
}
|
|
|
|
-keep class * extends com.android.settings.core.TogglePreferenceController {
|
|
*;
|
|
}
|
|
|
|
# We want to keep methods in Activity that could be used in the XML attribute onClick.
|
|
-keepclassmembers class com.android.settings*.** extends android.app.Activity {
|
|
public void *(android.view.View);
|
|
public void *(android.view.MenuItem);
|
|
}
|
|
|
|
# Keep setters in Views so that animations can still work.
|
|
-keep public class com.android.settings*.** extends android.view.View {
|
|
public <init>(android.content.Context);
|
|
public <init>(android.content.Context, android.util.AttributeSet);
|
|
public <init>(android.content.Context, android.util.AttributeSet, int);
|
|
|
|
void set*(***);
|
|
*** get*();
|
|
}
|
|
|
|
# Keep classes that may be inflated from XML.
|
|
-keepclasseswithmembers class com.android.settings*.** {
|
|
public <init>(android.content.Context, android.util.AttributeSet);
|
|
}
|
|
-keepclasseswithmembers class com.android.settings*.** {
|
|
public <init>(android.content.Context, android.util.AttributeSet, int);
|
|
}
|
|
-keepclasseswithmembers class com.android.settings*.** {
|
|
public <init>(android.content.Context, android.util.AttributeSet, int, int);
|
|
}
|
|
|
|
# Keep specific fields used via reflection.
|
|
-keepclassmembers class * {
|
|
public static ** SEARCH_INDEX_DATA_PROVIDER;
|
|
public static ** SUMMARY_PROVIDER_FACTORY;
|
|
}
|
|
# TODO(b/373579455): Evaluate if <init> needs to be kept.
|
|
-keep class androidx.core.app.CoreComponentFactory {
|
|
void <init>();
|
|
}
|
|
|
|
# Keep classes that implements CustomSliceable, which are used by reflection.
|
|
-keepclasseswithmembers class * implements com.android.settings.slices.CustomSliceable {
|
|
public <init>(android.content.Context);
|
|
}
|
|
|
|
# Keep classes that extends SliceBackgroundWorker, which are used by reflection.
|
|
-keepclasseswithmembers class * extends com.android.settings.slices.SliceBackgroundWorker {
|
|
public <init>(android.content.Context, android.net.Uri);
|
|
}
|
|
|
|
# Keep WM Jetpack classes and callbacks
|
|
-keep class androidx.window.extensions.** { *; }
|
|
-dontwarn androidx.window.extensions.**
|
|
-keep class androidx.window.** { *; }
|
|
|
|
# Keep the com.android.settings.media_drm.FakeFeatureFlagsImpl
|
|
-keep class com.android.settings.media_drm.FakeFeatureFlagsImpl { *; }
|