Khalid Zubair
4a964c508e
perf: Add PerformanceManager.getProfileHasAppProfiles API
...
Add an API to query PerformanceManager if a perf profile supports
app-profiles.
Change-Id: I51d958343624ab085de0352ac182cb05308e0da4
2015-11-25 12:52:40 -08:00
Khalid Zubair
37b590928f
perf: fix perf profile change issues
...
Rework profile handling to address the following issues:
- When app specific profiles are enabled, the perf service silently
changes the profile to BALANCED when the user revisits settings.
The service and Settings UI still show whatever pref the user had
selected. The user is now unable to change the setting to BALANCED.
The perf service ignores the change because the current profile
(selected by app profiles) did not change.
- When low power mode (battery saver) activates or deactivates, the
user selected profile is overwritten.
All runtime decisions regarding active profiles have been consolidated
in to a single applyProfile() function that handles low power mode,
user and app-specific profile rules.
App specific profiles are applied only if the power profile is
BALANCED.
setPowerProfileInternal has been changed to save the user pref even if
the active pref is unchanged.
Fixes SAMBAR-1088
Change-Id: Iac658959130f08452f5e41ce3339fe4603ac474e
2015-11-25 12:52:23 -08:00
Vineet Patil
35fdbdab95
Protected apps components
...
Change-Id: I850d45e9aca6eff8221766830fce45468c8ca549
2015-11-24 12:12:37 -08:00
Adnan Begovic
a6cf63ac7d
cmsdk: Fix readme on hist migration util.
...
Change-Id: I735efd0cb58d7be7faa7a7820de63a3eb36c8faf
2015-11-23 14:35:47 -08:00
Adnan Begovic
2be0eef4dd
CMSettingsProvider: Change migration pref.
...
The previous migration step should've never happened,
change the default shared pref to a different location to
force trigger a migration on devices where the previous iteration
of settings migration already happened.
Change-Id: I6b466d37910c31dbf58d37fd631807d7dd2dbae3
2015-11-20 15:28:10 -08:00
Roman Birg
e4558b7fc3
CMSettings: add reporting status setting
...
Ref: CYNGNOS-1131
Change-Id: Ic237763bc5900d89a7ad5efb19d7ad3bcc448e33
Signed-off-by: Roman Birg <roman@cyngn.com>
(cherry picked from commit 0c0aef6666490e6ec7055dc87503a63edbf66c98)
2015-11-20 15:26:02 -08:00
Adnan Begovic
d5fdee9833
testing: Host side settings migration verifier.
...
See README for usage.
Change-Id: Ibcbd4ee3882097a8d01ca219aeef0130778436f6
2015-11-19 19:07:50 -08:00
d34d
f7f6d14148
CMSettings: Validate name and value for System settings
...
Verify that the name and value being inserted/updated are correct.
Change-Id: I0243556701b1d303ca52135178b055c2fd87671c
2015-11-19 18:23:28 -08:00
Danesh M
3ddf435fb4
CMSDK : Add missing settings to LEGACY
...
Change-Id: Iad4b81523962ce8af28bbf2cef4884168c975c40
2015-11-17 15:30:44 -08:00
Danesh M
cdda6a5e18
CMSettings : Remove unused/legacy setting
...
Change-Id: I690fc127280cb0e53da4b221d87df85e4218b82c
2015-11-17 14:17:47 -08:00
Danesh M
11e8316747
CMSettings : Remove AOSP settings
...
Change-Id: I73b3e057159113f111303e3fde822a533f8df8ed
2015-11-17 14:11:03 -08:00
Danesh M
68bd8bf3ea
CMSettings : Remove BLUETOOTH_A2DP_SRC_PRIORITY_PREFIX WIFI_AUTO_CONNECT_TYPE
...
These are CAF features.
Change-Id: I28c685a54969619db5e6037462976272fa51012a
2015-11-17 13:26:20 -08:00
Danesh M
8862a5f48c
CMSDK : Remove legacy tests
...
Change-Id: I9872774053d68aaf7ed37c74888a5a7ead809484
2015-11-16 15:57:42 -08:00
Danesh M
c25b6157bc
CMSDK : Keep track of legacy settings
...
Change-Id: I192d8033f2cd65cffc88f97089cb2ef2b02a566d
2015-11-16 15:53:56 -08:00
AdrianDC
a63e78ba92
cmsdk: Move Notification LEDs settings to CMSettings
...
* Lights with Screen On
* LEDs Brightness
* Multiple LEDs
Change-Id: I8c3f3cae53c834d1d2798d9dece00e3253ccb1db
Signed-off-by: AdrianDC <radian.dc@gmail.com>
2015-11-13 14:13:09 +01:00
d34d
b59538ccd0
CMSettings: Move Global settings to CMSettings
...
Change-Id: Ib054409d5ad790e011e12ecbc6786bf3562a1b80
2015-11-12 17:23:39 -08:00
Danesh M
e3950819b3
CMSettings : Relocate settings to cm settings provider
...
Change-Id: I805d2e384ebbc8a603eb5387ed9d182b87a9b722
2015-11-12 14:38:39 -08:00
d34d
930eaf7c4d
CMSettings: Move Secure settings to CMSettings
...
This moves all Settings.Secure.* settings that, were added to
CyanogenMod, to CMSettings.
Change-Id: Ieaac288bfcb6189b3bc393484d27e441d805aea2
2015-11-12 10:12:13 -08:00
Adnan Begovic
59febe112d
cmsdk: Move T9_SEARCH_INPUT_LOCALE to CMSettings.
...
Change-Id: I446ecc4e2b5981a86218fa8867ab771d422dce21
2015-11-11 15:12:53 -08:00
Adnan Begovic
1f6c75a4cf
cmsdk: Move NAVBAR_LEFT_IN_LANDSCAPE to CMSettings.
...
Change-Id: I415288feef8d32613f9a7f8bbe1b748eaa7d459d
2015-11-11 13:31:46 -08:00
Adnan Begovic
5659f5355d
cmsdk: Move RECENTS_SHOW_SEARCH_BAR to CMSettings.
...
Change-Id: Ie34d57b547eb27f4f7629ed6d1fd9cced0ce7fff
2015-11-11 13:20:29 -08:00
Adnan Begovic
063c9854b2
cmsdk: Move STATUS_BAR_SHOW_WEATHER to CMSettings.
...
Change-Id: I792e8d04c1b70749db78f0bd5142d489aebd6d51
2015-11-11 12:38:26 -08:00
Adnan Begovic
6694ce0ca0
cmsdk: Move DOUBLE_TAP_SLEEP_GESTURE to CMSettings.
...
Change-Id: I88b255a5ddeff9520905c4a8b612c9fdbf3b4411
2015-11-11 12:26:40 -08:00
Adnan Begovic
a09defa3c9
cmsdk: Move LiveDisplay settings and resources.
...
Change-Id: I6d0c3f8b645e2c8cca059ff343a774eab1933a9b
2015-11-10 18:10:54 -08:00
Adnan Begovic
b006e980e7
cmsdk: Move WIFI_AUTO_CONNECT_TYPE to CMSettings.
...
Change-Id: I3a0447006d29cc8d2b1bbed6f841ce9ae55be94f
2015-11-10 14:15:12 -08:00
Adnan Begovic
dac1c3eac1
cmsdk: Move lookup provider logic to CMSettings.
...
Change-Id: I239b1d5b56b940e591547ab1c50b6c1d34af586c
2015-11-10 13:31:03 -08:00
Adnan Begovic
b2093b969f
CMSettingsProvider: Map LegacyCMSettings to CMSettings constants.
...
Change-Id: I07537650cc536877ec4492af43e88ce8d60342fd
2015-11-10 12:05:03 -08:00
Adnan Begovic
d977ffa305
CMSettingsProvider: Make sure to migrate proxmity settings.
...
Change-Id: I434a88220191a6491f6e0f001e72a26a45f8043f
2015-11-09 18:13:11 -08:00
Adnan Begovic
3c42b723c3
cmsdk: Move proximitycheck to CMSettings.
...
Change-Id: If9e097c373404fe8983fd9160ebeb8405bd363d8
2015-11-09 18:00:32 -08:00
Adnan Begovic
50fc22b8a1
cmsdk: Move battery light settings to CMSettings.
...
Change-Id: I11a80bdeab369f851017c516039adc6400572b09
2015-11-09 16:24:29 -08:00
Adnan Begovic
dc8f675bb9
cmsdk: Fix readme.
...
Change-Id: Ib848f638ed614b9f9ff4739ee7f507eda6c2d78f
2015-11-09 14:38:40 -08:00
Adnan Begovic
0a21c75cb5
cmsdk: Move numerous buttons settings into CMSettings.
...
Change-Id: I7a0832745b9d81ad8d20afad8f17865932c6aad1
2015-11-09 10:31:01 -08:00
d34d
2927d19d86
CMSettings: Port "Development shortcut" (3/3)
...
Change-Id: Icffcfafab9f971787e15ec5fc2892e5a6f83f553
2015-11-07 14:44:58 -08:00
Adnan Begovic
f3583e75dc
CMSettings: Add migrate step for NAV_BUTTONS.
...
Change-Id: Ia17ccba0e0b66ee35f3ac7f125f909dc010514d6
2015-11-06 11:30:45 -08:00
Adnan Begovic
6a79d5714c
cmsdk: Fix cm settings provider tests.
...
Change-Id: Iedb9c3278f5fa872ffd28682fb3ef48ceb163dba
2015-11-05 17:06:22 -08:00
Adnan Begovic
8c65e15e74
cmsdk: Finish migrating "last app" logic to cmsdk.
...
Change-Id: I94dbd41639c734f53000b975685bf42d046a7e84
2015-11-05 17:06:22 -08:00
Danesh M
d4ae0653e2
CMSDK : Add lockscreen shortcuts and navigation bar ime
...
Change-Id: If984849a06c7002b35734209a38d422b4f9e4553
2015-11-05 15:15:12 -08:00
Danesh M
6d2f22ad19
CMSDK : Add functions for delimited strings
...
Change-Id: Ifccd6c7266cacdcd1413b221546be77eade9c501
2015-11-05 15:14:46 -08:00
Danesh M
b56f346814
CMSDK : Change protection level system to privileged
...
Change-Id: I8e5e8c17a9d7e2399155b34e63bdd55e19a59362
2015-11-05 15:14:19 -08:00
d34d
74c2b772e5
Themes: Uncomment ThemeVersion code
...
Change-Id: I09ea6c4f2923a0d49f6bd3ecb05e237062241433
2015-11-05 13:13:17 -08:00
Steve Kondik
ac36cbe559
perf: Remove logspam
...
Change-Id: Id7c54851950eedc77ab6bc085fe515b6e7aaaac5
2015-11-04 04:39:31 -08:00
Steve Kondik
620c35bd6b
cmsdk: Refactor the PerformanceManager
...
* Remove all code and configuration into CMSDK.
* Deprecate the properties-based API
Change-Id: Ib14ce5b8623cb368e6b545d1f82bc9c58580e13b
2015-11-03 17:59:44 -08:00
Steve Kondik
5e522e6805
cmsdk: Add an internal target which includes all resources
...
* This can be referenced instead of the standard jar if internal
resource identifiers are needed for sharing between platform apps
(systemui + settings is a good use case).
Change-Id: Ib078f6dd861a0a3a4cdcfccd6e245200d18368c4
2015-11-03 17:40:34 -08:00
Steve Kondik
1a5c249b67
cmsdk: Fix issue with intermediates not ready
...
Change-Id: Id0dcfd7dc4a3ce50bed3dcd61c6d402c872c74de
2015-11-03 10:13:42 -08:00
AdrianDC
4eb54afce0
HighTouchSensitivity [1/2]: Add Settings preference
...
* Allows the HighTouchSensitivity (Glove mode)
value to be saved in the CMSettings provider
* Can be used in a device specific service to handle
the Glove mode in a way closer to the device's vendor
* Changes include :
android_packages_apps_Settings
cm_platform_sdk
Change-Id: Ib3cb8c4c67fb2397136ccfdf08cd8e7d938e898d
Signed-off-by: AdrianDC <radian.dc@gmail.com>
2015-10-30 20:29:48 +01:00
Adnan Begovic
06b49a6237
cmsdk: Introduce content classes.
...
Change-Id: I6306a3b240de2777f1ed8482eb4a76d4d7ea0237
2015-10-29 17:38:37 -07:00
Adnan Begovic
f24f7a5fd4
cmsdk: Introduce various new Settings from fwb.
...
Change-Id: I93e8be7e5d6c80feccdbe248fa265538e6ae4893
2015-10-29 17:38:37 -07:00
Adnan Begovic
241e559538
cmsdk: Remove systemserverclasspath test.
...
The jars all have oat files now, so iterating them and seeing
if they're "clean" is pointless since they're not part of the
processes runtime libraries on zygote fork.
Change-Id: I8c0e0ce16a84c423e68f8c1749f3676c3bd2931f
2015-10-29 17:37:32 -07:00
Adnan Begovic
9ad39bfbab
cmsdk: Introduce CYANOGENMOD_DISPLAY_VERSION
...
Change-Id: I4689d141bebfbfecef1fe28af30a4ccce3ea4ba7
2015-10-29 17:37:32 -07:00
Roman Birg
f61f9d079f
CMSettings: add privacy guard default key
...
Change-Id: Iba10fcf3978e308f1b25a8d13570c420f7589a1b
Signed-off-by: Roman Birg <roman@cyngn.com>
2015-10-28 17:51:14 -07:00