Commit Graph

4781 Commits

Author SHA1 Message Date
Fabian Kozynski
90a3e7e5fb Merge "Add logs for BroadcastDispatcher" into rvc-dev am: 8b9bfd8d1a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11821047

Change-Id: I450f13b331f7cac0f38abc9d2442b42523d918e5
2020-06-11 14:34:54 +00:00
Fabian Kozynski
8b9bfd8d1a Merge "Add logs for BroadcastDispatcher" into rvc-dev 2020-06-11 14:20:36 +00:00
TreeHugger Robot
5310f00c30 Merge "Use main executor to run remote animation from notification" into rvc-dev am: e6c5d04a21
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11788493

Change-Id: I947d827cf06b621559a3fdf53c477a6e37972969
2020-06-11 05:43:21 +00:00
TreeHugger Robot
e6c5d04a21 Merge "Use main executor to run remote animation from notification" into rvc-dev 2020-06-11 05:29:17 +00:00
Josh Tsuji
fc06875f25 Merge "Ignore the PhysicsAnimatorTest class to unblock sysui." into rvc-dev am: c1733289d3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11827744

Change-Id: Ibf0c68da5251c2521903c6945601253dee50775f
2020-06-11 01:37:22 +00:00
Josh Tsuji
244fe08b8a Ignore the PhysicsAnimatorTest class to unblock sysui.
Test: this is a test
Bug: 158697054
Change-Id: Iad6c464490b5762fd3f8fd6d4410a338a4f89e4c
2020-06-10 18:35:19 -04:00
Robert Snoeberger
b310abfd71 Merge "Check for new media session token" into rvc-dev am: 613b829a5b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11815145

Change-Id: Ibdf7ed8d8d7f8294f674514d677c5e24415451a0
2020-06-10 19:23:02 +00:00
Robert Snoeberger
613b829a5b Merge "Check for new media session token" into rvc-dev 2020-06-10 19:14:22 +00:00
Fabian Kozynski
d68d75be59 Add logs for BroadcastDispatcher
Use SystemUIs internal buffer log.

Test: manual
Test: UserBroadcastDispatcherTest
Bug: 157165818
Change-Id: Iafd467f7e212b4975f0d8e563388187183dcd747
2020-06-10 13:23:29 -04:00
Josh Tsuji
61d58dcf0a Merge "ActivityView animations!" into rvc-dev am: ab0ffd1d48
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11793537

Change-Id: I73010d1cdfe621de7a30022a0febee23df00dbf6
2020-06-10 13:38:43 +00:00
Josh Tsuji
ab0ffd1d48 Merge "ActivityView animations!" into rvc-dev 2020-06-10 13:24:37 +00:00
Riddle Hsu
4be21f8732 Use main executor to run remote animation from notification
The pending intent of notification may launch the activity indirectly,
e.g. service or receiver. Before the activity is started, the
notification may be canceled, then the notification view is detached.
And View#post will only put the runnable to a list that will be
executed until attach again. So in this case since the notification
view is removed, the remote animation is never executed that leads to
remote animation timeout and the activity jumps cut without animation.

This fix ensures that the handler to animate is valid.

Also fix a flickering issue that if activity doesn't draw fast enough
(ActivityLaunchAnimator#ANIMATION_DURATION) then the notification panel
has started to collapse. The notification view may have clip bottom
larger than its actual height, that causes negative crop (as no crop)
height of the animating surface. So the first frame will show fully
height and then start to animate from the height close to zero.

This fix ensures that the crop height is at least zero.

Fixes: 158207087
Test: atest ActivityLaunchAnimatorTest
Test: Send a notification which will start a service. The service
      cancels the notification and starts a activity with >500ms
      delay. Check the launch animation should run smoothly.

Change-Id: I78426db1ce295c633271fcaa685b47cc9f697761
2020-06-10 15:24:41 +08:00
Robert Snoeberger
6374d86a0a Check for new media session token
Fixes: 158288114
Test: manual - Cast from Spotify. Dismiss the app. Cast from Spotify
again and look at the device shown in the QS player. It should not show
"Phone speaker".
Test: atest tests/src/com/android/systemui/media/MediaDeviceManagerTest.kt

Change-Id: I637f304f4b7e35ec7dfa7b0b30593d9fcf50a586
2020-06-10 00:11:51 -04:00
Joshua Tsuji
06785ab656 ActivityView animations!
Expand/collapse animations work by applying a matrix to the expanded view container - this is a) fast b) allows for pivot scale animation c) works around some weirdness with "actually" scaling the view, since the matrix transform is applied after the AV draws.

