Commit Graph

621 Commits

Author SHA1 Message Date
clyde@build01 8a3e6d3a8f Automatic translation import
Change-Id: Ibcf3f9e87a5b335ac709f7061f88144e6c16aba0
Ticket: -
2016-07-27 12:19:28 -07:00
inky@build01 7001c63425 Automatic translation import
Change-Id: Ib2786d6696fcc2ced57b50b65f9c746db342d8f5
Ticket: -
2016-07-26 11:28:05 -07:00
blinky@build01 f42db22083 Automatic translation import
Change-Id: I179df3f0aaad384a8c3ef780f7bdd26aa61a20f3
Ticket: -
2016-07-25 11:49:13 -07:00
Bharadwaj Narasimha 16f02268e8 ThemeService:Component id is being changed for multiple entries in mixnmatch.
When a theme with more that one wallpaper is installed(Hexo), when
we set the wallpaper in other themes to the second and third wallpapers
of Hexo while using mixnmatch, some other components like icons,ringtones
overlays would also change its Component_id to the corresponding Component_id
of the wallpaper changed.

Change-Id: I16a0b9a69a329308927cecbe2385f51184c8f0ee
TICKET: CYNGNOS-3220
2016-07-25 10:44:44 -07:00
Roman Birg 705716fc60 cmsdk: Broker out CMAudioService
Change-Id: Ia1205ad67d524ebf379085a6287993b8b82bc76f
Signed-off-by: Roman Birg <roman@cyngn.com>
2016-07-25 08:44:46 -07:00
Steve Kondik 86cae92291 livedisplay: Add support for direct color balance control
* 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
2016-07-20 10:07:31 -07:00
Adrian DC 25d7081418 cmsdk: Correct the useSegmentedBatteryLed details
* 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
2016-07-18 12:35:23 -07:00
inky@build01 c85073ff6c Automatic translation import
Change-Id: I5bcb7e0777a697f18d9d58440c6db7269cef4ed1
Ticket: -
2016-07-15 14:05:30 -07:00
Luis Vidal 147522b86c Instruct AIDL to generate NoOp inner class
Use custom AIDL flag to auto-generate the inner static class NoOp

Change-Id: I98005a99b3df168b4fb9951006eb9aff72e499ff
2016-07-15 13:14:34 -07:00
pinky@build01 1a2589b3d4 Automatic translation import
Change-Id: Ibd2684df79c127cdebe35e3a0435d02f77e23eec
Ticket: -
2016-07-06 12:00:16 -07:00
Adnan Begovic d4bc9d3406 cmsdk: Update README.
Change-Id: I4def7a31379d375103b1468d5e98ed5de8c9c64f
2016-07-01 15:39:33 -07:00
Adnan Begovic b62a4550c3 cmsdk: Create brokerablecmsystemservice concept.
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
2016-07-01 10:41:53 -07:00
Adnan Begovic 551b377da9 cmsdk: Factor CMSystemServiceHelper to common.
Change-Id: I3984d64210b9a1be71d075a8eb8b8a2cfebde183
2016-07-01 10:40:46 -07:00
Luis Vidal 50571ba8bb Apply active profile if user enables system profiles
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
2016-06-30 16:39:58 -07:00
inky@build01 052af0a76d Automatic translation import
Change-Id: If564dc92bc80d6ddfeaec7606678d544591cc11d
2016-06-29 10:50:57 -07:00
d34d e1c502d3cf LLS: Allow default enabled events to be overlaid
Change-Id: I4607c0cace28c0987c2ed13d04db7c1eb67a1d0b
TICKET: CYNGNOS-3103
2016-06-26 08:34:04 -07:00
d34d 131de78e2e Themes: Provide 100% test coverage for themes
This patch completes the ThemeManagerTest and thus brings the themes
package to 100% test coverage! \o/

