Commit Graph

2668 Commits

Author SHA1 Message Date
timhypeng
3de24ae2c5 Enhancement for group operation in output switcher
-Add new group components in xml layout and assets
-Adjust view objects in adapter for new layout
-Add aboveStatusbar in MediaOutputControllter to keep the dialog style
when switching
-Add getGroupMediaDevices() in MediaOutputController to provide available
device list for group operation
-Update test cases

Bug: 155822415
Test: atest MediaOutputAdapterTest MediaOutputControllerTest MediaOutputBaseDialogTest MediaOutputDialogTest
Merged-In: If74bf2efb89a8ece61f4e0cf13e4dcfa30cb0a8a
Change-Id: If74bf2efb89a8ece61f4e0cf13e4dcfa30cb0a8a
2020-12-02 03:29:52 +00:00
timhypeng
411e7a5b7c Add animation when switching output device
Bug: 155822415
Test: manual test
Merged-In: Ia3370222427b77099d987d59d5d5fd08c11557d7
Change-Id: Ia3370222427b77099d987d59d5d5fd08c11557d7
2020-12-02 03:29:22 +00:00
timhypeng
5fc4c2883d Add "Stop" button for remote device
-Add "Stop" to stop remote media session
-Refine UI layout
1. Adjust size of head icon and apply defined dimen value
2. Move list padding inside the list to prevent truncating the list
3. Remove group-related view(I will add it in recycle view when the group feature is ready.)
-Add MediaOutputDialogTest
-Rename PAIR_NEW to CUSTOMIZED_ITEM_PAIR_NEW
-Integrate more UI view in setTwoLineLayout()

Bug: 155822415
Test: atest MediaOutputAdapterTest MediaOutputBaseDialogTest MediaOutputControllerTest MediaOutputDialogTest
Merged-In: Ie6a917c56a0ef97f772a8f43742afd2ee61e407f
Change-Id: Ie6a917c56a0ef97f772a8f43742afd2ee61e407f
2020-12-02 03:29:07 +00:00
timhypeng
3e5de04302 Add Media Output Dialog for Output Switcher
-Add MediaOutputBaseDialog to provide common method for different media operations UI
-Add MediaOutputDialog for showing Bluetooth device
-Add resources for background image, style and layout
-Add MediaOutputBaseDialogTest for unit test

Bug: 155822415
Test: atest MediaOutputBaseDialogTest
Merged-In: I3086a4049f240870ca1ad870946d6848e500b561
Change-Id: I3086a4049f240870ca1ad870946d6848e500b561
2020-12-02 03:23:47 +00:00
timhypeng
d04087aff3 Add MediaOutputAdapter for Media device list
-Build device item layout by different cases
-Provide UI component for different operations
-Add MediaOutputBaseAdapter for common method
-Add MediaOutputAdapterTest for unit test

Bug: 155822415
Test: atest MediaOutputAdapterTest
Merged-In: Ida509ed401320b3665d7a5f29f4df5db096ff29c
Change-Id: Ida509ed401320b3665d7a5f29f4df5db096ff29c
2020-12-02 03:20:51 +00:00
Matt Pietal
1b5d2f6ff4 Controls UI - RTL for input pin/password
Make sure the EditText input and hint are properly aligned for the
locale

Fixes: 158202169
Test: manual, force RTL
Change-Id: I3bce141d1a6767e4ccb73cbe533bcbd1ab253a73
2020-11-18 14:17:23 +00:00
Fabian Kozynski
6f3c88ab86 Swap seekbar vert padding to keep height fixed
Reduce the vertical padding of the seekbar when it's enabled by 2dp to
account for the extra height in the track. That way the height of the
SeekBar view is always 33dp.

This has a nice side effect of properly setting the height of the track
when resuming.

Bug: 160242262
Test: manual
Change-Id: I9b6888f2a6bf5fb118075dea3f849618350ec18b
(cherry picked from commit b84e6ba27f)
2020-09-23 18:32:20 +00:00
Fabian Kozynski
370971972e Reduce vertical margins in landscape add controls
This makes it so we can have at least one entire control tile visible
when scrolling.