Switch animations work by snapshotting the current bubble's surface into graphics memory, rendering that into a SurfaceView, and animating the SurfaceView out. Memory profiler indicates this does not use additional memory (since those pixels were already in graphic memory anyway, and released as soon as the animation ends).

Test: lots and lots of manual testing
Fixes: 123306815
Fixes: 135137761
Merged-In: I0b01dab4bb0c82873afc55d054bafc672bacc8bf
Change-Id: I0b01dab4bb0c82873afc55d054bafc672bacc8bf
2020-06-10 03:59:30 +00:00
TreeHugger Robot
c8ccd1a28f Merge "add uievent logs for nav assistant longpress" into rvc-dev am: d6b9d5a608
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11795062

Change-Id: I8ad6cf05faeafe00a209ed1e870a82dc74b57407
2020-06-10 00:06:13 +00:00
TreeHugger Robot
d6b9d5a608 Merge "add uievent logs for nav assistant longpress" into rvc-dev 2020-06-09 23:50:18 +00:00
TreeHugger Robot
0254a26bfb Merge "Clarify notif guts for apps that don't use shortcuts" into rvc-dev am: dee3bbc823
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11813695

Change-Id: I121506bed18ec13d843eb2cf4b6884b3dcaeb7f5
2020-06-09 23:21:50 +00:00
TreeHugger Robot
dee3bbc823 Merge "Clarify notif guts for apps that don't use shortcuts" into rvc-dev 2020-06-09 23:07:36 +00:00
Chris Wren
119913a450 add uievent logs for nav assistant longpress
Bug: 147508318
Test: atest SystemUITests
Change-Id: I18cb0193f95c8fed8b1204512352d2aa1c640af7
2020-06-09 18:05:09 -04:00
Julia Reynolds
0b02ee7a19 Clarify notif guts for apps that don't use shortcuts
Remove the channel specific controls and replace the conversation
icon with the app icon to make it clearer what the scope of the text
and linked controls is

Test: atest
Fixes: 158592601
Change-Id: I6056e9de37d68e4236b483bcc3ebc6d3b0557e35
2020-06-09 17:01:38 -04:00
Winson Chung
93828f1373 Merge "Revert "Restore support for source hint rect"" into rvc-dev am: 611e7a484a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11794330

Change-Id: Ib7bab310cdfc380d2cbeb7c60c6beea812168e25
2020-06-09 17:31:04 +00:00
Winson Chung
611e7a484a Merge "Revert "Restore support for source hint rect"" into rvc-dev 2020-06-09 17:19:21 +00:00
Winson Chung
d7302549d6 Revert "Restore support for source hint rect"
This reverts commit 5175580c2c.

Reason for revert: Scale issue with play movies

Bug: 156669445
Change-Id: I1393d802209163f8a415073dd1432cc35dba90f7
2020-06-09 17:18:57 +00:00
Mady Mellor
7c2e718d66 Merge "Fix some things with overflow, persistence, & visibility" into rvc-dev am: afbfb25d99
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11797627

Change-Id: Ic9387524932d62d043415f1f6626de2d20d4fdfd
2020-06-09 16:31:15 +00:00
Mady Mellor
afbfb25d99 Merge "Fix some things with overflow, persistence, & visibility" into rvc-dev 2020-06-09 16:28:10 +00:00
Mady Mellor
458a6263f1 Fix some things with overflow, persistence, & visibility
1) Bubbles that are persisted no longer have an entry in
   some cases this wasn't being handled correctly (i.e.
   persisted bubbles would never autoexpand)