Change-Id: I3bdb41781f127c9554c83f56503d591371031a23
TICKET: CYNGNOS-3029
2016-06-24 13:20:46 -07:00
d34d f4dd414643 Themes: Fix ThemeManagerTest
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
2016-06-20 10:43:00 -07:00
d34d afcfb67696 Themes: Fix applying default theme
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
2016-06-20 10:33:13 -07:00
Luis Vidal 46bed1698d cmsdk: Prevent NPE in CMWeatherManager
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
2016-06-17 15:12:38 -07:00
inky@build01 ee2dc2db08 Automatic translation import
Change-Id: I1808f0cf7530364bdebdef8d530d49dbe7e4c8ad
2016-06-17 14:02:18 -07:00
Luis Vidal b25a32413c Weather API test: Wait for a bit before Mockito verifies if method was called
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
2016-06-16 16:05:42 -07:00
Adnan Begovic 3251a4506f cmsdk: Increase flaky test tolerance on zenmode tests.
Change-Id: Iff5522913a518b403bf580152d4890ed1e4d275e
TICKET: CYNGNOS-3014
2016-06-16 14:07:26 -07:00
d34d 9c42d415b9 ExtViews: Catch SecurityException due to bad interface
When interfaces get obfucsated, bad things happen.

Change-Id: I9b0829853da536f4047dab8223c97f993a399645
TICKET: CYNGNOS-2916
2016-06-16 14:04:23 -07:00
Adnan Begovic 0b76a46515 cmsdk: Provide test coverage for remainder PartnerInterface's.
TICKET: CYNGNOS-3051

Change-Id: I1c15516dc03d3c0897cdd35f22281b25eedb84de
2016-06-16 13:54:13 -07:00
Adnan Begovic afa47a7973 cmsdk: Provide remainder test coverage for CMStatusbarManager.
Change-Id: I4cfa89ac3d9e27b234c3209c203f2a3f2bf9c46b
TICKET: CYNGNOS-3050
2016-06-16 11:08:28 -07:00
Adnan Begovic 5d5e556c49 cmsdk: Provide remaining ProfileManager test coverage.
TICKET: CYNGNOS-3046

Change-Id: I42792fe03fd7c218bec6f997115bd79bb8e97403
2016-06-16 11:08:28 -07:00
Adnan Begovic 9b50627030 cmsdk: Provide remaining Profile test coverage.
Change-Id: Ief60939e92c1e8efe700410e3e23a0eeff744364
TICKET: CYNGNOS-3046
2016-06-16 11:08:28 -07:00
Michael Bestas 522b0c3db1 utils: Introduce FileUtils class
Change-Id: Icbfa068fa0db2ae28436063072dd4b576f1b2be1
2016-06-16 10:44:36 -07:00
Luis Vidal 3f8b3b3862 Provide remaining Weather API test coverage
Change-Id: I15acbb4193158e7b2b98f7298b1774e1a1bc0cc2
TICKET: CYNGNOS-3043
2016-06-15 16:52:24 -07:00
Danesh M c701b8ea6e CMSDK : Add tests for ColorUtils
CYNGNOS-3047

Change-Id: Icdea3bd18f80302eb421cbd572abc9e6eeb30f0a
2016-06-15 13:38:40 -07:00
Danesh M 60c6053a92 CMSDK : Fix external view test
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
2016-06-15 13:38:22 -07:00
Danesh M 912410f27d CMSDK : Add LiveLockScreenManager tests
CYNGNOS-3048

Change-Id: I5a372d23028c43a3952199b8ad70854bec2dc7a1
2016-06-15 13:38:03 -07:00
Danesh M b6e71bc544 External view test
CYNGNOS-3042

