Add Overlayable.xml file to car-media-common
Bug: 197989457
Test: Manual
Change-Id: I9da1c6b673c23743f22c14b06e2f2f527cc1b8c8
diff --git a/car-media-common/res/values/overlayable.xml b/car-media-common/res/values/overlayable.xml
new file mode 100644
index 0000000..ae5d970
--- /dev/null
+++ b/car-media-common/res/values/overlayable.xml
@@ -0,0 +1,150 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Copyright (C) 2022 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.-->
+<!--
+THIS FILE WAS AUTO GENERATED, DO NOT EDIT MANUALLY.
+REGENERATE USING packages/apps/Car/tests/tools/rro/generate-overlayable.py
+-->
+<resources>
+ <overlayable name="CarMediaCommon">
+ <policy type="system|product|signature">
+ <item type="anim" name="trim_end_interpolator"/>
+ <item type="anim" name="trim_start_interpolator"/>
+ <item type="array" name="custom_media_packages"/>
+ <item type="array" name="placeholder_backgrounds"/>
+ <item type="array" name="placeholder_images"/>
+ <item type="array" name="preferred_media_sources"/>
+ <item type="attr" name="align_horizontal"/>
+ <item type="attr" name="aspect_ratio"/>
+ <item type="attr" name="columns"/>
+ <item type="attr" name="show_expand_button"/>
+ <item type="attr" name="state_disabled"/>
+ <item type="attr" name="state_pause"/>
+ <item type="attr" name="state_play"/>
+ <item type="attr" name="state_stop"/>
+ <item type="bool" name="show_circular_progress_bar"/>
+ <item type="bool" name="show_linear_progress_bar"/>
+ <item type="bool" name="use_media_source_color_for_fab_spinner"/>
+ <item type="bool" name="use_media_source_logo_for_app_selector"/>
+ <item type="color" name="album_art_placeholder_color"/>
+ <item type="color" name="album_art_scrim"/>
+ <item type="color" name="appbar_view_icon_background_color"/>
+ <item type="color" name="fab_spinner_indeterminate_color"/>
+ <item type="color" name="media_button_tint_disabled"/>
+ <item type="color" name="media_source_default_color"/>
+ <item type="color" name="minimized_progress_bar_highlight"/>
+ <item type="color" name="placeholder_color_0"/>
+ <item type="color" name="placeholder_color_1"/>
+ <item type="color" name="placeholder_color_2"/>
+ <item type="color" name="placeholder_color_3"/>
+ <item type="color" name="placeholder_color_4"/>
+ <item type="color" name="placeholder_color_5"/>
+ <item type="color" name="placeholder_color_6"/>
+ <item type="color" name="placeholder_color_7"/>
+ <item type="color" name="playback_control_color"/>
+ <item type="dimen" name="album_art_scrim_alpha"/>
+ <item type="dimen" name="app_selector_icon_size"/>
+ <item type="dimen" name="app_selector_icon_touch_target"/>
+ <item type="dimen" name="app_selector_margin_x"/>
+ <item type="dimen" name="appbar_2_rows_height"/>
+ <item type="dimen" name="appbar_view_icon_background_corner_radius"/>
+ <item type="dimen" name="appbar_view_icon_background_radius"/>
+ <item type="dimen" name="appbar_view_icon_padding"/>
+ <item type="dimen" name="appbar_view_icon_touch_target_size"/>
+ <item type="dimen" name="appbar_view_search_app_icon_margin"/>
+ <item type="dimen" name="appbar_view_search_bar_end_margin"/>
+ <item type="dimen" name="appbar_view_search_close_icon_margin"/>
+ <item type="dimen" name="fab_spinner_size"/>
+ <item type="dimen" name="minimized_progress_bar_track_thickness"/>
+ <item type="dimen" name="playback_fragment_app_icon_margin_right"/>
+ <item type="dimen" name="playback_fragment_controls_margin_bottom"/>
+ <item type="dimen" name="playback_fragment_error_button_margin_bottom"/>
+ <item type="dimen" name="playback_fragment_error_button_margin_top"/>
+ <item type="dimen" name="playback_fragment_text_margin_top"/>
+ <item type="dimen" name="playback_fragment_text_margin_x"/>
+ <item type="drawable" name="appbar_view_icon_background"/>
+ <item type="drawable" name="circular_progress_bar"/>
+ <item type="drawable" name="ic_app_switch"/>
+ <item type="drawable" name="ic_music"/>
+ <item type="drawable" name="ic_pause"/>
+ <item type="drawable" name="ic_placeholder"/>
+ <item type="drawable" name="ic_placeholder_0"/>
+ <item type="drawable" name="ic_placeholder_1"/>
+ <item type="drawable" name="ic_placeholder_2"/>
+ <item type="drawable" name="ic_placeholder_3"/>
+ <item type="drawable" name="ic_placeholder_4"/>
+ <item type="drawable" name="ic_placeholder_5"/>
+ <item type="drawable" name="ic_placeholder_6"/>
+ <item type="drawable" name="ic_placeholder_7"/>
+ <item type="drawable" name="ic_play_arrow"/>
+ <item type="drawable" name="ic_play_arrow_off"/>
+ <item type="drawable" name="ic_play_pause_stop_animated"/>
+ <item type="drawable" name="ic_skip_next"/>
+ <item type="drawable" name="ic_skip_previous"/>
+ <item type="drawable" name="ic_star_empty"/>
+ <item type="drawable" name="ic_star_filled"/>
+ <item type="drawable" name="ic_stop"/>
+ <item type="drawable" name="ic_tracklist"/>
+ <item type="drawable" name="minimized_progress_bar_background"/>
+ <item type="drawable" name="music_buffering"/>
+ <item type="drawable" name="placeholder_color_drawable_0"/>
+ <item type="drawable" name="placeholder_color_drawable_1"/>
+ <item type="drawable" name="placeholder_color_drawable_2"/>
+ <item type="drawable" name="placeholder_color_drawable_3"/>
+ <item type="drawable" name="placeholder_color_drawable_4"/>
+ <item type="drawable" name="placeholder_color_drawable_5"/>
+ <item type="drawable" name="placeholder_color_drawable_6"/>
+ <item type="drawable" name="placeholder_color_drawable_7"/>
+ <item type="drawable" name="vector_drawable_progress_bar_medium_thin"/>
+ <item type="id" name="album_background"/>
+ <item type="id" name="app_selector"/>
+ <item type="id" name="app_selector_container"/>
+ <item type="id" name="circular_progress_bar"/>
+ <item type="id" name="linear_progress_bar"/>
+ <item type="id" name="minimized_control_bar"/>
+ <item type="id" name="overflow"/>
+ <item type="id" name="play_pause_container"/>
+ <item type="id" name="play_pause_stop"/>
+ <item type="id" name="playback_scrim"/>
+ <item type="id" name="skip_next"/>
+ <item type="id" name="skip_prev"/>
+ <item type="id" name="track_list"/>
+ <item type="integer" name="media_items_bitmap_max_size_px"/>
+ <item type="integer" name="new_album_art_fade_in_duration"/>
+ <item type="integer" name="num_app_selector_columns"/>
+ <item type="integer" name="playback_subtitle_text_max_lines"/>
+ <item type="integer" name="playback_title_text_max_lines"/>
+ <item type="integer" name="widget_error_text_max_lines"/>
+ <item type="layout" name="minimized_play_pause_stop_button_layout"/>
+ <item type="layout" name="minimized_playback_control_bar"/>
+ <item type="layout" name="play_pause_stop_button_layout"/>
+ <item type="layout" name="playback_fragment"/>
+ <item type="string" name="album_art"/>
+ <item type="string" name="default_error_message"/>
+ <item type="string" name="error_code_action_aborted"/>
+ <item type="string" name="error_code_app_error"/>
+ <item type="string" name="error_code_authentication_expired"/>
+ <item type="string" name="error_code_concurrent_stream_limit"/>
+ <item type="string" name="error_code_content_already_playing"/>
+ <item type="string" name="error_code_end_of_queue"/>
+ <item type="string" name="error_code_not_available_in_region"/>
+ <item type="string" name="error_code_not_supported"/>
+ <item type="string" name="error_code_parental_control_restricted"/>
+ <item type="string" name="error_code_premium_account_required"/>
+ <item type="string" name="error_code_skip_limit_reached"/>
+ <item type="string" name="launcher_intent"/>
+ <item type="string" name="launcher_popup_intent"/>
+ <item type="string" name="metadata_default_title"/>
+ <item type="style" name="PlaybackSubtitleStyle"/>
+ <item type="style" name="PlaybackTitleStyle"/>
+ </policy>
+ </overlayable>
+</resources>
diff --git a/car-media-common/tools/generate-overlayable.sh b/car-media-common/tools/generate-overlayable.sh
new file mode 100755
index 0000000..7566e7e
--- /dev/null
+++ b/car-media-common/tools/generate-overlayable.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+# Copyright (C) 2021 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.
+
+# Run this script to regenerate the overlayable.xml file.
+
+if [[ -z "$ANDROID_BUILD_TOP" ]]; then
+ echo 'ANDROID_BUILD_TOP environment variable is empty; did you forget to run `lunch`?'
+ exit 1
+fi
+
+PROJECT_TOP=$ANDROID_BUILD_TOP/packages/apps/Car/libs/car-media-common
+
+python3 $ANDROID_BUILD_TOP/packages/apps/Car/tests/tools/rro/generate-overlayable.py \
+ -n car-media-common \
+ -r $PROJECT_TOP/res \
+ -e $PROJECT_TOP/res/values/overlayable.xml \
+ -o $PROJECT_TOP/res/values/overlayable.xml