sdk: Styles API finalization for API9

Changes:

- Added getter for global style and current accent
- Added getter for a list of (available) trusted overlays
- Apps that want to change the global style now MUST specify their
  package name when calling setGlobalStyle().
  LineageParts will expose the name of the app that's currently managing
  the global style
- Improved documentation

Change-Id: Iaa1b106f43684b4120aa0f39023ebfddcb379806
Signed-off-by: Joey <joey@lineageos.org>
diff --git a/api/lineage_current.txt b/api/lineage_current.txt
index 094a2e7..9f36306 100644
--- a/api/lineage_current.txt
+++ b/api/lineage_current.txt
@@ -803,7 +803,9 @@
     field public static final java.lang.String BATTERY_LIGHT_PULSE = "battery_light_pulse";
     field public static final java.lang.String BERRY_CURRENT_ACCENT = "berry_current_accent";
     field public static final java.lang.String BERRY_GLOBAL_STYLE = "berry_global_style";
+    field public static final java.lang.String BERRY_MANAGED_BY_APP = "berry_managed_by_app";
     field public static final java.lang.String BLUETOOTH_ACCEPT_ALL_FILES = "bluetooth_accept_all_files";
+    field public static final java.lang.String BUTTON_BACKLIGHT_ONLY_WHEN_PRESSED = "button_backlight_only_when_pressed";
     field public static final java.lang.String CALL_RECORDING_FORMAT = "call_recording_format";
     field public static final java.lang.String CAMERA_LAUNCH = "camera_launch";
     field public static final java.lang.String CAMERA_SLEEP_ON_RELEASE = "camera_sleep_on_release";
@@ -989,10 +991,13 @@
 package lineageos.style {
 
   public class StyleInterface {
+    method public java.lang.String getAccent();
+    method public int getGlobalStyle();
     method public static lineageos.style.StyleInterface getInstance(android.content.Context);
     method public lineageos.style.Suggestion getSuggestion(android.graphics.Bitmap, int[]);
+    method public java.util.List<java.lang.String> getTrustedAccents();
     method public boolean setAccent(java.lang.String);
-    method public boolean setGlobalStyle(int);
+    method public boolean setGlobalStyle(int, java.lang.String);
     field public static final java.lang.String ACCENT_DEFAULT = "lineageos";
     field public static final java.lang.String CHANGE_STYLE_SETTINGS_PERMISSION = "lineageos.permission.CHANGE_STYLE";
     field public static final int STYLE_GLOBAL_AUTO_DAYTIME = 1; // 0x1