Test: manual
Bug: 166166119
Change-Id: I7514cf8af69b4ba1d6c0bf76cdc21cd3c0719bd2
(cherry picked from commit a3a7c45f36)
2020-09-16 15:03:59 +00:00
Miranda Kephart
8ef899b9a7 Merge "Use theme color for screenshot UI icons" into rvc-qpr-dev 2020-08-17 15:05:03 +00:00
Miranda Kephart
90a8354a03 Use theme color for screenshot UI icons
Bug: 162377061
Fix: 162377061
Test: manual (tested in light/dark modes, ensured that smart
screenshot actions are not tinted)

Change-Id: I00b2cb91af1df057501d35394f1c6ab63990f8d5
2020-08-14 15:05:33 -04:00
Fabian Kozynski
2e0f351d35 Add guts to media player on long press
Adds the following:
* Button for accessing settings
* Button for dismissing player (similar path to when a package is
uninstalled)

Guts will close automatically if:
* QS is collapsed
* Media carousel changes pages

Also, flattened the view hierarchy to support animations between states.

Test: manual
Test: atest com.android.systemui.media
Bug: 156036025
Change-Id: I340e0b37393573f81a3bf12d5e453eccf5982473
Merged-In: I340e0b37393573f81a3bf12d5e453eccf5982473
(cherry picked from commit 429360fb39)
2020-08-10 12:51:33 -04:00
Fabian Kozynski
9a85dc9c0a Merge changes from topic "permission_chip" into rvc-qpr-dev
* changes:
  Restricts notified app ops based on flags
  Add back privacy chip
2020-07-23 13:45:26 +00:00
Fabian Kozynski
d074a54435 Add back privacy chip
This adds back the privacy chip classes (Controller and view).

Change to using Executors and DeviceConfigProxy, also fix tests that
were flaky before.

Test: SystemUITests
Bug: 160966908
Change-Id: Id3e5981a87c33a8cabe7ce348f9512d81ad2b1d8
Merged-In: Id3e5981a87c33a8cabe7ce348f9512d81ad2b1d8
2020-07-20 14:27:28 -04:00
Fabian Kozynski
dce238b63f Make the build text in QS marquee
The text marquees only when visible.

Test: manual
Test: manual check that it's not announced prematurely
Fixes: 158410766
Change-Id: Iede2b8d20de4f87f6bbc95f228376bb5bf488a9e
2020-07-15 11:55:48 -04:00
Selim Cinek
dab4553f27 Merge "Made the qs scroll view not important for accessibility" into rvc-dev am: 27b403d4c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12111594

Change-Id: Iab86765bc67493c2e86b8eab31cfddacf1cca266
2020-07-08 23:21:28 +00:00
Selim Cinek
ed68763640 Made the qs scroll view not important for accessibility
It was showing up as an unlabeled element, but can't usually
be scrolled anyway. And when it's scrolled it can still be performed
using talkback.

Fixes: 160329869
Test: enable talkback, drag down notification panel
Change-Id: Iaf4785213c58cb9efeb19aff4c164f78cdacfdab
2020-07-08 14:34:28 -07:00
TreeHugger Robot
c523ddb24a Merge "Make icon sizes consistent" into rvc-dev am: 44d6bc8594
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12028265

Change-Id: I696dd4869af72ecc753d539623f74a0c1ace5a1b
2020-06-29 17:15:45 +00:00
TreeHugger Robot
44d6bc8594 Merge "Make icon sizes consistent" into rvc-dev 2020-06-29 17:14:35 +00:00
Robert Snoeberger
ec645b4c49 Make icon sizes consistent
Updating sizes of icon based on code review discussion in ag/12013470.

Bug: 159990829
Test: manual - Verify icons (app and device) are same size in media
player.
Test: manual - Verify fallback device icon and app icon are the same
size.

Change-Id: I7dd12145ecdb96bdf4a7dc4e6e095e306453633b
2020-06-29 10:04:52 -04:00
Selim Cinek
64af0bf958 Merge "Fix RTL text in TransitionLayout" into rvc-dev am: 2b33bad9c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12018133

