diff options
author | d34d <clark@cyngn.com> | 2016-03-01 09:53:20 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-10-07 10:14:28 -0700 |
commit | c4f27d5b812df3d66c21b4d7ba1d1d216cc0c593 (patch) | |
tree | e8303e93c7b8aafdafe04dc5f9dcacbec47aaafd /sdk | |
parent | 2f32195b3a657b009361236ca3cacc5301b4cca1 (diff) | |
download | vendor_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
Diffstat (limited to 'sdk')
-rw-r--r-- | sdk/src/java/cyanogenmod/providers/ThemesContract.java | 93 |
1 files changed, 93 insertions, 0 deletions
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"; + } } |