2) Removed the custom work to promote something from the
   overflow -- in most cases we should be able to update
   flagBubble & rely on the subsequent notification update
   which minimizes the # of code paths
3) mPendingBubbles makes more sense as a HashMap
4) The visibility fix: If the bubble switched from a
   shortcut to a pending intent, we would skip making the
   view visible

Fixes: 158480978
Fixes: 157755108
Test: atest BubbleControllerTest
Test: manual - create a shortcut bubble
             - reboot the device
             - promote that bubble from the overflow
             => ensure that it auto-expands
             - collapse the stack
             - receive an update for that bubble but
               now it's a pendingIntent
             - open the stack
             => ensure that the view is visible
Change-Id: I37dc780e9a66b9e2f2ae46b5386dcd291dc0e0ab
2020-06-08 23:13:37 -07:00
TreeHugger Robot
9737fc886c Merge "Add logging for screen recording" into rvc-dev am: 8a9a2f8083
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/10502589

Change-Id: I1780af6101c293997bfccde0c9de923fc3ea481a
2020-06-09 01:22:50 +00:00
TreeHugger Robot
8a9a2f8083 Merge "Add logging for screen recording" into rvc-dev 2020-06-09 01:10:59 +00:00
Beth Thibodeau
abb338f1a6 Add logging for screen recording
Log recording start, end from qs tile, and end from notification

Fixes: 147503450
Test: atest RecordingServiceTest ScreenRecordTileTest
Test: manual with go/aster-event-viewing, verified correct IDs logged
Change-Id: I1b631cfb82c087ad4c08f074795ae3a8b170e714
2020-06-08 17:29:32 -04:00
TreeHugger Robot
984890be71 Merge "Fix notification grouping and section bug" into rvc-dev am: d04af4c0b0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11659358

Change-Id: Id299e713453626573a239bf58561ec2fc0a9c5ec
2020-06-08 20:49:12 +00:00
TreeHugger Robot
d04af4c0b0 Merge "Fix notification grouping and section bug" into rvc-dev 2020-06-08 20:35:26 +00:00
Kevin Chyn
5bd03efe47 Merge "Exclude WindowInsets.Type.ime() from credential UI" into rvc-dev am: 06174db579
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11760220

Change-Id: I17b56e168d999b9f43d1f41179ae0e572b0e3772
2020-06-08 18:02:30 +00:00
Kevin Chyn
06174db579 Merge "Exclude WindowInsets.Type.ime() from credential UI" into rvc-dev 2020-06-08 17:48:17 +00:00
TreeHugger Robot
02807bfa2e Merge "add uievent logs for nav buttons" into rvc-dev am: a15a870d4e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11758280

Change-Id: Ib779e4eba1f25e9295b632fe2abaa058d7e2b6a4
2020-06-06 05:15:15 +00:00
TreeHugger Robot
a15a870d4e Merge "add uievent logs for nav buttons" into rvc-dev 2020-06-06 05:01:39 +00:00
Chris Wren
fad16787dd add uievent logs for nav buttons
Bug: 147508017
Test: atest KeyButtonViewTest
Change-Id: Ia237154b5a9ab10335f266c8974eabdf06d7997a
2020-06-05 19:15:03 -04:00
TreeHugger Robot
64d88bc3ec Merge "fix FileNotFound exception when attempting to read bubble xml" into rvc-dev am: 750b4c93ec
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11758287

Change-Id: Ibc8d9c298090c9c8df132208078a7d9a3637bc56
2020-06-05 23:14:50 +00:00
TreeHugger Robot
750b4c93ec Merge "fix FileNotFound exception when attempting to read bubble xml" into rvc-dev 2020-06-05 23:13:57 +00:00
Santhosh Thangaraj
56c4314fdf Merge "Fix status bar animates when open bubble updates" into rvc-dev am: 89a5f7183e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11708150

Change-Id: I26190f3adf1c4cb22bc97510623d8f8d8ab50b58
2020-06-05 21:28:50 +00:00
Pinyao Ting
23c9b688e2 fix FileNotFound exception when attempting to read bubble xml
BubbleDataRepository tried to read the xml file before a write,
and the xml file is only created on write if it didn't exist,
which caused the FileNotFound exception.

