Commit Graph

220 Commits

Author SHA1 Message Date
Danny Baumann
fceb077b6f Don't unboundedly enqueue transition messages.
As long as the light sensor is providing values, each value change will
enqueue a transition message, which may queue up. Stop doing that and
ensure only one transition message is queued at any given time.

Change-Id: I6e9c5b265066089ff9e0cea7237c2023ed1af30c
2016-09-12 07:31:07 -07:00
clyde@build01
f15f366c62 Automatic translation import
Change-Id: Ia86641b028e5799beed97b40fe3f0c9326ceeacd
Ticket: -
2016-09-06 20:06:59 -07:00
pinky@build01
86879d1fa5 Automatic translation import
Change-Id: I7c1f2ebb5c41b171d3a5defff0884d08ffee2514
Ticket: -
2016-08-27 14:23:12 -07:00
Michael Bestas
2059ea6908
You are now a developer!
* Show alternative brand logo in dexopt screen
  when developer options are enabled
* Drawable by Asher

Change-Id: Ie100d7c3e9c96a7ad64c4cd65195d6f531090140
2016-08-20 18:07:38 +03:00
blinky@build01
4ceac56022 Automatic translation import
Change-Id: I6265acef6112def3cd99b9e1b24fdd7ded26c515
Ticket: -
2016-08-13 18:07:36 -07:00
Luis Vidal
c487191476 CMSDK: Broker out WeatherManagerService
Change-Id: I1a2007f626c2943ff2cf5da2ab029250efef56f8
2016-08-12 12:39:15 -07:00
Roman Birg
da1776a8a8 cmsdk: allow MANAGE_AUDIO_SESSIONS to be whitelisted
So the implementing service doesn't have to be signed with platform
keys.

Change-Id: I635d79173bf1771b58e1cb2dd333cee091610a48
Signed-off-by: Roman Birg <roman@cyngn.com>
2016-08-11 16:20:16 -07:00
Alexander Martinz
6e5ab27fbb [1/2] cmsdk: cm custom boot dexopt UI
* Pass app info and number of installed packages to boot message UI
 * Ui by Asher and Joey, based on Alexander's previous work

Change-Id: I9298d7e2b85a703921abf62f8b91157e6f88803b
Signed-off-by: Joey Rizzoli <joey@cyanogenmoditalia.it>
2016-08-10 16:52:21 -07:00
Danny Baumann
c0dd46d30f Introduce a hysteresis for outdoor condition determination.
Avoids flicker when brightness is around the threshold.

Change-Id: I8658725450496b89123abb26b6ef8ce333c709e5
2016-08-09 15:14:01 -07:00
blinky@build01
d62a53f690 Automatic translation import
Change-Id: Ic90add544c2df37224eee1b7a62946d15c328f49
Ticket: -
2016-08-08 13:42:24 -07:00
Steve Kondik
87590f0b1e cmsdk/livedisplay: Add support for picture adjustment
* Allows adjustment of hue, saturation, intensity, and contrast.

Change-Id: Icf8ff6200a07b68e09dcd7f140a82e57b53944f7
2016-08-08 12:41:27 -07:00
Steve Kondik
3e7dac120a cmhw: Add support for display mode remapping
* Simple mechanism for mapping vendor names to the
   various modes used in CM (with translations).

Change-Id: I791e6302e48f1b886dfc3228a96176d7318679d5
2016-08-04 23:56:59 -07:00
Steve Kondik
19345cb1ca livedisplay: Enable by default
* LiveDisplay is a popular feature that is widely enabled,
   so let's enable it by default.

Change-Id: I6bc0240b0a79aa6a278ac83469d5cd9d63c682d1
2016-08-04 23:51:46 -07:00
d34d
c4ed8c84cd Themes: Broker the theme service
Change-Id: I429936f63d52eddcb1653515bc94e82f758b57d6
2016-08-02 14:40:34 -07:00
Steve Kondik
4cf18a3e36 livedisplay: Tweak defaults
* Raise the outdoor threshold to 12K lux to more accurately
   represent bright sunlight.
 * Raise the night color temperature to 4800K to provide a
   soft display look at night with less red.

