Commit Graph

10967 Commits

Author SHA1 Message Date
Bill Yi
7359977be7 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I675c51614b7caad1ac49d1444d32d6f610035839
2020-12-09 08:52:02 -08:00
tim peng
7de579f1ce Merge changes from topic "media_output_dialog" into rvc-qpr-dev
* changes:
  Apply animation for Media Ouput Switcher dialog
  Add dynamic item in output switcher if it is available
  Fix NPE when notification icon is empty
  Fix output switcher didn't show album art
  Add dynamic group operation in output switcher
  Enhancement for group operation in output switcher
  Add dismiss timing for Media Output Dialog
  Update OutputSwitcher from SettingsPanel to MediaOutputDialog in SystemUI
  Add constant for dismiss Settings panel
  Add animation when switching output device
  Add dismiss intent and method for MediaOutputDialog
  Add "Stop" button for remote device
  Add constant for dialog dismiss
  Rename MediaOutDialogReceiver to MediaOutputDialogReceiver
  Add getFeatures() for get device supporting features
  Add a receiver to launch Output Switcher dialog
  Add MediaOutputDialogFactory to create MediaOutputDialog
  Add Media Output Dialog for Output Switcher
  Add controller for Media operation
  Add MediaOutputAdapter for Media device list
  Define strings for output switcher dialog in SystemUI
  Add image utility methods
2020-12-08 05:46:13 +00:00
Bill Yi
1c57a4a6b6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I77a264477d0c018d70d1e39e34ecaf68ab6c3f40
2020-12-02 23:05:22 +00:00
timhypeng
b71aeae0cb Apply animation for Media Ouput Switcher dialog
-Inherit InputMethod animation and create MediaOutputDialog animation

Bug: 155822415
Test: manual test
Merged-In: I42506f065da687c4ba6ddadca0f3b7a1c55f1be7
Change-Id: I42506f065da687c4ba6ddadca0f3b7a1c55f1be7
2020-12-02 03:30:44 +00:00
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
c23f9171ce Add controller for Media operation
-Access LocalMediaManger to display avilable output devices information
-Access LocalMediaManger to do media operation, such as volume adjustment,
switching output device, grouping
-Access MediaController to show media content information
-Add MediaOutputControllerTest for unit test

Bug: 155822415
Test: atest MediaOutputControllerTest
Merged-In: I9eb6e3b0a6e584637aecb4132dbc2b138c6d1530
Change-Id: I9eb6e3b0a6e584637aecb4132dbc2b138c6d1530
2020-12-02 03:21:14 +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
Bill Yi
4c601b22af Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4048c69caa090fd5849c63289ab17da2fc09be34
2020-11-30 21:34:21 -08:00
TreeHugger Robot
252341aae6 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2020-11-23 15:48:05 +00:00
Bill Yi
ddce51b69e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I07907f45c57b54dfddce3e554342307ff6e5176a
2020-11-23 13:49:01 +00:00
Bill Yi
82c11c6d97 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I3d042075cb6241d5361cc9117e2c18a6ca55f657
2020-11-23 13:04:15 +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
Xin Li
7205d79832 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7e24e378d3c8c0c554f7af641925bcbf11df2ff6
2020-11-17 22:52:08 +00:00
Bill Yi
1b5a04ed73 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I245aea3b5e13a3bd3ceb133ea2efe8dc96bd27c0
2020-11-13 01:25:22 -08:00
Bill Yi
9fb898e15b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I19ec607aea18666102620348ac4919dd3b6ae0be
2020-10-30 03:43:40 -07:00
Bill Yi
ef2b59b1df Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id20257275834977c63dfae80c7adabc97d86014b
2020-10-25 11:50:10 -07:00
Bill Yi
7d8efd3e22 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I36af2f3da525e2df15d37dd316b222381e40dfe4
2020-10-21 13:42:55 -07:00
Jeff DeCew
d4659de45d Merge changes from topic "media_delete_intent_rvc_qpr2" into rvc-qpr-dev
* changes:
  Notifications starting paused shall still be subject to timeout.
  Disable player's "Dismiss" button when notification is not dismissible.
  Media player attempts to dismiss notifications when players removed.
2020-10-19 20:58:00 +00:00
Bill Yi
158f5dd7f0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I29969d431759d25dded634d41268c3c138759f2e
2020-10-16 15:58:31 +00:00
Jeff DeCew
a49a320e49 Disable player's "Dismiss" button when notification is not dismissible.
Bug: 169271494
Test: manual
Change-Id: I3c2a73e4885642965ec553387b5e91f0cb16ff2f
Merged-In: I3c2a73e4885642965ec553387b5e91f0cb16ff2f
2020-10-14 10:16:26 -04:00
Bill Yi
71b921af5a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1d9f3f3a47a85e480c68f3a241b4dcf30265bf61
2020-10-10 16:19:30 -07:00
Bill Yi
407392046c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I96c71a04961157d579c0c0b19bc6436b168ea8de
2020-10-01 10:43:05 -07:00
Bill Yi
5793596632 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I368572bf5aa4bc3f20dc6178b6549b764b243c61
2020-09-25 22:53:05 -07:00
Fabian Kozynski
e0123b0d23 Merge "Add TileAdapterDelegate" into rvc-qpr-dev 2020-09-25 14:44:39 +00:00
Fabian Kozynski
a38a4a1c0c Merge "[DO NOT MERGE] Reduce padding in QS for small screens" into rvc-qpr-dev 2020-09-24 17:56:43 +00:00
Fabian Kozynski
7a5e333ba5 Add TileAdapterDelegate
Use an AccessibilityDelegate for the actions in QSCustomizer. Adding or
removing a tile can now be done with the click action, whereas moving or
adding to a particular position require a context action.