Change-Id: Ibdd11b631c6deea3eb030ffb1ba55b6ca5fe022b
2016-06-14 13:14:35 -07:00
Scott Mertz aa11b3330a cmsdk: fixup javadoc in CMHardwareManager
Change-Id: I114e57c1b907de3cc7cdaff746b0391cef4b8eb0
2016-06-14 11:54:08 -07:00
Adnan Begovic 7fff40e2d0 cmsdk: Clean up posted tile in CustomTileListenerService test.
TICKET: CYNGNOS-3022
Change-Id: If0c2e18b86c5d2061fd36d404d9e63496998c25f
2016-06-14 11:29:12 -07:00
Adnan Begovic 8387d3cc07 cmsdk: Add CustomTileListenerService tests.
Change-Id: Ife06dc7672efded1d6ce34afce2d3d3954c50d1f
TICKET: CYNGNOS-3022
2016-06-13 11:37:04 -07:00
Adnan Begovic 0e0cb73c61 cmsdk: Provide test coverage to Profile's *Settings classes.
Change-Id: I775cdd00e7e5cfbead681d548075f44d5799bccf
TICKET: CYNGNOS-3027
2016-06-13 11:35:38 -07:00
Adnan Begovic 2add3de267 cmsdk: Provide tests for Profile.ProfileTrigger interfaces.
Change-Id: I2ece6365defdd126c2cce1bbdf1ccc7d671d3a70
TICKET: CYNGNOS-3021
2016-06-13 11:28:07 -07:00
Adnan Begovic fda1fc6843 cmsdk: Provide coverage for serial number and unique device id.
Tests for unique device id are enforced to be implemented correctly
  on user builds.

Change-Id: I1c6b24bbf68fe1dce645744f8323c869fdeb9ada
TICKET: CYNGNOS-3026
2016-06-09 15:37:46 -07:00
d34d b6a21cab09 Keyguard: Get your weather on... the lock screen [2/3]
Change-Id: I1475cdd450021ef1a71c6c888319689e3b0507a3
2016-06-09 14:10:38 -07:00
Roman Birg 5b6638051e CMSettingsProvider: load provisioned flag when creating DB
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>
2016-06-09 11:58:55 -07:00
Luis Vidal aa1f592e9f Ensures ProfileTrustAgent properly grants/revokes trust [2/2]
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
2016-06-08 17:04:59 -07:00
Diogo Ferreira 19de84cd1b cmsdk: LiveDisplay: Enforce dump permission
Fixes android.security.cts.ServicePermissionsTest#testDumpProtected.

Change-Id: I5641b42c56d9783b1edb8fb397d51040cadb1467
2016-06-07 10:55:45 -07:00
Adnan Begovic 705890212d CMSettingsProvider: Add coverage for CMSettings' interfaces.
TICKET: CYNGNOS-3016
Change-Id: I55b762b51ad98194c235b83c36e3a6683c33ac4e
2016-06-07 10:45:53 -07:00
Adnan Begovic 8cbdd2a58a CMSettingsProvider: Fix defaults test for DEV_FORCE_SHOW_NAVBAR.
Since DEV_FORCE_SHOW_NAVBAR was moved to global, the test needs
  to query its value there.

TICKET: CYNGNOS-3016
Change-Id: Ided274ec065ec989b4ca4f172ec569adb74cbfd5
2016-06-07 10:45:30 -07:00
Adnan Begovic cf8f5cefcb CMSettingsProvider: Register as CMTS package.
Change-Id: I6733d352c47b4abbadc42222d3dd5976db8d36b6
2016-06-07 10:45:13 -07:00
Adnan Begovic 7a48ce3b42 cmsdk: Add test package to CMTS targets.
Change-Id: Iddb3ab6c5361875567e816c004ce4d6c438210ba
2016-06-07 10:43:41 -07:00
Adnan Begovic fb0c0371d4 cmsdk: Fix redundant case in themes contract's componentToImageColName.
TICKET: CYNGNOS-3015
Change-Id: I1daf7cf7b5b2119ab34e69b339644a1fb3da16dc
2016-06-07 10:43:07 -07:00
Adnan Begovic 39f001274e cmsdk: Provide themescontract tests.
TICKET: CYNGNOS-3015
Change-Id: Ice714eb144c7da7e03abd0423f3cfe4b0574067e
2016-06-07 10:42:14 -07:00