Bug: 158231089
Test: BubblePersistentRepositoryTest
Change-Id: I7cd75b1d74be277df49f433338ad814ce50c87c1
2020-06-05 21:19:09 +00:00
Santhosh Thangaraj
89a5f7183e Merge "Fix status bar animates when open bubble updates" into rvc-dev 2020-06-05 21:17:47 +00:00
TreeHugger Robot
6bb0f4c6a1 Merge "Ensure ProxCheck doesn't unregister ProxSensor" into rvc-dev 2020-06-05 21:14:56 +00:00
Kevin Chyn
09ca6e50d0 Exclude WindowInsets.Type.ime() from credential UI
Prevent the credential UI from resizing when the IME appears
or disappeares. Fixes the issue where the window behind us is
briefly shown behind the IME area, before the IME is fully
animated in.

Fixes: 157910732

Test: atest com.android.systemui.biometrics
Test: 1) Set up work profile, set up separate challenge (password)
      2) Open work profile app, close app, lock screen
      3) Open work profile app, go to credential UI, toggle IME
         multiple times. Window behind (launcher) is not seen
Change-Id: Id5b9a43fb76a63063abe64c578d7fa3492be4bdd
2020-06-05 12:59:45 -07:00
TreeHugger Robot
f4d5a3107a Merge "Use WeakReference to hold target in values." into rvc-dev am: 48866627f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11744164

Change-Id: I4b0edd84aa9338ac6e6660e1d6373edbbd1e9e05
2020-06-05 19:28:33 +00:00
Dave Mankoff
f54f3eb275 Ensure ProxCheck doesn't unregister ProxSensor
If the ProximitySensor passed into ProximityCheck is shared with other
clients, the ProximityCheck was causing the ProximitySensor to be
paused which, in turn, meant other clients would miss out on events.

Specifically, this manifested itself in AOD/Doze where one part of
Doze wanted the proximity sensor registered, but another part used
ProximityCheck with the same sensor, causing the sensor to be
paused. The screen would either not turn off when covered, or would
not turn back on when uncovered.

This CL is a cherry pick of an earlier CL that went into rvc-d1.
Some slight differences are seen since the proximity code in rvc-d1
has diverged from rvc, but the logic needed for the fix is the same.

Fixes: 155365422
Test: atest SystemUITests and manual
Change-Id: I3c3faf79ba6d3915b0cfecec7861f6065ae689e8
Merged-In: I3c3faf79ba6d3915b0cfecec7861f6065ae689e8
2020-06-05 15:27:03 -04:00
TreeHugger Robot
48866627f5 Merge "Use WeakReference to hold target in values." into rvc-dev 2020-06-05 19:18:03 +00:00
TreeHugger Robot
f7eacab7ba Merge "Keep secondary prox registered when covered." into rvc-d1-dev 2020-06-05 18:45:58 +00:00
Santhosh Thangaraj
837d4900a9 Fix status bar animates when open bubble updates
Bug: 155499241
Test: Manual test on device and unit test

Change-Id: If1c4cd9b40bb7a1f6ea041b9abbc3110c8c6a2b2
2020-06-05 10:46:46 -07:00
Garfield Tan
61d599e20a Use WeakReference to hold target in values.
WeakHashMap holds strong references to values, so if we would like to
have them cleaned up automatically we need make sure we don't reference
the key strongly in the value.

Bug: 149918957
Test: Bubble animation looks OK.
Test: No GC root paths through PhysicsAnimator.
Test: atest PhysicsAnimator
Change-Id: I4e701bfb7f91662e18c317eaf895b5ea31e0860d
2020-06-05 10:12:42 -07:00
Aran Ink
a4c26d7c87 Merge "Add PowerOptionsAction to combine Power and Restart when needed." into rvc-dev am: ae0368040f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11739863

Change-Id: I816e74d8e5c37bb56e51f9a2f9aec9ef8d3780ad
2020-06-05 16:27:04 +00:00