Change-Id: Iac410547e780a0440144727a75ba938026914806
2020-06-29 07:44:44 +00:00
Jeff DeCew
4636fbc163 Fix RTL text in TransitionLayout
Fixes: 159656380
Test: manual - video attached to bug
Change-Id: Ic676c69f3bd5072900563947efc3656a5b22ce70
2020-06-27 14:36:04 -04:00
TreeHugger Robot
f195384221 Merge "Vertically center elements within output switcher chip" into rvc-dev am: 5866d9207f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12004857

Change-Id: I3b4397634e344d603bd3aa2856b814e9ade801df
2020-06-26 19:40:36 +00:00
TreeHugger Robot
5866d9207f Merge "Vertically center elements within output switcher chip" into rvc-dev 2020-06-26 19:32:27 +00:00
Fabian Kozynski
66ac33b97d Merge "Media - Limit size of output switcher and app name" into rvc-dev am: 3d8df7b6c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11973247

Change-Id: I899bcbcbfa19274d127e781fcc3dfb072ea6adf2
2020-06-26 18:52:05 +00:00
Fabian Kozynski
3d8df7b6c2 Merge "Media - Limit size of output switcher and app name" into rvc-dev 2020-06-26 18:37:37 +00:00
Robert Snoeberger
3534cca4a9 Vertically center elements within output switcher chip
Bug: 159990829
Test: manual - Change text size to smallest and look at output switcher
ship. Verify that text is aligned to center of device icon.
Test: manual - Change text size to largest and look at output switcher
chip. Verify that icon is aligned to center of device name text.

Change-Id: Ie1303c003afce190013aa78295e9d2b8425301f9
2020-06-26 14:02:49 -04:00
Matt Pietal
bc2e4b1564 Merge "Global Actions - Power menu too tall in landscape" into rvc-dev am: 0cef70e5d1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12004852

Change-Id: I511f7a71dad97ff21a73b8fabf200825c36645bf
2020-06-26 17:34:37 +00:00
Matt Pietal
250a34cee3 Global Actions - Power menu too tall in landscape
Set a different height for landscape to fit in all devices

Fixes: 159906363
Test: manual, set largest display/font
Change-Id: Ie4ab49fca4691ff377af0f5df329c6b97343d604
2020-06-26 11:22:10 -04:00
TreeHugger Robot
0a929e3eb2 Merge "Making transitions between gone hosts work better" into rvc-dev am: acd4508f46
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11967243

Change-Id: I0d713ea0032777e9a9e1b0eb8ee2480d6be32256
2020-06-26 06:29:19 +00:00
Selim Cinek
85d1f8bfee Making transitions between gone hosts work better
The transition previously wasn't aligned with the
content at all and the landscape transition was
broken as the content appeared out of no-where.
The main reason was that we were still changing
the bounds of the player to the invisible player
when not in a guided transition.

This also fixes issues where we were not caching
aggressively enough, because only a subset of the
state is actually relevant for the measurement

Bug: 159834486
Test: have resumable player, drag down both in landscape and portrait
Change-Id: I1671c9d48e7f1b1166e4505e90785bc699528d1c
2020-06-25 20:22:54 -07:00
TreeHugger Robot
ebc86a0717 Merge "Add string for "See more apps"" into rvc-dev am: 11e7231a75
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11987678

Change-Id: Ic5819068053e19fe0dc7e1b3dd66ade6f2e1d8af
2020-06-24 16:29:36 +00:00
Fabian Kozynski
91280c30c5 Add string for "See more apps"
Test: manual
Fixes: 159792758
Change-Id: I9b116fef0bfaad7c40bb9a9a109e0abf1b005b4c
2020-06-24 10:57:23 -04:00
Fabian Kozynski
f2e6891752 Media - Limit size of output switcher and app name
Make sure that there is a gap at least 10dp to the left and right of center
vertical in media view, between app name and output switcher.

Test: manual
Fixes: 159708142

