From 3e5de04302633a1def9047798f64aecfc0c7efce Mon Sep 17 00:00:00 2001 From: timhypeng Date: Tue, 8 Sep 2020 16:29:53 +0800 Subject: [PATCH] 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 --- .../media_output_dialog_background.xml | 23 ++ .../res/layout/media_output_dialog.xml | 136 +++++++++++ packages/SystemUI/res/values/styles.xml | 5 +- .../media/dialog/MediaOutputBaseDialog.java | 220 ++++++++++++++++++ .../media/dialog/MediaOutputDialog.java | 78 +++++++ .../dialog/MediaOutputBaseDialogTest.java | 212 +++++++++++++++++ 6 files changed, 673 insertions(+), 1 deletion(-) create mode 100644 packages/SystemUI/res/drawable/media_output_dialog_background.xml create mode 100644 packages/SystemUI/res/layout/media_output_dialog.xml create mode 100644 packages/SystemUI/src/com/android/systemui/media/dialog/MediaOutputBaseDialog.java create mode 100644 packages/SystemUI/src/com/android/systemui/media/dialog/MediaOutputDialog.java create mode 100644 packages/SystemUI/tests/src/com/android/systemui/media/dialog/MediaOutputBaseDialogTest.java diff --git a/packages/SystemUI/res/drawable/media_output_dialog_background.xml b/packages/SystemUI/res/drawable/media_output_dialog_background.xml new file mode 100644 index 0000000000000..3ceb0f6ac06ae --- /dev/null +++ b/packages/SystemUI/res/drawable/media_output_dialog_background.xml @@ -0,0 +1,23 @@ + + + + + + + + + diff --git a/packages/SystemUI/res/layout/media_output_dialog.xml b/packages/SystemUI/res/layout/media_output_dialog.xml new file mode 100644 index 0000000000000..0229e6e9d4dd3 --- /dev/null +++ b/packages/SystemUI/res/layout/media_output_dialog.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +