From 3442efc042dab16de07d00976aebbefd509e407d Mon Sep 17 00:00:00 2001 From: Chen Bai Date: Mon, 2 Dec 2024 20:11:04 -0800 Subject: m3: move res out of *-watch-v36 dir The trunk_staging sdk version is set to large dummy value, so it looks like it always work no matter what sdk version the device is using. But "next" is using the real sdk version value, so, the -v36 will be work on "next" build. Currently "next" is still using v35, therefore, v36 resource won't be included in the image. Since we isolate the Wear Material3 style and resources from the global platform ones, we can use feature flags and Compat to control them. This CL will move everything from *-watch-v36 dir to base dir, the ones without qualifiers. See car's example: frameworks/base/core/res/res/values/dimens_car.xml Flag: EXEMPT. migrating files Test: no boot crash Bug: 381450700 Bug: 381152203 Change-Id: I6e4f19d075b1d42d77f3567e46883ee67f27411e --- .../btn_material_filled_background_color.xml | 22 ---- .../btn_material_filled_content_color.xml | 22 ---- .../btn_material_filled_tonal_background_color.xml | 22 ---- .../btn_material_filled_tonal_content_color.xml | 22 ---- .../btn_material_outlined_background_color.xml | 22 ---- .../btn_material_filled_background_color_watch.xml | 22 ++++ .../btn_material_filled_content_color_watch.xml | 22 ++++ ...aterial_filled_tonal_background_color_watch.xml | 22 ++++ ...n_material_filled_tonal_content_color_watch.xml | 22 ++++ ...tn_material_outlined_background_color_watch.xml | 22 ++++ .../btn_background_material_filled.xml | 28 ----- .../btn_background_material_filled_tonal.xml | 28 ----- .../btn_background_material_outlined.xml | 39 ------- .../btn_background_material_text.xml | 28 ----- .../dialog_alert_button_background_negative.xml | 25 ----- .../dialog_alert_button_background_positive.xml | 30 ----- .../dialog_alert_button_negative.xml | 22 ---- .../dialog_alert_button_positive.xml | 22 ---- core/res/res/drawable-watch-v36/ic_check.xml | 25 ----- core/res/res/drawable-watch-v36/ic_close.xml | 25 ----- .../progress_ring_wear_material3.xml | 43 ------- .../btn_background_material_filled_tonal_watch.xml | 28 +++++ .../btn_background_material_filled_watch.xml | 28 +++++ .../btn_background_material_outlined_watch.xml | 39 +++++++ .../btn_background_material_text_watch.xml | 28 +++++ ...alog_alert_button_background_negative_watch.xml | 25 +++++ ...alog_alert_button_background_positive_watch.xml | 30 +++++ .../dialog_alert_button_negative_watch.xml | 22 ++++ .../dialog_alert_button_positive_watch.xml | 22 ++++ core/res/res/drawable/ic_check_watch.xml | 25 +++++ core/res/res/drawable/ic_close_watch.xml | 25 +++++ core/res/res/drawable/progress_ring_watch.xml | 43 +++++++ .../alert_dialog_icon_button_wear_material3.xml | 123 --------------------- .../alert_dialog_wear_material3.xml | 113 ------------------- .../res/layout/alert_dialog_icon_button_watch.xml | 123 +++++++++++++++++++++ core/res/res/layout/alert_dialog_watch.xml | 113 +++++++++++++++++++ core/res/res/values-watch-v36/colors.xml | 18 --- core/res/res/values-watch-v36/config.xml | 20 ---- core/res/res/values-watch-v36/dimens_material.xml | 39 ------- core/res/res/values-watch-v36/styles_material.xml | 105 ------------------ .../res/res/values-watch/styles_device_default.xml | 40 ------- .../res/values-watch/styles_device_defaults.xml | 88 +++++++++++++++ core/res/res/values/config_watch.xml | 22 ++++ core/res/res/values/dimens_watch.xml | 49 ++++++++ core/res/res/values/styles_device_defaults.xml | 6 + core/res/res/values/styles_watch.xml | 52 +++++++++ 46 files changed, 878 insertions(+), 883 deletions(-) delete mode 100644 core/res/res/color-watch-v36/btn_material_filled_background_color.xml delete mode 100644 core/res/res/color-watch-v36/btn_material_filled_content_color.xml delete mode 100644 core/res/res/color-watch-v36/btn_material_filled_tonal_background_color.xml delete mode 100644 core/res/res/color-watch-v36/btn_material_filled_tonal_content_color.xml delete mode 100644 core/res/res/color-watch-v36/btn_material_outlined_background_color.xml create mode 100644 core/res/res/color/btn_material_filled_background_color_watch.xml create mode 100644 core/res/res/color/btn_material_filled_content_color_watch.xml create mode 100644 core/res/res/color/btn_material_filled_tonal_background_color_watch.xml create mode 100644 core/res/res/color/btn_material_filled_tonal_content_color_watch.xml create mode 100644 core/res/res/color/btn_material_outlined_background_color_watch.xml delete mode 100644 core/res/res/drawable-watch-v36/btn_background_material_filled.xml delete mode 100644 core/res/res/drawable-watch-v36/btn_background_material_filled_tonal.xml delete mode 100644 core/res/res/drawable-watch-v36/btn_background_material_outlined.xml delete mode 100644 core/res/res/drawable-watch-v36/btn_background_material_text.xml delete mode 100644 core/res/res/drawable-watch-v36/dialog_alert_button_background_negative.xml delete mode 100644 core/res/res/drawable-watch-v36/dialog_alert_button_background_positive.xml delete mode 100644 core/res/res/drawable-watch-v36/dialog_alert_button_negative.xml delete mode 100644 core/res/res/drawable-watch-v36/dialog_alert_button_positive.xml delete mode 100644 core/res/res/drawable-watch-v36/ic_check.xml delete mode 100644 core/res/res/drawable-watch-v36/ic_close.xml delete mode 100644 core/res/res/drawable-watch-v36/progress_ring_wear_material3.xml create mode 100644 core/res/res/drawable/btn_background_material_filled_tonal_watch.xml create mode 100644 core/res/res/drawable/btn_background_material_filled_watch.xml create mode 100644 core/res/res/drawable/btn_background_material_outlined_watch.xml create mode 100644 core/res/res/drawable/btn_background_material_text_watch.xml create mode 100644 core/res/res/drawable/dialog_alert_button_background_negative_watch.xml create mode 100644 core/res/res/drawable/dialog_alert_button_background_positive_watch.xml create mode 100644 core/res/res/drawable/dialog_alert_button_negative_watch.xml create mode 100644 core/res/res/drawable/dialog_alert_button_positive_watch.xml create mode 100644 core/res/res/drawable/ic_check_watch.xml create mode 100644 core/res/res/drawable/ic_close_watch.xml create mode 100644 core/res/res/drawable/progress_ring_watch.xml delete mode 100644 core/res/res/layout-watch-v36/alert_dialog_icon_button_wear_material3.xml delete mode 100644 core/res/res/layout-watch-v36/alert_dialog_wear_material3.xml create mode 100644 core/res/res/layout/alert_dialog_icon_button_watch.xml create mode 100644 core/res/res/layout/alert_dialog_watch.xml delete mode 100644 core/res/res/values-watch-v36/colors.xml delete mode 100644 core/res/res/values-watch-v36/config.xml delete mode 100644 core/res/res/values-watch-v36/dimens_material.xml delete mode 100644 core/res/res/values-watch-v36/styles_material.xml delete mode 100644 core/res/res/values-watch/styles_device_default.xml create mode 100644 core/res/res/values-watch/styles_device_defaults.xml create mode 100644 core/res/res/values/config_watch.xml create mode 100644 core/res/res/values/dimens_watch.xml create mode 100644 core/res/res/values/styles_watch.xml diff --git a/core/res/res/color-watch-v36/btn_material_filled_background_color.xml b/core/res/res/color-watch-v36/btn_material_filled_background_color.xml deleted file mode 100644 index 39b5b10a774d..000000000000 --- a/core/res/res/color-watch-v36/btn_material_filled_background_color.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/core/res/res/color-watch-v36/btn_material_filled_content_color.xml b/core/res/res/color-watch-v36/btn_material_filled_content_color.xml deleted file mode 100644 index a70586b08bab..000000000000 --- a/core/res/res/color-watch-v36/btn_material_filled_content_color.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/core/res/res/color-watch-v36/btn_material_filled_tonal_background_color.xml b/core/res/res/color-watch-v36/btn_material_filled_tonal_background_color.xml deleted file mode 100644 index e2e274efb2b1..000000000000 --- a/core/res/res/color-watch-v36/btn_material_filled_tonal_background_color.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/core/res/res/color-watch-v36/btn_material_filled_tonal_content_color.xml b/core/res/res/color-watch-v36/btn_material_filled_tonal_content_color.xml deleted file mode 100644 index 32de68868d53..000000000000 --- a/core/res/res/color-watch-v36/btn_material_filled_tonal_content_color.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/core/res/res/color-watch-v36/btn_material_outlined_background_color.xml b/core/res/res/color-watch-v36/btn_material_outlined_background_color.xml deleted file mode 100644 index 3f43ca7b91df..000000000000 --- a/core/res/res/color-watch-v36/btn_material_outlined_background_color.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/core/res/res/color/btn_material_filled_background_color_watch.xml b/core/res/res/color/btn_material_filled_background_color_watch.xml new file mode 100644 index 000000000000..78547bc52f00 --- /dev/null +++ b/core/res/res/color/btn_material_filled_background_color_watch.xml @@ -0,0 +1,22 @@ + + + + + + \ No newline at end of file diff --git a/core/res/res/color/btn_material_filled_content_color_watch.xml b/core/res/res/color/btn_material_filled_content_color_watch.xml new file mode 100644 index 000000000000..3a4ec3cff935 --- /dev/null +++ b/core/res/res/color/btn_material_filled_content_color_watch.xml @@ -0,0 +1,22 @@ + + + + + + \ No newline at end of file diff --git a/core/res/res/color/btn_material_filled_tonal_background_color_watch.xml b/core/res/res/color/btn_material_filled_tonal_background_color_watch.xml new file mode 100644 index 000000000000..e9b7e4c286bd --- /dev/null +++ b/core/res/res/color/btn_material_filled_tonal_background_color_watch.xml @@ -0,0 +1,22 @@ + + + + + + \ No newline at end of file diff --git a/core/res/res/color/btn_material_filled_tonal_content_color_watch.xml b/core/res/res/color/btn_material_filled_tonal_content_color_watch.xml new file mode 100644 index 000000000000..8b5deda05745 --- /dev/null +++ b/core/res/res/color/btn_material_filled_tonal_content_color_watch.xml @@ -0,0 +1,22 @@ + + + + + + \ No newline at end of file diff --git a/core/res/res/color/btn_material_outlined_background_color_watch.xml b/core/res/res/color/btn_material_outlined_background_color_watch.xml new file mode 100644 index 000000000000..f9c9a3f82341 --- /dev/null +++ b/core/res/res/color/btn_material_outlined_background_color_watch.xml @@ -0,0 +1,22 @@ + + + + + + diff --git a/core/res/res/drawable-watch-v36/btn_background_material_filled.xml b/core/res/res/drawable-watch-v36/btn_background_material_filled.xml deleted file mode 100644 index 6e74f64fea60..000000000000 --- a/core/res/res/drawable-watch-v36/btn_background_material_filled.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/core/res/res/drawable-watch-v36/btn_background_material_filled_tonal.xml b/core/res/res/drawable-watch-v36/btn_background_material_filled_tonal.xml deleted file mode 100644 index fbd697371329..000000000000 --- a/core/res/res/drawable-watch-v36/btn_background_material_filled_tonal.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/core/res/res/drawable-watch-v36/btn_background_material_outlined.xml b/core/res/res/drawable-watch-v36/btn_background_material_outlined.xml deleted file mode 100644 index 7bc40604dc25..000000000000 --- a/core/res/res/drawable-watch-v36/btn_background_material_outlined.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/core/res/res/drawable-watch-v36/btn_background_material_text.xml b/core/res/res/drawable-watch-v36/btn_background_material_text.xml deleted file mode 100644 index 145685c8095c..000000000000 --- a/core/res/res/drawable-watch-v36/btn_background_material_text.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - diff --git a/core/res/res/drawable-watch-v36/dialog_alert_button_background_negative.xml b/core/res/res/drawable-watch-v36/dialog_alert_button_background_negative.xml deleted file mode 100644 index 0314bbec2b55..000000000000 --- a/core/res/res/drawable-watch-v36/dialog_alert_button_background_negative.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - diff --git a/core/res/res/drawable-watch-v36/dialog_alert_button_background_positive.xml b/core/res/res/drawable-watch-v36/dialog_alert_button_background_positive.xml deleted file mode 100644 index 92262fb6d89d..000000000000 --- a/core/res/res/drawable-watch-v36/dialog_alert_button_background_positive.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/core/res/res/drawable-watch-v36/dialog_alert_button_negative.xml b/core/res/res/drawable-watch-v36/dialog_alert_button_negative.xml deleted file mode 100644 index c155ba1ba077..000000000000 --- a/core/res/res/drawable-watch-v36/dialog_alert_button_negative.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/core/res/res/drawable-watch-v36/dialog_alert_button_positive.xml b/core/res/res/drawable-watch-v36/dialog_alert_button_positive.xml deleted file mode 100644 index 01ab0734d8e8..000000000000 --- a/core/res/res/drawable-watch-v36/dialog_alert_button_positive.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/core/res/res/drawable-watch-v36/ic_check.xml b/core/res/res/drawable-watch-v36/ic_check.xml deleted file mode 100644 index 7b01e64ffdd3..000000000000 --- a/core/res/res/drawable-watch-v36/ic_check.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - diff --git a/core/res/res/drawable-watch-v36/ic_close.xml b/core/res/res/drawable-watch-v36/ic_close.xml deleted file mode 100644 index 1f3da367ac3f..000000000000 --- a/core/res/res/drawable-watch-v36/ic_close.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - diff --git a/core/res/res/drawable-watch-v36/progress_ring_wear_material3.xml b/core/res/res/drawable-watch-v36/progress_ring_wear_material3.xml deleted file mode 100644 index 8250ee600a8f..000000000000 --- a/core/res/res/drawable-watch-v36/progress_ring_wear_material3.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/core/res/res/drawable/btn_background_material_filled_tonal_watch.xml b/core/res/res/drawable/btn_background_material_filled_tonal_watch.xml new file mode 100644 index 000000000000..69c467b19fa0 --- /dev/null +++ b/core/res/res/drawable/btn_background_material_filled_tonal_watch.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/core/res/res/drawable/btn_background_material_filled_watch.xml b/core/res/res/drawable/btn_background_material_filled_watch.xml new file mode 100644 index 000000000000..76ba84724f0b --- /dev/null +++ b/core/res/res/drawable/btn_background_material_filled_watch.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/core/res/res/drawable/btn_background_material_outlined_watch.xml b/core/res/res/drawable/btn_background_material_outlined_watch.xml new file mode 100644 index 000000000000..16190aa0279f --- /dev/null +++ b/core/res/res/drawable/btn_background_material_outlined_watch.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + diff --git a/core/res/res/drawable/btn_background_material_text_watch.xml b/core/res/res/drawable/btn_background_material_text_watch.xml new file mode 100644 index 000000000000..145685c8095c --- /dev/null +++ b/core/res/res/drawable/btn_background_material_text_watch.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + diff --git a/core/res/res/drawable/dialog_alert_button_background_negative_watch.xml b/core/res/res/drawable/dialog_alert_button_background_negative_watch.xml new file mode 100644 index 000000000000..495fa4aabe3a --- /dev/null +++ b/core/res/res/drawable/dialog_alert_button_background_negative_watch.xml @@ -0,0 +1,25 @@ + + + + + + + + diff --git a/core/res/res/drawable/dialog_alert_button_background_positive_watch.xml b/core/res/res/drawable/dialog_alert_button_background_positive_watch.xml new file mode 100644 index 000000000000..20a4c0b6db90 --- /dev/null +++ b/core/res/res/drawable/dialog_alert_button_background_positive_watch.xml @@ -0,0 +1,30 @@ + + + + + + + + + + \ No newline at end of file diff --git a/core/res/res/drawable/dialog_alert_button_negative_watch.xml b/core/res/res/drawable/dialog_alert_button_negative_watch.xml new file mode 100644 index 000000000000..1776962dbfaf --- /dev/null +++ b/core/res/res/drawable/dialog_alert_button_negative_watch.xml @@ -0,0 +1,22 @@ + + + + + + \ No newline at end of file diff --git a/core/res/res/drawable/dialog_alert_button_positive_watch.xml b/core/res/res/drawable/dialog_alert_button_positive_watch.xml new file mode 100644 index 000000000000..ab08e2a1d67d --- /dev/null +++ b/core/res/res/drawable/dialog_alert_button_positive_watch.xml @@ -0,0 +1,22 @@ + + + + + + \ No newline at end of file diff --git a/core/res/res/drawable/ic_check_watch.xml b/core/res/res/drawable/ic_check_watch.xml new file mode 100644 index 000000000000..2fc161fbbdb6 --- /dev/null +++ b/core/res/res/drawable/ic_check_watch.xml @@ -0,0 +1,25 @@ + + + + + diff --git a/core/res/res/drawable/ic_close_watch.xml b/core/res/res/drawable/ic_close_watch.xml new file mode 100644 index 000000000000..55e721337f14 --- /dev/null +++ b/core/res/res/drawable/ic_close_watch.xml @@ -0,0 +1,25 @@ + + + + + diff --git a/core/res/res/drawable/progress_ring_watch.xml b/core/res/res/drawable/progress_ring_watch.xml new file mode 100644 index 000000000000..8250ee600a8f --- /dev/null +++ b/core/res/res/drawable/progress_ring_watch.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/core/res/res/layout-watch-v36/alert_dialog_icon_button_wear_material3.xml b/core/res/res/layout-watch-v36/alert_dialog_icon_button_wear_material3.xml deleted file mode 100644 index 407ec7a42740..000000000000 --- a/core/res/res/layout-watch-v36/alert_dialog_icon_button_wear_material3.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -