aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2016-03-01 09:53:20 -0800
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-10-07 10:14:28 -0700
commitc4f27d5b812df3d66c21b4d7ba1d1d216cc0c593 (patch)
treee8303e93c7b8aafdafe04dc5f9dcacbec47aaafd
parent2f32195b3a657b009361236ca3cacc5301b4cca1 (diff)
downloadvendor_cmsdk-c4f27d5b812df3d66c21b4d7ba1d1d216cc0c593.zip
vendor_cmsdk-c4f27d5b812df3d66c21b4d7ba1d1d216cc0c593.tar.gz
vendor_cmsdk-c4f27d5b812df3d66c21b4d7ba1d1d216cc0c593.tar.bz2
Themes: Introduce theme mixes into ThemesContract
Change-Id: I6341bada8e3ef674b272621f90bc9beb28767a59 TICKET: CYNGNOS-2121
-rw-r--r--api/cm_current.txt20
-rw-r--r--sdk/src/java/cyanogenmod/providers/ThemesContract.java93
-rw-r--r--system-api/cm_system-current.txt20
3 files changed, 133 insertions, 0 deletions
diff --git a/api/cm_current.txt b/api/cm_current.txt
index 5a57e67..7f84803 100644
--- a/api/cm_current.txt
+++ b/api/cm_current.txt
@@ -1160,6 +1160,26 @@ package cyanogenmod.providers {
field public static final java.lang.String _ID = "_id";
}
+ public static class ThemesContract.ThemeMixColumns {
+ ctor public ThemesContract.ThemeMixColumns();
+ field public static final android.net.Uri CONTENT_URI;
+ field public static final android.net.Uri PREVIEWS_URI;
+ field public static final java.lang.String TITLE = "title";
+ field public static final java.lang.String _ID = "_id";
+ }
+
+ public static class ThemesContract.ThemeMixEntryColumns {
+ ctor public ThemesContract.ThemeMixEntryColumns();
+ field public static final java.lang.String COMPONENT_ID = "component_id";
+ field public static final java.lang.String COMPONENT_TYPE = "component_type";
+ field public static final android.net.Uri CONTENT_URI;
+ field public static final java.lang.String IS_INSTALLED = "installed";
+ field public static final java.lang.String PACKAGE_NAME = "package_name";
+ field public static final java.lang.String THEME_MIX_ID = "theme_mix_id";
+ field public static final java.lang.String THEME_NAME = "theme_name";
+ field public static final java.lang.String _ID = "_id";
+ }
+
public static class ThemesContract.ThemesColumns {
ctor public ThemesContract.ThemesColumns();
field public static final java.lang.String AUTHOR = "author";
diff --git a/sdk/src/java/cyanogenmod/providers/ThemesContract.java b/sdk/src/java/cyanogenmod/providers/ThemesContract.java
index 78d56cb..b59d7b3 100644
--- a/sdk/src/java/cyanogenmod/providers/ThemesContract.java
+++ b/sdk/src/java/cyanogenmod/providers/ThemesContract.java
@@ -714,4 +714,97 @@ public class ThemesContract {
LIVE_LOCK_SCREEN_THUMBNAIL,
};
}
+
+ public static class ThemeMixColumns {
+ /**
+ * Uri for accessing theme mixes
+ */
+ public static final Uri CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI, "theme_mixes");
+
+ /**
+ * Uri for retrieving the previews for the a theme mix.
+ * Querying the themes provider using this URI will return a cursor with a single row
+ * containing all the previews for the components associated with the given theme mix.
+ */
+ public static final Uri PREVIEWS_URI = Uri.withAppendedPath(AUTHORITY_URI,
+ "theme_mix_previews");
+
+ /**
+ * The unique ID for a row.
+ * <P>Type: INTEGER (long)</P>
+ */
+ public static final String _ID = "_id";
+
+ /**
+ * The name of this mix.
+ * <P>Type: TEXT</P>
+ */
+ public static final String TITLE = "title";
+
+ }
+
+ public static class ThemeMixEntryColumns {
+ /**
+ * Uri for accessing theme mix entries.
+ * These are the individual components associated with the saved theme mixes.
+ */
+ public static final Uri CONTENT_URI =
+ Uri.withAppendedPath(AUTHORITY_URI, "theme_mix_entries");
+
+ /**
+ * The unique ID for a row.
+ * <P>Type: INTEGER (long)</P>
+ */
+ public static final String _ID = "_id";
+
+ /**
+ * The unique ID of the theme mix this entry is for
+ * <P>Type: INTEGER (long)</P>
+ */
+ public static final String THEME_MIX_ID = "theme_mix_id";
+
+ /**
+ * The component type this entry is associated with
+ * <P>Type: TEXT</P>
+ * <P>Valid types are:
+ * {@link ThemesColumns#MODIFIES_ALARMS}
+ * {@link ThemesColumns#MODIFIES_BOOT_ANIM}
+ * {@link ThemesColumns#MODIFIES_FONTS}
+ * {@link ThemesColumns#MODIFIES_ICONS}
+ * {@link ThemesColumns#MODIFIES_LAUNCHER}</P>
+ * {@link ThemesColumns#MODIFIES_LIVE_LOCK_SCREEN}
+ * {@link ThemesColumns#MODIFIES_LOCKSCREEN}
+ * {@link ThemesColumns#MODIFIES_NAVIGATION_BAR}
+ * {@link ThemesColumns#MODIFIES_NOTIFICATIONS}
+ * {@link ThemesColumns#MODIFIES_OVERLAYS}
+ * {@link ThemesColumns#MODIFIES_RINGTONES}
+ * {@link ThemesColumns#MODIFIES_STATUS_BAR}
+ */
+ public static final String COMPONENT_TYPE = "component_type";
+
+ /*
+ * The unique ID for the component within a theme.
+ * Always 0 unless multiples of a component exist.
+ * <P>Type: INTEGER (long)</P>
+ */
+ public static final String COMPONENT_ID = "component_id";
+
+ /**
+ * Unique text to identify the theme package associated with this entry.
+ * <P>Type: TEXT</P>
+ */
+ public static final String PACKAGE_NAME = "package_name";
+
+ /**
+ * The name of the theme associated with this entry.
+ * <P>Type: TEXT</P>
+ */
+ public static final String THEME_NAME = "theme_name";
+
+ /**
+ * Whether the theme associated with this entry is currently installed.
+ * <P>Type: INTEGER (0|1)</P>
+ */
+ public static final String IS_INSTALLED = "installed";
+ }
}
diff --git a/system-api/cm_system-current.txt b/system-api/cm_system-current.txt
index 5a57e67..7f84803 100644
--- a/system-api/cm_system-current.txt
+++ b/system-api/cm_system-current.txt
@@ -1160,6 +1160,26 @@ package cyanogenmod.providers {
field public static final java.lang.String _ID = "_id";
}
+ public static class ThemesContract.ThemeMixColumns {
+ ctor public ThemesContract.ThemeMixColumns();
+ field public static final android.net.Uri CONTENT_URI;
+ field public static final android.net.Uri PREVIEWS_URI;
+ field public static final java.lang.String TITLE = "title";
+ field public static final java.lang.String _ID = "_id";
+ }
+
+ public static class ThemesContract.ThemeMixEntryColumns {
+ ctor public ThemesContract.ThemeMixEntryColumns();
+ field public static final java.lang.String COMPONENT_ID = "component_id";
+ field public static final java.lang.String COMPONENT_TYPE = "component_type";
+ field public static final android.net.Uri CONTENT_URI;
+ field public static final java.lang.String IS_INSTALLED = "installed";
+ field public static final java.lang.String PACKAGE_NAME = "package_name";
+ field public static final java.lang.String THEME_MIX_ID = "theme_mix_id";
+ field public static final java.lang.String THEME_NAME = "theme_name";
+ field public static final java.lang.String _ID = "_id";
+ }
+
public static class ThemesContract.ThemesColumns {
ctor public ThemesContract.ThemesColumns();
field public static final java.lang.String AUTHOR = "author";