aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* livedisplay: Add support for direct color balance controlSteve Kondik2016-07-2013-16/+373
| | | | | | | | | | | | | | | * We currently use the DisplayColorCalibration API for setting display temperature which makes a lot of guesses about what temperature the display really is. Some devices will support the new ColorBalance API (via QDCM or other mechanism), which offers a calibrated alternative. Add support for this, which will supercede DCC if available. * Additionally, define the available color temperature range as a set of overlayable values so this can be specified per-device. This range will be mapped to balance values using the power curve calculations in the new MathUtils class. Change-Id: I99608c09807b747d962680293c7b0cee8d669003
* cmsdk: Correct the useSegmentedBatteryLed detailsAdrian DC2016-07-181-1/+1
| | | | | | | | * The power level is passed down as the alpha channel now, in order to preserve consistency and still pass down the color of the battery lights given to the liblights Change-Id: Ia44cf1f73f09da6c96ac3b98e9387f1e3ec42249
* Automatic translation importinky@build012016-07-151-0/+12
| | | | | Change-Id: I5bcb7e0777a697f18d9d58440c6db7269cef4ed1 Ticket: -
* Instruct AIDL to generate NoOp inner classLuis Vidal2016-07-151-0/+2
| | | | | | Use custom AIDL flag to auto-generate the inner static class NoOp Change-Id: I98005a99b3df168b4fb9951006eb9aff72e499ff
* Automatic translation importpinky@build012016-07-061-1/+1
| | | | | Change-Id: Ibd2684df79c127cdebe35e3a0435d02f77e23eec Ticket: -
* cmsdk: Update README.Adnan Begovic2016-07-011-3/+3
| | | | Change-Id: I4def7a31379d375103b1468d5e98ed5de8c9c64f
* cmsdk: Create brokerablecmsystemservice concept.Adnan Begovic2016-07-014-155/+341
| | | | | | | | | Extending the BrokerableCMSystemService allows a core system service to declare a delegate provider interface that can exist in another package, either in the same or an external process. Change-Id: Idf8d170b1504528b0d3aafb23895951e26459c98
* cmsdk: Factor CMSystemServiceHelper to common.Adnan Begovic2016-07-012-7/+3
| | | | Change-Id: I3984d64210b9a1be71d075a8eb8b8a2cfebde183
* Apply active profile if user enables system profilesLuis Vidal2016-06-302-4/+80
| | | | | | | | | | | | | | | | | Ensures the active profile is applied when user enables system profiles. The profile will be automatically applied upon activation if: - No triggers are defined (i.e the profile does not respond to events) - A ON_CONNECT WiFi/BT trigger is defined and the device is currently connected to such network/device If system profiles are already enabled and a WiFi/BT event is fired, apply the profile overrides Change-Id: I362893151e52d35636d2ac05ab35e986d1f7237e TICKET: CYNGNOS-3104
* Automatic translation importinky@build012016-06-291-2/+2
| | | | Change-Id: If564dc92bc80d6ddfeaec7606678d544591cc11d
* LLS: Allow default enabled events to be overlaidd34d2016-06-262-0/+10
| | | | | Change-Id: I4607c0cace28c0987c2ed13d04db7c1eb67a1d0b TICKET: CYNGNOS-3103
* Themes: Provide 100% test coverage for themesd34d2016-06-241-2/+253
| | | | | | | | This patch completes the ThemeManagerTest and thus brings the themes package to 100% test coverage! \o/ Change-Id: I3bdb41781f127c9554c83f56503d591371031a23 TICKET: CYNGNOS-3029
* Themes: Fix ThemeManagerTestd34d2016-06-201-26/+76
| | | | | | | | | This fixes the assmption that a device will have a default theme declared in CMSettings, which is not always the case. If no default theme package is defined in CMSettings we use ThemeConfig.SYSTEM_DEFAULT instead. Change-Id: If7952ea984eea0accf3d0990871fb11e3ccc373a
* Themes: Fix applying default themed34d2016-06-201-2/+1
| | | | | | | | | ThemeUtils has method for getting the default theme package name which will return ThemeConfig.SYSTEM_DEFAULT if no default theme package is defined in CMSettings. Use this method rather than read the setting directly. Change-Id: I924f8ee116d97a8f3fcf4703214376608b31f297
* cmsdk: Prevent NPE in CMWeatherManagerLuis Vidal2016-06-171-0/+6
| | | | | | | | Verify that we have an instance of to the weather manager service before we try to register/unregister a listener or query the current weather provider. Change-Id: Iec09073615f85626c6f64e4a55758aae52231ca8
* Automatic translation importinky@build012016-06-172-5/+6
| | | | Change-Id: I1808f0cf7530364bdebdef8d530d49dbe7e4c8ad
* Weather API test: Wait for a bit before Mockito verifies if method was calledLuis Vidal2016-06-162-7/+7
| | | | | | | | | | | | Sometimes the runnable posted to runOnServiceThread() might run a bit faster than the calls made to the mocked weather provider, which causes Mockito to throw an exception. Add a timeout to instruct Mockito to wait for a bit before it verifies if the method was actually called. Also removed an unused variable in CMWeatherManagerTest TICKET: CYNGNOS-3043 Change-Id: I53b6541aeb571a6c83d1c26b6723d74c3661e8cc
* cmsdk: Increase flaky test tolerance on zenmode tests.Adnan Begovic2016-06-161-2/+2
| | | | | Change-Id: Iff5522913a518b403bf580152d4890ed1e4d275e TICKET: CYNGNOS-3014
* ExtViews: Catch SecurityException due to bad interfaced34d2016-06-161-2/+2
| | | | | | | When interfaces get obfucsated, bad things happen. Change-Id: I9b0829853da536f4047dab8223c97f993a399645 TICKET: CYNGNOS-2916
* cmsdk: Provide test coverage for remainder PartnerInterface's.Adnan Begovic2016-06-162-0/+55
| | | | | | TICKET: CYNGNOS-3051 Change-Id: I1c15516dc03d3c0897cdd35f22281b25eedb84de
* cmsdk: Provide remainder test coverage for CMStatusbarManager.Adnan Begovic2016-06-163-5/+66
| | | | | Change-Id: I4cfa89ac3d9e27b234c3209c203f2a3f2bf9c46b TICKET: CYNGNOS-3050
* cmsdk: Provide remaining ProfileManager test coverage.Adnan Begovic2016-06-161-3/+151
| | | | | | TICKET: CYNGNOS-3046 Change-Id: I42792fe03fd7c218bec6f997115bd79bb8e97403
* cmsdk: Provide remaining Profile test coverage.Adnan Begovic2016-06-161-3/+276
| | | | | Change-Id: Ief60939e92c1e8efe700410e3e23a0eeff744364 TICKET: CYNGNOS-3046
* utils: Introduce FileUtils classMichael Bestas2016-06-161-0/+115
| | | | Change-Id: Icbfa068fa0db2ae28436063072dd4b576f1b2be1
* Provide remaining Weather API test coverageLuis Vidal2016-06-154-1/+600
| | | | | Change-Id: I15acbb4193158e7b2b98f7298b1774e1a1bc0cc2 TICKET: CYNGNOS-3043
* CMSDK : Add tests for ColorUtilsDanesh M2016-06-151-0/+94
| | | | | | CYNGNOS-3047 Change-Id: Icdea3bd18f80302eb421cbd572abc9e6eeb30f0a
* CMSDK : Fix external view testDanesh M2016-06-153-70/+41
| | | | | | | | | | Java's assert doesn't really do much on android and just returns true, which makes you feel good about your tests, but its just lying to you. On the long run its best that you know the real result and fix it, hence switch to JUnit's assert. CYNGNOS-3042 Change-Id: If7e5982b10abc1f842a52110973566818b1e3bf4
* CMSDK : Add LiveLockScreenManager testsDanesh M2016-06-151-0/+131
| | | | | | CYNGNOS-3048 Change-Id: I5a372d23028c43a3952199b8ad70854bec2dc7a1
* External view testDanesh M2016-06-147-2/+1035
| | | | | | CYNGNOS-3042 Change-Id: Ibdd11b631c6deea3eb030ffb1ba55b6ca5fe022b
* cmsdk: fixup javadoc in CMHardwareManagerScott Mertz2016-06-141-3/+3
| | | | Change-Id: I114e57c1b907de3cc7cdaff746b0391cef4b8eb0
* cmsdk: Clean up posted tile in CustomTileListenerService test.Adnan Begovic2016-06-141-0/+1
| | | | | TICKET: CYNGNOS-3022 Change-Id: If0c2e18b86c5d2061fd36d404d9e63496998c25f
* cmsdk: Add CustomTileListenerService tests.Adnan Begovic2016-06-132-4/+175
| | | | | Change-Id: Ife06dc7672efded1d6ce34afce2d3d3954c50d1f TICKET: CYNGNOS-3022
* cmsdk: Provide test coverage to Profile's *Settings classes.Adnan Begovic2016-06-136-0/+318
| | | | | Change-Id: I775cdd00e7e5cfbead681d548075f44d5799bccf TICKET: CYNGNOS-3027
* cmsdk: Provide tests for Profile.ProfileTrigger interfaces.Adnan Begovic2016-06-131-0/+36
| | | | | Change-Id: I2ece6365defdd126c2cce1bbdf1ccc7d671d3a70 TICKET: CYNGNOS-3021
* cmsdk: Provide coverage for serial number and unique device id.Adnan Begovic2016-06-091-0/+89
| | | | | | | | Tests for unique device id are enforced to be implemented correctly on user builds. Change-Id: I1c6b24bbf68fe1dce645744f8323c869fdeb9ada TICKET: CYNGNOS-3026
* 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