cmsdk: Add support for more preference constraints

* Add support for negation- prefix with !
 * Add requiresAction constraint, which checks if an application is
   available to resolve the given action
 * Fix issues with operations order
 * Add flag to remove a preference if it's intent can't be resolved
 * Add helper to allow setting minLines of a preference, since it's
   common for things to get weird with the kinds of behavior we
   are introducing everywhere
 * Add support for nuking *other* preferences. For example with
   Doze, many devices have custom features and a extra_settings
   panel which is redundant with the switch. Now we can trivially
   override the one we don't want.

Change-Id: Ibb14b05add56b403013e908db1105dce9d34faad
This commit is contained in:
Steve Kondik
2016-10-11 08:16:38 -07:00
parent 32921b7361
commit 78079eacb8
9 changed files with 280 additions and 79 deletions

View File

@@ -39,6 +39,7 @@ LOCAL_MODULE_TAGS := optional
cmsdk_LOCAL_JAVA_LIBRARIES := \
android-support-v7-preference \
android-support-v7-recyclerview \
android-support-v14-preference
LOCAL_JAVA_LIBRARIES := \