Change-Id: If142bd920b6921c9d82fa2d6dfb2595f123df2ac
2020-06-23 14:41:47 -04:00
TreeHugger Robot
a13faee19f Merge "Fix mic diclosure in RTL" into rvc-dev am: a5ddbacefd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11931516

Change-Id: If663a6df742d9be5b445139582db7f9a76986df0
2020-06-23 17:55:50 +00:00
TreeHugger Robot
a5ddbacefd Merge "Fix mic diclosure in RTL" into rvc-dev 2020-06-23 17:54:06 +00:00
Sergey Nikolaienkov
8dfc49b6d4 Fix mic diclosure in RTL
Fix AudioRecordingDisclosureBar's layout and animations in RTL mode.

Bug: 159145397
Test: manually on TV, with "Force RTL" enabled
Change-Id: I494381d6c25658fb95d6d69482661e76501f8500
2020-06-23 14:31:02 +02:00
TreeHugger Robot
68a2d6f6a0 Merge "Correct RTL layout of media players" into rvc-dev am: 413150f2ad
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11931377

Change-Id: Ie3548fbdc35702eae642ebbf3fecef2dd8b0d09e
2020-06-23 04:08:34 +00:00
Jeff DeCew
afec78f7f1 Correct RTL layout of media players
Bug: 158021340
Test: manual - press RTL tile and look at player layout.
Change-Id: I39b266acd0b0bd9f9388f87accecff42ca62df01
2020-06-22 20:33:12 -04:00
TreeHugger Robot
2c704624da Merge "Fix font families in media controls" into rvc-dev am: 6f85ed6d6f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11959978

Change-Id: I33b7fe0ec083cd4b318401f247ee08afe9070e31
2020-06-23 00:17:54 +00:00
TreeHugger Robot
6f85ed6d6f Merge "Fix font families in media controls" into rvc-dev 2020-06-23 00:07:40 +00:00
Fabian Kozynski
fbc1b63f9f Merge "Add divider between QS and media" into rvc-dev am: bd0b819c21
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11953553

Change-Id: I6421116de90db3faa838f0a28dc167bcdb83f7b5
2020-06-22 21:54:40 +00:00
Fabian Kozynski
ed9f305038 Fix font families in media controls
Test: manual
Bug: 157175224
Change-Id: Icbda8ffea8896f5db74910f85646747e8f1b19c1
2020-06-22 17:11:03 -04:00
Fabian Kozynski
a0d0503b0d Merge "Change color of seamless chip border" into rvc-dev am: 9de64deb89
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11953545

Change-Id: I9a4418454476d2e7a602e3fe89d1bd335a299c8d
2020-06-22 20:36:47 +00:00
Fabian Kozynski
42c541e6c7 Add divider between QS and media
Test: manual, portrait and landscape
Fixes: 159484242
Change-Id: I279ca402e7893c9213718b345cc79ecd72beb4e8
2020-06-22 16:28:10 -04:00
Fabian Kozynski
9de64deb89 Merge "Change color of seamless chip border" into rvc-dev 2020-06-22 20:22:05 +00:00
Selim Cinek
2001debcdf Merge "Making the media carousel dismissable" into rvc-dev am: 82359e319e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11885872

Change-Id: I9fb068c29db1a3767d8c1a7653e220f8e29326d3
2020-06-22 18:46:15 +00:00
Selim Cinek
82359e319e Merge "Making the media carousel dismissable" into rvc-dev 2020-06-22 18:36:48 +00:00
Fabian Kozynski
349967a098 Change color of seamless chip border
The border should be fixed at #FFFFFF @15%.

Test: manual
Fixes: 159359398
Change-Id: Ie423e1ba8b7317e167d3b498ba9112ed4cada822
2020-06-22 13:38:07 -04:00
Fabian Kozynski
32026857ab Merge "Make SeekBar 1dp tall when disabled" into rvc-dev am: 6a75f1332f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11936020

Change-Id: Ia4f9496f9709482fcb0eb075311ea03a0a9f49b0
2020-06-22 16:49:30 +00:00
Fabian Kozynski
6a75f1332f Merge "Make SeekBar 1dp tall when disabled" into rvc-dev 2020-06-22 16:33:04 +00:00