Commit Graph

482279 Commits

Author SHA1 Message Date
Florian Mayer
ebf0f91040 Pass -XX:PerfettoHprof=true to ART.
This is a cherry-pick of 7dc66b31c1.

Bug: 147667830
Change-Id: Ibc26afc5e9e8744839dce7e863d0635788ad9507
Merged-In: Ibc26afc5e9e8744839dce7e863d0635788ad9507
2020-05-18 20:47:53 +00:00
TreeHugger Robot
b1bd1279bd Merge "Remove unneeded margin/padding to fix scrolling." into rvc-dev 2020-05-18 20:32:55 +00:00
TreeHugger Robot
193bb8b040 Merge "Adding simple test for PlayerViewHolder construction" into rvc-dev 2020-05-18 20:07:33 +00:00
Wonsik Kim
33db90860f Merge "media: fix encrypted buffer handling" into rvc-dev 2020-05-18 19:54:35 +00:00
TreeHugger Robot
6ee52bdc33 Merge "Fixed a bug where the brighness mirror would make everything invisible" into rvc-dev 2020-05-18 19:45:12 +00:00
TreeHugger Robot
5677226b5b Merge "Use marquee for action items with super-long strings." into rvc-dev 2020-05-18 19:41:13 +00:00
TreeHugger Robot
8c9dc15e4f Merge "Only call onDisplayAreaInfoChanged if config actually changed" into rvc-dev 2020-05-18 19:26:41 +00:00
Fiona Campbell
d7ab949588 Fix brightness curve when user sets slider to min.
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
2020-05-18 20:15:36 +01:00
TreeHugger Robot
6da69cadba Merge "Update deprecation note for Application Cache." into rvc-dev 2020-05-18 19:14:39 +00:00
Mike Digman
caec1a7440 Add pinned target indicator to Sharesheet, update visuals
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
2020-05-18 12:13:21 -07:00
Govinda Wasserman
5b0a350aba Suppress Assistant handles when device is not provisioned
Test: Tested locally
BUG: 155723880
FIX: 155723880
Change-Id: I10c35ef9af7a2ea9e61772d84fec41d6f839aef4
2020-05-18 15:07:11 -04:00
Philip P. Moltmann
58c52d4720 Check dump permission for "dumpsys permissionmgr"
Test: dumpsys permissionmgr
Fixes: 156434486
Change-Id: I76f72c6a11167d1ed5155fec1ef7ab7a1ba165d4
2020-05-18 12:06:13 -07:00
Ben Lin
cde7161d91 Merge changes I3a200a5d,Ieb7054d9 into rvc-dev
* changes:
  Deprecate PipBoundsHandler#mLastDestinationBounds.
  Update bound as user moves PIP, and reuse it for snapAlgorithm reentry.
2020-05-18 19:06:10 +00:00
TreeHugger Robot
6faef903f6 Merge "Fix crash caused by unhandled bucket" into rvc-dev 2020-05-18 18:51:24 +00:00
Winson Chung
4b3634f78b Merge "Add global actions to sysui state for handling with gesture nav" into rvc-dev 2020-05-18 18:47:58 +00:00
Alex Buynytskyy
ea96c1f624 Don't restart non-system DataLoaders on reboot.
This saves system's resources.
Healthcheck will automatically start data loader on pending reads.

Bug: 153874006
Test: test PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest
Change-Id: I160153f1d3e7e653db5de06b59d6fbbc3667fdf2
2020-05-18 11:40:43 -07:00
Aran Ink
33ca6fb8de Remove unneeded margin/padding to fix scrolling.
Fixes: 156662033

Test: Manual -- controls section no longer scrolls when not full.
Change-Id: Ice32d439c1d3a71c173a4a1279e08631b16a0500
2020-05-18 14:36:05 -04:00
Robert Snoeberger
b647449d6f Adding simple test for PlayerViewHolder construction
Bug: 153170704
Test: atest tests/src/com/android/systemui/media/PlayerViewHolderTest.kt
Change-Id: I86c69486b2a135da374df823d2b9a8abcc535984
2020-05-18 14:36:00 -04:00
Selim Cinek
7d9d378b28 Fixed a bug where the brighness mirror would make everything invisible
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
2020-05-18 11:27:32 -07:00
Christine Tsai
235f1db1c1 Merge "Fix ValueMetric should only pull on real state changes" into rvc-dev 2020-05-18 18:07:13 +00:00
Miranda Kephart
1089ed94b2 Merge "Update screenshot animation from Overview" into rvc-dev 2020-05-18 18:02:07 +00:00
Aran Ink
be297a5758 Use marquee for action items with super-long strings.
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
2020-05-18 13:43:13 -04:00
Torne (Richard Coles)
fc23be81bd Update deprecation note for Application Cache.
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
2020-05-18 13:40:40 -04:00
Patrick Baumann
5de8369e20 Remove usages of Slog.wtf
This change makes better use of logging in AppsFilter by logging warning
or info as appropriate.

Fixes: 156863453
Test: atest AppEnumerationTests
Change-Id: Icf4952f179aa63b29932d56414cb328a088adbe9
2020-05-18 10:37:45 -07:00
Steve Elliott
64320cc2de Fix crash caused by unhandled bucket
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
2020-05-18 17:34:49 +00:00
Peter Kalauskas
093730bff1 Merge "Check user unlocked before write to /data/system_ce/0/snapshots" into rvc-dev 2020-05-18 17:33:25 +00:00
chaviw
b0b893f01f Only call onDisplayAreaInfoChanged if config actually changed
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
2020-05-18 10:28:48 -07:00
TreeHugger Robot
6351c72746 Merge "Revert "Add a null home activity to Shell.apk"" into rvc-dev 2020-05-18 17:28:46 +00:00
Darryl Johnson
0d8822c94a Merge "Make sure config change items are executed in the order dispatched." into rvc-dev 2020-05-18 17:26:14 +00:00
Beth Thibodeau
2debf9ca75 Merge "Move screen record icon" into rvc-dev 2020-05-18 17:22:09 +00:00
Nicholas Ambur
f39409edaf Merge "fix SoundTrigger.ModuleProperties equals" into rvc-dev 2020-05-18 17:12:46 +00:00
Nicholas Ambur
dc1ea7ce04 fix calling SoundTriggerMiddleware in safeMode
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
2020-05-18 10:11:02 -07:00
Nicholas Ambur
ba749f87d4 fix SoundTrigger.ModuleProperties equals
Bug: 152354427
Test: atest SoundTriggerTest
Change-Id: I715ecb51e78bcb45f4b3384c0551297289fe30f9
2020-05-18 10:11:02 -07:00
TreeHugger Robot
691ca6fd78 Merge "Reduce widget exemption status." into rvc-dev 2020-05-18 17:09:21 +00:00
Winson Chung
9467454820 Add global actions to sysui state for handling with gesture nav
Change-Id: I2cdea6761e6665c8f863937eff33a8272381b6e9
Merged-In: I2cdea6761e6665c8f863937eff33a8272381b6e9
Bug: 155499313
Test: Swipe back while global actions are showing over the lockscreen
2020-05-18 17:08:05 +00:00
Gopalakrishnan Nallasamy
123e60ed82 MediaMuxer:Maintain proper state after stop()
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
2020-05-18 16:45:16 +00:00
tsaichristine
9f951059bf Fix ValueMetric should only pull on real state changes
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
2020-05-18 09:45:12 -07:00
Lucas Dupin
745202ff9d Merge "Make media buttons shrink when tapped" into rvc-dev 2020-05-18 16:42:14 +00:00
TreeHugger Robot
3ccf874dca Merge "Screen recording doesnt record internal audio" into rvc-dev 2020-05-18 16:37:11 +00:00
Lucas Dupin
f7b6901230 Merge "Move ripple initialization to view holder" into rvc-dev 2020-05-18 16:13:22 +00:00
Beth Thibodeau
d003d71c60 Move screen record icon
Icon should be more left, set to match where cast icon would normally go

Fixes: 156743525
Test: manual
Change-Id: I72d1775f76994740771d1ebf72a4b7a93d78a4e6
2020-05-18 11:45:43 -04:00
TreeHugger Robot
31db4f456b Merge "Controls UI - Loading animations" into rvc-dev 2020-05-18 15:33:26 +00:00
Miranda Kephart
bd36bac202 Update screenshot animation from Overview
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
2020-05-18 11:22:01 -04:00
Diego Vela
b90e71d431 Merge "Revert "Revert "Fix resize info activity not showing in some cases""" into rvc-dev 2020-05-18 15:13:09 +00:00
TreeHugger Robot
50c329fcf9 Merge "Revert "Switch framework-permissions to use java_sdk_library"" into rvc-dev 2020-05-18 15:10:23 +00:00
Beth Thibodeau
f649827923 Merge "Fix notification ids for share/delete actions" into rvc-dev 2020-05-18 15:05:40 +00:00
TreeHugger Robot
d96e01d282 Merge "In new direct share ranking, expand DS row as long as there are enough targets parking in memory, even if targets are still loading on UI." into rvc-dev 2020-05-18 14:56:34 +00:00
TreeHugger Robot
1bf40c2178 Merge "CEC: Restore calling identify in any case" into rvc-dev 2020-05-18 14:43:41 +00:00
TreeHugger Robot
3872a583fc Merge "Use zero relative position for activity animation" into rvc-dev 2020-05-18 14:23:08 +00:00
Matt Pietal
dc6bb1d38a Controls UI - Loading animations
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
2020-05-18 10:04:59 -04:00