Themes: Refactor themes to CMSDK [2/6]

First attempt at moving as much as possible out of F/B
and into cmsdk

Change-Id: I9e53d1c32e01e88fc3918663dabe0001df922bc2
TICKET: CYNGNOS-2126
This commit is contained in:
d34d
2016-02-23 09:58:53 -08:00
parent 567b43017a
commit b3ea2859fd
20 changed files with 4425 additions and 0 deletions

View File

@@ -88,4 +88,50 @@ public class Intent {
public static final String ACTION_INITIALIZE_CM_HARDWARE =
"cyanogenmod.intent.action.INITIALIZE_CM_HARDWARE";
/**
* Broadcast Action: Indicate that an unrecoverable error happened during app launch.
* Could indicate that curently applied theme is malicious.
* @hide
*/
public static final String ACTION_APP_FAILURE = "cyanogenmod.intent.action.APP_FAILURE";
/**
* Used to indicate that a theme package has been installed or un-installed.
*/
public static final String CATEGORY_THEME_PACKAGE_INSTALLED_STATE_CHANGE =
"cyanogenmod.intent.category.THEME_PACKAGE_INSTALL_STATE_CHANGE";
/**
* Action sent from the provider when a theme has been fully installed. Fully installed
* means that the apk was installed by PackageManager and the theme resources were
* processed and cached by {@link org.cyanogenmod.platform.internal.ThemeManagerService}
* Requires the {@link cyanogenmod.platform.Manifest.permission#READ_THEMES} permission to
* receive this broadcast.
*/
public static final String ACTION_THEME_INSTALLED =
"cyanogenmod.intent.action.THEME_INSTALLED";
/**
* Action sent from the provider when a theme has been updated.
* Requires the {@link cyanogenmod.platform.Manifest.permission#READ_THEMES} permission to
* receive this broadcast.
*/
public static final String ACTION_THEME_UPDATED =
"cyanogenmod.intent.action.THEME_UPDATED";
/**
* Action sent from the provider when a theme has been removed.
* Requires the {@link cyanogenmod.platform.Manifest.permission#READ_THEMES} permission to
* receive this broadcast.
*/
public static final String ACTION_THEME_REMOVED =
"cyanogenmod.intent.action.THEME_REMOVED";
/**
* Uri scheme used to broadcast the theme's package name when broadcasting
* {@link Intent#ACTION_THEME_INSTALLED} or
* {@link Intent#ACTION_THEME_REMOVED}
*/
public static final String URI_SCHEME_PACKAGE = "package";
}