Change-Id: I26bdea7fc97acb2a17944a1f25e5e11866a08e29
2016-08-01 15:28:20 -07:00
Steve Kondik
7bf7c4b72e cmsdk: Allow services to conditionally start before decryption
* Essentially everything in CMSDK should remain silent when we
   are being prompted to enter a passcode for decrypting the
   device. Unfortunately, simply shutting off CMSDK entirely
   will cause crashes everywhere. We need to be somewhat
   selective about it.
 * Motivation for this was LiveDisplay kicking into night mode before
   decrypted due to location services failing.

Change-Id: I4d745debb2894776258343e8696ce5144f094404
2016-08-01 12:19:11 -07:00
inky@build01
fa227b12ed Automatic translation import
Change-Id: I00c456aff360d6e644953fb3eae8b16cc12147ad
Ticket: -
2016-07-31 19:00:52 -07:00
blinky@build01
92fdd2beb0 Automatic translation import
Change-Id: Ic16cd0e674aa927413f735ee10f07b231d8b641f
Ticket: -
2016-07-29 13:04:50 -07:00
inky@build01
544d324c82 Automatic translation import
Change-Id: Icb1bbff6a51a59f4309a40ecc7e06b4fce1b4ccf
Ticket: -
2016-07-28 12:34:47 -07:00
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
pinky@build01
1a2589b3d4 Automatic translation import
Change-Id: Ibd2684df79c127cdebe35e3a0435d02f77e23eec
Ticket: -
2016-07-06 12:00:16 -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
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
inky@build01
ee2dc2db08 Automatic translation import
Change-Id: I1808f0cf7530364bdebdef8d530d49dbe7e4c8ad
2016-06-17 14:02:18 -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
inky@build01
c45e01b8ea Automatic translation import
Change-Id: I39e197f19ff2888207f0eae14e72b39a21241eca
2016-06-06 17:44:43 -07:00
clyde@build01
174f042ec7 Automatic translation import
Change-Id: I7cacb61ffe8817360907f7138555f466b9f2f060
2016-06-03 15:14:56 -07:00
d34d
ee069f8c81 Themes: Use default audibles when pkgName is empty
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
2016-06-02 10:01:21 -07:00
inky@build01
af55f98056 Automatic translation import
Change-Id: I4c501ae6f8cf5bcdb2957ed920d081b3b8627e3d
2016-06-01 12:02:56 -07:00
Adnan Begovic
b51572d697 cmsdk: Create CMSystemServer to handle our platform init.
Change-Id: I7b62978e2a284a3a1ec1ffc1d8c72545d7b0c939
2016-05-31 17:28:48 -07:00
Jessica Wagantall
970f0b6e95 Automatic translation import
Change-Id: I93bbea04f8764c0430597f295fef6972f632be1e
Ticket: RM-214
2016-05-26 18:58:18 -07:00
Jessica Wagantall
5e56748899 Automatic translation import
Change-Id: I46e5d915a803f1ef6813bdbdabe737863025e7ba
Ticket: RM-214
2016-05-20 17:23:32 -07:00
Abhisek Devkota
8f50ecda5d Automatic translation import
Change-Id: I806c87e9f036c65c25ec56c452fac23507cf643f
2016-05-17 22:12:50 +02:00
Abhisek Devkota
5cb275d8c1 Automatic translation import
Change-Id: I5728ee43d68ae83f6480664f19f8bafb7d3fcc10
2016-05-15 02:47:41 +02:00
Abhisek Devkota
638da93883 Automatic translation import
Change-Id: Ic62129d6a01476de1cee98a54e5d39e136f80701
2016-05-14 11:18:20 +02:00
Scott Mertz
6113701337 PerformanceManagerService: drop requests if system is not yet ready
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
2016-05-12 15:29:27 -07:00
d34d
8c8601b9f3 LLS: Fix NPE when backing service dies
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
2016-05-11 11:18:41 -07:00
Abhisek Devkota
5340c0e45b Automatic translation import
Change-Id: I08828c53b07a47fb169871c14b4d91641f88e3eb
Ticket: RM-232
2016-05-10 16:20:55 -07:00
Michael Bestas
69c9ab0f86 Automatic translation import
Change-Id: I415a05f9260dee22c61c2bd8cad035a424990fb6
2016-05-10 18:43:11 +03:00