Previously the visible check was comparing the newly set value to
itself. Now we cache the old value, set new value, and can do a proper
comparison.
Change-Id: Idbe921bfe9e311551d6bfbad432c647c129f376e
Signed-off-by: Roman Birg <roman@cyngn.com>
* Show alternative brand logo in dexopt screen
when developer options are enabled
* Drawable by Asher
Change-Id: Ie100d7c3e9c96a7ad64c4cd65195d6f531090140
In the case that the bitmap being passed in was not a bitmap drawable,
we were not retaining any of the attributes from the original drawable.
This patch ensures we ask that drawable to draw on the canvas/bitmap so we
can use that information. Also add tests around it.
Change-Id: I3eefba6e6624fe0bed4965ddf9029320c40f7420
So the implementing service doesn't have to be signed with platform
keys.
Change-Id: I635d79173bf1771b58e1cb2dd333cee091610a48
Signed-off-by: Roman Birg <roman@cyngn.com>
* 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>
* Force US locale when doing internal flattening of HSIC objects
into strings. This would crash in the validator if the user's
local uses commands instead of dots to format floats.
Change-Id: I08f44238a486308a483205b97632114d2f7a77f1
* 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
* 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
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
* 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
* 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
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
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
This patch completes the ThemeManagerTest and thus brings the themes
package to 100% test coverage! \o/
Change-Id: I3bdb41781f127c9554c83f56503d591371031a23
TICKET: CYNGNOS-3029
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
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
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
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