<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ 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.
  -->
<ScrollView
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    xmlns:android="http://schemas.android.com/apk/res/android">
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal">
            <Space
                android:layout_width="3dp"
                android:layout_height="match_parent"/>
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/oem_car_service_audio_focus"/>
            <Space
                android:layout_width="3dp"
                android:layout_height="match_parent"/>
            <Button
                android:id="@+id/oem_car_service_audio_focus_test_button"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/oem_car_service_audio_focus_test"
                android:padding="20dp"/>
        </LinearLayout>
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal">
            <Space
                android:layout_width="3dp"
                android:layout_height="match_parent"/>
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/oem_car_service_audio_volume"/>
            <Space
                android:layout_width="3dp"
                android:layout_height="match_parent"/>
            <Button
                android:id="@+id/oem_car_service_audio_volume_test_button"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/oem_car_service_audio_volume_test"
                android:padding="20dp"/>
        </LinearLayout>

        <Space
            android:layout_width="match_parent"
            android:layout_height="20dp"/>
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal">
            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:orientation="vertical">
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/oem_car_service_audio_focus_results"/>
                <Space
                    android:layout_width="3dp"
                    android:layout_height="match_parent"/>
                <TextView
                    android:id="@+id/oem_car_service_audio_focus_text"
                    android:layout_width="400dp"
                    android:layout_height="wrap_content"
                    android:text="No Results"/>
            </LinearLayout>
            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:orientation="vertical">
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/oem_car_service_audio_volume_results"/>
                <Space
                    android:layout_width="3dp"
                    android:layout_height="match_parent"/>
                <TextView
                    android:id="@+id/oem_car_service_audio_volume_text"
                    android:layout_width="400dp"
                    android:layout_height="wrap_content"
                    android:text="No Results"/>
            </LinearLayout>
        </LinearLayout>
        <Space
            android:layout_width="match_parent"
            android:layout_height="3dp"/>
        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="vertical">
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Instructions for installing OEMCarServiceTestApp:\n
            adb root\n
            adb remount #(reboot if required)\n
            adb shell setprop persist.com.android.car.internal.debug.oem_car_service\n
            com.android.car.oemcarservice.testapp/.OemCarServiceImpl\n
            m -j OemCarServiceTestApp\n
            adb root &amp;&amp; adb remount &amp;&amp; adb shell stop &amp;&amp; adb sync &amp;&amp;\n
            adb shell start\n
            Visit go/oem-customization-service for more information."/>
            <Space
                android:layout_width="match_parent"
                android:layout_height="20dp"/>
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Ensure that the following have been set:\n
            adb shell setprop persist.log.tag.CarOemAudioFocusProxyService DEBUG\n
            adb shell setprop persist.log.tag.CarOemAudioVolumeProxyService DEBUG"/>
        </LinearLayout>
    </LinearLayout>
</ScrollView>
