aboutsummaryrefslogtreecommitdiff
path: root/sdk/src/java
Commit message (Collapse)AuthorAgeFilesLines
* Revert "cmsdk: Don't change ring volume or mode if DND is enabled"HEADn7.1doc HD2017-09-211-26/+3
| | | | | | This reverts commit 188e7f292537eecd215cee62cd568823c11700eb. Change-Id: I33886bffc6bf3a9d3ce4731b0e607bf33da787ce
* cmsdk: Don't change ring volume or mode if DND is enabledGabriele M2017-09-181-3/+26
| | | | | | | | | | | Profiles that override the ring volume or mode can disable DND, but this is not what the user would expect. Ensure that DND never gets disabled when changing profile and postpone the ring mode and volume overrides to when DND gets disabled. This allows to give DND an higher priority and at the same have the overrides of the current profile always applied. Change-Id: I065c8df5be924ade63d943414a6da1c29baa3a20
* cmsdk: add Expand Notifications Panel action to custom key actions [3/3]Ali B2017-07-301-8/+9
| | | | Change-Id: Ibda6f477b006f529ee2a774e76c5cb7eb2497eaa
* cmsdk: Add support for pulsing battery icon when charging [3/3]Ali B2017-07-091-0/+13
| | | | Change-Id: I5e568c467c9b3226e634328be407fc0301043fc4
* Add screenshot to custom key actions [3/3]Ali B2017-06-131-8/+9
| | | | Change-Id: I17355141217f6bdc0b4e838772bf7a245283824a
* [3/3] cmsdk: single hand for hw keysJoey Rizzoli2017-03-061-8/+10
| | | | | Change-Id: Id148d4bd075e2795dbd6328f74cdde471903f100 Signed-off-by: Joey Rizzoli <joey@lineageos.org>
* CMPartsPreference: Update PreferenceScreen themeGabriele M2017-03-021-1/+1
| | | | | | | Use the same base theme used for Settings so that our preference tiles look like the default ones (e.g. add ripple effect). Change-Id: I27a5569535d8d614a0c0d26dd5b9fcd12f2af1e4
* cmsdk: Remove launch boost supportZhao Wei Liew2017-02-231-2/+0
| | | | | | | | | AOSP recently introduced a new power hint, POWER_HINT_LAUNCH, to indicate the start-up of an activity. We now use that instead of using our own. Change-Id: I3ed1ae52a67da37e87a46ca5cc5411de95f00926 Issue-Id: LINN-6
* Add a proper description for CM_SETUP_WIZARD_COMPLETED deprecationZhao Wei Liew2017-02-191-1/+2
| | | | Change-Id: I7bf1ee5644b178173941803fccafbbd501289acd
* cmsdk: Deprecate CM_SETUP_WIZARD_COMPLETEDPaul Keith2017-02-191-0/+2
| | | | | Change-Id: I1ddf79d8308def2056fa509b64a2ec4af5c39f31 Signed-off-by: Paul Keith <javelinanddart@aidenswann.com>
* RemotePreferenceManager: Fix receiver registration issues.Danny Baumann2017-02-122-14/+30
| | | | | | | | | | | | | - We might get see attach() calls from multiple prefs, so stop assuming there's only one per key. Namely, a new activity might be created and attached before the previous one is destroyed - The passed-in context is likely to be an activity one. As the manager instance is static, this can cause leaks and the receiver might be attached to a destroyed activity. Just hold onto the application context instead, which is a singleton anyway. Change-Id: Ica17c19ab6e1cdfd402968ce2594d3ed362e23ee JIRA:LINN-3
* Merge "CMSDK: Add AICP Tha Battery [2/3]" into n7.1Ali B2017-02-081-1/+1
|\
| * CMSDK: Add AICP Tha Battery [2/3]Miccia2017-01-111-1/+1
| | | | | | | | Change-Id: I26c9ad7d1a4234023a8db3974239b106c3f50390
* | cmsdk: Add touchscreen gestures supportZhao Wei Liew2017-02-014-0/+136
| | | | | | | | | | | | Add the CMHW implementation for touchscreen gestures. Change-Id: Iabeee255748fc92376bc861409a7074de570cb0c
* | cmsdk: cmhw: Deprecate TAP_TO_WAKE featureZhao Wei Liew2017-01-251-1/+3
| | | | | | | | | | | | All devices should use the native implementation now. Change-Id: Ic29472ba28569536a8556f61229a8a8fe783354a
* | Add generic support for Lid Cover Appsjrior0012017-01-231-0/+14
| | | | | | | | | | | | | | | | | | | | Many new devices have available flip cover cases with some form of view window or notification options. Currently we support a dotcase app for HTC and a View window app is under development. Provide a new Intent to allow a common way to launch a variety of device specific cover apps. Change-Id: Ic986b239b75bfc6d76142451826b3f996e242a29
* | cmsdk: Fix @deprecated annotation mismatch warningsZhao Wei Liew2017-01-165-1/+24
|/ | | | Change-Id: I0141aa66139ac0fa6089aecd7056e017c4c1132f
* CMSDK: Port PA battery circle style [3/3]Miccia2017-01-101-1/+1
| | | | Change-Id: Ia90f4c7d05566a05dc924fcfc4515898934d8bf3
* cmsdk: remove 'hide clock' option from clock position tunableHendrik Hagendorn2017-01-061-8/+6
| | | | | | | | * Hiding the clock is now possible using the icon blacklist. * Since the the hide option in the clock position tunable isn't currently implemented let's remove it Change-Id: I2412051289a922dfc72cdf266b47f32cf7aaa31a
* cmsdk: Deprecate STATS_COLLECTION_REPORTED CMSettingZhao Wei Liew2016-12-291-0/+2
| | | | | | | The functionality that uses this setting has been removed. This setting should no longer be used. Change-Id: Iff887a711a9f8cac18cf9938280ddc99a5787615
* FileUtils: Add util to check if a file existsMichael Bestas2016-12-101-0/+10
| | | | Change-Id: I565744821346c90ff670704a13fffc7bf464ff71
* cmsdk: Add GlobalSettingSwitchPreference classZhao Wei Liew2016-12-101-0/+63
| | | | | | | We need to add toggles for some AOSP global settings, such as heads up notifications. Change-Id: I5e3cc8717c639bed4ee99e40c350ef7e7c2d76bd
* cmsdk: Use ConnectivityManager to manage tetheringEthan Chen2016-12-091-7/+23
| | | | | | | * Hotspot is not assigning DHCP addresses correctly if enabled through the profiles codepath using WifiManager. Change-Id: I9b67748d1b51c873864cf11f9240372e367a0c53
* cmsdk: utils: Introduce PackageManagerUtils classMichael W2016-12-081-0/+117
| | | | | | Partially based off the PackageManagerHelper class in Launcher3. Change-Id: I0ed2ea210cb52ac4bd94c7bc5320c24e6d423279
* CMSDK: Add volume answer call CMSettingZhao Wei Liew2016-12-011-0/+10
| | | | Change-Id: Ie7f14b1af053d23876908ec3c99f038e76fe5beb
* cmsdk: Ensure CMHW feature constants aren't optimized outSteve Kondik2016-11-221-2/+28
| | | | | | | | | | | | | | | | * The preferences constraints system uses reflection to look up fields via strings, we need to ensure they are not optimized out by Proguard. Alternatively we can manually enumerate them, but it's yet another list of constants to maintain. We should have used a proper enumeration to begin with, but so it goes. * The @VisibleForTesting annotation is honored by the platform for ensuring that Proguard doesn't stomp fields. The support library has an @Keep annotation, but it's only supported by Gradle. If it becomes supported by the platform in the future, switch to it instead. * Also add tests for all of this. Change-Id: I9f324e003e2a9de5604085b978d5f95bdd098d32
* Add a CMSystemSettingDropDownPreference.Danny Baumann2016-11-022-0/+122
| | | | Change-Id: Ic3b7589fe3a33b62fba3949e968789a3a99cf9f6
* Add option definition for vibration during zen mode.Danny Baumann2016-11-021-0/+14
| | | | Change-Id: I7398adbaa691bc6ec50b56328190a317bee805eb
* cmsdk: Add support for split screen button behaviorSteve Kondik2016-10-181-8/+9
| | | | Change-Id: I7289e8abe23d047f909066a9986e8b9d55bec27e
* cmsdk: Refactor Parts to use RemotePreferenceSteve Kondik2016-10-173-146/+34
| | | | | | * Delete ALL the codes! Change-Id: I839ba927f03363601452bdc3d894e09549366302
* cmsdk: RemotePreference APISteve Kondik2016-10-174-2/+476
| | | | | | | * Factoring out the work done for CMParts into an actual API that can be used for all of the various device settings apps. Change-Id: Ie1b47c900c2b37457b90f1b0af0634d5fe12fd9a
* cmsdk: Helper for working with Settings URIsSteve Kondik2016-10-171-0/+227
| | | | | | | | | * Add a bunch of helpers for dealing with settings URIs in a transparent way. * This also includes the "Observatory" which is an aggregator of ContentObservers. Inspired by TunerService. Change-Id: Ie30c3f712d3c6536af559d93f7debe2dcc5ead06
* cmsdk: Add support for more preference constraintsSteve Kondik2016-10-174-52/+252
| | | | | | | | | | | | | | | | | * 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
* cmsdk: preference: Add SecureSettingSwitchPreferenceZhao Wei Liew2016-10-131-0/+63
| | | | | | We may need to store/retrieve secure settings in some cases. Change-Id: Ibf329652d8d057485e39060c956846755c3a91d2
* cmsdk: Rework the PerformanceManagerSteve Kondik2016-10-124-3/+289
| | | | | | | | | | | | | | | * Added a proper API for this thing * Pass objects around with necessary metadata, pre-filtered and sorted * Added event log and service dump * Simplified locking and adjusted for performance / correctness * Clarified/beautified code where possible * TODO: - Write profile descriptions - Finish the UI - Clean up javadocs - Do something with per-app profiles, maybe Change-Id: Ie2ef84031e81a18e95dcd62392c7e6939860d933
* cmsdk: Add support for PartsRefresher to CMPartsPreferenceSteve Kondik2016-10-113-85/+237
| | | | | | | | * Allow CMParts to update the summary (or any detail) of a preference so it can be shown correctly in the UI. * Also some cleanup and refactoring around the parts list. Change-Id: Idc16a7eb1a1e4170671fd068bd240b88fadfb577
* cmsdk: Migrate STYLUS_ICON_ENABLED to CMSettingsZhao Wei Liew2016-10-091-0/+12
| | | | Change-Id: If40a8f390d4105812e7fab89e3612f21d6d206a4
* cmsdk: Remove duplicate legacy system elementZhao Wei Liew2016-10-091-1/+0
| | | | | | This is already in the array several lines above. Change-Id: I0e046902dc1bf01ea445587e1f8a4e7f8520051c
* Merge branch 'cm-13.0' of git://github.com/CyanogenMod/cm_platform_sdk into ↵Steve Kondik2016-10-092-3/+96
|\ | | | | | | | | | | cm-14.0 Change-Id: I28fdf53785f1ec81f5d811c099e81acdb91e0009
| * Themes: Introduce theme mixes into ThemesContractd34d2016-10-071-0/+93
| | | | | | | | | | Change-Id: I6341bada8e3ef674b272621f90bc9beb28767a59 TICKET: CYNGNOS-2121
| * cmsdk: fix visible check in hasChangedRoman Birg2016-08-301-3/+3
| | | | | | | | | | | | | | | | | | Previously the visible check was comparing the newly set value to itself. Now we cache the old value, set new value, and can do a proper comparison. Change-Id: Idbe921bfe9e311551d6bfbad432c647c129f376e Signed-off-by: Roman Birg <roman@cyngn.com>
* | cmsdk: Add constraints support for CMHardware featuresSteve Kondik2016-10-082-2/+31
| | | | | | | | | | | | | | | | | | | | | | | | * This patch will make it easy to hide preferences based on the lack of a CMHardware feature. In the preference, specify this: cm:requiresFeature="cmhardware:FEATURE_KEY_DISABLE" ..and the preference will magically be removed if the feature is not supported. Change-Id: I51699df7b39bb38b9ea69c93ade658736f89b988
* | cmsdk: Add search resources plumbing for CMPartsSteve Kondik2016-10-082-7/+34
| | | | | | | | Change-Id: I541bbbabd81eb249b7696f23d5122b6a5f4f8f50
* | cmsdk: Change how parts are launchedSteve Kondik2016-10-083-5/+16
| | | | | | | | | | | | | | * Encode the part into the action and use an explicit intent instead of relying on extras. Change-Id: I4f035d6b839e9701e20a9b78dbe2a39757aad13e
* | cmsdk: Add owner constraint for preferencesSteve Kondik2016-09-251-0/+7
| | | | | | | | | | | | | | * Set "cm:requiresOwner=true" to enforce that the current user is an owner, otherwise the preference will be removed. Change-Id: I20d1348f58a855d07676882db773f73687396a6d
* | cmsdk: Add constraints and behaviors for our preferencesSteve Kondik2016-09-1911-17/+378
| | | | | | | | | | | | | | | | | | | | | | | | * Add a new set of attributes which can be declared in the preference XML which will cause the preference to be removed from the hierarchy if the constraint is not met. Currently we can check for installed packages, system properties, config references, and system features. * CMPartsPreference is also updated to use similar logic based on the external XML. Change-Id: If8fb39cd3312623e38bb3498bfb3f29ed8b444d6
* | cmsdk: Add ListPreference helpers backed by CMSettingsSteve Kondik2016-09-142-0/+128
| | | | | | | | Change-Id: Ide607a4ba3b220d82aff5019f61ecdc7afe0a523
* | cmsdk: Add CMParts APISteve Kondik2016-09-134-0/+430
| | | | | | | | | | | | | | | | | | | | * Add a Preference subclass which queries CMParts and handles all the work needed to add a new part into Settings with a single line of XML. * The parts list lives in the CMParts app as res/xml/parts_catalog.xml * We also support receiving a broadcast to update the title/summary. Change-Id: Iaceddc85272718ba93e4086cc2577c3b016419e2
* | cmsdk: Untangle internal vs. external dependenciesSteve Kondik2016-09-113-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * The public SDK build is currently including AIDLs which are meant to be used for internal purposes only. My assumption is that this particular implementation was done before we split off an "internal" SDK, which is used by the platform itself. * The issue came up when adding an AIDL which has a backing Java data object which was not included. * It should be safe to simply hide this interface. All references to it are hidden already. It is only used for internal purposes and does not change the API. * With the internal dependencies removed from the public SDK, we can completely remove the reference in the makefile. Change-Id: I0515815543feb077ee5e289b9f900e28758c6e98
* | cmsdk: Add CMSettings preference helpersSteve Kondik2016-09-084-0/+255
| | | | | | | | | | | | | | | | | | | | * These lived in the Settings app previously, but are now moved as we need them in a few places. * The support library required to use these helpers, but we intentionally reference it using LOCAL_JAVA_LIBRARIES so the application will need to declare a dependency. Change-Id: I56844def5e1100ca0300d0027312cc9adcaab941