Merge 24Q3 to AOSP main Bug: 357762254 Merged-In: Ie924cf59efd0dc9e97fb8a10f6ab3f2e7a7e4fd9 Change-Id: Id909a070908b91fe50e2e1fc26b951aeb4012669
diff --git a/car-broadcastradio-support/Android.bp b/car-broadcastradio-support/Android.bp deleted file mode 100644 index 64647bc..0000000 --- a/car-broadcastradio-support/Android.bp +++ /dev/null
@@ -1,47 +0,0 @@ -// -// Copyright (C) 2018 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. -// - -package { - default_team: "trendy_team_aaos_framework", - default_applicable_licenses: ["Android-Apache-2.0"], -} - -android_library { - name: "car-broadcastradio-support", - - srcs: ["src/**/*.java"], - aidl: { - export_include_dirs: ["src"], - }, - resource_dirs: ["res"], - - optimize: { - enabled: false, - }, - - dist: { - targets: ["dist_files"], - }, - - static_libs: [ - "androidx.legacy_legacy-support-v4", - ], - - libs: ["android.car-system-stubs"], - min_sdk_version: "33", - target_sdk_version: "33", - sdk_version: "system_current", -}
diff --git a/car-broadcastradio-support/AndroidManifest.xml b/car-broadcastradio-support/AndroidManifest.xml deleted file mode 100644 index e592ee1..0000000 --- a/car-broadcastradio-support/AndroidManifest.xml +++ /dev/null
@@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2018 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. ---> -<manifest xmlns:android="http://schemas.android.com/apk/res/android" - package="com.android.car.broadcastradio.support"> - <uses-sdk - android:minSdkVersion="28" - android:targetSdkVersion='28'/> -</manifest>
diff --git a/car-broadcastradio-support/OWNERS b/car-broadcastradio-support/OWNERS deleted file mode 100644 index 95b6918..0000000 --- a/car-broadcastradio-support/OWNERS +++ /dev/null
@@ -1,5 +0,0 @@ -# People who can approve changes for submission. -# Automotive team -xuweilin@google.com -oscarazu@google.com -ericjeong@google.com
diff --git a/car-broadcastradio-support/TEST_MAPPING b/car-broadcastradio-support/TEST_MAPPING deleted file mode 100644 index 26e1961..0000000 --- a/car-broadcastradio-support/TEST_MAPPING +++ /dev/null
@@ -1,7 +0,0 @@ -{ - "presubmit": [ - { - "name": "CarBroadcastRadioSupportTests" - } - ] -}
diff --git a/car-broadcastradio-support/res/values-af/strings.xml b/car-broadcastradio-support/res/values-af/strings.xml deleted file mode 100644 index 0c08586..0000000 --- a/car-broadcastradio-support/res/values-af/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Stasies"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Gunstelinge"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-am/strings.xml b/car-broadcastradio-support/res/values-am/strings.xml deleted file mode 100644 index 81b128a..0000000 --- a/car-broadcastradio-support/res/values-am/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"ኤኤም"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"ኤፍኤም"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"ጣቢያዎች"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"ተወዳጆች"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-ar/strings.xml b/car-broadcastradio-support/res/values-ar/strings.xml deleted file mode 100644 index 129c8c5..0000000 --- a/car-broadcastradio-support/res/values-ar/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"المحطات"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"المفضّلة"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-as/strings.xml b/car-broadcastradio-support/res/values-as/strings.xml deleted file mode 100644 index 862e9bb..0000000 --- a/car-broadcastradio-support/res/values-as/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"কেন্দ্ৰসমূহ"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"প্ৰিয় বস্তুসমূহ"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-az/strings.xml b/car-broadcastradio-support/res/values-az/strings.xml deleted file mode 100644 index 3b40ff9..0000000 --- a/car-broadcastradio-support/res/values-az/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Stansiyalar"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Sevimlilər"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-b+sr+Latn/strings.xml b/car-broadcastradio-support/res/values-b+sr+Latn/strings.xml deleted file mode 100644 index e29e90e..0000000 --- a/car-broadcastradio-support/res/values-b+sr+Latn/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Stanice"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Omiljeno"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-be/strings.xml b/car-broadcastradio-support/res/values-be/strings.xml deleted file mode 100644 index cde54f4..0000000 --- a/car-broadcastradio-support/res/values-be/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Радыёстанцыі"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Абранае"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-bg/strings.xml b/car-broadcastradio-support/res/values-bg/strings.xml deleted file mode 100644 index 6d7b2a0..0000000 --- a/car-broadcastradio-support/res/values-bg/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"Цифрово радиоразпръскване"</string> - <string name="program_list_text" msgid="4414150317304422313">"Станции"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Любими"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-bn/strings.xml b/car-broadcastradio-support/res/values-bn/strings.xml deleted file mode 100644 index 245ce98..0000000 --- a/car-broadcastradio-support/res/values-bn/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"স্টেশন"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"পছন্দসই"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-bs/strings.xml b/car-broadcastradio-support/res/values-bs/strings.xml deleted file mode 100644 index e29e90e..0000000 --- a/car-broadcastradio-support/res/values-bs/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Stanice"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Omiljeno"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-ca/strings.xml b/car-broadcastradio-support/res/values-ca/strings.xml deleted file mode 100644 index 3737632..0000000 --- a/car-broadcastradio-support/res/values-ca/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Emissores"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Preferides"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-cs/strings.xml b/car-broadcastradio-support/res/values-cs/strings.xml deleted file mode 100644 index db20752..0000000 --- a/car-broadcastradio-support/res/values-cs/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Stanice"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Oblíbené"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-da/strings.xml b/car-broadcastradio-support/res/values-da/strings.xml deleted file mode 100644 index 46d1603..0000000 --- a/car-broadcastradio-support/res/values-da/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Kanaler"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Favoritter"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-de/strings.xml b/car-broadcastradio-support/res/values-de/strings.xml deleted file mode 100644 index c6e2e9f..0000000 --- a/car-broadcastradio-support/res/values-de/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"MW"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"UKW"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Sender"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Favoriten"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-el/strings.xml b/car-broadcastradio-support/res/values-el/strings.xml deleted file mode 100644 index f5452ec..0000000 --- a/car-broadcastradio-support/res/values-el/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Σταθμοί"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Αγαπημένα"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-en-rAU/strings.xml b/car-broadcastradio-support/res/values-en-rAU/strings.xml deleted file mode 100644 index 806c9c8..0000000 --- a/car-broadcastradio-support/res/values-en-rAU/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"a.m."</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Stations"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Favourites"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-en-rCA/strings.xml b/car-broadcastradio-support/res/values-en-rCA/strings.xml deleted file mode 100644 index 806c9c8..0000000 --- a/car-broadcastradio-support/res/values-en-rCA/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"a.m."</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Stations"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Favourites"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-en-rGB/strings.xml b/car-broadcastradio-support/res/values-en-rGB/strings.xml deleted file mode 100644 index 806c9c8..0000000 --- a/car-broadcastradio-support/res/values-en-rGB/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"a.m."</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Stations"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Favourites"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-en-rIN/strings.xml b/car-broadcastradio-support/res/values-en-rIN/strings.xml deleted file mode 100644 index 806c9c8..0000000 --- a/car-broadcastradio-support/res/values-en-rIN/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"a.m."</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Stations"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Favourites"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-en-rXC/strings.xml b/car-broadcastradio-support/res/values-en-rXC/strings.xml deleted file mode 100644 index b06db6c..0000000 --- a/car-broadcastradio-support/res/values-en-rXC/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Stations"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Favorites"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-es-rUS/strings.xml b/car-broadcastradio-support/res/values-es-rUS/strings.xml deleted file mode 100644 index 4862ab2..0000000 --- a/car-broadcastradio-support/res/values-es-rUS/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Estaciones"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Favoritos"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-es/strings.xml b/car-broadcastradio-support/res/values-es/strings.xml deleted file mode 100644 index f0f383e..0000000 --- a/car-broadcastradio-support/res/values-es/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Emisoras"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Favoritos"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-et/strings.xml b/car-broadcastradio-support/res/values-et/strings.xml deleted file mode 100644 index 810c07e..0000000 --- a/car-broadcastradio-support/res/values-et/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Jaamad"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Lemmikud"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-eu/strings.xml b/car-broadcastradio-support/res/values-eu/strings.xml deleted file mode 100644 index 999d986..0000000 --- a/car-broadcastradio-support/res/values-eu/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Kateak"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Gogokoak"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-fa/strings.xml b/car-broadcastradio-support/res/values-fa/strings.xml deleted file mode 100644 index 1828fc3..0000000 --- a/car-broadcastradio-support/res/values-fa/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"ایستگاهها"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"موارد دلخواه"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-fi/strings.xml b/car-broadcastradio-support/res/values-fi/strings.xml deleted file mode 100644 index a1b60db..0000000 --- a/car-broadcastradio-support/res/values-fi/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Kanavat"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Suosikit"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-fr-rCA/strings.xml b/car-broadcastradio-support/res/values-fr-rCA/strings.xml deleted file mode 100644 index 89bd122..0000000 --- a/car-broadcastradio-support/res/values-fr-rCA/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Stations"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Favorites"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-fr/strings.xml b/car-broadcastradio-support/res/values-fr/strings.xml deleted file mode 100644 index f12123f..0000000 --- a/car-broadcastradio-support/res/values-fr/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Radios"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Favoris"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-gl/strings.xml b/car-broadcastradio-support/res/values-gl/strings.xml deleted file mode 100644 index beccab0..0000000 --- a/car-broadcastradio-support/res/values-gl/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Emisoras"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Programas favoritos"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-gu/strings.xml b/car-broadcastradio-support/res/values-gu/strings.xml deleted file mode 100644 index 8da5f9d..0000000 --- a/car-broadcastradio-support/res/values-gu/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"સ્ટેશન"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"મનપસંદ"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-hi/strings.xml b/car-broadcastradio-support/res/values-hi/strings.xml deleted file mode 100644 index 230e18b..0000000 --- a/car-broadcastradio-support/res/values-hi/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"एएम रेडियो"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"एफ़एम रेडियो"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"डीएबी"</string> - <string name="program_list_text" msgid="4414150317304422313">"स्टेशन"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"पसंदीदा"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-hr/strings.xml b/car-broadcastradio-support/res/values-hr/strings.xml deleted file mode 100644 index 63cc855..0000000 --- a/car-broadcastradio-support/res/values-hr/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Postaje"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Favoriti"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-hu/strings.xml b/car-broadcastradio-support/res/values-hu/strings.xml deleted file mode 100644 index 5a16d62..0000000 --- a/car-broadcastradio-support/res/values-hu/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Állomások"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Kedvencek"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-hy/strings.xml b/car-broadcastradio-support/res/values-hy/strings.xml deleted file mode 100644 index 77efc29..0000000 --- a/car-broadcastradio-support/res/values-hy/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Ռադիոկայաններ"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Ընտրանի"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-in/strings.xml b/car-broadcastradio-support/res/values-in/strings.xml deleted file mode 100644 index e40e53f..0000000 --- a/car-broadcastradio-support/res/values-in/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Stasiun"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Favorit"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-is/strings.xml b/car-broadcastradio-support/res/values-is/strings.xml deleted file mode 100644 index b7e9135..0000000 --- a/car-broadcastradio-support/res/values-is/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Stöðvar"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Uppáhald"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-it/strings.xml b/car-broadcastradio-support/res/values-it/strings.xml deleted file mode 100644 index eef0a6e..0000000 --- a/car-broadcastradio-support/res/values-it/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Stazioni"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Preferiti"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-iw/strings.xml b/car-broadcastradio-support/res/values-iw/strings.xml deleted file mode 100644 index e990b26..0000000 --- a/car-broadcastradio-support/res/values-iw/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB (Digital Audio Broadcasting)"</string> - <string name="program_list_text" msgid="4414150317304422313">"תחנות"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"מועדפים"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-ja/strings.xml b/car-broadcastradio-support/res/values-ja/strings.xml deleted file mode 100644 index 21582d0..0000000 --- a/car-broadcastradio-support/res/values-ja/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"ステーション"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"お気に入り"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-ka/strings.xml b/car-broadcastradio-support/res/values-ka/strings.xml deleted file mode 100644 index 2f26b0a..0000000 --- a/car-broadcastradio-support/res/values-ka/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"ციფრული აუდიომაუწყებლობა"</string> - <string name="program_list_text" msgid="4414150317304422313">"სადგურები"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"რჩეულები"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-kk/strings.xml b/car-broadcastradio-support/res/values-kk/strings.xml deleted file mode 100644 index 740afce..0000000 --- a/car-broadcastradio-support/res/values-kk/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Станциялар"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Таңдаулылар"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-km/strings.xml b/car-broadcastradio-support/res/values-km/strings.xml deleted file mode 100644 index be70353..0000000 --- a/car-broadcastradio-support/res/values-km/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"ស្ថានីយ"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"សំណព្វ"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-kn/strings.xml b/car-broadcastradio-support/res/values-kn/strings.xml deleted file mode 100644 index 9dadc54..0000000 --- a/car-broadcastradio-support/res/values-kn/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"ಬೆಳಿಗ್ಗೆ"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"ಸ್ಟೇಶನ್ಗಳು"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"ಮೆಚ್ಚಿನವುಗಳು"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-ko/strings.xml b/car-broadcastradio-support/res/values-ko/strings.xml deleted file mode 100644 index abebfa4..0000000 --- a/car-broadcastradio-support/res/values-ko/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"채널"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"즐겨찾기"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-ky/strings.xml b/car-broadcastradio-support/res/values-ky/strings.xml deleted file mode 100644 index ee67f46..0000000 --- a/car-broadcastradio-support/res/values-ky/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Станциялар"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Тандалмалар"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-lo/strings.xml b/car-broadcastradio-support/res/values-lo/strings.xml deleted file mode 100644 index fbfe882..0000000 --- a/car-broadcastradio-support/res/values-lo/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"ສະຖານີ"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"ລາຍການທີ່ມັກ"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-lt/strings.xml b/car-broadcastradio-support/res/values-lt/strings.xml deleted file mode 100644 index 6a68328..0000000 --- a/car-broadcastradio-support/res/values-lt/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Stotys"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Mėgstamiausi"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-lv/strings.xml b/car-broadcastradio-support/res/values-lv/strings.xml deleted file mode 100644 index 75db93a..0000000 --- a/car-broadcastradio-support/res/values-lv/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Programmas"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Izlase"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-mk/strings.xml b/car-broadcastradio-support/res/values-mk/strings.xml deleted file mode 100644 index c7410af..0000000 --- a/car-broadcastradio-support/res/values-mk/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Станици"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Омилени"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-ml/strings.xml b/car-broadcastradio-support/res/values-ml/strings.xml deleted file mode 100644 index 498bfd7..0000000 --- a/car-broadcastradio-support/res/values-ml/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"രാവിലെ"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"സ്റ്റേഷനുകള്"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"പ്രിയപ്പെട്ടവ"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-mn/strings.xml b/car-broadcastradio-support/res/values-mn/strings.xml deleted file mode 100644 index 3deca28..0000000 --- a/car-broadcastradio-support/res/values-mn/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"ӨГЛӨӨ"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Станцууд"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Дуртай"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-mr/strings.xml b/car-broadcastradio-support/res/values-mr/strings.xml deleted file mode 100644 index 0fc95e4..0000000 --- a/car-broadcastradio-support/res/values-mr/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"स्टेशन"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"आवडीचे"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-ms/strings.xml b/car-broadcastradio-support/res/values-ms/strings.xml deleted file mode 100644 index 257cb5e..0000000 --- a/car-broadcastradio-support/res/values-ms/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Stesen"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Kegemaran"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-my/strings.xml b/car-broadcastradio-support/res/values-my/strings.xml deleted file mode 100644 index 692d19d..0000000 --- a/car-broadcastradio-support/res/values-my/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"အသံလွှင့်ရုံများ"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"အသုံးအများဆုံးများ"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-nb/strings.xml b/car-broadcastradio-support/res/values-nb/strings.xml deleted file mode 100644 index 79544cb..0000000 --- a/car-broadcastradio-support/res/values-nb/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Stasjoner"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Favoritter"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-ne/strings.xml b/car-broadcastradio-support/res/values-ne/strings.xml deleted file mode 100644 index ee1887b..0000000 --- a/car-broadcastradio-support/res/values-ne/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"पूर्वाह्न"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"एफएम"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"स्टेसनहरू"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"मन पर्ने कार्यक्रमहरू"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-nl/strings.xml b/car-broadcastradio-support/res/values-nl/strings.xml deleted file mode 100644 index 2f1a5e1..0000000 --- a/car-broadcastradio-support/res/values-nl/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Zenders"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Favorieten"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-or/strings.xml b/car-broadcastradio-support/res/values-or/strings.xml deleted file mode 100644 index ab448c8..0000000 --- a/car-broadcastradio-support/res/values-or/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"ଷ୍ଟେଶନ୍"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"ପସନ୍ଦର"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-pa/strings.xml b/car-broadcastradio-support/res/values-pa/strings.xml deleted file mode 100644 index 5f7ce46..0000000 --- a/car-broadcastradio-support/res/values-pa/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"ਸਟੇਸ਼ਨ"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"ਮਨਪਸੰਦ"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-pl/strings.xml b/car-broadcastradio-support/res/values-pl/strings.xml deleted file mode 100644 index 1fc4d67..0000000 --- a/car-broadcastradio-support/res/values-pl/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Stacje"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Ulubione"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-pt-rPT/strings.xml b/car-broadcastradio-support/res/values-pt-rPT/strings.xml deleted file mode 100644 index a4b120a..0000000 --- a/car-broadcastradio-support/res/values-pt-rPT/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Estações"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Favoritas"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-pt/strings.xml b/car-broadcastradio-support/res/values-pt/strings.xml deleted file mode 100644 index 9d72f03..0000000 --- a/car-broadcastradio-support/res/values-pt/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Estações"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Favoritos"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-ro/strings.xml b/car-broadcastradio-support/res/values-ro/strings.xml deleted file mode 100644 index 7ab0b50..0000000 --- a/car-broadcastradio-support/res/values-ro/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Posturi"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Preferate"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-ru/strings.xml b/car-broadcastradio-support/res/values-ru/strings.xml deleted file mode 100644 index 2fed0f4..0000000 --- a/car-broadcastradio-support/res/values-ru/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"Цифровое радио"</string> - <string name="program_list_text" msgid="4414150317304422313">"Радиостанции"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Избранное"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-si/strings.xml b/car-broadcastradio-support/res/values-si/strings.xml deleted file mode 100644 index 53f72c6..0000000 --- a/car-broadcastradio-support/res/values-si/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"නාලිකා"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"ප්රියතම"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-sk/strings.xml b/car-broadcastradio-support/res/values-sk/strings.xml deleted file mode 100644 index fcdab92..0000000 --- a/car-broadcastradio-support/res/values-sk/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Stanice"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Obľúbené"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-sl/strings.xml b/car-broadcastradio-support/res/values-sl/strings.xml deleted file mode 100644 index f0d3770..0000000 --- a/car-broadcastradio-support/res/values-sl/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Postaje"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Priljubljene"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-sq/strings.xml b/car-broadcastradio-support/res/values-sq/strings.xml deleted file mode 100644 index a4c1c95..0000000 --- a/car-broadcastradio-support/res/values-sq/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Stacionet"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Të preferuarat"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-sr/strings.xml b/car-broadcastradio-support/res/values-sr/strings.xml deleted file mode 100644 index 8321b8c..0000000 --- a/car-broadcastradio-support/res/values-sr/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Станице"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Омиљено"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-sv/strings.xml b/car-broadcastradio-support/res/values-sv/strings.xml deleted file mode 100644 index 5475b03..0000000 --- a/car-broadcastradio-support/res/values-sv/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Kanaler"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Favoriter"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-sw/strings.xml b/car-broadcastradio-support/res/values-sw/strings.xml deleted file mode 100644 index 879df73..0000000 --- a/car-broadcastradio-support/res/values-sw/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Stesheni"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Unavyopenda"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-ta/strings.xml b/car-broadcastradio-support/res/values-ta/strings.xml deleted file mode 100644 index 6b91b37..0000000 --- a/car-broadcastradio-support/res/values-ta/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"நிலையங்கள்"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"பிடித்தவை"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-te/strings.xml b/car-broadcastradio-support/res/values-te/strings.xml deleted file mode 100644 index 864e222..0000000 --- a/car-broadcastradio-support/res/values-te/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"స్టేషన్లు"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"ఇష్టమైనవి"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-th/strings.xml b/car-broadcastradio-support/res/values-th/strings.xml deleted file mode 100644 index 0370e76..0000000 --- a/car-broadcastradio-support/res/values-th/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"สถานี"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"รายการโปรด"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-tl/strings.xml b/car-broadcastradio-support/res/values-tl/strings.xml deleted file mode 100644 index 932e133..0000000 --- a/car-broadcastradio-support/res/values-tl/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Mga Istasyon"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Mga Paborito"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-tr/strings.xml b/car-broadcastradio-support/res/values-tr/strings.xml deleted file mode 100644 index 136387f..0000000 --- a/car-broadcastradio-support/res/values-tr/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"İstasyonlar"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Favoriler"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-uk/strings.xml b/car-broadcastradio-support/res/values-uk/strings.xml deleted file mode 100644 index cdd259a..0000000 --- a/car-broadcastradio-support/res/values-uk/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Станції"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Вибране"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-ur/strings.xml b/car-broadcastradio-support/res/values-ur/strings.xml deleted file mode 100644 index a511d89..0000000 --- a/car-broadcastradio-support/res/values-ur/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"اسٹیشنز"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"پسندیدہ"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-uz/strings.xml b/car-broadcastradio-support/res/values-uz/strings.xml deleted file mode 100644 index bfb89d7..0000000 --- a/car-broadcastradio-support/res/values-uz/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"Raqamli radio"</string> - <string name="program_list_text" msgid="4414150317304422313">"Radiostansiyalar"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Saralangan"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-vi/strings.xml b/car-broadcastradio-support/res/values-vi/strings.xml deleted file mode 100644 index 067c179..0000000 --- a/car-broadcastradio-support/res/values-vi/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"Phát thanh kỹ thuật số"</string> - <string name="program_list_text" msgid="4414150317304422313">"Đài"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Đài yêu thích"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-zh-rCN/strings.xml b/car-broadcastradio-support/res/values-zh-rCN/strings.xml deleted file mode 100644 index 1789a58..0000000 --- a/car-broadcastradio-support/res/values-zh-rCN/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"电台"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"收藏"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-zh-rHK/strings.xml b/car-broadcastradio-support/res/values-zh-rHK/strings.xml deleted file mode 100644 index bb596c2..0000000 --- a/car-broadcastradio-support/res/values-zh-rHK/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"數碼聲音廣播"</string> - <string name="program_list_text" msgid="4414150317304422313">"電台"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"收藏"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-zh-rTW/strings.xml b/car-broadcastradio-support/res/values-zh-rTW/strings.xml deleted file mode 100644 index 0ba44bc..0000000 --- a/car-broadcastradio-support/res/values-zh-rTW/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"電台"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"收藏"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values-zu/strings.xml b/car-broadcastradio-support/res/values-zu/strings.xml deleted file mode 100644 index dd5578b..0000000 --- a/car-broadcastradio-support/res/values-zu/strings.xml +++ /dev/null
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2018 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="radio_am_text" msgid="571324921988967868">"AM"</string> - <string name="radio_fm_text" msgid="1973045042281933494">"FM"</string> - <string name="radio_dab_text" msgid="8456449462266648979">"I-DAB"</string> - <string name="program_list_text" msgid="4414150317304422313">"Iziteshi"</string> - <string name="favorites_list_text" msgid="7829827713977109155">"Izintandokazi"</string> -</resources>
diff --git a/car-broadcastradio-support/res/values/strings.xml b/car-broadcastradio-support/res/values/strings.xml deleted file mode 100644 index 9151c21..0000000 --- a/car-broadcastradio-support/res/values/strings.xml +++ /dev/null
@@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2018 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. ---> -<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <!-- Text to denote the AM radio band. --> - <string name="radio_am_text">AM</string> - - <!-- Text to denote the FM radio band. --> - <string name="radio_fm_text">FM</string> - - <!-- Text to denote the DAB radio band. --> - <string name="radio_dab_text">DAB</string> - - <!-- Text to denote the list of programs (stations). --> - <string name="program_list_text">Stations</string> - - <!-- Text to denote the list of favorite programs (stations). --> - <string name="favorites_list_text">Favorites</string> -</resources>
diff --git a/car-broadcastradio-support/src/com/android/car/broadcastradio/support/Program.aidl b/car-broadcastradio-support/src/com/android/car/broadcastradio/support/Program.aidl deleted file mode 100644 index 99c9a93..0000000 --- a/car-broadcastradio-support/src/com/android/car/broadcastradio/support/Program.aidl +++ /dev/null
@@ -1,18 +0,0 @@ -/** - * Copyright (C) 2018 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. - */ -package com.android.car.broadcastradio.support; - -parcelable Program;
diff --git a/car-broadcastradio-support/src/com/android/car/broadcastradio/support/Program.java b/car-broadcastradio-support/src/com/android/car/broadcastradio/support/Program.java deleted file mode 100644 index 21f3cdf..0000000 --- a/car-broadcastradio-support/src/com/android/car/broadcastradio/support/Program.java +++ /dev/null
@@ -1,114 +0,0 @@ -/** - * Copyright (C) 2018 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. - */ - -package com.android.car.broadcastradio.support; - -import android.graphics.Bitmap; -import android.hardware.radio.ProgramSelector; -import android.hardware.radio.RadioManager.ProgramInfo; -import android.os.Parcel; -import android.os.Parcelable; - -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; - -import com.android.car.broadcastradio.support.platform.ProgramInfoExt; - -import java.util.Objects; - -/** - * Holds storable information about a Program. - * - * Contrary to {@link android.hardware.radio.RadioManager.ProgramInfo}, it doesn't hold runtime - * information, like artist or signal quality. - */ -public final class Program implements Parcelable { - private final @NonNull ProgramSelector mSelector; - private final @NonNull String mName; - - public Program(@NonNull ProgramSelector selector, @NonNull String name) { - mSelector = Objects.requireNonNull(selector); - mName = Objects.requireNonNull(name); - } - - public @NonNull ProgramSelector getSelector() { - return mSelector; - } - - public @NonNull String getName() { - return mName; - } - - /** @hide */ - public @Nullable Bitmap getIcon() { - // TODO(b/73950974): implement saving icons - return null; - } - - @Override - public String toString() { - return "Program(\"" + mName + "\", " + mSelector + ")"; - } - - @Override - public int hashCode() { - return mSelector.hashCode(); - } - - /** - * Two programs are considered equal if their selectors are equal. - */ - @Override - public boolean equals(Object obj) { - if (this == obj) return true; - if (!(obj instanceof Program)) return false; - Program other = (Program) obj; - return mSelector.equals(other.mSelector); - } - - /** - * Builds a new {@link Program} object from {@link ProgramInfo}. - */ - public static @NonNull Program fromProgramInfo(@NonNull ProgramInfo info) { - return new Program(info.getSelector(), ProgramInfoExt.getProgramName(info, 0)); - } - - private Program(Parcel in) { - mSelector = Objects.requireNonNull(in.readTypedObject(ProgramSelector.CREATOR)); - mName = Objects.requireNonNull(in.readString()); - } - - @Override - public void writeToParcel(Parcel dest, int flags) { - dest.writeTypedObject(mSelector, 0); - dest.writeString(mName); - } - - @Override - public int describeContents() { - return 0; - } - - public static final Parcelable.Creator<Program> CREATOR = new Parcelable.Creator<Program>() { - public Program createFromParcel(Parcel in) { - return new Program(in); - } - - public Program[] newArray(int size) { - return new Program[size]; - } - }; -}
diff --git a/car-broadcastradio-support/src/com/android/car/broadcastradio/support/media/BrowseTree.java b/car-broadcastradio-support/src/com/android/car/broadcastradio/support/media/BrowseTree.java deleted file mode 100644 index 4d6624b..0000000 --- a/car-broadcastradio-support/src/com/android/car/broadcastradio/support/media/BrowseTree.java +++ /dev/null
@@ -1,507 +0,0 @@ -/** - * Copyright (C) 2018 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. - */ - -package com.android.car.broadcastradio.support.media; - -import android.graphics.Bitmap; -import android.hardware.radio.ProgramList; -import android.hardware.radio.ProgramSelector; -import android.hardware.radio.RadioManager; -import android.hardware.radio.RadioManager.BandDescriptor; -import android.hardware.radio.RadioMetadata; -import android.os.Bundle; -import android.support.v4.media.MediaBrowserCompat.MediaItem; -import android.support.v4.media.MediaDescriptionCompat; -import android.util.Log; - -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import androidx.annotation.StringRes; -import androidx.media.MediaBrowserServiceCompat; -import androidx.media.MediaBrowserServiceCompat.BrowserRoot; -import androidx.media.MediaBrowserServiceCompat.Result; - -import com.android.car.broadcastradio.support.Program; -import com.android.car.broadcastradio.support.R; -import com.android.car.broadcastradio.support.platform.ImageResolver; -import com.android.car.broadcastradio.support.platform.ProgramInfoExt; -import com.android.car.broadcastradio.support.platform.ProgramSelectorExt; -import com.android.car.broadcastradio.support.platform.RadioMetadataExt; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; - -/** - * Implementation of MediaBrowserService logic regarding browser tree. - */ -public class BrowseTree { - private static final String TAG = "BcRadioApp.BrowseTree"; - - /** - * Used as a long extra field to indicate the Broadcast Radio folder type of the media item. - * The value should be one of the following: - * <ul> - * <li>{@link #BCRADIO_FOLDER_TYPE_PROGRAMS}</li> - * <li>{@link #BCRADIO_FOLDER_TYPE_FAVORITES}</li> - * <li>{@link #BCRADIO_FOLDER_TYPE_BAND}</li> - * </ul> - * - * @see android.media.MediaDescription#getExtras() - */ - public static final String EXTRA_BCRADIO_FOLDER_TYPE = - "android.media.extra.EXTRA_BCRADIO_FOLDER_TYPE"; - - /** - * The type of folder that contains a list of Broadcast Radio programs available - * to tune at the moment. - */ - public static final long BCRADIO_FOLDER_TYPE_PROGRAMS = 1; - - /** - * The type of folder that contains a list of Broadcast Radio programs added - * to favorites (not necessarily available to tune at the moment). - * - * If this folder has {@link android.media.browse.MediaBrowser.MediaItem#FLAG_PLAYABLE} flag - * set, it can be used to play some program from the favorite list (selection depends on the - * radio app implementation). - */ - public static final long BCRADIO_FOLDER_TYPE_FAVORITES = 2; - - /** - * The type of folder that contains the list of all Broadcast Radio channels - * (frequency values valid in the current region) for a given band. - * Each band (like AM, FM) has its own, separate folder. - * These lists include all channels, whether or not some program is tunable through it. - * - * If this folder has {@link android.media.browse.MediaBrowser.MediaItem#FLAG_PLAYABLE} flag - * set, it can be used to tune to some channel within a given band (selection depends on the - * radio app implementation). - */ - public static final long BCRADIO_FOLDER_TYPE_BAND = 3; - - /** - * Non-localized name of the band. - * - * For now, it can only take one of the following values: - * - AM; - * - FM; - * - DAB; - * - SXM. - * - * However, in future releases the list might get extended. - */ - public static final String EXTRA_BCRADIO_BAND_NAME_EN = - "android.media.extra.EXTRA_BCRADIO_BAND_NAME_EN"; - - /** - * General play intent action. - * - * MediaBrowserService of the radio app must handle this command to perform general - * "play" command. It usually means starting playback of recently tuned station. - */ - public static final String ACTION_PLAY_BROADCASTRADIO = - "android.car.intent.action.PLAY_BROADCASTRADIO"; - - private static final String NODE_ROOT = "root_id"; - public static final String NODE_PROGRAMS = "programs_id"; - public static final String NODE_FAVORITES = "favorites_id"; - - private static final String NODEPREFIX_BAND = "band:"; - public static final String NODE_BAND_AM = NODEPREFIX_BAND + "am"; - public static final String NODE_BAND_FM = NODEPREFIX_BAND + "fm"; - public static final String NODE_BAND_DAB = NODEPREFIX_BAND + "dab"; - - private static final String NODEPREFIX_AMFMCHANNEL = "amfm:"; - private static final String NODEPREFIX_PROGRAM = "program:"; - - private final BrowserRoot mRoot = new BrowserRoot(NODE_ROOT, null); - - private final Object mLock = new Object(); - private final @NonNull MediaBrowserServiceCompat mBrowserService; - private final @Nullable ImageResolver mImageResolver; - - private List<MediaItem> mRootChildren; - - private final AmFmChannelList mAmChannels = new AmFmChannelList( - NODE_BAND_AM, R.string.radio_am_text, "AM"); - private final AmFmChannelList mFmChannels = new AmFmChannelList( - NODE_BAND_FM, R.string.radio_fm_text, "FM"); - private boolean mDABEnabled; - - private final ProgramList.OnCompleteListener mProgramListCompleteListener = - this::onProgramListUpdated; - @Nullable private ProgramList mProgramList; - @Nullable private List<RadioManager.ProgramInfo> mProgramListSnapshot; - @Nullable private List<MediaItem> mProgramListCache; - private final List<Runnable> mProgramListTasks = new ArrayList<>(); - private final Map<String, ProgramSelector> mProgramSelectors = new HashMap<>(); - - @Nullable Set<Program> mFavorites; - @Nullable private List<MediaItem> mFavoritesCache; - - public BrowseTree(@NonNull MediaBrowserServiceCompat browserService, - @Nullable ImageResolver imageResolver) { - mBrowserService = Objects.requireNonNull(browserService); - mImageResolver = imageResolver; - } - - public BrowserRoot getRoot() { - return mRoot; - } - - private static MediaItem createChild( - MediaDescriptionCompat.Builder descBuilder, String mediaId, String title, - ProgramSelector sel, Bitmap icon) { - MediaDescriptionCompat desc = descBuilder - .setMediaId(mediaId) - .setMediaUri(ProgramSelectorExt.toUri(sel)) - .setTitle(title) - .setIconBitmap(icon) - .build(); - return new MediaItem(desc, MediaItem.FLAG_PLAYABLE); - } - - private static MediaItem createFolder( - MediaDescriptionCompat.Builder descBuilder, String mediaId, String title, - boolean isBrowseable, boolean isPlayable, long folderType, Bundle extras) { - if (extras == null) extras = new Bundle(); - extras.putLong(EXTRA_BCRADIO_FOLDER_TYPE, folderType); - - MediaDescriptionCompat desc = descBuilder - .setMediaId(mediaId).setTitle(title).setExtras(extras).build(); - - int flags = 0; - if (isBrowseable) flags |= MediaItem.FLAG_BROWSABLE; - if (isPlayable) flags |= MediaItem.FLAG_PLAYABLE; - return new MediaItem(desc, flags); - } - - /** - * Sets AM/FM region configuration. - * - * This method is meant to be called shortly after initialization, if AM/FM is supported. - */ - public void setAmFmRegionConfig(@Nullable List<BandDescriptor> amFmBands) { - List<BandDescriptor> amBands = new ArrayList<>(); - List<BandDescriptor> fmBands = new ArrayList<>(); - - if (amFmBands != null) { - for (BandDescriptor band : amFmBands) { - final int freq = band.getLowerLimit(); - if (ProgramSelectorExt.isAmFrequency(freq)) { - amBands.add(band); - } else if (ProgramSelectorExt.isFmFrequency(freq)) { - fmBands.add(band); - } - } - } - - synchronized (mLock) { - mAmChannels.setBands(amBands); - mFmChannels.setBands(fmBands); - mRootChildren = null; - mBrowserService.notifyChildrenChanged(NODE_ROOT); - } - } - - /** - * Configures the BrowseTree to include a DAB node or not - */ - public void setDABEnabled(boolean enabled) { - synchronized (mLock) { - if (mDABEnabled != enabled) { - mDABEnabled = enabled; - mRootChildren = null; - mBrowserService.notifyChildrenChanged(NODE_ROOT); - } - } - } - - private void onProgramListUpdated() { - synchronized (mLock) { - mProgramListSnapshot = mProgramList.toList(); - mProgramListCache = null; - mBrowserService.notifyChildrenChanged(NODE_PROGRAMS); - - for (Runnable task : mProgramListTasks) { - task.run(); - } - mProgramListTasks.clear(); - } - } - - /** - * Binds program list. - * - * This method is meant to be called shortly after opening a new tuner session. - */ - public void setProgramList(@Nullable ProgramList programList) { - synchronized (mLock) { - if (mProgramList != null) { - mProgramList.removeOnCompleteListener(mProgramListCompleteListener); - } - mProgramList = programList; - if (programList != null) { - mProgramList.addOnCompleteListener(mProgramListCompleteListener); - } - mBrowserService.notifyChildrenChanged(NODE_ROOT); - } - } - - private List<MediaItem> getPrograms() { - synchronized (mLock) { - if (mProgramListSnapshot == null) { - Log.w(TAG, "There is no snapshot of the program list"); - return null; - } - - if (mProgramListCache != null) return mProgramListCache; - mProgramListCache = new ArrayList<>(); - - MediaDescriptionCompat.Builder dbld = new MediaDescriptionCompat.Builder(); - - for (RadioManager.ProgramInfo program : mProgramListSnapshot) { - ProgramSelector sel = program.getSelector(); - String mediaId = selectorToMediaId(sel); - mProgramSelectors.put(mediaId, sel); - - Bitmap icon = null; - RadioMetadata meta = program.getMetadata(); - if (meta != null && mImageResolver != null) { - long id = RadioMetadataExt.getGlobalBitmapId(meta, - RadioMetadata.METADATA_KEY_ICON); - if (id != 0) icon = mImageResolver.resolve(id); - } - - mProgramListCache.add(createChild(dbld, mediaId, - ProgramInfoExt.getProgramName(program, 0), program.getSelector(), icon)); - } - - if (mProgramListCache.size() == 0) { - Log.v(TAG, "Program list is empty"); - } - return mProgramListCache; - } - } - - private void sendPrograms(final Result<List<MediaItem>> result) { - synchronized (mLock) { - if (mProgramListSnapshot != null) { - result.sendResult(getPrograms()); - } else { - Log.d(TAG, "Program list is not ready yet"); - result.detach(); - mProgramListTasks.add(() -> result.sendResult(getPrograms())); - } - } - } - - /** - * Updates favorites list. - */ - public void setFavorites(@Nullable Set<Program> favorites) { - synchronized (mLock) { - boolean rootChanged = (mFavorites == null) != (favorites == null); - mFavorites = favorites; - mFavoritesCache = null; - mBrowserService.notifyChildrenChanged(NODE_FAVORITES); - if (rootChanged) mBrowserService.notifyChildrenChanged(NODE_ROOT); - } - } - - private List<MediaItem> getFavorites() { - synchronized (mLock) { - if (mFavorites == null) return null; - if (mFavoritesCache != null) return mFavoritesCache; - mFavoritesCache = new ArrayList<>(); - - MediaDescriptionCompat.Builder dbld = new MediaDescriptionCompat.Builder(); - - for (Program fav : mFavorites) { - ProgramSelector sel = fav.getSelector(); - String mediaId = selectorToMediaId(sel); - mProgramSelectors.putIfAbsent(mediaId, sel); // prefer program list entries - mFavoritesCache.add(createChild(dbld, mediaId, fav.getName(), sel, fav.getIcon())); - } - - return mFavoritesCache; - } - } - - private List<MediaItem> getRootChildren() { - synchronized (mLock) { - if (mRootChildren != null) return mRootChildren; - mRootChildren = new ArrayList<>(); - - MediaDescriptionCompat.Builder dbld = new MediaDescriptionCompat.Builder(); - if (mProgramList != null) { - mRootChildren.add(createFolder(dbld, NODE_PROGRAMS, - mBrowserService.getString(R.string.program_list_text), - true, false, BCRADIO_FOLDER_TYPE_PROGRAMS, null)); - } - if (mFavorites != null) { - mRootChildren.add(createFolder(dbld, NODE_FAVORITES, - mBrowserService.getString(R.string.favorites_list_text), - true, true, BCRADIO_FOLDER_TYPE_FAVORITES, null)); - } - - MediaItem amRoot = mAmChannels.getBandRoot(); - if (amRoot != null) mRootChildren.add(amRoot); - MediaItem fmRoot = mFmChannels.getBandRoot(); - if (fmRoot != null) mRootChildren.add(fmRoot); - - if (mDABEnabled) { - mRootChildren.add(createFolder(dbld, NODE_BAND_DAB, - mBrowserService.getString(R.string.radio_dab_text), - false, true, BCRADIO_FOLDER_TYPE_BAND, null)); - } - - return mRootChildren; - } - } - - private class AmFmChannelList { - public final @NonNull String mMediaId; - private final @StringRes int mBandName; - private final @NonNull String mBandNameEn; - private @Nullable List<BandDescriptor> mBands; - private @Nullable List<MediaItem> mChannels; - - private AmFmChannelList(@NonNull String mediaId, @StringRes int bandName, - @NonNull String bandNameEn) { - mMediaId = Objects.requireNonNull(mediaId); - mBandName = bandName; - mBandNameEn = Objects.requireNonNull(bandNameEn); - } - - public void setBands(List<BandDescriptor> bands) { - synchronized (mLock) { - mBands = bands; - mChannels = null; - mBrowserService.notifyChildrenChanged(mMediaId); - } - } - - private boolean isEmpty() { - if (mBands == null) { - Log.w(TAG, "AM/FM configuration not set"); - return true; - } - return mBands.isEmpty(); - } - - public @Nullable MediaItem getBandRoot() { - if (isEmpty()) return null; - Bundle extras = new Bundle(); - extras.putString(EXTRA_BCRADIO_BAND_NAME_EN, mBandNameEn); - return createFolder(new MediaDescriptionCompat.Builder(), mMediaId, - mBrowserService.getString(mBandName), true, true, BCRADIO_FOLDER_TYPE_BAND, - extras); - } - - public List<MediaItem> getChannels() { - synchronized (mLock) { - if (mChannels != null) return mChannels; - if (isEmpty()) return null; - mChannels = new ArrayList<>(); - - MediaDescriptionCompat.Builder dbld = new MediaDescriptionCompat.Builder(); - - for (BandDescriptor band : mBands) { - final int lowerLimit = band.getLowerLimit(); - final int upperLimit = band.getUpperLimit(); - final int spacing = band.getSpacing(); - for (int ch = lowerLimit; ch <= upperLimit; ch += spacing) { - ProgramSelector sel = ProgramSelectorExt.createAmFmSelector(ch); - mChannels.add(createChild(dbld, NODEPREFIX_AMFMCHANNEL + ch, - ProgramSelectorExt.getDisplayName(sel, 0), sel, null)); - } - } - - return mChannels; - } - } - } - - /** - * Loads subtree children. - * - * This method is meant to be used in MediaBrowserService's onLoadChildren callback. - */ - public void loadChildren(final String parentMediaId, final Result<List<MediaItem>> result) { - if (parentMediaId == null || result == null) return; - - if (NODE_ROOT.equals(parentMediaId)) { - result.sendResult(getRootChildren()); - } else if (NODE_PROGRAMS.equals(parentMediaId)) { - sendPrograms(result); - } else if (NODE_FAVORITES.equals(parentMediaId)) { - result.sendResult(getFavorites()); - } else if (parentMediaId.equals(mAmChannels.mMediaId)) { - result.sendResult(mAmChannels.getChannels()); - } else if (parentMediaId.equals(mFmChannels.mMediaId)) { - result.sendResult(mFmChannels.getChannels()); - } else { - Log.w(TAG, "Invalid parent media ID: " + parentMediaId); - result.sendResult(null); - } - } - - private static @NonNull String selectorToMediaId(@NonNull ProgramSelector sel) { - ProgramSelector.Identifier id = sel.getPrimaryId(); - return NODEPREFIX_PROGRAM + id.getType() + '/' + id.getValue(); - } - - /** - * Resolves mediaId to a tunable {@link ProgramSelector}. - * - * This method is meant to be used in MediaSession's onPlayFromMediaId callback. - */ - public @Nullable ProgramSelector parseMediaId(@Nullable String mediaId) { - if (mediaId == null) return null; - - if (mediaId.startsWith(NODEPREFIX_AMFMCHANNEL)) { - String freqStr = mediaId.substring(NODEPREFIX_AMFMCHANNEL.length()); - int freqInt; - try { - freqInt = Integer.parseInt(freqStr); - } catch (NumberFormatException ex) { - Log.e(TAG, "Invalid frequency", ex); - return null; - } - return ProgramSelectorExt.createAmFmSelector(freqInt); - } else if (mediaId.startsWith(NODEPREFIX_PROGRAM)) { - return mProgramSelectors.get(mediaId); - } else if (mediaId.equals(NODE_FAVORITES)) { - if (mFavorites == null || mFavorites.isEmpty()) return null; - return mFavorites.iterator().next().getSelector(); - } else if (mediaId.equals(NODE_PROGRAMS)) { - if (mProgramListSnapshot == null || mProgramListSnapshot.isEmpty()) return null; - return mProgramListSnapshot.get(0).getSelector(); - } else if (mediaId.equals(NODE_BAND_AM)) { - if (mAmChannels.mBands == null || mAmChannels.mBands.isEmpty()) return null; - return ProgramSelectorExt.createAmFmSelector(mAmChannels.mBands.get(0).getLowerLimit()); - } else if (mediaId.equals(NODE_BAND_FM)) { - if (mFmChannels.mBands == null || mFmChannels.mBands.isEmpty()) return null; - return ProgramSelectorExt.createAmFmSelector(mFmChannels.mBands.get(0).getLowerLimit()); - } - return null; - } -}
diff --git a/car-broadcastradio-support/src/com/android/car/broadcastradio/support/platform/ImageResolver.java b/car-broadcastradio-support/src/com/android/car/broadcastradio/support/platform/ImageResolver.java deleted file mode 100644 index fd14045..0000000 --- a/car-broadcastradio-support/src/com/android/car/broadcastradio/support/platform/ImageResolver.java +++ /dev/null
@@ -1,34 +0,0 @@ -/** - * Copyright (C) 2018 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. - */ - -package com.android.car.broadcastradio.support.platform; - -import android.graphics.Bitmap; - -import androidx.annotation.Nullable; - -/** - * Resolves metadata images. - */ -public interface ImageResolver { - /** - * Resolve a given metadata image global id to a bitmap. - * - * @param globalId metadata image id - * @return A bitmap, or null if it was not available or invalid - */ - @Nullable Bitmap resolve(long globalId); -}
diff --git a/car-broadcastradio-support/src/com/android/car/broadcastradio/support/platform/ProgramInfoExt.java b/car-broadcastradio-support/src/com/android/car/broadcastradio/support/platform/ProgramInfoExt.java deleted file mode 100644 index a48dec2..0000000 --- a/car-broadcastradio-support/src/com/android/car/broadcastradio/support/platform/ProgramInfoExt.java +++ /dev/null
@@ -1,279 +0,0 @@ -/** - * Copyright (C) 2018 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. - */ - -package com.android.car.broadcastradio.support.platform; - -import android.graphics.Bitmap; -import android.hardware.radio.ProgramSelector; -import android.hardware.radio.RadioManager; -import android.hardware.radio.RadioManager.ProgramInfo; -import android.hardware.radio.RadioMetadata; -import android.support.v4.media.MediaMetadataCompat; -import android.support.v4.media.RatingCompat; -import android.support.v4.media.session.MediaSessionCompat; -import android.util.Log; - -import androidx.annotation.IntDef; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; - -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.util.Comparator; -import java.util.Objects; - -/** - * Proposed extensions to android.hardware.radio.RadioManager.ProgramInfo. - * - * They might eventually get pushed to the framework. - */ -public class ProgramInfoExt { - private static final String TAG = "BcRadioApp.pinfoext"; - - /** - * If there is no suitable program name, return null instead of doing - * a fallback to channel display name. - */ - public static final int NAME_NO_CHANNEL_FALLBACK = 1 << 16; - - /** - * Flags to control how to fetch program name with {@link #getProgramName}. - * - * Lower 16 bits are reserved for {@link ProgramSelectorExt.NameFlag}. - */ - @IntDef(flag = true, value = { - ProgramSelectorExt.NAME_NO_MODULATION, - ProgramSelectorExt.NAME_MODULATION_ONLY, - NAME_NO_CHANNEL_FALLBACK, - }) - @Retention(RetentionPolicy.SOURCE) - public @interface NameFlag {} - - private static final char EN_DASH = '\u2013'; - private static final String TITLE_SEPARATOR = " " + EN_DASH + " "; - - private static final String[] PROGRAM_NAME_ORDER = new String[] { - RadioMetadata.METADATA_KEY_PROGRAM_NAME, - RadioMetadata.METADATA_KEY_DAB_COMPONENT_NAME, - RadioMetadata.METADATA_KEY_DAB_SERVICE_NAME, - RadioMetadata.METADATA_KEY_DAB_ENSEMBLE_NAME, - RadioMetadata.METADATA_KEY_RDS_PS, - }; - - /** - * Returns program name suitable to display. - * - * <p>If there is no program name, it falls back to channel name. Flags related to - * the channel name display will be forwarded to the channel name generation method. - * - * @param info {@link ProgramInfo} to get name from - * @param flags Fallback method - * @param programNameOrder {@link RadioMetadata} metadata keys to pull from {@link ProgramInfo} - * for the program name - */ - @NonNull - public static String getProgramName(@NonNull ProgramInfo info, @NameFlag int flags, - @NonNull String[] programNameOrder) { - Objects.requireNonNull(info, "info can not be null."); - Objects.requireNonNull(programNameOrder, "programNameOrder can not be null"); - - RadioMetadata meta = info.getMetadata(); - if (meta != null) { - for (String key : programNameOrder) { - String value = meta.getString(key); - if (value != null) return value; - } - } - - if ((flags & NAME_NO_CHANNEL_FALLBACK) != 0) return ""; - - ProgramSelector sel = info.getSelector(); - - // if it's AM/FM program, prefer to display currently used AF frequency - if (ProgramSelectorExt.isAmFmProgram(sel)) { - ProgramSelector.Identifier phy = info.getPhysicallyTunedTo(); - if (phy != null && phy.getType() == ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY) { - String chName = ProgramSelectorExt.formatAmFmFrequency(phy.getValue(), flags); - if (chName != null) return chName; - } - } - - String selName = ProgramSelectorExt.getDisplayName(sel, flags); - if (selName != null) return selName; - - Log.w(TAG, "ProgramInfo without a name nor channel name"); - return ""; - } - - /** - * Returns program name suitable to display. - * - * <p>If there is no program name, it falls back to channel name. Flags related to - * the channel name display will be forwarded to the channel name generation method. - */ - @NonNull - public static String getProgramName(@NonNull ProgramInfo info, @NameFlag int flags) { - return getProgramName(info, flags, PROGRAM_NAME_ORDER); - } - - /** - * Proposed reimplementation of {@link RadioManager.ProgramInfo#getMetadata}. - * - * As opposed to the original implementation, it never returns null. - */ - public static @NonNull RadioMetadata getMetadata(@NonNull ProgramInfo info) { - RadioMetadata meta = info.getMetadata(); - if (meta != null) return meta; - - /* Creating new Metadata object on each get won't be necessary after we - * push this code to the framework. */ - return (new RadioMetadata.Builder()).build(); - } - - /** - * Converts {@link ProgramInfo} to {@link MediaMetadataCompat} for displaying. - * - * <p>This method is meant to be used for displaying the currently playing station in - * {@link MediaSessionCompat}, only a subset of keys populated in {@link #toMediaMetadata} - * will be populated in this method. - * - * <ul> - * The following keys will be populated in the {@link MediaMetadataCompat}: - * <li>{@link MediaMetadataCompat#METADATA_KEY_DISPLAY_TITLE}</li> - * <li>{@link MediaMetadataCompat#METADATA_KEY_DISPLAY_SUBTITLE}</li> - * <li>{@link MediaMetadataCompat#METADATA_KEY_ALBUM_ART}</li> - * <li>{@link MediaMetadataCompat#METADATA_KEY_USER_RATING}</li> - * <ul/> - * - * @param info {@link ProgramInfo} to convert - * @param isFavorite {@code true}, if a given program is a favorite - * @param imageResolver metadata images resolver/cache - * @param programNameOrder order of keys to look for program name in {@link ProgramInfo} - * @return {@link MediaMetadataCompat} object - */ - @NonNull - public static MediaMetadataCompat toMediaDisplayMetadata(@NonNull ProgramInfo info, - boolean isFavorite, @NonNull ImageResolver imageResolver, - @NonNull String[] programNameOrder) { - Objects.requireNonNull(info, "info can not be null."); - Objects.requireNonNull(imageResolver, "imageResolver can not be null."); - Objects.requireNonNull(programNameOrder, "programNameOrder can not be null."); - - MediaMetadataCompat.Builder bld = new MediaMetadataCompat.Builder(); - - ProgramSelector selector; - ProgramSelector.Identifier logicallyTunedTo = info.getLogicallyTunedTo(); - if (logicallyTunedTo != null && logicallyTunedTo.getType() - == ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY) { - selector = ProgramSelectorExt.createAmFmSelector(logicallyTunedTo.getValue()); - } else { - selector = info.getSelector(); - } - String displayTitle = ProgramSelectorExt.getDisplayName(selector, info.getChannel()); - bld.putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_TITLE, displayTitle); - String subtitle = getProgramName(info, /* flags= */ 0, programNameOrder); - bld.putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_SUBTITLE, subtitle); - - Bitmap bm = resolveAlbumArtBitmap(info.getMetadata(), imageResolver); - if (bm != null) bld.putBitmap(MediaMetadataCompat.METADATA_KEY_ALBUM_ART, bm); - - bld.putRating(MediaMetadataCompat.METADATA_KEY_USER_RATING, - RatingCompat.newHeartRating(isFavorite)); - - return bld.build(); - } - - /** - * Converts {@link ProgramInfo} to {@link MediaMetadataCompat}. - * - * <p>This method is meant to be used for currently playing station in - * {@link MediaSessionCompat}. - * - * <ul> - * The following keys will be populated in the {@link MediaMetadataCompat}: - * <li>{@link MediaMetadataCompat#METADATA_KEY_DISPLAY_TITLE}</li> - * <li>{@link MediaMetadataCompat#METADATA_KEY_TITLE}</li> - * <li>{@link MediaMetadataCompat#METADATA_KEY_ARTIST}</li> - * <li>{@link MediaMetadataCompat#METADATA_KEY_ALBUM}</li> - * <li>{@link MediaMetadataCompat#METADATA_KEY_DISPLAY_SUBTITLE}</li> - * <li>{@link MediaMetadataCompat#METADATA_KEY_ALBUM_ART}</li> - * <li>{@link MediaMetadataCompat#METADATA_KEY_USER_RATING}</li> - * <ul/> - * - * @param info {@link ProgramInfo} to convert - * @param isFavorite {@code true}, if a given program is a favorite - * @param imageResolver metadata images resolver/cache - * @return {@link MediaMetadataCompat} object - */ - public static @NonNull MediaMetadataCompat toMediaMetadata(@NonNull ProgramInfo info, - boolean isFavorite, @Nullable ImageResolver imageResolver) { - MediaMetadataCompat.Builder bld = new MediaMetadataCompat.Builder(); - - bld.putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_TITLE, getProgramName(info, 0)); - - RadioMetadata meta = info.getMetadata(); - if (meta != null) { - String title = meta.getString(RadioMetadata.METADATA_KEY_TITLE); - if (title != null) { - bld.putString(MediaMetadataCompat.METADATA_KEY_TITLE, title); - } - String artist = meta.getString(RadioMetadata.METADATA_KEY_ARTIST); - if (artist != null) { - bld.putString(MediaMetadataCompat.METADATA_KEY_ARTIST, artist); - } - String album = meta.getString(RadioMetadata.METADATA_KEY_ALBUM); - if (album != null) { - bld.putString(MediaMetadataCompat.METADATA_KEY_ALBUM, album); - } - if (title != null || artist != null) { - String subtitle; - if (title == null) { - subtitle = artist; - } else if (artist == null) { - subtitle = title; - } else { - subtitle = title + TITLE_SEPARATOR + artist; - } - bld.putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_SUBTITLE, subtitle); - } - - Bitmap bm = resolveAlbumArtBitmap(meta, imageResolver); - if (bm != null) bld.putBitmap(MediaMetadataCompat.METADATA_KEY_ALBUM_ART, bm); - } - - bld.putRating(MediaMetadataCompat.METADATA_KEY_USER_RATING, - RatingCompat.newHeartRating(isFavorite)); - - return bld.build(); - } - - private static Bitmap resolveAlbumArtBitmap(@NonNull RadioMetadata meta, - @NonNull ImageResolver imageResolver) { - long albumArtId = RadioMetadataExt.getGlobalBitmapId(meta, RadioMetadata.METADATA_KEY_ART); - if (albumArtId != 0 && imageResolver != null) { - return imageResolver.resolve(albumArtId); - } - return null; - } - public static class ProgramInfoComparator implements Comparator<RadioManager.ProgramInfo> { - @Override - public int compare(RadioManager.ProgramInfo info1, RadioManager.ProgramInfo info2) { - Comparator<ProgramSelector> selectorComparator = - new ProgramSelectorExt.ProgramSelectorComparator(); - return selectorComparator.compare(info1.getSelector(), info2.getSelector()); - } - } -}
diff --git a/car-broadcastradio-support/src/com/android/car/broadcastradio/support/platform/ProgramSelectorExt.java b/car-broadcastradio-support/src/com/android/car/broadcastradio/support/platform/ProgramSelectorExt.java deleted file mode 100644 index c0a4390..0000000 --- a/car-broadcastradio-support/src/com/android/car/broadcastradio/support/platform/ProgramSelectorExt.java +++ /dev/null
@@ -1,653 +0,0 @@ -/** - * Copyright (C) 2018 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. - */ - -package com.android.car.broadcastradio.support.platform; - -import android.hardware.radio.ProgramSelector; -import android.hardware.radio.ProgramSelector.Identifier; -import android.hardware.radio.RadioManager; -import android.net.Uri; -import android.util.Log; - -import androidx.annotation.IntDef; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; - -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.text.DecimalFormat; -import java.util.ArrayList; -import java.util.Comparator; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.function.BiConsumer; -import java.util.function.BiFunction; - -/** - * Proposed extensions to android.hardware.radio.ProgramSelector. - * - * They might eventually get pushed to the framework. - */ -public class ProgramSelectorExt { - private static final String TAG = "BcRadioApp.pselext"; - - /** - * If this is AM/FM channel (or any other technology using different modulations), - * don't return modulation part. - */ - public static final int NAME_NO_MODULATION = 1 << 0; - - /** - * Return only modulation part of channel name. - * - * If this is not a radio technology using modulation, return nothing - * (unless combined with other _ONLY flags in the future). - * - * If this returns non-null string, it's guaranteed that {@link #NAME_NO_MODULATION} - * will return the complement of channel name. - */ - public static final int NAME_MODULATION_ONLY = 1 << 1; - - /** - * If the channel name is not human-readable (i.e. DAB SId), radio technology is displayed - * instead. This flag prevents that. - * - * With radio technology fallback, null pointer may still be returned in case of unsupported - * radio technologies. - */ - public static final int NAME_NO_PROGRAM_TYPE_FALLBACK = 1 << 2; - - /** - * Flags to control how channel values are converted to string with {@link #getDisplayName}. - * - * Upper 16 bits are reserved for {@link ProgramInfoExt.NameFlag}. - */ - @IntDef(flag = true, value = { - NAME_NO_MODULATION, - NAME_MODULATION_ONLY, - }) - @Retention(RetentionPolicy.SOURCE) - public @interface NameFlag {} - - /** - * Invalid value for a {@link ProgramSelector.Identifier} - */ - public static int INVALID_IDENTIFIER_VALUE = 0; - - private static final String URI_SCHEME_BROADCASTRADIO = "broadcastradio"; - private static final String URI_AUTHORITY_PROGRAM = "program"; - private static final String URI_VENDOR_PREFIX = "VENDOR_"; - private static final String URI_HEX_PREFIX = "0x"; - - private static final DecimalFormat FORMAT_FM = new DecimalFormat("###.#"); - - private static final Map<Integer, String> ID_TO_URI = new HashMap<>(); - private static final Map<String, Integer> URI_TO_ID = new HashMap<>(); - - /** - * New proposed constructor for {@link ProgramSelector}. - * - * As opposed to the current platform API, this one matches more closely simplified HAL 2.0. - * - * @param primaryId primary program identifier. - * @param secondaryIds list of secondary program identifiers. - */ - public static @NonNull ProgramSelector newProgramSelector(@NonNull Identifier primaryId, - @Nullable Identifier[] secondaryIds) { - return new ProgramSelector( - identifierToProgramType(primaryId), - primaryId, secondaryIds, null); - } - - // when pushed to the framework, remove similar code from HAL 2.0 service - private static int identifierToProgramType( - @NonNull Identifier primaryId) { - int idType = primaryId.getType(); - switch (idType) { - case ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY: - if (isAmFrequency(primaryId.getValue())) { - return ProgramSelector.PROGRAM_TYPE_AM; - } else { - return ProgramSelector.PROGRAM_TYPE_FM; - } - case ProgramSelector.IDENTIFIER_TYPE_RDS_PI: - return ProgramSelector.PROGRAM_TYPE_FM; - case ProgramSelector.IDENTIFIER_TYPE_HD_STATION_ID_EXT: - if (isAmFrequency(IdentifierExt.asHdPrimary(primaryId).getFrequency())) { - return ProgramSelector.PROGRAM_TYPE_AM_HD; - } else { - return ProgramSelector.PROGRAM_TYPE_FM_HD; - } - case ProgramSelector.IDENTIFIER_TYPE_DAB_SIDECC: - case ProgramSelector.IDENTIFIER_TYPE_DAB_ENSEMBLE: - case ProgramSelector.IDENTIFIER_TYPE_DAB_SCID: - case ProgramSelector.IDENTIFIER_TYPE_DAB_FREQUENCY: - return ProgramSelector.PROGRAM_TYPE_DAB; - case ProgramSelector.IDENTIFIER_TYPE_DRMO_SERVICE_ID: - case ProgramSelector.IDENTIFIER_TYPE_DRMO_FREQUENCY: - return ProgramSelector.PROGRAM_TYPE_DRMO; - case ProgramSelector.IDENTIFIER_TYPE_SXM_SERVICE_ID: - case ProgramSelector.IDENTIFIER_TYPE_SXM_CHANNEL: - return ProgramSelector.PROGRAM_TYPE_SXM; - } - if (idType >= ProgramSelector.IDENTIFIER_TYPE_VENDOR_PRIMARY_START - && idType <= ProgramSelector.IDENTIFIER_TYPE_VENDOR_PRIMARY_END) { - return idType; - } - return ProgramSelector.PROGRAM_TYPE_INVALID; - } - - /** - * Checks, if a given AM frequency is roughly valid and in correct unit. - * - * It does not check the range precisely: it may provide false positives, but not false - * negatives. In particular, it may be way off for certain regions. - * The main purpose is to avoid passing inproper units, ie. MHz instead of kHz. - * It also can be used to check if a given frequency is likely to be used - * with AM or FM modulation. - * - * @param frequencyKhz the frequency in kHz. - * @return true, if the frequency is rougly valid. - */ - public static boolean isAmFrequency(long frequencyKhz) { - return frequencyKhz > 150 && frequencyKhz <= 30000; - } - - /** - * Checks, if a given FM frequency is roughly valid and in correct unit. - * - * It does not check the range precisely: it may provide false positives, but not false - * negatives. In particular, it may be way off for certain regions. - * The main purpose is to avoid passing inproper units, ie. MHz instead of kHz. - * It also can be used to check if a given frequency is likely to be used - * with AM or FM modulation. - * - * @param frequencyKhz the frequency in kHz. - * @return true, if the frequency is rougly valid. - */ - public static boolean isFmFrequency(long frequencyKhz) { - return frequencyKhz > 60000 && frequencyKhz < 110000; - } - - /** - * Provides human-readable representation of AM/FM frequency. - * - * @param frequencyKhz the frequency in kHz. - * @param flags flags that affect display format - * @return human-readable formatted frequency - */ - public static @Nullable String formatAmFmFrequency(long frequencyKhz, @NameFlag int flags) { - String channel; - String modulation; - - if (isAmFrequency(frequencyKhz)) { - channel = Long.toString(frequencyKhz); - modulation = "AM"; - } else if (isFmFrequency(frequencyKhz)) { - channel = FORMAT_FM.format(frequencyKhz / 1000f); - modulation = "FM"; - } else { - Log.w(TAG, "AM/FM frequency out of range: " + frequencyKhz); - return null; - } - - if ((flags & NAME_MODULATION_ONLY) != 0) return modulation; - if ((flags & NAME_NO_MODULATION) != 0) return channel; - return channel + ' ' + modulation; - } - - /** - * Builds new ProgramSelector for AM/FM frequency. - * - * @param frequencyKhz the frequency in kHz. - * @return new ProgramSelector object representing given frequency. - * @throws IllegalArgumentException if provided frequency is out of bounds. - */ - public static @NonNull ProgramSelector createAmFmSelector(long frequencyKhz) { - if (frequencyKhz < 0 || frequencyKhz > Integer.MAX_VALUE) { - throw new IllegalArgumentException("illegal frequency value: " + frequencyKhz); - } - return ProgramSelector.createAmFmSelector(RadioManager.BAND_INVALID, (int) frequencyKhz); - } - - /** - * Checks, if {@link ProgramSelector} contains an id of a given type. - * - * @param sel selector being checked - * @param type identifier type to check for - * @return true, if sel contains any identifier of a given type - */ - public static boolean hasId(@NonNull ProgramSelector sel, int type) { - try { - sel.getFirstId(type); - return true; - } catch (IllegalArgumentException e) { - return false; - } - } - - /** - * Checks, if {@link ProgramSelector} is a AM/FM program. - * - * @return true, if the primary identifier of a selector belongs to one of the following - * technologies: - * - Analogue AM/FM - * - FM RDS - * - HD Radio AM/FM - */ - public static boolean isAmFmProgram(@NonNull ProgramSelector sel) { - int priType = sel.getPrimaryId().getType(); - return priType == ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY - || priType == ProgramSelector.IDENTIFIER_TYPE_RDS_PI - || priType == ProgramSelector.IDENTIFIER_TYPE_HD_STATION_ID_EXT; - } - - /** - * Get frequency from a {@link ProgramSelector}. - * - * @param selector Program selector - * @return frequency of the first {@link ProgramSelector#IDENTIFIER_TYPE_AMFM_FREQUENCY} id in - * program selector if it exists, otherwise the AM/FM frequency in - * {@link ProgramSelector#IDENTIFIER_TYPE_HD_STATION_ID_EXT} id if it is the primary id, - * {@link #INVALID_IDENTIFIER_VALUE} otherwise. - */ - public static int getFrequency(@NonNull ProgramSelector selector) { - if (ProgramSelectorExt.hasId(selector, ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY)) { - return (int) selector.getFirstId(ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY); - } else if (selector.getPrimaryId().getType() - == ProgramSelector.IDENTIFIER_TYPE_HD_STATION_ID_EXT) { - return IdentifierExt.asHdPrimary(selector.getPrimaryId()).getFrequency(); - } else if (selector.getPrimaryId().getType() - == ProgramSelector.IDENTIFIER_TYPE_DAB_DMB_SID_EXT - || selector.getPrimaryId().getType() - == ProgramSelector.IDENTIFIER_TYPE_DAB_SID_EXT) { - try { - return (int) selector.getFirstId(ProgramSelector.IDENTIFIER_TYPE_DAB_FREQUENCY); - } catch (IllegalArgumentException e) { - return INVALID_IDENTIFIER_VALUE; - } - } - return INVALID_IDENTIFIER_VALUE; - } - - /** - * Get ensemble value from a DAB-type {@link ProgramSelector}. - * - * @param selector Program selector - * @return Value of the first {@link ProgramSelector#IDENTIFIER_TYPE_DAB_ENSEMBLE} identifier, - * 0 otherwise - */ - public static int getDabEnsemble(@NonNull ProgramSelector selector) { - try { - return (int) selector.getFirstId(ProgramSelector.IDENTIFIER_TYPE_DAB_ENSEMBLE); - } catch (IllegalArgumentException e) { - return INVALID_IDENTIFIER_VALUE; - } - } - - /** - * Returns a channel name that can be displayed to the user. - * - * <p>It's implemented only for radio technologies where the channel is meant - * to be presented to the user, such as FM/AM and HD radio. - * - * <p>For HD radio, the display name is prefix with "-HD[NUMBER]" where the number is the - * sub channel. - * - * @param sel the program selector - * @return Channel name or {@code null}, if radio technology doesn't present channel names to - * the user. - */ - public static @Nullable String getDisplayName(@NonNull ProgramSelector sel, - @NameFlag int flags) { - boolean noProgramTypeFallback = (flags & NAME_NO_PROGRAM_TYPE_FALLBACK) != 0; - - if (isAmFmProgram(sel)) { - long freq; - String hdSuffix = ""; - if (sel.getPrimaryId().getType() - == ProgramSelector.IDENTIFIER_TYPE_HD_STATION_ID_EXT) { - IdentifierExt.HdPrimary hdIdExt = IdentifierExt.asHdPrimary(sel.getPrimaryId()); - freq = hdIdExt.getFrequency(); - hdSuffix = "-HD" + (hdIdExt.getSubchannel() + 1); - } else if (hasId(sel, ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY)) { - freq = sel.getFirstId(ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY); - } else { - if (noProgramTypeFallback) return null; - // if there is no frequency assigned, let's assume it's a malformed RDS selector - return "FM"; - } - return formatAmFmFrequency(freq, flags) + hdSuffix; - } - - if ((flags & NAME_MODULATION_ONLY) != 0) return null; - - if (sel.getPrimaryId().getType() == ProgramSelector.IDENTIFIER_TYPE_SXM_SERVICE_ID - && hasId(sel, ProgramSelector.IDENTIFIER_TYPE_SXM_CHANNEL)) { - return Long.toString(sel.getFirstId(ProgramSelector.IDENTIFIER_TYPE_SXM_CHANNEL)); - } - - if (noProgramTypeFallback) return null; - - switch (sel.getPrimaryId().getType()) { - case ProgramSelector.IDENTIFIER_TYPE_SXM_SERVICE_ID: - return "SXM"; - case ProgramSelector.IDENTIFIER_TYPE_DAB_SID_EXT: - case ProgramSelector.IDENTIFIER_TYPE_DAB_DMB_SID_EXT: - return "DAB"; - case ProgramSelector.IDENTIFIER_TYPE_DRMO_SERVICE_ID: - return "DRMO"; - default: - return null; - } - } - - static { - BiConsumer<Integer, String> add = (idType, name) -> { - ID_TO_URI.put(idType, name); - URI_TO_ID.put(name, idType); - }; - - add.accept(ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY, "AMFM_FREQUENCY"); - add.accept(ProgramSelector.IDENTIFIER_TYPE_RDS_PI, "RDS_PI"); - add.accept(ProgramSelector.IDENTIFIER_TYPE_HD_STATION_ID_EXT, "HD_STATION_ID_EXT"); - add.accept(ProgramSelector.IDENTIFIER_TYPE_HD_STATION_NAME, "HD_STATION_NAME"); - add.accept(ProgramSelector.IDENTIFIER_TYPE_DAB_SID_EXT, "DAB_SID_EXT"); - add.accept(ProgramSelector.IDENTIFIER_TYPE_DAB_ENSEMBLE, "DAB_ENSEMBLE"); - add.accept(ProgramSelector.IDENTIFIER_TYPE_DAB_SCID, "DAB_SCID"); - add.accept(ProgramSelector.IDENTIFIER_TYPE_DAB_FREQUENCY, "DAB_FREQUENCY"); - add.accept(ProgramSelector.IDENTIFIER_TYPE_DRMO_SERVICE_ID, "DRMO_SERVICE_ID"); - add.accept(ProgramSelector.IDENTIFIER_TYPE_DRMO_FREQUENCY, "DRMO_FREQUENCY"); - add.accept(ProgramSelector.IDENTIFIER_TYPE_SXM_SERVICE_ID, "SXM_SERVICE_ID"); - add.accept(ProgramSelector.IDENTIFIER_TYPE_SXM_CHANNEL, "SXM_CHANNEL"); - } - - private static @Nullable String typeToUri(int identifierType) { - if (identifierType >= ProgramSelector.IDENTIFIER_TYPE_VENDOR_START - && identifierType <= ProgramSelector.IDENTIFIER_TYPE_VENDOR_END) { - int idx = identifierType - ProgramSelector.IDENTIFIER_TYPE_VENDOR_START; - return URI_VENDOR_PREFIX + idx; - } - return ID_TO_URI.get(identifierType); - } - - private static int uriToType(@Nullable String typeUri) { - if (typeUri == null) return ProgramSelector.IDENTIFIER_TYPE_INVALID; - if (typeUri.startsWith(URI_VENDOR_PREFIX)) { - int idx; - try { - idx = Integer.parseInt(typeUri.substring(URI_VENDOR_PREFIX.length())); - } catch (NumberFormatException ex) { - return ProgramSelector.IDENTIFIER_TYPE_INVALID; - } - if (idx > ProgramSelector.IDENTIFIER_TYPE_VENDOR_END - - ProgramSelector.IDENTIFIER_TYPE_VENDOR_START) { - return ProgramSelector.IDENTIFIER_TYPE_INVALID; - } - return ProgramSelector.IDENTIFIER_TYPE_VENDOR_START + idx; - } - return URI_TO_ID.get(typeUri); - } - - private static @NonNull String valueToUri(@NonNull Identifier id) { - long val = id.getValue(); - switch (id.getType()) { - case ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY: - case ProgramSelector.IDENTIFIER_TYPE_DAB_FREQUENCY: - case ProgramSelector.IDENTIFIER_TYPE_DRMO_FREQUENCY: - case ProgramSelector.IDENTIFIER_TYPE_SXM_CHANNEL: - return Long.toString(val); - default: - return URI_HEX_PREFIX + Long.toHexString(val); - } - } - - private static @Nullable Long uriToValue(@Nullable String valUri) { - if (valUri == null) return null; - try { - if (valUri.startsWith(URI_HEX_PREFIX)) { - return Long.parseLong(valUri.substring(URI_HEX_PREFIX.length()), 16); - } else { - return Long.parseLong(valUri, 10); - } - } catch (NumberFormatException ex) { - return null; - } - } - - /** - * Serialize {@link ProgramSelector} to URI. - * - * @param sel selector to serialize - * @return serialized form of selector - */ - public static @Nullable Uri toUri(@NonNull ProgramSelector sel) { - Identifier pri = sel.getPrimaryId(); - String priType = typeToUri(pri.getType()); - // unsupported primary identifier, might be from future HAL revision - if (priType == null) return null; - - Uri.Builder uri = new Uri.Builder() - .scheme(URI_SCHEME_BROADCASTRADIO) - .authority(URI_AUTHORITY_PROGRAM) - .appendPath(priType) - .appendPath(valueToUri(pri)); - - for (Identifier sec : sel.getSecondaryIds()) { - String secType = typeToUri(sec.getType()); - if (secType == null) continue; // skip unsupported secondary identifier - uri.appendQueryParameter(secType, valueToUri(sec)); - } - return uri.build(); - } - - /** - * Parse serialized {@link ProgramSelector}. - * - * @param uri URI-zed form of ProgramSelector - * @return de-serialized object or null, if couldn't parse - */ - public static @Nullable ProgramSelector fromUri(@Nullable Uri uri) { - if (uri == null) return null; - - if (!URI_SCHEME_BROADCASTRADIO.equals(uri.getScheme())) return null; - if (!URI_AUTHORITY_PROGRAM.equals(uri.getAuthority())) { - Log.w(TAG, "Unknown URI authority part (might be a future, unsupported version): " - + uri.getAuthority()); - return null; - } - - BiFunction<String, String, Identifier> parseComponents = (typeStr, valueStr) -> { - int type = uriToType(typeStr); - Long value = uriToValue(valueStr); - if (type == ProgramSelector.IDENTIFIER_TYPE_INVALID || value == null) return null; - return new Identifier(type, value); - }; - - List<String> priUri = uri.getPathSegments(); - if (priUri.size() != 2) return null; - Identifier pri = parseComponents.apply(priUri.get(0), priUri.get(1)); - if (pri == null) return null; - - String query = uri.getQuery(); - List<Identifier> secIds = new ArrayList<>(); - if (query != null) { - for (String secPair : query.split("&")) { - String[] secStr = secPair.split("="); - if (secStr.length != 2) continue; - Identifier sec = parseComponents.apply(secStr[0], secStr[1]); - if (sec != null) secIds.add(sec); - } - } - - return newProgramSelector(pri, secIds.toArray(new Identifier[secIds.size()])); - } - - /** - * Proposed extensions to android.hardware.radio.ProgramSelector.Identifier. - * - * They might eventually get pushed to the framework. - */ - public static class IdentifierExt { - /** - * Decoder of {@link ProgramSelector#IDENTIFIER_TYPE_HD_STATION_ID_EXT} value. - * - * When pushed to the framework, it will be non-static class referring - * to the original value. - */ - public static @Nullable HdPrimary asHdPrimary(@NonNull Identifier id) { - if (id.getType() == ProgramSelector.IDENTIFIER_TYPE_HD_STATION_ID_EXT) { - return new HdPrimary(id.getValue()); - } - return null; - } - - /** - * Decoder of {@link ProgramSelector#IDENTIFIER_TYPE_HD_STATION_ID_EXT} value. - * - * When pushed to the framework, it will be non-static class referring - * to the original value. - */ - public static class HdPrimary { - /* For mValue format (bit shifts and bit masks), please refer to - * HD_STATION_ID_EXT from broadcastradio HAL 2.0. - */ - private final long mValue; - - private HdPrimary(long value) { - mValue = value; - } - - public long getStationId() { - return mValue & 0xFFFFFFFFL; - } - - public int getSubchannel() { - return (int) ((mValue >>> 32) & 0xF); - } - - public int getFrequency() { - return (int) ((mValue >>> (32 + 4)) & 0x3FFFF); - } - } - - /** - * Decoder of {@link ProgramSelector#IDENTIFIER_TYPE_DAB_DMB_SID_EXT} value. - * - * <p>When pushed to the framework, it will be non-static class referring - * to the original value. - * @param id Identifier to be decoded - * @return {@link DabPrimary} object if the identifier is DAB-type, {@code null} otherwise - */ - public static @Nullable DabPrimary asDabPrimary(@NonNull Identifier id) { - if (id.getType() == ProgramSelector.IDENTIFIER_TYPE_DAB_DMB_SID_EXT) { - return new DabPrimary(id.getValue()); - } - return null; - } - - /** - * Decoder of {@link ProgramSelector#IDENTIFIER_TYPE_DAB_DMB_SID_EXT} value. - * - * <p>When pushed to the framework, it will be non-static class referring - * to the original value. - */ - public static class DabPrimary { - private final long mValue; - - private DabPrimary(long value) { - mValue = value; - } - - /** - * Get Service Identifier (SId). - * @return SId value - */ - public int getSId() { - return (int) (mValue & 0xFFFFFFFF); - } - - /** - * Get Extended Country Code (ECC) - * @return Extended Country Code - */ - public int getEcc() { - return (int) ((mValue >>> 32) & 0xFF); - } - - /** - * Get SCIdS (Service Component Identifier within the Service) value - * @return SCIdS value - */ - public int getSCIdS() { - return (int) ((mValue >>> (32 + 8)) & 0xF); - } - } - } - - public static class ProgramSelectorComparator implements Comparator<ProgramSelector> { - @Override - public int compare(ProgramSelector selector1, ProgramSelector selector2) { - int type1 = selector1.getPrimaryId().getType(); - int type2 = selector2.getPrimaryId().getType(); - int frequency1 = getFrequency(selector1); - int frequency2 = getFrequency(selector2); - if (isAmFmProgram(selector1) && isAmFmProgram(selector2)) { - if (frequency1 != frequency2) { - return frequency1 > frequency2 ? 1 : -1; - } - int subchannel1 = selector1.getPrimaryId().getType() - == ProgramSelector.IDENTIFIER_TYPE_HD_STATION_ID_EXT - ? IdentifierExt.asHdPrimary(selector1.getPrimaryId()).getSubchannel() : 0; - int subchannel2 = selector2.getPrimaryId().getType() - == ProgramSelector.IDENTIFIER_TYPE_HD_STATION_ID_EXT - ? IdentifierExt.asHdPrimary(selector2.getPrimaryId()).getSubchannel() : 0; - if (subchannel1 != subchannel2) { - return subchannel1 > subchannel2 ? 1 : -1; - } - return selector1.getPrimaryId().getType() - selector2.getPrimaryId().getType(); - } else if (type1 == ProgramSelector.IDENTIFIER_TYPE_DAB_DMB_SID_EXT - && type2 == ProgramSelector.IDENTIFIER_TYPE_DAB_DMB_SID_EXT) { - if (frequency1 != frequency2) { - return frequency1 > frequency2 ? 1 : -1; - } - IdentifierExt.DabPrimary dabPrimary1 = IdentifierExt.asDabPrimary( - selector1.getPrimaryId()); - IdentifierExt.DabPrimary dabPrimary2 = IdentifierExt.asDabPrimary( - selector2.getPrimaryId()); - int ecc1 = dabPrimary1.getEcc(); - int ecc2 = dabPrimary2.getEcc(); - if (ecc1 != ecc2) { - return ecc1 > ecc2 ? 1 : -1; - } - int sId1 = dabPrimary1.getSId(); - int sId2 = dabPrimary2.getSId(); - if (sId1 != sId2) { - return sId1 > sId2 ? 1 : -1; - } - int sCIds1 = dabPrimary1.getSCIdS(); - int sCIds2 = dabPrimary2.getSCIdS(); - if (sCIds1 != sCIds2) { - return sCIds1 > sCIds2 ? 1 : -1; - } - return getDabEnsemble(selector1) > getDabEnsemble(selector2) ? 1 : -1; - } - return type1 > type2 || (type1 == type2 && selector1.getPrimaryId().getValue() - > selector2.getPrimaryId().getValue()) ? 1 : -1; - } - } -}
diff --git a/car-broadcastradio-support/src/com/android/car/broadcastradio/support/platform/RadioMetadataExt.java b/car-broadcastradio-support/src/com/android/car/broadcastradio/support/platform/RadioMetadataExt.java deleted file mode 100644 index 4192e83..0000000 --- a/car-broadcastradio-support/src/com/android/car/broadcastradio/support/platform/RadioMetadataExt.java +++ /dev/null
@@ -1,69 +0,0 @@ -/** - * Copyright (C) 2018 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. - */ - -package com.android.car.broadcastradio.support.platform; - -import static android.hardware.radio.RadioMetadata.METADATA_KEY_ART; -import static android.hardware.radio.RadioMetadata.METADATA_KEY_ICON; - -import android.hardware.radio.RadioMetadata; - -import androidx.annotation.NonNull; - -/** - * Proposed extensions to android.hardware.radio.RadioMetadata. - * - * They might eventually get pushed to the framework. - */ -public class RadioMetadataExt { - private static int sModuleId; - - /** - * A hack to inject module ID for getGlobalBitmapId. When pushed to the framework, - * it will be set with RadioMetadata object creation or just separate int field. - * @hide - */ - public static void setModuleId(int id) { - sModuleId = id; - } - - /** - * Proposed redefinition of {@link RadioMetadata#getBitmapId}. - * - * {@link RadioMetadata#getBitmapId} isn't part of the system API yet, so we can skip - * deprecation here and jump straight to the correct solution. - */ - public static long getGlobalBitmapId(@NonNull RadioMetadata meta, @NonNull String key) { - int localId = getBitmapId(meta, key); - if (localId == 0) return 0; - - /* When generating global bitmap ID, we want them to remain stable between sessions - * (radio app might cache images to disk between sessions). - * - * Local IDs are already stable, but module ID is not guaranteed to be stable (i.e. some - * module might be not available at each boot, due to HW failure). - * - * When we push this to the framework, we will need persistence mechanism at the radio - * service to permanently match modules to their IDs. - */ - return ((long) sModuleId << 32) | localId; - } - - private static int getBitmapId(@NonNull RadioMetadata meta, @NonNull String key) { - if (!METADATA_KEY_ICON.equals(key) && !METADATA_KEY_ART.equals(key)) return 0; - return meta.getInt(key); - } -}
diff --git a/car-broadcastradio-support/tests/Android.bp b/car-broadcastradio-support/tests/Android.bp deleted file mode 100644 index 2cbca39..0000000 --- a/car-broadcastradio-support/tests/Android.bp +++ /dev/null
@@ -1,42 +0,0 @@ -// -// Copyright (C) 2024 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. -// - -package { - default_team: "trendy_team_aaos_framework", - default_applicable_licenses: ["Android-Apache-2.0"], -} - -android_test { - name: "CarBroadcastRadioSupportTests", - platform_apis: true, - srcs: ["src/**/*.java"], - static_libs: [ - "car-broadcastradio-support", - "androidx.test.rules", - "truth", - "mockito-target-extended", - ], - libs: ["android.test.base"], - test_suites: [ - "general-tests", - "automotive-general-tests", - ], - // mockito-target-inline dependency - jni_libs: [ - "libdexmakerjvmtiagent", - "libstaticjvmtiagent", - ], -}
diff --git a/car-broadcastradio-support/tests/AndroidManifest.xml b/car-broadcastradio-support/tests/AndroidManifest.xml deleted file mode 100644 index 458effa..0000000 --- a/car-broadcastradio-support/tests/AndroidManifest.xml +++ /dev/null
@@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2024 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. ---> - -<manifest xmlns:android="http://schemas.android.com/apk/res/android" - package="com.android.car.broadcastradio.tests"> - - <application android:debuggable="true"> - <uses-library android:name="android.test.runner" /> - </application> - - <instrumentation - android:name="androidx.test.runner.AndroidJUnitRunner" - android:targetPackage="com.android.car.broadcastradio.tests" - android:label="Tests for Car Broadcast Radio Support" > - </instrumentation> -</manifest> \ No newline at end of file
diff --git a/car-broadcastradio-support/tests/src/com/android/car/broadcastradio/support/platform/ProgramInfoExtTest.java b/car-broadcastradio-support/tests/src/com/android/car/broadcastradio/support/platform/ProgramInfoExtTest.java deleted file mode 100644 index 37e74dc..0000000 --- a/car-broadcastradio-support/tests/src/com/android/car/broadcastradio/support/platform/ProgramInfoExtTest.java +++ /dev/null
@@ -1,203 +0,0 @@ -/** - * Copyright (C) 2024 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. - */ - -package com.android.car.broadcastradio.support.platform; - -import static org.mockito.Mockito.when; - -import android.graphics.Bitmap; -import android.hardware.radio.ProgramSelector; -import android.hardware.radio.RadioManager; -import android.hardware.radio.RadioMetadata; -import android.support.v4.media.MediaMetadataCompat; - -import com.google.common.truth.Expect; - -import org.junit.Rule; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.Mockito; -import org.mockito.junit.MockitoJUnitRunner; - -import java.util.Comparator; - -@RunWith(MockitoJUnitRunner.class) -public final class ProgramInfoExtTest { - - private static final long FM_FREQUENCY = 88_500; - private static final String RDS_VALUE = "TestRds"; - private static final String PROGRAM_NAME_VALUE = "TestProgramName"; - private static final String TITLE_VALUE = "TestTitle"; - private static final String ARTIST_VALUE = "TestArtist"; - private static final String ALBUM_VALUE = "TestAlbum"; - private static final int ART_VALUE = 1; - private static final ProgramSelector.Identifier FM_IDENTIFIER = new ProgramSelector.Identifier( - ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY, FM_FREQUENCY); - private static final ProgramSelector FM_SELECTOR = new ProgramSelector( - ProgramSelector.PROGRAM_TYPE_FM, FM_IDENTIFIER, /* secondaryIds= */ null, - /* vendorIds= */ null); - private static final ProgramSelector.Identifier DAB_DMB_SID_EXT_IDENTIFIER = - new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_DAB_DMB_SID_EXT, - 0xA000000111L); - private static final ProgramSelector.Identifier DAB_ENSEMBLE_IDENTIFIER = - new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_DAB_ENSEMBLE, - /* value= */ 0x1001); - private static final ProgramSelector.Identifier DAB_FREQUENCY_IDENTIFIER = - new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_DAB_FREQUENCY, - /* value= */ 220_352); - private static final ProgramSelector DAB_SELECTOR = new ProgramSelector( - ProgramSelector.PROGRAM_TYPE_DAB, DAB_DMB_SID_EXT_IDENTIFIER, - new ProgramSelector.Identifier[]{DAB_FREQUENCY_IDENTIFIER, DAB_ENSEMBLE_IDENTIFIER}, - /* vendorIds= */ null); - private static final RadioMetadata RADIO_METADATA = new RadioMetadata.Builder() - .putString(RadioMetadata.METADATA_KEY_RDS_PS, RDS_VALUE) - .putString(RadioMetadata.METADATA_KEY_PROGRAM_NAME, PROGRAM_NAME_VALUE) - .putString(RadioMetadata.METADATA_KEY_TITLE, TITLE_VALUE) - .putString(RadioMetadata.METADATA_KEY_ARTIST, ARTIST_VALUE) - .putString(RadioMetadata.METADATA_KEY_ALBUM, ALBUM_VALUE) - .putInt(RadioMetadata.METADATA_KEY_ART, ART_VALUE).build(); - private static final RadioMetadata EMPTY_RADIO_METADATA = new RadioMetadata.Builder().build(); - private static final RadioManager.ProgramInfo FM_INFO = new RadioManager.ProgramInfo( - FM_SELECTOR, FM_IDENTIFIER, FM_IDENTIFIER, /* relatedContents= */ null, - /* infoFlags= */ 0, /* signalQuality= */ 1, RADIO_METADATA, - /* vendorInfo= */ null); - private static final RadioManager.ProgramInfo FM_INFO_WITH_EMPTY_METADATA = - new RadioManager.ProgramInfo(FM_SELECTOR, FM_IDENTIFIER, FM_IDENTIFIER, - /* relatedContents= */ null, /* infoFlags= */ 0, /* signalQuality= */ 1, - EMPTY_RADIO_METADATA, /* vendorInfo= */ null); - private static final RadioManager.ProgramInfo DAB_INFO_WITH_EMPTY_METADATA = - new RadioManager.ProgramInfo(DAB_SELECTOR, DAB_DMB_SID_EXT_IDENTIFIER, - DAB_FREQUENCY_IDENTIFIER, /* relatedContents= */ null, /* infoFlags= */ 0, - /* signalQuality= */ 1, EMPTY_RADIO_METADATA, /* vendorInfo= */ null); - - private static final Comparator<ProgramSelector> SELECTOR_COMPARATOR = - new ProgramSelectorExt.ProgramSelectorComparator(); - private static final Comparator<RadioManager.ProgramInfo> PROGRAM_INFO_COMPARATOR = - new ProgramInfoExt.ProgramInfoComparator(); - - @Rule - public final Expect mExpect = Expect.create(); - - @Test - public void getProgramName() { - mExpect.withMessage("Program name") - .that(ProgramInfoExt.getProgramName(FM_INFO, /* flags= */ 0)) - .isEqualTo(PROGRAM_NAME_VALUE); - } - - @Test - public void getProgramName_withProgramNameOrder() { - String[] programNameOrder = new String[] {RadioMetadata.METADATA_KEY_RDS_PS, - RadioMetadata.METADATA_KEY_PROGRAM_NAME}; - - mExpect.withMessage("Program name with self-defined program name order") - .that(ProgramInfoExt.getProgramName(FM_INFO, /* flags= */ 0, programNameOrder)) - .isEqualTo(RDS_VALUE); - } - - @Test - public void getProgramName_forFmSelectorWithoutProgramNameMetadata() { - String expectedName = ProgramSelectorExt.formatAmFmFrequency( - FM_INFO_WITH_EMPTY_METADATA.getPhysicallyTunedTo().getValue(), /* flags= */ 0); - - mExpect.withMessage("FM Program name without program name metadata") - .that(ProgramInfoExt.getProgramName(FM_INFO_WITH_EMPTY_METADATA, /* flags= */ 0)) - .isEqualTo(expectedName); - } - - @Test - public void getProgramName_forDabProgramWithoutProgramNameMetadata() { - String expectedName = ProgramSelectorExt.getDisplayName( - DAB_INFO_WITH_EMPTY_METADATA.getSelector(), /* flags= */ 0); - - mExpect.withMessage("DAB Program name without program name metadata") - .that(ProgramInfoExt.getProgramName(DAB_INFO_WITH_EMPTY_METADATA, /* flags= */ 0)) - .isEqualTo(expectedName); - } - - @Test - public void getMetadata() { - mExpect.withMessage("FM radio metadata") - .that(ProgramInfoExt.getMetadata(FM_INFO)).isEqualTo(RADIO_METADATA); - } - - @Test - public void getMetadata_withNullMetadata() { - RadioManager.ProgramInfo infoWithNullMetadata = new RadioManager.ProgramInfo( - FM_SELECTOR, FM_IDENTIFIER, FM_IDENTIFIER, /* relatedContents= */ null, - /* infoFlags= */ 0, /* signalQuality= */ 1, /* metadata= */ null, - /* vendorInfo= */ null); - - mExpect.withMessage("FM radio metadata with null metadata") - .that(ProgramInfoExt.getMetadata(infoWithNullMetadata)) - .isEqualTo(EMPTY_RADIO_METADATA); - } - - @Test - public void toMediaDisplayMetadata() { - String[] programNameOrder = new String[] {RadioMetadata.METADATA_KEY_RDS_PS, - RadioMetadata.METADATA_KEY_PROGRAM_NAME}; - Bitmap bitmapMock = Mockito.mock(Bitmap.class); - ImageResolver imageResolver = Mockito.mock(ImageResolver.class); - when(imageResolver.resolve(ART_VALUE)).thenReturn(bitmapMock); - - MediaMetadataCompat mediaDisplayMetadata = ProgramInfoExt.toMediaDisplayMetadata(FM_INFO, - /* isFavorite= */ true, imageResolver, programNameOrder); - - mExpect.withMessage("Media display title in media display metadata") - .that(mediaDisplayMetadata.getString( - MediaMetadataCompat.METADATA_KEY_DISPLAY_TITLE)) - .isEqualTo(ProgramSelectorExt.getDisplayName(FM_INFO.getSelector(), - FM_INFO.getChannel())); - mExpect.withMessage("Media display subtitle in media display metadata") - .that(mediaDisplayMetadata.getString( - MediaMetadataCompat.METADATA_KEY_DISPLAY_SUBTITLE)) - .isEqualTo(ProgramInfoExt.getProgramName(FM_INFO, /* flags= */ 0, - programNameOrder)); - mExpect.withMessage("Album art in media display metadata") - .that(mediaDisplayMetadata.getBitmap( - MediaMetadataCompat.METADATA_KEY_ALBUM_ART)).isEqualTo(bitmapMock); - } - - @Test - public void toMediaMetadata() { - MediaMetadataCompat mediaMetadata = ProgramInfoExt.toMediaMetadata(FM_INFO, - /* isFavorite= */ true, /* imageResolver= */ null); - - mExpect.withMessage("Media display title").that(mediaMetadata - .getString(MediaMetadataCompat.METADATA_KEY_DISPLAY_TITLE)) - .isEqualTo(ProgramInfoExt.getProgramName(FM_INFO, /* flags= */ 0)); - mExpect.withMessage("Media title").that(mediaMetadata.getString( - MediaMetadataCompat.METADATA_KEY_TITLE)).isEqualTo(TITLE_VALUE); - mExpect.withMessage("Media artist").that(mediaMetadata.getString( - MediaMetadataCompat.METADATA_KEY_ARTIST)).isEqualTo(ARTIST_VALUE); - mExpect.withMessage("Media album").that(mediaMetadata.getString( - MediaMetadataCompat.METADATA_KEY_ALBUM)).isEqualTo(ALBUM_VALUE); - } - - @Test - public void compare_withSelectorsOfDifferentTypes() { - ProgramSelector fmSel2 = ProgramSelectorExt.createAmFmSelector(FM_FREQUENCY + 200); - RadioManager.ProgramInfo fmInfo2 = new RadioManager.ProgramInfo(fmSel2, - fmSel2.getPrimaryId(), fmSel2.getPrimaryId(), /* relatedContents= */ null, - /* infoFlags= */ 1, /* signalQuality= */ 0, new RadioMetadata.Builder().build(), - /* vendorInfo= */ null); - int expectedResult = SELECTOR_COMPARATOR.compare(fmSel2, FM_SELECTOR); - - mExpect.withMessage("Comparison between FM stations") - .that(PROGRAM_INFO_COMPARATOR.compare(fmInfo2, FM_INFO)).isEqualTo(expectedResult); - } -}
diff --git a/car-broadcastradio-support/tests/src/com/android/car/broadcastradio/support/platform/ProgramSelectorExtTest.java b/car-broadcastradio-support/tests/src/com/android/car/broadcastradio/support/platform/ProgramSelectorExtTest.java deleted file mode 100644 index 659ecfc..0000000 --- a/car-broadcastradio-support/tests/src/com/android/car/broadcastradio/support/platform/ProgramSelectorExtTest.java +++ /dev/null
@@ -1,356 +0,0 @@ -/** - * Copyright (C) 2024 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. - */ - -package com.android.car.broadcastradio.support.platform; - -import static org.junit.Assert.assertThrows; - -import android.hardware.radio.ProgramSelector; - -import com.google.common.truth.Expect; - -import org.junit.Rule; -import org.junit.Test; - -import java.util.Comparator; - -public final class ProgramSelectorExtTest { - - private static final long AM_FREQUENCY_VALUE = 700; - private static final long FM_FREQUENCY_VALUE = 88_500; - private static final long HD_FREQUENCY_VALUE = 97_100; - private static final int HD_SUBCHANNEL_VALUE = 1; - private static final int HD_STATION_ID_VALUE = 0x01; - private static final long DAB_FREQUENCY_VALUE = 220_352; - private static final long DAB_ENSEMBLE_VALUE = 0x1001; - private static final long DAB_SID_VALUE = 0x112; - private static final int DAB_ECC_VALUE = 0xA0; - private static final int DAB_SCIDS_VALUE = 1; - private static final ProgramSelector.Identifier FM_IDENTIFIER = new ProgramSelector.Identifier( - ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY, FM_FREQUENCY_VALUE); - private static final ProgramSelector.Identifier HD_STATION_EXT_IDENTIFIER = - new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_HD_STATION_ID_EXT, - (HD_FREQUENCY_VALUE << 36) | ((long) HD_SUBCHANNEL_VALUE << 32) - | HD_STATION_ID_VALUE); - private static final ProgramSelector.Identifier DAB_DMB_SID_EXT_IDENTIFIER = - createDabSidExtId(DAB_SID_VALUE, DAB_ECC_VALUE, DAB_SCIDS_VALUE); - private static final ProgramSelector.Identifier DAB_ENSEMBLE_IDENTIFIER = - new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_DAB_ENSEMBLE, - DAB_ENSEMBLE_VALUE); - private static final ProgramSelector.Identifier DAB_FREQUENCY_IDENTIFIER = - new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_DAB_FREQUENCY, - DAB_FREQUENCY_VALUE); - private static final ProgramSelector FM_SELECTOR = new ProgramSelector( - ProgramSelector.PROGRAM_TYPE_FM, FM_IDENTIFIER, /* secondaryIds= */ null, - /* vendorIds= */ null); - private static final ProgramSelector HD_SELECTOR = new ProgramSelector( - ProgramSelector.PROGRAM_TYPE_FM_HD, HD_STATION_EXT_IDENTIFIER, - new ProgramSelector.Identifier[]{}, /* vendorIds= */ null); - private static final ProgramSelector DAB_SELECTOR = new ProgramSelector( - ProgramSelector.PROGRAM_TYPE_DAB, DAB_DMB_SID_EXT_IDENTIFIER, - new ProgramSelector.Identifier[]{DAB_FREQUENCY_IDENTIFIER, DAB_ENSEMBLE_IDENTIFIER}, - /* vendorIds= */ null); - private static final Comparator<ProgramSelector> SELECTOR_COMPARATOR = - new ProgramSelectorExt.ProgramSelectorComparator(); - - @Rule - public final Expect mExpect = Expect.create(); - - @Test - public void isAmFrequency_withAmFrequency() { - mExpect.withMessage("AM frequency") - .that(ProgramSelectorExt.isAmFrequency(AM_FREQUENCY_VALUE)).isTrue(); - } - - @Test - public void isAmFrequency_withFmFrequency() { - mExpect.withMessage("Non-AM frequency") - .that(ProgramSelectorExt.isAmFrequency(FM_FREQUENCY_VALUE)).isFalse(); - } - - @Test - public void isFmFrequency_withAmFrequency() { - mExpect.withMessage("Non-FM frequency") - .that(ProgramSelectorExt.isFmFrequency(AM_FREQUENCY_VALUE)).isFalse(); - } - - @Test - public void isFmFrequency_withFmFrequency() { - mExpect.withMessage("FM frequency") - .that(ProgramSelectorExt.isFmFrequency(FM_FREQUENCY_VALUE)).isTrue(); - } - - @Test - public void createAmFmSelector() { - mExpect.withMessage("FM selector").that(ProgramSelectorExt.createAmFmSelector( - FM_FREQUENCY_VALUE)).isEqualTo(FM_SELECTOR); - } - - @Test - public void createAmFmSelector_withInvalidFrequency_throwsException() { - long invalidFrequency = -1; - - IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { - ProgramSelectorExt.createAmFmSelector(invalidFrequency); - }); - - mExpect.withMessage("Invalid frequency exception").that(thrown).hasMessageThat() - .contains("illegal frequency value"); - } - - @Test - public void hasId_forSelectorWithIdAsPrimaryId() { - mExpect.withMessage("AM/FM id in selector").that(ProgramSelectorExt.hasId(FM_SELECTOR, - ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY)).isTrue(); - } - - @Test - public void hasId_forSelectorWithIdInSecondaryIds() { - mExpect.withMessage("DAB ensemble id in selector").that(ProgramSelectorExt.hasId( - DAB_SELECTOR, ProgramSelector.IDENTIFIER_TYPE_DAB_FREQUENCY)).isTrue(); - } - - @Test - public void hasId_forSelectorWithoutId() { - mExpect.withMessage("Id type beyond selector ids").that(ProgramSelectorExt.hasId( - HD_SELECTOR, ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY)).isFalse(); - } - - @Test - public void isAmFmProgram_withAmFmSelector() { - mExpect.withMessage("FM selector of AM/FM type program") - .that(ProgramSelectorExt.isAmFmProgram(FM_SELECTOR)).isTrue(); - } - - @Test - public void isAmFmProgram_withHdSelector() { - mExpect.withMessage("HD selector of AM/FM type program") - .that(ProgramSelectorExt.isAmFmProgram(HD_SELECTOR)).isTrue(); - } - - @Test - public void isAmFmProgram_withDabSelector() { - mExpect.withMessage("DAB selector of non-AM/FM type program") - .that(ProgramSelectorExt.isAmFmProgram(DAB_SELECTOR)).isFalse(); - } - - @Test - public void getFrequency_withAmFmSelector() { - mExpect.withMessage("Frequency of FM selector") - .that(ProgramSelectorExt.getFrequency(FM_SELECTOR)).isEqualTo(FM_FREQUENCY_VALUE); - } - - @Test - public void getFrequency_withHdSelector() { - mExpect.withMessage("Frequency of HD selector") - .that(ProgramSelectorExt.getFrequency(HD_SELECTOR)).isEqualTo(HD_FREQUENCY_VALUE); - } - - @Test - public void getFrequency_withDabSelector() { - mExpect.withMessage("Frequency of DAB selector") - .that(ProgramSelectorExt.getFrequency(DAB_SELECTOR)).isEqualTo(DAB_FREQUENCY_VALUE); - } - - @Test - public void getFrequency_withSelectorWithoutFrequency() { - ProgramSelector dabSelectorWithoutFrequency = new ProgramSelector( - ProgramSelector.PROGRAM_TYPE_DAB, DAB_DMB_SID_EXT_IDENTIFIER, - new ProgramSelector.Identifier[]{DAB_ENSEMBLE_IDENTIFIER}, /* vendorIds= */ null); - - mExpect.withMessage("Frequency of a selector without frequency") - .that(ProgramSelectorExt.getFrequency(dabSelectorWithoutFrequency)) - .isEqualTo(ProgramSelectorExt.INVALID_IDENTIFIER_VALUE); - } - - @Test - public void getDabEnsemble_withDabSelector() { - mExpect.withMessage("Ensemble of DAB selector").that( - ProgramSelectorExt.getDabEnsemble(DAB_SELECTOR)).isEqualTo(DAB_ENSEMBLE_VALUE); - } - - @Test - public void getDabEnsemble_withNonDabSelector() { - mExpect.withMessage("Ensemble of FM selector") - .that(ProgramSelectorExt.getDabEnsemble(FM_SELECTOR)) - .isEqualTo(ProgramSelectorExt.INVALID_IDENTIFIER_VALUE); - } - - @Test - public void asHdPrimary_withNonHdId() { - mExpect.withMessage("HD Primary identifier extension for FM id") - .that(ProgramSelectorExt.IdentifierExt.asHdPrimary(FM_IDENTIFIER)).isNull(); - } - - @Test - public void getStationId_forHdPrimary() { - mExpect.withMessage("Station id of HD primary identifier extension") - .that(ProgramSelectorExt.IdentifierExt.asHdPrimary(HD_STATION_EXT_IDENTIFIER) - .getStationId()).isEqualTo(HD_STATION_ID_VALUE); - } - - @Test - public void getSubchannel_forHdPrimary() { - mExpect.withMessage("Sub-channel of HD primary identifier extension") - .that(ProgramSelectorExt.IdentifierExt.asHdPrimary(HD_STATION_EXT_IDENTIFIER) - .getSubchannel()).isEqualTo(HD_SUBCHANNEL_VALUE); - } - - @Test - public void getFrequency_forHdPrimary() { - mExpect.withMessage("Frequency of HD primary identifier extension") - .that(ProgramSelectorExt.IdentifierExt.asHdPrimary(HD_STATION_EXT_IDENTIFIER) - .getFrequency()).isEqualTo(HD_FREQUENCY_VALUE); - } - - @Test - public void asDabPrimary_withNonDabId() { - mExpect.withMessage("DAB Primary identifier extension for FM id") - .that(ProgramSelectorExt.IdentifierExt.asDabPrimary(FM_IDENTIFIER)).isNull(); - } - @Test - public void getSId_forDabPrimary() { - mExpect.withMessage("Station Id of DAB primary identifier extension") - .that(ProgramSelectorExt.IdentifierExt.asDabPrimary(DAB_DMB_SID_EXT_IDENTIFIER) - .getSId()).isEqualTo(DAB_SID_VALUE); - } - - @Test - public void getEcc_forDabPrimary() { - mExpect.withMessage("ECC of DAB primary identifier extension") - .that(ProgramSelectorExt.IdentifierExt.asDabPrimary(DAB_DMB_SID_EXT_IDENTIFIER) - .getEcc()).isEqualTo(DAB_ECC_VALUE); - } - - @Test - public void getSCIdS_forDabPrimary() { - mExpect.withMessage("SCIdS of DAB primary identifier extension") - .that(ProgramSelectorExt.IdentifierExt.asDabPrimary(DAB_DMB_SID_EXT_IDENTIFIER) - .getSCIdS()).isEqualTo(DAB_SCIDS_VALUE); - } - - @Test - public void compare_withTwoFmSelectorsForProgramSelectorComparator() { - ProgramSelector fmSel2 = ProgramSelectorExt.createAmFmSelector(FM_FREQUENCY_VALUE + 200); - - mExpect.withMessage("Comparison between two FM selectors") - .that(SELECTOR_COMPARATOR.compare(FM_SELECTOR, fmSel2)).isEqualTo(-1); - } - - @Test - public void compare_withFmAndHdSelectors() { - mExpect.withMessage("Comparison between FM and HD selectors") - .that(SELECTOR_COMPARATOR.compare(FM_SELECTOR, HD_SELECTOR)).isEqualTo(-1); - } - - @Test - public void compare_withHdSelectorsWithDifferentFrequncies() { - ProgramSelector.Identifier hdId = new ProgramSelector.Identifier( - ProgramSelector.IDENTIFIER_TYPE_HD_STATION_ID_EXT, - ((HD_FREQUENCY_VALUE + 200) << 36) | HD_STATION_ID_VALUE); - ProgramSelector hdSel = new ProgramSelector(ProgramSelector.PROGRAM_TYPE_FM_HD, hdId, - new ProgramSelector.Identifier[]{}, /* vendorIds= */ null); - - mExpect.withMessage("Comparison between HD selectors with different frequencies") - .that(SELECTOR_COMPARATOR.compare(hdSel, HD_SELECTOR)).isEqualTo(1); - } - - @Test - public void compare_withHdSelectorsWithDifferentSubchannels() { - ProgramSelector.Identifier hdId2 = new ProgramSelector.Identifier( - ProgramSelector.IDENTIFIER_TYPE_HD_STATION_ID_EXT, - (HD_FREQUENCY_VALUE << 36) | HD_STATION_ID_VALUE); - ProgramSelector hdSel2 = new ProgramSelector(ProgramSelector.PROGRAM_TYPE_FM_HD, hdId2, - new ProgramSelector.Identifier[]{}, /* vendorIds= */ null); - - mExpect.withMessage("Comparison between HD selectors with different subchannels") - .that(SELECTOR_COMPARATOR.compare(hdSel2, HD_SELECTOR)).isEqualTo(-1); - } - - @Test - public void compare_withDabSelectorsWithDifferentFrequencies() { - ProgramSelector.Identifier dabFrequencyId2 = new ProgramSelector.Identifier( - ProgramSelector.IDENTIFIER_TYPE_DAB_FREQUENCY, 174_928); - ProgramSelector.Identifier dabEnsembleId2 = new ProgramSelector.Identifier( - ProgramSelector.IDENTIFIER_TYPE_DAB_ENSEMBLE, DAB_ENSEMBLE_VALUE + 1); - ProgramSelector dabSel2 = new ProgramSelector(ProgramSelector.PROGRAM_TYPE_DAB, - DAB_DMB_SID_EXT_IDENTIFIER, - new ProgramSelector.Identifier[]{dabFrequencyId2, dabEnsembleId2}, - /* vendorIds= */ null); - - mExpect.withMessage("Comparison between DAB selectors with different frequencies") - .that(SELECTOR_COMPARATOR.compare(dabSel2, DAB_SELECTOR)).isEqualTo(-1); - } - - @Test - public void compare_withDabSelectorsWithDifferentEccs() { - ProgramSelector.Identifier dabExtId2 = createDabSidExtId(DAB_SID_VALUE - 1, - DAB_ECC_VALUE + 1, DAB_SCIDS_VALUE + 1); - ProgramSelector dabSel2 = new ProgramSelector(ProgramSelector.PROGRAM_TYPE_DAB, - dabExtId2, new ProgramSelector.Identifier[]{DAB_FREQUENCY_IDENTIFIER, - DAB_ENSEMBLE_IDENTIFIER}, /* vendorIds= */ null); - - mExpect.withMessage("Comparison between DAB selectors with different ECC values") - .that(SELECTOR_COMPARATOR.compare(dabSel2, DAB_SELECTOR)).isEqualTo(1); - } - - @Test - public void compare_withDabSelectorsWithDifferentSIds() { - ProgramSelector.Identifier dabExtId2 = createDabSidExtId(DAB_SID_VALUE - 1, - DAB_ECC_VALUE, DAB_SCIDS_VALUE + 1); - ProgramSelector dabSel2 = new ProgramSelector(ProgramSelector.PROGRAM_TYPE_DAB, - dabExtId2, new ProgramSelector.Identifier[]{DAB_FREQUENCY_IDENTIFIER, - DAB_ENSEMBLE_IDENTIFIER}, /* vendorIds= */ null); - - mExpect.withMessage("Comparison between DAB selectors with different SId values") - .that(SELECTOR_COMPARATOR.compare(dabSel2, DAB_SELECTOR)).isEqualTo(-1); - } - - @Test - public void compare_withDabSelectorsWithDifferentSCIds() { - ProgramSelector.Identifier dabExtId2 = createDabSidExtId(DAB_SID_VALUE, - DAB_ECC_VALUE, DAB_SCIDS_VALUE + 1); - ProgramSelector dabSel2 = new ProgramSelector(ProgramSelector.PROGRAM_TYPE_DAB, - dabExtId2, new ProgramSelector.Identifier[]{DAB_FREQUENCY_IDENTIFIER, - DAB_ENSEMBLE_IDENTIFIER}, /* vendorIds= */ null); - - mExpect.withMessage("Comparison between DAB selectors with different SCId values") - .that(SELECTOR_COMPARATOR.compare(dabSel2, DAB_SELECTOR)).isEqualTo(1); - } - - @Test - public void compare_withDabSelectorsWithDifferentEnsembles() { - ProgramSelector.Identifier dabEnsembleId2 = new ProgramSelector.Identifier( - ProgramSelector.IDENTIFIER_TYPE_DAB_ENSEMBLE, DAB_ENSEMBLE_VALUE + 1); - ProgramSelector dabSel2 = new ProgramSelector(ProgramSelector.PROGRAM_TYPE_DAB, - DAB_DMB_SID_EXT_IDENTIFIER, new ProgramSelector.Identifier[]{ - DAB_FREQUENCY_IDENTIFIER, dabEnsembleId2}, /* vendorIds= */ null); - - mExpect.withMessage("Comparison between DAB selectors with different ensembles") - .that(SELECTOR_COMPARATOR.compare(dabSel2, DAB_SELECTOR)).isEqualTo(1); - } - - @Test - public void compare_withSelectorsOfDifferentTypes() { - mExpect.withMessage("Comparison between HD and DAB selectors with different types") - .that(SELECTOR_COMPARATOR.compare(HD_SELECTOR, DAB_SELECTOR)).isEqualTo(-1); - } - - private static ProgramSelector.Identifier createDabSidExtId(long sid, int ecc, int sCIdS) { - return new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_DAB_DMB_SID_EXT, - ((long) sCIdS << 40) | ((long) ecc << 32) | sid); - } -}
diff --git a/car-data-subscription-lib/Android.bp b/car-data-subscription-lib/Android.bp new file mode 100644 index 0000000..a3bbb6c --- /dev/null +++ b/car-data-subscription-lib/Android.bp
@@ -0,0 +1,44 @@ +// +// Copyright (C) 2023 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. + +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + +android_library { + name: "car-data-subscription-lib", + srcs: ["src/**/*.java"], + optimize: { + enabled: false, + }, + static_libs: [ + "androidx.annotation_annotation", + "car-resource-common", + "data_subscription_flags_java_lib", + ], + sdk_version: "current", +} + +aconfig_declarations { + name: "data_subscription_flags", + container: "system", + package: "com.android.car.datasubscription", + srcs: ["data_subscription_flags.aconfig"], +} + +java_aconfig_library { + name: "data_subscription_flags_java_lib", + aconfig_declarations: "data_subscription_flags", +}
diff --git a/car-data-subscription-lib/AndroidManifest.xml b/car-data-subscription-lib/AndroidManifest.xml new file mode 100644 index 0000000..5e10126 --- /dev/null +++ b/car-data-subscription-lib/AndroidManifest.xml
@@ -0,0 +1,19 @@ +<!-- + ~ Copyright (C) 2024 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. + --> + +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="com.android.car.datasubscription"> +</manifest> \ No newline at end of file
diff --git a/car-data-subscription-lib/OWNERS b/car-data-subscription-lib/OWNERS new file mode 100644 index 0000000..bad984c --- /dev/null +++ b/car-data-subscription-lib/OWNERS
@@ -0,0 +1,5 @@ +# Primary +hatrang@google.com + +# Secondary (only if people in Primary are unreachable) +alexstetson@google.com \ No newline at end of file
diff --git a/car-data-subscription-lib/data_subscription_flags.aconfig b/car-data-subscription-lib/data_subscription_flags.aconfig new file mode 100644 index 0000000..bbad6ad --- /dev/null +++ b/car-data-subscription-lib/data_subscription_flags.aconfig
@@ -0,0 +1,9 @@ +package: "com.android.car.datasubscription" +container: "system" + +flag { + name: "data_subscription_pop_up" + namespace: "car_sys_exp" + description: "This flag enables Data Subscription pop-up in Car" + bug: "322687755" +}
diff --git a/car-data-subscription-lib/res/values/colors.xml b/car-data-subscription-lib/res/values/colors.xml new file mode 100644 index 0000000..cfbcab1 --- /dev/null +++ b/car-data-subscription-lib/res/values/colors.xml
@@ -0,0 +1,19 @@ +<!-- + ~ Copyright (C) 2024 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. + --> + +<resources> + <color name="qc_data_expired_subtitle_color">@color/car_yellow_tint</color> +</resources>
diff --git a/car-data-subscription-lib/res/values/strings.xml b/car-data-subscription-lib/res/values/strings.xml new file mode 100644 index 0000000..3d48d6a --- /dev/null +++ b/car-data-subscription-lib/res/values/strings.xml
@@ -0,0 +1,19 @@ +<!-- + ~ Copyright (C) 2024 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. + --> + +<resources> + <string name="connectivity_flow_app" translatable="false">com.android.car.datasubscription</string> +</resources>
diff --git a/car-data-subscription-lib/src/com/android/car/datasubscription/DataSubscription.java b/car-data-subscription-lib/src/com/android/car/datasubscription/DataSubscription.java new file mode 100644 index 0000000..7cecd30 --- /dev/null +++ b/car-data-subscription-lib/src/com/android/car/datasubscription/DataSubscription.java
@@ -0,0 +1,117 @@ +/* + * Copyright (C) 2024 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. + */ + +package com.android.car.datasubscription; + + +import static com.android.car.datasubscription.DataSubscriptionStatus.PAID; + +import android.content.Context; +import android.database.ContentObserver; +import android.provider.Settings; + +import androidx.annotation.GuardedBy; + +/** + * This class provides a mechanism to indicate if a data plan is provided on a trial vs paid basis. + */ +public class DataSubscription { + public static final String DATA_SUBSCRIPTION_ACTION = + "android.intent.action.DATA_SUBSCRIPTION"; + private static final String SETTING = "car_data_subscription_status"; + private static final int MIN_VALUE = 1; + private static final int MAX_VALUE = 3; + + @DataSubscriptionStatus private static final int DEFAULT_VALUE = PAID; + + @GuardedBy("this") + private DataSubscriptionChangeListener mDataSubscriptionChangeListener; + private final Context mContext; + private final ContentObserver mContentObserver = + new ContentObserver(/* handler= */ null) { + @Override + public void onChange(boolean selfChange) { + synchronized (DataSubscription.this) { + if (mDataSubscriptionChangeListener != null) { + mDataSubscriptionChangeListener.onChange(getDataSubscriptionStatus()); + } + } + } + }; + + public DataSubscription(Context context) { + mContext = context; + + } + + /** Returns the data subscription status of the vehicle. */ + @DataSubscriptionStatus + public int getDataSubscriptionStatus() { + int subscriptionStatus = + Settings.Global.getInt(mContext.getContentResolver(), SETTING, DEFAULT_VALUE); + return (subscriptionStatus < MIN_VALUE || subscriptionStatus > MAX_VALUE) + ? DEFAULT_VALUE + : subscriptionStatus; + } + + /** + * Registers a listener to data subscription status change updates. Supports registering + * only one listener. Throws IllegalStateException if a listeners is already registered. + */ + public synchronized void addDataSubscriptionListener(DataSubscriptionChangeListener listener) { + if (mDataSubscriptionChangeListener != null) { + throw new IllegalStateException( + "A listener is already registered. Multiple listeners are not supported."); + } + mDataSubscriptionChangeListener = listener; + mContext + .getContentResolver() + .registerContentObserver( + Settings.Global.getUriFor(SETTING), + /* notifyForDescendants= */ false, + mContentObserver); + } + + /** + * Unregisters the listener for data subscription status change updates. This method must be + * called after registering a listener to avoid memory leaks. Throws IllegalStateException if no + * listener is registered. + */ + public synchronized void removeDataSubscriptionListener() { + if (mDataSubscriptionChangeListener == null) { + throw new IllegalStateException("No listener is registered."); + } + mContext.getContentResolver().unregisterContentObserver(mContentObserver); + mDataSubscriptionChangeListener = null; + } + + /** + * Checks if the data subscription status is inactive + */ + public boolean isDataSubscriptionInactive() { + return getDataSubscriptionStatus() == DataSubscriptionStatus.INACTIVE; + } + + /** + * Interface to implement for listening to Data Subscription status changes. + */ + public interface DataSubscriptionChangeListener { + /** + * Receive the Data Subscription status changes. + */ + void onChange(@DataSubscriptionStatus int value); + } +}
diff --git a/car-data-subscription-lib/src/com/android/car/datasubscription/DataSubscriptionStatus.java b/car-data-subscription-lib/src/com/android/car/datasubscription/DataSubscriptionStatus.java new file mode 100644 index 0000000..10576e6 --- /dev/null +++ b/car-data-subscription-lib/src/com/android/car/datasubscription/DataSubscriptionStatus.java
@@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 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. + */ + +package com.android.car.datasubscription; + +import androidx.annotation.IntDef; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +/** Specifies a boolean value or a no-op. */ +@Retention(RetentionPolicy.SOURCE) + +@IntDef({ + DataSubscriptionStatus.INACTIVE, + DataSubscriptionStatus.TRIAL, + DataSubscriptionStatus.PAID +}) + +public @interface DataSubscriptionStatus { + /** There is currently no persistent cellular network available */ + int INACTIVE = 1; + /** There is currently a persistent cellular network available + * which is being sponsored by the OEM as part of a trial program */ + int TRIAL = 2; + /** There is currently a persistent cellular network available + * being paid for by the customer */ + int PAID = 3; +}
diff --git a/car-qc-lib/res/layout/qc_row_view.xml b/car-qc-lib/res/layout/qc_row_view.xml index 9976ac6..9977cc7 100644 --- a/car-qc-lib/res/layout/qc_row_view.xml +++ b/car-qc-lib/res/layout/qc_row_view.xml
@@ -93,6 +93,17 @@ app:layout_constraintStart_toEndOf="@+id/barrier1" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toBottomOf="@+id/qc_title" + app:layout_constraintBottom_toTopOf="@+id/qc_action_text"/> + + <com.android.car.ui.uxr.DrawableStateTextView + android:id="@+id/qc_action_text" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + style="@style/TextAppearance.QC.Subtitle" + app:layout_constraintStart_toEndOf="@+id/barrier1" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toBottomOf="@+id/qc_summary" app:layout_constraintBottom_toTopOf="@+id/barrier2"/> <androidx.constraintlayout.widget.Barrier
diff --git a/car-qc-lib/res/values/colors.xml b/car-qc-lib/res/values/colors.xml index a2b85ff..8f28391 100644 --- a/car-qc-lib/res/values/colors.xml +++ b/car-qc-lib/res/values/colors.xml
@@ -28,4 +28,6 @@ <color name="qc_switch_thumb_color">#FFFFFF</color> <!-- The Switch thumb color when disabled. Use for the dark theme. --> <color name="qc_switch_thumb_color_disabled_on_dark">#757575</color> + <!-- The color for warning text in QC. --> + <color name="qc_warning_text_color">@color/car_yellow_color</color> </resources>
diff --git a/car-qc-lib/src/com/android/car/qc/QCCategory.java b/car-qc-lib/src/com/android/car/qc/QCCategory.java new file mode 100644 index 0000000..7a3c553 --- /dev/null +++ b/car-qc-lib/src/com/android/car/qc/QCCategory.java
@@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 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. + */ + +package com.android.car.qc; + +import androidx.annotation.IntDef; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +/** Specifies quick controls' categories */ +@Retention(RetentionPolicy.SOURCE) + +@IntDef({ + QCCategory.NORMAL, + QCCategory.WARNING, +}) + +public @interface QCCategory { + int NORMAL = 0; + int WARNING = 1; +}
diff --git a/car-qc-lib/src/com/android/car/qc/QCRow.java b/car-qc-lib/src/com/android/car/qc/QCRow.java index 8d93295..cc13d4a 100644 --- a/car-qc-lib/src/com/android/car/qc/QCRow.java +++ b/car-qc-lib/src/com/android/car/qc/QCRow.java
@@ -29,15 +29,19 @@ /** * Quick Control Row Element - * ------------------------------------ - * | | Title | | - * | StartItems | Subtitle | EndItems | - * | | Sliders | | - * ------------------------------------ + * --------------------------------------- + * | | Title | | + * | StartItems | Subtitle | EndItems | + * | | ActionText | | + * | | Sliders | | + * --------------------------------------- */ public class QCRow extends QCItem { private final String mTitle; private final String mSubtitle; + private final String mActionText; + @QCCategory + private final int mCategory; private final Icon mStartIcon; private final boolean mIsStartIconTintable; private final QCSlider mSlider; @@ -45,15 +49,18 @@ private final List<QCActionItem> mEndItems; private final PendingIntent mPrimaryAction; private PendingIntent mDisabledClickAction; - - public QCRow(@Nullable String title, @Nullable String subtitle, boolean isEnabled, - boolean isClickableWhileDisabled, @Nullable PendingIntent primaryAction, + public QCRow(@Nullable String title, @Nullable String subtitle, + @Nullable String actionText, @QCCategory int category, + boolean isEnabled, boolean isClickableWhileDisabled, + @Nullable PendingIntent primaryAction, @Nullable PendingIntent disabledClickAction, @Nullable Icon startIcon, boolean isIconTintable, @Nullable QCSlider slider, @NonNull List<QCActionItem> startItems, @NonNull List<QCActionItem> endItems) { super(QC_TYPE_ROW, isEnabled, isClickableWhileDisabled); mTitle = title; mSubtitle = subtitle; + mActionText = actionText; + mCategory = category; mPrimaryAction = primaryAction; mDisabledClickAction = disabledClickAction; mStartIcon = startIcon; @@ -67,6 +74,8 @@ super(in); mTitle = in.readString(); mSubtitle = in.readString(); + mActionText = in.readString(); + mCategory = in.readInt(); boolean hasIcon = in.readBoolean(); if (hasIcon) { mStartIcon = Icon.CREATOR.createFromParcel(in); @@ -111,6 +120,8 @@ super.writeToParcel(dest, flags); dest.writeString(mTitle); dest.writeString(mSubtitle); + dest.writeString(mActionText); + dest.writeInt(mCategory); boolean hasStartIcon = mStartIcon != null; dest.writeBoolean(hasStartIcon); if (hasStartIcon) { @@ -163,6 +174,16 @@ } @Nullable + public String getActionText() { + return mActionText; + } + + @QCCategory + public int getCategory() { + return mCategory; + } + + @Nullable public Icon getStartIcon() { return mStartIcon; } @@ -208,6 +229,8 @@ private boolean mIsStartIconTintable = true; private String mTitle; private String mSubtitle; + private String mActionText; + private int mCategory = QCCategory.NORMAL; private boolean mIsEnabled = true; private boolean mIsClickableWhileDisabled = false; private QCSlider mSlider; @@ -231,6 +254,22 @@ } /** + * Sets the row action text. + */ + public Builder setActionText(@Nullable String actionText) { + mActionText = actionText; + return this; + } + + /** + * Sets the row category. + */ + public Builder setCategory(@QCCategory int category) { + mCategory = category; + return this; + } + + /** * Sets whether or not the row is enabled. Note that this only affects the main row area, * not the action items contained within the row. */ @@ -307,9 +346,9 @@ * Builds the final {@link QCRow}. */ public QCRow build() { - return new QCRow(mTitle, mSubtitle, mIsEnabled, mIsClickableWhileDisabled, - mPrimaryAction, mDisabledClickAction, mStartIcon, mIsStartIconTintable, - mSlider, mStartItems, mEndItems); + return new QCRow(mTitle, mSubtitle, mActionText, mCategory, mIsEnabled, + mIsClickableWhileDisabled, mPrimaryAction, mDisabledClickAction, mStartIcon, + mIsStartIconTintable, mSlider, mStartItems, mEndItems); } } }
diff --git a/car-qc-lib/src/com/android/car/qc/view/QCRowView.java b/car-qc-lib/src/com/android/car/qc/view/QCRowView.java index 2045fd2..acbdc70 100644 --- a/car-qc-lib/src/com/android/car/qc/view/QCRowView.java +++ b/car-qc-lib/src/com/android/car/qc/view/QCRowView.java
@@ -49,6 +49,7 @@ import androidx.annotation.Nullable; import com.android.car.qc.QCActionItem; +import com.android.car.qc.QCCategory; import com.android.car.qc.QCItem; import com.android.car.qc.QCRow; import com.android.car.qc.QCSlider; @@ -68,6 +69,7 @@ private View mContentView; private TextView mTitle; private TextView mSubtitle; + private TextView mActionText; private ImageView mStartIcon; @ColorInt private int mStartIconTint; @@ -189,6 +191,7 @@ mContentView = findViewById(R.id.qc_row_content); mTitle = findViewById(R.id.qc_title); mSubtitle = findViewById(R.id.qc_summary); + mActionText = findViewById(R.id.qc_action_text); mStartIcon = findViewById(R.id.qc_icon); mStartItemsContainer = findViewById(R.id.qc_row_start_items); mEndItemsContainer = findViewById(R.id.qc_row_end_items); @@ -213,11 +216,15 @@ mContentView.setOnClickListener(v -> { fireAction(row, /* intent= */ null); }); + } else { + mContentView.setOnClickListener(null); } } else if (row.getPrimaryAction() != null || row.getActionHandler() != null) { mContentView.setOnClickListener(v -> { fireAction(row, /* intent= */ null); }); + } else { + mContentView.setOnClickListener(null); } if (!TextUtils.isEmpty(row.getTitle())) { mTitle.setVisibility(VISIBLE); @@ -233,6 +240,22 @@ } else { mSubtitle.setVisibility(GONE); } + if (!TextUtils.isEmpty(row.getActionText())) { + mActionText.setVisibility(VISIBLE); + mActionText.setText( + mBidiFormatter.unicodeWrap(row.getActionText(), + TextDirectionHeuristics.LOCALE)); + if (row.getCategory() == QCCategory.WARNING) { + mActionText.setTextColor( + getResources().getColor(R.color.qc_warning_text_color)); + } else { + mActionText.setTextColor( + getResources().getColor( + com.android.car.resource.common.R.color.car_on_surface_variant)); + } + } else { + mActionText.setVisibility(GONE); + } if (row.getStartIcon() != null) { mStartIcon.setVisibility(VISIBLE); Drawable drawable = row.getStartIcon().loadDrawable(getContext());