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. + *

Type: INTEGER (long)

+ */ + public static final String _ID = "_id"; + + /** + * The name of this mix. + *

Type: TEXT

+ */ + 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. + *

Type: INTEGER (long)

+ */ + public static final String _ID = "_id"; + + /** + * The unique ID of the theme mix this entry is for + *

Type: INTEGER (long)

+ */ + public static final String THEME_MIX_ID = "theme_mix_id"; + + /** + * The component type this entry is associated with + *

Type: TEXT

+ *

Valid types are: + * {@link ThemesColumns#MODIFIES_ALARMS} + * {@link ThemesColumns#MODIFIES_BOOT_ANIM} + * {@link ThemesColumns#MODIFIES_FONTS} + * {@link ThemesColumns#MODIFIES_ICONS} + * {@link ThemesColumns#MODIFIES_LAUNCHER}

+ * {@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. + *

Type: INTEGER (long)

+ */ + public static final String COMPONENT_ID = "component_id"; + + /** + * Unique text to identify the theme package associated with this entry. + *

Type: TEXT

+ */ + public static final String PACKAGE_NAME = "package_name"; + + /** + * The name of the theme associated with this entry. + *

Type: TEXT

+ */ + public static final String THEME_NAME = "theme_name"; + + /** + * Whether the theme associated with this entry is currently installed. + *

Type: INTEGER (0|1)

+ */ + 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";