From d78308cf635a17b3de96ddfde5b16f590687f561 Mon Sep 17 00:00:00 2001 From: kwaky Date: Mon, 28 Sep 2020 14:13:16 -0700 Subject: [PATCH] Create Sample 2 for SystemUI Proofing. This sample only uses left system bar and uses a button on it to toggle Notification Panel visibility. Test: Manual Bug: 168332816 Change-Id: I083640903ade2e3bc7085022a1c889f9ad6d3e5c --- .../samples/sample2/rro/Android.bp | 27 +++++ .../samples/sample2/rro/AndroidManifest.xml | 24 ++++ .../sample2/rro/res/drawable/car_ic_apps.xml | 25 +++++ .../sample2/rro/res/drawable/car_ic_music.xml | 25 +++++ .../rro/res/drawable/car_ic_navigation.xml | 25 +++++ .../rro/res/drawable/car_ic_notification.xml | 25 +++++ .../rro/res/drawable/car_ic_overview.xml | 26 +++++ .../sample2/rro/res/drawable/car_ic_phone.xml | 25 +++++ .../res/drawable/system_bar_background.xml | 33 ++++++ .../res/layout/car_left_navigation_bar.xml | 105 ++++++++++++++++++ .../samples/sample2/rro/res/values/attrs.xml | 28 +++++ .../samples/sample2/rro/res/values/colors.xml | 20 ++++ .../samples/sample2/rro/res/values/config.xml | 57 ++++++++++ .../samples/sample2/rro/res/values/styles.xml | 35 ++++++ .../rro/res/xml/car_sysui_overlays.xml | 66 +++++++++++ 15 files changed, 546 insertions(+) create mode 100644 packages/CarSystemUI/samples/sample2/rro/Android.bp create mode 100644 packages/CarSystemUI/samples/sample2/rro/AndroidManifest.xml create mode 100644 packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_apps.xml create mode 100644 packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_music.xml create mode 100644 packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_navigation.xml create mode 100644 packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_notification.xml create mode 100644 packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_overview.xml create mode 100644 packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_phone.xml create mode 100644 packages/CarSystemUI/samples/sample2/rro/res/drawable/system_bar_background.xml create mode 100644 packages/CarSystemUI/samples/sample2/rro/res/layout/car_left_navigation_bar.xml create mode 100644 packages/CarSystemUI/samples/sample2/rro/res/values/attrs.xml create mode 100644 packages/CarSystemUI/samples/sample2/rro/res/values/colors.xml create mode 100644 packages/CarSystemUI/samples/sample2/rro/res/values/config.xml create mode 100644 packages/CarSystemUI/samples/sample2/rro/res/values/styles.xml create mode 100644 packages/CarSystemUI/samples/sample2/rro/res/xml/car_sysui_overlays.xml diff --git a/packages/CarSystemUI/samples/sample2/rro/Android.bp b/packages/CarSystemUI/samples/sample2/rro/Android.bp new file mode 100644 index 0000000000000..bf68e414ca1c1 --- /dev/null +++ b/packages/CarSystemUI/samples/sample2/rro/Android.bp @@ -0,0 +1,27 @@ +// +// Copyright (C) 2020 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +android_app { + name: "CarSystemUISampleTwoRRO", + resource_dirs: ["res"], + certificate: "platform", + platform_apis: true, + manifest: "AndroidManifest.xml", + aaptflags: [ + "--no-resource-deduping", + "--no-resource-removal", + ] +} \ No newline at end of file diff --git a/packages/CarSystemUI/samples/sample2/rro/AndroidManifest.xml b/packages/CarSystemUI/samples/sample2/rro/AndroidManifest.xml new file mode 100644 index 0000000000000..5c25056f79151 --- /dev/null +++ b/packages/CarSystemUI/samples/sample2/rro/AndroidManifest.xml @@ -0,0 +1,24 @@ + + + + + \ No newline at end of file diff --git a/packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_apps.xml b/packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_apps.xml new file mode 100644 index 0000000000000..a8d8a2f241f6c --- /dev/null +++ b/packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_apps.xml @@ -0,0 +1,25 @@ + + + + + \ No newline at end of file diff --git a/packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_music.xml b/packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_music.xml new file mode 100644 index 0000000000000..6339ebb3ea8d3 --- /dev/null +++ b/packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_music.xml @@ -0,0 +1,25 @@ + + + + + \ No newline at end of file diff --git a/packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_navigation.xml b/packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_navigation.xml new file mode 100644 index 0000000000000..e1fabe07cdeb5 --- /dev/null +++ b/packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_navigation.xml @@ -0,0 +1,25 @@ + + + + + \ No newline at end of file diff --git a/packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_notification.xml b/packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_notification.xml new file mode 100644 index 0000000000000..3c3fefc9782a4 --- /dev/null +++ b/packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_notification.xml @@ -0,0 +1,25 @@ + + + + + \ No newline at end of file diff --git a/packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_overview.xml b/packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_overview.xml new file mode 100644 index 0000000000000..f185eb9afb753 --- /dev/null +++ b/packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_overview.xml @@ -0,0 +1,26 @@ + + + + + \ No newline at end of file diff --git a/packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_phone.xml b/packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_phone.xml new file mode 100644 index 0000000000000..50e36b5a6e3c5 --- /dev/null +++ b/packages/CarSystemUI/samples/sample2/rro/res/drawable/car_ic_phone.xml @@ -0,0 +1,25 @@ + + + + + \ No newline at end of file diff --git a/packages/CarSystemUI/samples/sample2/rro/res/drawable/system_bar_background.xml b/packages/CarSystemUI/samples/sample2/rro/res/drawable/system_bar_background.xml new file mode 100644 index 0000000000000..6161ad9b041cc --- /dev/null +++ b/packages/CarSystemUI/samples/sample2/rro/res/drawable/system_bar_background.xml @@ -0,0 +1,33 @@ + + + + + + + \ No newline at end of file diff --git a/packages/CarSystemUI/samples/sample2/rro/res/layout/car_left_navigation_bar.xml b/packages/CarSystemUI/samples/sample2/rro/res/layout/car_left_navigation_bar.xml new file mode 100644 index 0000000000000..bd6065c3de9a7 --- /dev/null +++ b/packages/CarSystemUI/samples/sample2/rro/res/layout/car_left_navigation_bar.xml @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/CarSystemUI/samples/sample2/rro/res/values/attrs.xml b/packages/CarSystemUI/samples/sample2/rro/res/values/attrs.xml new file mode 100644 index 0000000000000..7ba3334684222 --- /dev/null +++ b/packages/CarSystemUI/samples/sample2/rro/res/values/attrs.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + diff --git a/packages/CarSystemUI/samples/sample2/rro/res/values/colors.xml b/packages/CarSystemUI/samples/sample2/rro/res/values/colors.xml new file mode 100644 index 0000000000000..c32d638681a2c --- /dev/null +++ b/packages/CarSystemUI/samples/sample2/rro/res/values/colors.xml @@ -0,0 +1,20 @@ + + + + #8F8F8F + #FFFFFF + diff --git a/packages/CarSystemUI/samples/sample2/rro/res/values/config.xml b/packages/CarSystemUI/samples/sample2/rro/res/values/config.xml new file mode 100644 index 0000000000000..89c7bd4df2bc5 --- /dev/null +++ b/packages/CarSystemUI/samples/sample2/rro/res/values/config.xml @@ -0,0 +1,57 @@ + + + + + + false + true + false + false + + + + + + + 0 + 1 + 2 + 3 + + + + + 0 + 10 + 10 + 10 + + + true + + com.android.systemui.car.notification.NotificationPanelViewMediator + \ No newline at end of file diff --git a/packages/CarSystemUI/samples/sample2/rro/res/values/styles.xml b/packages/CarSystemUI/samples/sample2/rro/res/values/styles.xml new file mode 100644 index 0000000000000..136dc3b6df18a --- /dev/null +++ b/packages/CarSystemUI/samples/sample2/rro/res/values/styles.xml @@ -0,0 +1,35 @@ + + + + + + + + + \ No newline at end of file diff --git a/packages/CarSystemUI/samples/sample2/rro/res/xml/car_sysui_overlays.xml b/packages/CarSystemUI/samples/sample2/rro/res/xml/car_sysui_overlays.xml new file mode 100644 index 0000000000000..58a535b4e0006 --- /dev/null +++ b/packages/CarSystemUI/samples/sample2/rro/res/xml/car_sysui_overlays.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file