Commit Graph

4686 Commits

Author SHA1 Message Date
Julia Reynolds
70932b22e5 Merge "Fix group name layout" into rvc-dev am: d7d84c0b7b
Original change: undetermined

Change-Id: I5608cc3f6f563a2b22ea8305d3503f3d0a531d24
2020-06-02 15:22:29 +00:00
Julia Reynolds
d7d84c0b7b Merge "Fix group name layout" into rvc-dev 2020-06-02 15:21:26 +00:00
Fabian Kozynski
d935321873 Merge "Listen for REQUEST_LISTENING on all users." into rvc-dev am: 0005f681b9
Original change: undetermined

Change-Id: I2becbae79610650fc7dcb9fe3805d2131cd6c190
2020-06-02 13:31:29 +00:00
Fabian Kozynski
0005f681b9 Merge "Listen for REQUEST_LISTENING on all users." into rvc-dev 2020-06-02 13:23:53 +00:00
Ned Burns
fcf1ee975f Merge "Freeze log buffers when a bug report is taken" into rvc-dev am: 9d4f3850ee
Original change: undetermined

Change-Id: Iab1e978cea42d091e114a4879e13fb451fff65d5
2020-06-01 22:26:25 +00:00
Ned Burns
9d4f3850ee Merge "Freeze log buffers when a bug report is taken" into rvc-dev 2020-06-01 22:00:26 +00:00
Ned Burns
9feeca53a2 Freeze log buffers when a bug report is taken
This prevents us from polluting the log buffers with logs generated by
the bug report-taking process itself (notable, bug reports post a lot of
notifications, which overwhelm the NotifLog).

Bug: 112656837
Test: atest
Test: manual
Change-Id: I070ebc99a04d854b6aacb39da1cc311307ed0653
2020-06-01 15:37:02 -04:00
Julia Reynolds
b2b1a9516f Fix group name layout
Group names can be long (account names, like email addresses)
so let them have their own line in notification info

Test: atest, manual
Fixes: 157766238
Change-Id: I5bb33edac18eeefb5d99d7573925e54e91ac0c54
2020-06-01 13:48:41 -04:00
Lucas Dupin
fcb8128a73 Merge "Move media expiration to MediaDataManager" into rvc-dev am: 61ee50f7ae
Change-Id: Iad2d2f0eb8f92860edb5d0f5ca3c33cb80e98282
2020-06-01 17:27:37 +00:00
Lucas Dupin
61ee50f7ae Merge "Move media expiration to MediaDataManager" into rvc-dev 2020-06-01 17:11:04 +00:00
Lucas Dupin
6f0bd31c2c Move media expiration to MediaDataManager
This way it will be easier to migrate to the new resumption model
when it lands.

Test: manual
Fixes: 157587326
Change-Id: I69ee71d21c96a4c6023156f605387cbe8980e706
2020-05-31 20:24:32 -07:00
Fabian Kozynski
77b32e6945 Listen for REQUEST_LISTENING on all users.
If a secondary user installed an app that provided and ACTIVE_TILE
TileService, that tile's requests for listening would go unnoticed
before this CL.

Test: manual with ACTIVE TILE apk
Test: atest TileServices
Fixes: 157539282
Change-Id: Ibbf018dc0fcbcef95a3e49ddbc7d6c5a9396848c
2020-05-29 14:49:55 -04:00
TreeHugger Robot
181c47ad64 Merge changes from topic "controls_config" into rvc-dev am: 61d46be2c2
Change-Id: Ifcba3a0e09e93748dfcad14d1baaab20d430885f
2020-05-29 18:14:50 +00:00
TreeHugger Robot
61d46be2c2 Merge changes from topic "controls_config" into rvc-dev
* changes:
  Controls UI - Allow seeding for multiple apps
  Controls UI - Support seeding for up to 6 structures
2020-05-29 18:12:43 +00:00
Evan Laird
3ee09ec966 Merge "Allow interrupting notifications to bypass lifetime extension" into rvc-dev am: a7e99b00c0
Change-Id: Iac0bfd245d4e613bba13e3a12323f77796b87913
2020-05-29 15:07:23 +00:00
Evan Laird
a7e99b00c0 Merge "Allow interrupting notifications to bypass lifetime extension" into rvc-dev 2020-05-29 15:06:49 +00:00
Matt Pietal
5459e77da5 Controls UI - Allow seeding for multiple apps
Allow up to 2 applications to seed controls into the space. Save the
seeding state of each component separately, to be able to reattempt to
seed at a later time on failure.

Fixes: 155083005
Test: atest ControlsControllerImplTest
Change-Id: I28bed9bb0b221a3e5c9b293ed9d3f85e86404a38
2020-05-29 08:43:28 -04:00
Matt Pietal
1f7c8174f0 Controls UI - Support seeding for up to 6 structures
Limit to 36 controls: 6 structures with up to 6 controls per structure

Fixes: 153606605
Test: atest ControlsControllerImplTest

Change-Id: Ieddceda4a0902e4b42208680c7a77ee03514a16c
2020-05-29 08:15:35 -04:00
TreeHugger Robot
5e884e3ffc Merge "Use standard touch path for drawable state" into rvc-dev am: e7794e6991
Change-Id: Ife73a927cfc053cd7f75ff9c919e88e74f7b08f5
2020-05-29 01:18:12 +00:00
TreeHugger Robot
e7794e6991 Merge "Use standard touch path for drawable state" into rvc-dev 2020-05-29 01:03:38 +00:00
Lucas Dupin
5feeacaab8 Use standard touch path for drawable state
Test: manual
Fixes: 155796337
Change-Id: I5a55092259a286c2a392e76a10eba8b5976ff351
2020-05-28 16:19:12 -07:00
TreeHugger Robot
6f4aa084fc Merge "cache/uncache ShortcutInfo associated with the bubbles" into rvc-dev am: 5a3a7c3985
Change-Id: Iba089698d81baa480b6cc8e7d567cef92b99998b
2020-05-28 22:15:12 +00:00
TreeHugger Robot
5a3a7c3985 Merge "cache/uncache ShortcutInfo associated with the bubbles" into rvc-dev 2020-05-28 22:00:33 +00:00
Beverly Tai
5977812deb Merge "Check unmagnified coordinates to close notif guts" into rvc-dev am: b42c22fe73
Change-Id: I60d44b511115c73fad0ad16d808a70139d34b0a3
2020-05-28 21:36:02 +00:00
Pinyao Ting
92091b1bc1 cache/uncache ShortcutInfo associated with the bubbles
Bug: 149713060
Test: BubbleVolatileRepositoryTest
Change-Id: I801a5cd3c9ae24cbd5d3bf4b45cae27c17d98829
2020-05-28 13:22:21 -07:00
Beverly Tai
b42c22fe73 Merge "Check unmagnified coordinates to close notif guts" into rvc-dev 2020-05-28 15:39:30 +00:00
Evan Laird
1d7db5b9ee Allow interrupting notifications to bypass lifetime extension
Notifications which have interruped the UI (usually a HUN) can safely
bypass FGS lifetime extension because the system has done the best it
can to show the user this notification.

This valve is important in particular for things like a dialer which
might want to interrupt a user but need to do so again on the same
channel, for instance when getting multiple phone calls quickly in
succession.

Bug: 155594347
Test: atest ForegroundServiceNotificationListenerTest
Change-Id: Id80fba3191cc133d1e73ca04015f9cbed62fc086
2020-05-27 23:46:32 -04:00
Lucas Dupin
3c2e880d53 Merge "Revert "Add media icon to status bar"" into rvc-dev am: c1b6a084a0
Change-Id: I90f92a4872cc4bc5fc6e18fadb5e1110bf97c6af
2020-05-28 01:59:51 +00:00
Lucas Dupin
c1b6a084a0 Merge "Revert "Add media icon to status bar"" into rvc-dev 2020-05-28 01:42:32 +00:00
Lucas Dupin
68857da059 Revert "Add media icon to status bar"
This reverts commit 5d0422347f.

Reason for revert: User feedback
Fixes: 157547868
Change-Id: I1ac06ff410212cd8c83764424268cf4aa38022d8
2020-05-27 23:43:10 +00:00
TreeHugger Robot
d28171ff45 Merge changes from topic "revert-11213348-launch-animation-leak-GIBWWKPCDE" into rvc-dev am: c98eb7aece
Change-Id: I688efc5402921e51531c9e35face399266cbf9be
2020-05-27 23:03:59 +00:00
Robert Snoeberger
590705341a Revert "Break strong ref to ExpandableNotificationRow"
Revert "Pass main executor to ActivityLaunchAnimator"

Revert submission 11213348-launch-animation-leak

Reason for revert: Regression b/156840927
Reverted Changes:
Id43847e3d:Break strong ref to ExpandableNotificationRow
I57ffe83b7:Pass main executor to ActivityLaunchAnimator
I5bddc38ac:Pass main executor to ActivityLaunchAnimator
Fixes: b/156840927

Change-Id: Icda11a53c0bbf826037af0736c65c0e57e8ce2e6
2020-05-27 21:04:45 +00:00
Fabian Kozynski
24cca715c8 Merge "Gate controls controllers with system feature flag" into rvc-dev am: 0711557c68
Change-Id: I0c314ce918706d70f36ec274ef7120f9ca0c472b
2020-05-27 21:04:04 +00:00
Fabian Kozynski
0711557c68 Merge "Gate controls controllers with system feature flag" into rvc-dev 2020-05-27 20:44:35 +00:00
TreeHugger Robot
c08505f282 Merge changes I95898fa6,I21e4b17e into rvc-dev am: dcc609a1b2
Change-Id: I4cd92fe9d073222282ab0a76522d2dc5d2c08d93
2020-05-27 19:13:24 +00:00
TreeHugger Robot
dcc609a1b2 Merge changes I95898fa6,I21e4b17e into rvc-dev
* changes:
  Prevent duplicates from persisted bubbles.
  Persists bubbles to disk (part 4)
