This is a cherry-pick of 7dc66b31c1.
Bug: 147667830
Change-Id: Ibc26afc5e9e8744839dce7e863d0635788ad9507
Merged-In: Ibc26afc5e9e8744839dce7e863d0635788ad9507
The brightness spline was setting the entire curve to 0.0f. This was due
to the min and max points of point x+1 being constrained to a factor of
the brightness x. If this happens to be 0.0f, the brightness curve will
never increase.
Bug: 153799222
Test: AutomaticBrightnessControllerTest
Change-Id: Id29389e7fc17b402d2f1bd581a805a6067eac4bb
After a user pins an app it takes up a persistent space in the
suggested app row. Users may forget they've pinned an app as
there's no indicator. Add an in-line icon to label suggested
targets as pinned. No indicator should be shown in the A-Z list.
This CL also updates related visual styling to get close to
redlines.
Bug: 150405021
Bug: 152978014
Test: manual
Change-Id: Iee774b88e284617449a673d7e622c0ce233ded1a
This saves system's resources.
Healthcheck will automatically start data loader on pending reads.
Bug: 153874006
Test: test PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest
Change-Id: I160153f1d3e7e653db5de06b59d6fbbc3667fdf2
Because of some new animation optimization, this could lead to issues
where we weren't cancelling the animation in one side case.
Fixes: 156569031
Test: tap on brightness mirror, observe
Change-Id: I18164b16a612431f8b3ec87a5b5834c0f48dd761
Where possible, try to fit strings onto two lines, then fall back to marquee if text is truncated.
Bug: 152624388
Test: Visual -- full strings are readable (if not pretty) across languages (ex. Greek, Georgian, Latvian, etc.)
Test: Visual -- When marquee is needed, all item messages are set to single-line marquee instead of two-line.
Change-Id: I687c0f310df3f237fcd3517a0b62fd912a421d74
Update the deprecation note for WebSettings.setAppCacheEnabled and
related to mention the public blog post about the feature being removed.
Fixes: 156409857
Test: m offline-sdk-docs
Change-Id: I0481937d665f3f16b61b921aa19e306ba8bb16e0
This change makes better use of logging in AppsFilter by logging warning
or info as appropriate.
Fixes: 156863453
Test: atest AppEnumerationTests
Change-Id: Icf4952f179aa63b29932d56414cb328a088adbe9
We no longer handle all buckets inside of the `when` block,
so the default case should no longer throw an error.
Fixes: 156866868
Test: manual, atest
Change-Id: Ib811165d8b09bca4f3045d4408ac250ef4b9bafa
onConfigurationChanged is called pretty frequently if anything in the
hierarchy changed. Avoid sending duplicate callbacks to the client if
the configuration didn't actually change.
Test: Rotate, only unique configurations in onConfigurationChanged
Test: DisplayAreaOrganizerTest
Fixes: 156677444
Change-Id: Icf4dc8a0a5f7bdcfac87721c6ff656f2fe711a90
deleteSoundModel is calling into the SoundTriggerModdleware when safe
mode is enabled. Middleware should not be called in this case.
Bug: 152354427
Test: atest SoundTriggerServiceTest#testServiceDisabledInSafeMode
Change-Id: I1fa13fd32a384b59928a5deb9505dc4a1e757efa
Change-Id: I2cdea6761e6665c8f863937eff33a8272381b6e9
Merged-In: I2cdea6761e6665c8f863937eff33a8272381b6e9
Bug: 155499313
Test: Swipe back while global actions are showing over the lockscreen
MediaMuxer.java: move to stop state even if nativeStop() throws
exception.
android_media_MediaMuxer.java: revert recent change, throw
only runtime exception for any error as it used to be. Log error now.
Bug: 156649746
Test: atest android.media.cts.MediaMuxerTest
atest android.media.cts.MediaRecorderTest
atest android.mediav2.cts.MuxerTest
Change-Id: I82e16fcb065a40f25036bbad181798f1fd36132b
In ValueMetricProducer, we now map the new and old state values from
onStateChanged to their correct group ids (no mapping happens if the
metric has no state map). We then check if the group ids are the same
and return if they are. Having the same group id means that the state
values are in the same group and no pull is needed.
onStateChanged was updated to take state values stored in FieldValue
objects instead of as ints. This makes it easier to utilize the
mapStateValue function in MetricProducer.
Bug: b/156428844
Test: m statsd_test && adb sync data && adb shell
data/nativetest/statsd_test/statsd_test
Change-Id: Id8f110db593470b8923e7c4259d70cc5f5bc9147
Icon should be more left, set to match where cast icon would normally go
Fixes: 156743525
Test: manual
Change-Id: I72d1775f76994740771d1ebf72a4b7a93d78a4e6
When invoked from Overview, the screenshot ended up at the wrong
size (since the input bitmap is a different size, coming from the
Recents screenshot). Changing the scale to start at the size of the
input bitmap (as well as starting at the correct location) fixes
this problem.
Bug: 155415994
Fix:155415994
Test: manual; tested from Overview and from chord invocation
Change-Id: I25f2ff982af75ea36da7b3e8e47f93c720101b97
Do not allow behaviors to update the status string
directly. Potentially queue up text updates and change it during an
animation.
Bug: 154625942
Test: visual
Change-Id: I916ca083e0b44e01879ba659ac82a3189017631b