aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Keyguard: Get your weather on... the lock screen [2/3]d34d2016-06-091-0/+6
| | | | Change-Id: I1475cdd450021ef1a71c6c888319689e3b0507a3
* CMSettingsProvider: load provisioned flag when creating DBRoman Birg2016-06-092-12/+40
| | | | | | | | | | | | | If the database needs to be created, it will not be upgraded. So, if the device was provisioned and the table wasn't created, we don't upgrade and so we cannot bring the old flag to the new location. Fix this by setting the new cm provisioned flag on database creation. Ticket: CYNGNOS-3017 Change-Id: I1e961f1cb2d06c55c1e92ef63c6dbaee17dbc304 Signed-off-by: Roman Birg <roman@cyngn.com>
* Ensures ProfileTrustAgent properly grants/revokes trust [2/2]Luis Vidal2016-06-082-17/+73
| | | | | | | | | | | | Notifies the ProfileTrustAgent when a WiFi/BT event was triggered even if no new profile was selected so the trust agent can grant/revoke trust Filters out the multiple network state change notifications to make sure we notify the trust agent only when the event that the profile is tracking actually happened Change-Id: I047861a8b145762fff24568e341373a89ee01de9 TICKET: CYNGNOS-2719
* cmsdk: LiveDisplay: Enforce dump permissionDiogo Ferreira2016-06-071-0/+2
| | | | | | Fixes android.security.cts.ServicePermissionsTest#testDumpProtected. Change-Id: I5641b42c56d9783b1edb8fb397d51040cadb1467
* CMSettingsProvider: Add coverage for CMSettings' interfaces.Adnan Begovic2016-06-075-1/+393
| | | | | TICKET: CYNGNOS-3016 Change-Id: I55b762b51ad98194c235b83c36e3a6683c33ac4e
* CMSettingsProvider: Fix defaults test for DEV_FORCE_SHOW_NAVBAR.Adnan Begovic2016-06-071-3/+3
| | | | | | | | Since DEV_FORCE_SHOW_NAVBAR was moved to global, the test needs to query its value there. TICKET: CYNGNOS-3016 Change-Id: Ided274ec065ec989b4ca4f172ec569adb74cbfd5
* CMSettingsProvider: Register as CMTS package.Adnan Begovic2016-06-072-1/+73
| | | | Change-Id: I6733d352c47b4abbadc42222d3dd5976db8d36b6
* cmsdk: Add test package to CMTS targets.Adnan Begovic2016-06-071-0/+19
| | | | Change-Id: Iddb3ab6c5361875567e816c004ce4d6c438210ba
* cmsdk: Fix redundant case in themes contract's componentToImageColName.Adnan Begovic2016-06-071-2/+2
| | | | | TICKET: CYNGNOS-3015 Change-Id: I1daf7cf7b5b2119ab34e69b339644a1fb3da16dc
* cmsdk: Provide themescontract tests.Adnan Begovic2016-06-071-0/+91
| | | | | TICKET: CYNGNOS-3015 Change-Id: Ice714eb144c7da7e03abd0423f3cfe4b0574067e
* Automatic translation importinky@build012016-06-061-0/+9
| | | | Change-Id: I39e197f19ff2888207f0eae14e72b39a21241eca
* cmsdk: Add binder transaction id tests for api 5 interfaces.Adnan Begovic2016-06-043-3/+210
| | | | Change-Id: I693f09266dab763141e3957392fb82c4fb7344a0
* Automatic translation importclyde@build012016-06-032-0/+4
| | | | Change-Id: I7cacb61ffe8817360907f7138555f466b9f2f060
* CMSettings: fix lock screen rotation toggle [3/3]Dan Pasanen2016-06-034-0/+20
| | | | Change-Id: I2940663c7476b0df9b3553a480fa33ea4f18a5bc
* Themes: Use default audibles when pkgName is emptyd34d2016-06-021-1/+1
| | | | | | | | Fixes an issue where audibles would be "unknown" causing them to not play when phone rings, notifications arive or an alarm goes off Change-Id: If279ed7e88784c025999822da7ee3a1a51d63bbd TICKET: CYNGNOS-2728
* Automatic translation importinky@build012016-06-012-0/+50
| | | | Change-Id: I4c501ae6f8cf5bcdb2957ed920d081b3b8627e3d
* cmsdk: Create CMSystemServer to handle our platform init.Adnan Begovic2016-05-3128-101/+288
| | | | Change-Id: I7b62978e2a284a3a1ec1ffc1d8c72545d7b0c939
* Automatic translation importJessica Wagantall2016-05-263-2/+4
| | | | | Change-Id: I93bbea04f8764c0430597f295fef6972f632be1e Ticket: RM-214
* Automatic translation importJessica Wagantall2016-05-201-0/+34
| | | | | Change-Id: I46e5d915a803f1ef6813bdbdabe737863025e7ba Ticket: RM-214
* cmsdk: Skip powersave during testing.Adnan Begovic2016-05-201-1/+2
| | | | | | | | | Since powersave is ignored while the device is plugged in, and switching pluggedmodes via runtime executing dumpsys commands is blocked by sepolicy. Ignore the powersave portion of the test. Change-Id: Ia2b206649a7fc1960cc25d16ffd22379e7c616e3 TICKET: CYNGNOS-2603
* Automatic translation importAbhisek Devkota2016-05-171-0/+11
| | | | Change-Id: I806c87e9f036c65c25ec56c452fac23507cf643f
* Expose lock screen blurring as a setting [1/2]d34d2016-05-161-0/+7
| | | | | | | | | This will provide control over blurring since the current implementation assumes it is always on provided the device config specifies it supports blur. Change-Id: I71e318af12b5212133c6c5b02bed050eb67757d9 TICKET: CYNGNOS-2610
* Automatic translation importAbhisek Devkota2016-05-151-2/+2
| | | | Change-Id: I5728ee43d68ae83f6480664f19f8bafb7d3fcc10
* Automatic translation importAbhisek Devkota2016-05-142-0/+53
| | | | Change-Id: Ic62129d6a01476de1cee98a54e5d39e136f80701
* CMSettings : Move force_show_navbar to globalDanesh M2016-05-132-1/+74
| | | | | | | | | Keep feature inline with 12.1, only allow owner to control the feature and mirror across users. Also add additional checks for moved settings. Change-Id: Ida11b71bc5ce9463628f8c5d76e59902d47d59bb
* PerformanceManagerService: drop requests if system is not yet readyScott Mertz2016-05-121-0/+16
| | | | | | | | | There is a race condition between when onBootPhase(PHASE_SYSTEM_SERVICES_READY) is handled and when clients request profiles, cpu boost, or launch boost. Drop these requests in this condition. OPO-702 Change-Id: I0860f824473767a4a4776e9febc7fb786b81f457
* CMSettings: don't trample user metrics setting on upgradeRoman Birg2016-05-111-0/+8
| | | | | | | | | | | | During an upgrade, we try to migrate values which are considered to be LEGACY settings to the new provider, however because of a bad upgrade path, we need to check if the key exists in the new database AND the old database, and then we can skip it in that case. Ticket: CYNGNOS-2740 Change-Id: I5d6bc8399ccc328f4190ed7508c27bd9d5de1b9d Signed-off-by: Roman Birg <roman@cyngn.com>
* LLS: Fix NPE when backing service diesd34d2016-05-111-1/+1
| | | | | | | | | | The mService member variable should not be used directly as this can cause an NPE if the backing service has died. Instead, use the getServiceGuarded() method which will take care of re-establishing a connection to the backing service. Change-Id: I290e69c07a2e56644de7a394543d1e36fac1cbcc TICKET: CYNGNOS-2779
* Automatic translation importAbhisek Devkota2016-05-101-0/+2
| | | | | Change-Id: I08828c53b07a47fb169871c14b4d91641f88e3eb Ticket: RM-232
* Automatic translation importMichael Bestas2016-05-1095-13/+546
| | | | Change-Id: I415a05f9260dee22c61c2bd8cad035a424990fb6
* CMSettings: Fix upgrade from cm-12.1 after weather changesMichael Bestas2016-05-081-11/+13
| | | | | | * Only the owner can write to the global db Change-Id: Iec7736c28ff0bc7a35dae8bbc85ca2b1c137da49
* cmsdk: Pass the process name and pid for launch boostsSteve Kondik2016-05-067-49/+162
| | | | | | | | * We need this for vendor perf tools. * This also adds a NativeHelper class which loads the JNI library on-demand, since we don't have an entry point. Change-Id: If76ad8f952e86366978ae9cf9d1f107febccc28b
* Set a default temperature unitLuis Vidal2016-05-063-1/+26
| | | | | | | | Bump the DB version and set a default temperature unit in global settings Change-Id: I14f80e1b3fa3ae4a47769c02b5ebd6a905a53e46 TICKET: CYNGNOS-2751
* QS: Make themes a first class citizen againd34d2016-05-056-0/+82
| | | | | Change-Id: Icd397a2ddd730ae525233b66288fde9a6798c221 TICKET: CYNGNOS-2670
* cmsdk: Fix CTS Failure due to testDumpProtectedPat Erley2016-05-051-0/+2
| | | | | | | Only dump CMAudio Service State for processes with dump permissions. OPO-679 Change-Id: I28a501851a76e6d82f5726c13ac1fac74f47a8f1
* cmsdk: add persisted key value for status bar tilesRoman Birg2016-05-041-0/+5
| | | | | | | | | | | The persisted one simply contains the user, the publishing package, and the tile tag - items which can be persisted across reboots to restore the tile's properties on boot properly. Ticket: CYNGNOS-2530 Change-Id: If770557482e81ab0dd0d16c3ac8be0b2b51e653a Signed-off-by: Roman Birg <roman@cyngn.com>
* cmsdk: Add allowViaWhitelist to LLS_MANAGER_ACCESS_PRIVATEd34d2016-05-041-1/+2
| | | | | Change-Id: Idee5bd602047c01f8e13cd7d5ddbe6fb151215a2 TICKET: CYNGNOS-2378
* cmsdk: Add support for segmented LEDsSteve Kondik2016-05-032-0/+7
| | | | | | * For devices with segmented LEDs which can function as a range bar. Change-Id: I346576b705635b60f9fd8716937e86b23bc7aa30
* cmsdk: @hide protected variableRoman Birg2016-05-021-0/+1
| | | | | | | Ticket: CYNGNOS-2480 Change-Id: I0d104b235db59af008dee560763d6a753e3c8b79 Signed-off-by: Roman Birg <roman@cyngn.com>
* CMSettings: intercept Settings calls to DEV_FORCE_SHOW_NAVBARRoman Birg2016-05-021-2/+29
| | | | | | | | | | | Because DEV_FORCE_SHOW_NAVBAR has lived in Settings.System, Settings.Secure, and now in CMSettings.Secure, we need to return the proper value no matter which place an app might query. Ticket: CYNGNOS-2480 Change-Id: Ie84df9763aa3714ec4ce4d033dc73be4de3f1f00 Signed-off-by: Roman Birg <roman@cyngn.com>
* cmsdk: Fix PerformanceManagerTest expectations.Adnan Begovic2016-05-022-15/+34
| | | | | | | | | | | Since the API for PerformanceManager returns the number of profiles supported we can assume what the profiles are since the HAL provides them in an ordered manner. Thus, iterate through the size of the number of profiles and verify each one that's possible. Change-Id: I87f6d1a847c849bd9e544c1e89a666726c61fe83 TICKET: CYNGNOS-2603
* cmsdk: include our own consumer proguard rulesJorge Ruesga2016-05-022-0/+4
| | | | | | | | | | | Include a proguard file with can be consumed by the latest gradle plugin to merge this ones rules without the rules of the app linked to. This way devs doesn't need to declare (in a recent version of the gradle plugin) -dontwarn and -dontnote for cyanogenmod.library when linked to it, because proguard crashes the build because it cannot access to cm system private classes. Change-Id: I7c94a9119db744b0029b4d9a8aa782adcbd47b93 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* cmsdk: set minsdk to api level 4Jorge Ruesga2016-05-021-2/+3
| | | | | | | | In other case it will force to declare READ_PHONE_STATUS permission to apps linked to Change-Id: I384837c2bda2fe775dafd33b6f7690ca1db465d7 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* cmsdk: Fix warning from 64-bit clangSteve Kondik2016-04-301-1/+1
| | | | Change-Id: I2e45d0b1a8a552331d2691d6bc6d72a3b48a8467
* Automatic translation importMichael Bestas2016-04-2995-1/+264
| | | | Change-Id: I9bc4a483af682783e5f0ee215daf8b7334fe5431
* cmsdk: Add CMAudioManagerSteve Kondik2016-04-2714-0/+1113
| | | | | | | | | | | | | * This is a rework of the session callback API which previously lived in the framework due to JNI usage. This has been split out and cleaned up for CMSDK. * The JNI library lives on the server side, and the app-level callback has been changed to a protected broadcast. This allows us to wake up registered services when these events occur. * Additionally, we support listing all active audio sessions. * Also brings some JNI love/hate over to CMSDK. Change-Id: I31c293943474419e3db088bb7ffab75f7440ac0f
* livedisplay: Fix another transition issueSteve Kondik2016-04-261-9/+2
| | | | | | | | | | | | | | | | * If the screen is off during the entire transition period, when we turn the display back on it is not updated with the correct color temperature. * The code here is trying to be Mr. Smarty Pants and avoid extra updates, but it's totally pointless and also broken. There's no ill effects from writing to the hardware when the screen comes on, and updateColorTemperature already has all the other conditionals we need. * Just call updateColorTemperature every time, regardless. The LiveDisplayService ensures the callbacks run on the handler thread and all this crap can be removed. Change-Id: Ib9560e13870a5c6bbe9c5a26fad40f5ec1cefa83
* livedisplay: Add some unit testsSteve Kondik2016-04-262-0/+154
| | | | | | * Test color temperature control and mode selection Change-Id: Icc4fffef4c64cf3424e30890b5a4a37154482b3a
* cmsdk: Fix crash when getting LiveDisplay configSteve Kondik2016-04-262-2/+11
| | | | | | * If capabilities is empty, BitSet.toLongArray returns an empty array. Change-Id: I17476438995b581050feda346d0348228519ff44
* livedisplay: Connect display modes to CMHWEthan Chen2016-04-251-1/+11
| | | | | REF: CRACKLING-1069 Change-Id: I5be5cabf316d9bd02ab4ffc169d458ab8d1b46d4