2020-05-27 19:08:41 +00:00
Steve Elliott
ab9136372f Merge "Add animation when conversation priority changes" into rvc-dev am: 511b7fde3c
Change-Id: I18081f27dc92189f0ee7fb78c8e93ab50cc52a5e
2020-05-27 19:07:50 +00:00
Steve Elliott
511b7fde3c Merge "Add animation when conversation priority changes" into rvc-dev 2020-05-27 18:55:22 +00:00
Pinyao Ting
6a8fab05ed Prevent duplicates from persisted bubbles.
Bug: 157070577
Test: add some bubbles, reboot, verify it doesn't generate duplicates
Change-Id: I95898fa6a1c54e2e57fde5990ba6cfefd1a5c2f0
2020-05-27 10:39:54 -07:00
Pinyao Ting
3c930613c1 Persists bubbles to disk (part 4)
1. Decouple Bubble from NotificationEntry
2. Convert ShortcutInfo into Bubbles
3. Load overflow bubbles into memory

Test: follow the following steps
1. add a few bubbles from test app
2. restart the device
3. add a bubble from test app
4. click the plus sign to expand overview bubbles
5. verify overflow bubbles is displayed properly

This reverts commit b28e0568a0.
Reason for revert: Rolling-forward with fixed unit test

Bug: 156697897
Bug: 149713060
Change-Id: I21e4b17ee53ee7b6698115e1b497253bb54b355f
2020-05-27 10:39:40 -07:00
Steve Elliott
6771f54079 Add animation when conversation priority changes
Bug: 157480039
Test: manual
Change-Id: I87daee160648c08387696aa49e4b4e8d2ac049da
2020-05-27 11:59:57 -04:00
Fabian Kozynski
137951c7b4 Gate controls controllers with system feature flag
Instantiation of the Controls Controllers is now flagged behind
PackageManager.FEATURE_CONTROLS. This is done in the following way:
* The class ControlsComponent has accessors to the top level
controllers (as Optional), but they will be Optional.empty() if the
feature is disabled.
* GlobalActionsDialog injects a ControlsComponent and works with the
optionals.
* ControlsRequestReceiver checks this flag and returns immediately if
it's false.

In this way, the whole controls subsystem is only instantiated if the
feature is supported.

Bug: 157244528
Test: manual (enable and disable the flag).
Test: atest ControlsComponentTest ControlsRequestReceiverTest
Change-Id: I05419bb28289afbf5813791cfc72c54a123f4c87
2020-05-27 10:12:35 -04:00
TreeHugger Robot
4b33f82644 Merge "Fix GlobalActionsImeTest flakes" into rvc-dev am: e11be4f667
Change-Id: I00ba29058a6f0a6604a6cc88f47e66fde3c410ed
2020-05-27 09:24:12 +00:00
TreeHugger Robot
e11be4f667 Merge "Fix GlobalActionsImeTest flakes" into rvc-dev 2020-05-27 09:11:34 +00:00
Selim Cinek
085add6e68 Merge changes I75a386d7,Ica8c2b14 into rvc-dev am: 02b5b19256
Change-Id: I7a6ab04c0ba4aba4f4412f584642a4c93ac8cee2
2020-05-27 02:03:34 +00:00
Selim Cinek
02b5b19256 Merge changes I75a386d7,Ica8c2b14 into rvc-dev
* changes:
  Fixes an issue where the media players would animate on screen off
  Replacing MotionLayout with DynamicLayout
2020-05-27 01:43:45 +00:00
Sean Pont
8f22c8727a Fix GlobalActionsImeTest flakes
Ensures that screen is on for testGlobalActions_doesntStealImeControl

Fixes: 157174684
Test: atest com.android.systemui.globalactions.GlobalActionsImeTest
Change-Id: I067ccca29cbbba3831d46ba79d819fda0eb22969
2020-05-26 18:09:14 -07:00
Mady Mellor
a24d0449fc Merge changes from topic "canBubble_isBubble_nuances" into rvc-dev am: 82e64ff476
Change-Id: I80d55f910c9112a208603034ac3b604afd7bb7f3
2020-05-27 00:16:09 +00:00
Mady Mellor
d9799aca92 Merge "Removing groups & ongoing from bubble ordering" into rvc-dev am: 8ae7155756
Change-Id: Ia9637abc2b412b65a6d34e11f908ac8f96b403d5
2020-05-27 00:08:04 +00:00
Mady Mellor
82e64ff476 Merge changes from topic "canBubble_isBubble_nuances" into rvc-dev
* changes:
  Always open bubble for bubble notifs + fix issue
  canBubble only true when it can actually bubble
2020-05-27 00:06:58 +00:00