This removes the old custom dialog and improves the overall
accessibility.

Test: manual
Test: atest TileAdapterDelegate
Bug: 168039987
Bug: 140366995

Change-Id: Ib5b19aeebb54c46573555563c3f39bd922b68896
Merged-In: Ib5b19aeebb54c46573555563c3f39bd922b68896
(cherry picked from commit ac22e5bf36)
2020-09-23 19:12:22 +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
Bill Yi
9a2d24ffaa Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I116eae7aaedccf5e8f29f58325c666b12dd719a8
2020-09-23 13:14:51 +00:00
Bill Yi
1658f05b5c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iaa839bfcfebded02b92d5341c7f09d4dbf61431c
2020-09-21 16:02:54 -07:00
Fabian Kozynski
c3182c5480 [DO NOT MERGE] Reduce padding in QS for small screens
Reduces the padding between tiles in QS when the screen is <740dp
high in portrait. That way, more rows can fit in some cases (high
display size, security footer).

Test: manual
Bug: 168561056
Change-Id: I41cdb3bccd93fbdcbaa99742e450dd72e4b2effd
2020-09-21 19:58:22 +00:00
Bill Yi
0ab8256173 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia50dec04509df3893aed71f969fcafd7fac73864
2020-09-20 23:15:46 +00:00
Bill Yi
1e7548eb62 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2f0d0d2c4acfeab442b447a3f7313c9f60ac8583
2020-09-19 21:46:40 -07:00
TreeHugger Robot
354b3ec329 Merge "Reduce vertical margins in landscape add controls" into rvc-qpr-dev 2020-09-18 14:35:13 +00:00
Bill Yi
a0e09b34fb Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8aa4e04507cf86a0681e26431e144447ebd0313f
2020-09-18 09:36:44 +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
Bill Yi
f293008783 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I572d1eae3ec8211183a99dc9cc4d6703408dba83
2020-09-12 16:02:51 +00:00
Bill Yi
36f1f61ea0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iff11762acd8e5caa87301f36591d7b4b792010ed
2020-09-10 16:53:04 +00:00
TreeHugger Robot
71f959be7e Merge "Merge "Add the Verizon 5G UW icon and string" am: 8d534f80c9 am: eae34dbebf am: 95c9d36dd4 am: 4faca86ae0 am: 46b1601683" into rvc-qpr-dev 2020-09-08 14:53:03 +00:00
Bill Yi
decfef24cc Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Icad4fe50fecb100674285d2a8f74201a0d706a15
2020-09-07 13:39:10 +00:00
SongFerng Wang
2227e0fb0a Merge "Add the Verizon 5G UW icon and string" am: 8d534f80c9 am: eae34dbebf am: 95c9d36dd4 am: 4faca86ae0 am: 46b1601683
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1417008

Bug: 149357400
Change-Id: I504cb49e70352c178c8ece4490b169e3cf971390
(cherry picked from commit 0c18b91631)
2020-09-07 07:14:58 +00:00
Bill Yi
1706bc0e66 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I680e11f9104681ffc733c3faaef1f6c67406551c
2020-08-26 08:15:26 -07:00
Bill Yi
c229eba162 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia2d827463a54137bce2efdcc89b78b81aade1161
2020-08-23 15:50:41 +00:00
Beth Thibodeau
e901be2678 Merge "Remove delete action from notification" into rvc-qpr-dev 2020-08-21 11:04:56 +00:00
Bill Yi
ae90e6c0b2 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id7d0be5ecab5502def60286e7fed6dd247d836dd
2020-08-21 01:59:36 +00:00
Beth Thibodeau
6fcdb6bf9e Remove delete action from notification
Fixes: 153621404
Test: manual
Change-Id: I1c6046a84d15719c5bad8a840037fa08be05fe65
Merged-In: I1c6046a84d15719c5bad8a840037fa08be05fe65
(cherry picked from commit 1700fdca78)
2020-08-20 20:07:17 +00:00
Fabian Kozynski
6bc0931e86 Merge "Fix padding in management activities" into rvc-qpr-dev 2020-08-18 13:26:11 +00:00
Fabian Kozynski
cbb1ec8a4a Fix padding in management activities
Remove the inherent margin of the controls tiles and exclusively use the
item decorator. As we are only assigning margin to the top (to prevent
extra margin at the bottom) of each group, we double the top margin.

Fixes: 164171322
Test: manual
Change-Id: Id337471f3ac81855940da598b4396257ed829311
2020-08-17 16:05:31 -04:00