1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2024 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<ScrollView  xmlns:android="http://schemas.android.com/apk/res/android"
18    android:fitsSystemWindows="true"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent"
21    android:id="@+id/scrollView">
22
23    <LinearLayout
24        android:orientation="vertical"
25        android:layout_width="match_parent"
26        android:layout_height="wrap_content">
27
28        <include layout="@layout/audio_java_native_api_buttons" />
29
30        <LinearLayout
31            android:layout_width="match_parent"
32            android:layout_height="wrap_content"
33            android:orientation="horizontal"
34            style="?android:attr/buttonBarStyle">
35            <Button
36                android:layout_width="wrap_content"
37                android:layout_height="wrap_content"
38                style="?android:attr/buttonBarButtonStyle"
39                android:text="@string/audio_datapaths_calibrate"
40                android:id="@+id/audio_mixdown_calibrate_button"/>
41
42            <Button
43                android:layout_width="wrap_content"
44                android:layout_height="wrap_content"
45                style="?android:attr/buttonBarButtonStyle"
46                android:text="@string/audio_mixdown_devices"
47                android:id="@+id/audio_mixdown_devices_button"/>
48        </LinearLayout>
49
50        <!-- Routing Buttons -->
51        <LinearLayout
52            android:layout_width="match_parent"
53            android:layout_height="wrap_content"
54            android:orientation="vertical"
55            android:layout_marginStart="10dp"
56            style="?android:attr/buttonBarStyle">
57            <RadioButton
58                android:text="@string/audio_mixdown_micspeaker"
59                android:layout_width="wrap_content"
60                android:layout_height="match_parent"
61                android:id="@+id/audio_mixdown_micspeaker"
62                android:paddingTop="1dp"
63                android:paddingBottom="1dp"/>
64            <RadioButton
65                android:text="@string/audio_mixdown_analogheadset"
66                android:layout_width="wrap_content"
67                android:layout_height="match_parent"
68                android:id="@+id/audio_mixdown_analogheadset"
69                android:paddingTop="1dp"
70                android:paddingBottom="1dp"/>
71            <RadioButton
72                android:text="@string/audio_mixdown_usbdevice"
73                android:layout_width="wrap_content"
74                android:layout_height="match_parent"
75                android:id="@+id/audio_mixdown_usbdevice"
76                android:paddingTop="1dp"
77                android:paddingBottom="1dp"/>
78            <RadioButton
79                android:text="@string/audio_mixdown_usbheadset"
80                android:layout_width="wrap_content"
81                android:layout_height="match_parent"
82                android:id="@+id/audio_mixdown_usbheadset"
83                android:paddingTop="1dp"
84                android:paddingBottom="1dp"/>
85        </LinearLayout>
86
87        <!-- Player Controls -->
88        <LinearLayout
89            android:layout_width="match_parent"
90            android:layout_height="wrap_content"
91            android:orientation="horizontal"
92            android:layout_marginStart="10dp"
93            style="?android:attr/buttonBarStyle">
94            <Button
95                android:text="@string/audio_general_start"
96                android:layout_width="wrap_content"
97                android:layout_height="match_parent"
98                android:id="@+id/audio_mixdown_start"
99                style="?android:attr/buttonBarButtonStyle"/>
100            <Button
101                android:text="@string/audio_general_stop"
102                android:layout_width="wrap_content"
103                android:layout_height="match_parent"
104                android:id="@+id/audio_mixdown_stop"
105                style="?android:attr/buttonBarButtonStyle"/>
106            <Button
107                android:text="@string/audio_mixdown_clearresults"
108                android:layout_width="wrap_content"
109                android:layout_height="match_parent"
110                android:id="@+id/audio_mixdown_clearresults"
111                style="?android:attr/buttonBarButtonStyle"/>
112        </LinearLayout>
113
114        <com.android.cts.verifier.audio.audiolib.WaveScopeView
115            android:id="@+id/uap_recordWaveView"
116            android:layout_width="match_parent"
117            android:layout_height="150dp"/>
118
119        <TextView
120            android:layout_width="match_parent"
121            android:layout_height="wrap_content"
122            android:id="@+id/audio_mixdown_channels" />
123
124        <LinearLayout
125            android:layout_width="match_parent"
126            android:layout_height="fill_parent"
127            android:orientation="vertical">
128
129            <WebView
130                android:id="@+id/audio_mixdown_results"
131                android:layout_width="match_parent"
132                android:layout_height="wrap_content"/>
133        </LinearLayout>
134        <include layout="@layout/pass_fail_buttons" />
135    </LinearLayout>
136</ScrollView>
137