• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2015 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<LinearLayout
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    android:layout_width="match_parent"
19    android:layout_height="wrap_content"
20    android:orientation="vertical"
21    style="@style/RootLayoutPadding">
22
23    <ScrollView
24        android:layout_width="match_parent"
25        android:layout_height="match_parent"
26        android:id="@+id/scrollView">
27
28        <LinearLayout
29            android:layout_width="match_parent"
30            android:layout_height="wrap_content"
31            android:orientation="vertical">
32
33            <LinearLayout
34                android:layout_width="wrap_content"
35                android:layout_height="wrap_content"
36                android:orientation="vertical"
37                android:id="@+id/audio_loopback_headset_port">
38
39                <LinearLayout
40                    xmlns:android="http://schemas.android.com/apk/res/android"
41                    android:orientation="vertical"
42                    android:layout_width="match_parent"
43                    android:layout_height="match_parent"
44                    android:id="@+id/audio_loopback_layout">
45
46                    <TextView
47                        android:layout_width="wrap_content"
48                        android:layout_height="wrap_content"
49                        android:text="@string/audio_loopback_instructions2"
50                        android:id="@+id/audio_loopback_instructions2" />
51
52                    <SeekBar
53                        android:layout_width="match_parent"
54                        android:layout_height="wrap_content"
55                        android:id="@+id/audio_loopback_level_seekbar"
56                        android:nextFocusForward="@+id/audio_loopback_test_btn"
57                        android:nextFocusUp="@+id/audio_loopback_plug_ready_btn"
58                        android:nextFocusDown="@+id/audio_loopback_test_btn"
59                        android:nextFocusLeft="@+id/audio_loopback_plug_ready_btn"
60                        android:nextFocusRight="@+id/audio_loopback_test_btn" />
61
62                    <TextView
63                        android:layout_width="wrap_content"
64                        android:layout_height="wrap_content"
65                        android:text="@string/audio_loopback_level_text"
66                        android:id="@+id/audio_loopback_level_text" />
67                </LinearLayout>
68
69                <LinearLayout
70                    android:orientation="horizontal"
71                    android:layout_width="match_parent"
72                    android:layout_height="wrap_content">
73
74                    <TextView
75                        android:layout_width="wrap_content"
76                        android:layout_height="match_parent"
77                        android:text="Pro Audio:"/>
78
79                    <TextView
80                        android:layout_width="wrap_content"
81                        android:layout_height="match_parent"
82                        android:text=""
83                        android:id="@+id/audio_loopback_pro_audio"/>
84                </LinearLayout>
85
86                <LinearLayout
87                    android:orientation="horizontal"
88                    android:layout_width="match_parent"
89                    android:layout_height="wrap_content">
90
91                    <TextView
92                        android:layout_width="wrap_content"
93                        android:layout_height="match_parent"
94                        android:text="Low Latency:"/>
95
96                    <TextView
97                        android:layout_width="wrap_content"
98                        android:layout_height="match_parent"
99                        android:text=""
100                        android:id="@+id/audio_loopback_low_latency"/>
101                </LinearLayout>
102
103                <LinearLayout
104                    android:orientation="horizontal"
105                    android:layout_width="match_parent"
106                    android:layout_height="wrap_content">
107
108                    <TextView
109                        android:layout_width="wrap_content"
110                        android:layout_height="match_parent"
111                        android:text="Media Performance Class:"/>
112
113                    <TextView
114                        android:layout_width="wrap_content"
115                        android:layout_height="match_parent"
116                        android:text=""
117                        android:id="@+id/audio_loopback_mpc"/>
118                </LinearLayout>
119
120                <LinearLayout
121                    android:orientation="horizontal"
122                    android:layout_width="match_parent"
123                    android:layout_height="wrap_content">
124
125                    <TextView
126                        android:layout_width="wrap_content"
127                        android:layout_height="match_parent"
128                        android:text="MMAP Supported:"/>
129
130                    <TextView
131                        android:layout_width="wrap_content"
132                        android:layout_height="match_parent"
133                        android:text=""
134                        android:id="@+id/audio_loopback_mmap"/>
135                </LinearLayout>
136
137                <LinearLayout
138                    android:orientation="horizontal"
139                    android:layout_width="match_parent"
140                    android:layout_height="wrap_content">
141
142                    <TextView
143                        android:layout_width="wrap_content"
144                        android:layout_height="match_parent"
145                        android:text="MMAP Exclusive Supported:"/>
146
147                    <TextView
148                        android:layout_width="wrap_content"
149                        android:layout_height="match_parent"
150                        android:text=""
151                        android:id="@+id/audio_loopback_mmap_exclusive"/>
152                </LinearLayout>
153
154                <TextView
155                    android:layout_width="match_parent"
156                    android:layout_height="wrap_content"
157                    android:text="@string/audio_loopback_test_all_paths"
158                    android:textSize="20dp"
159                    android:gravity="center" />
160
161                <!-- Speaker/Mic -->
162                <LinearLayout
163                    android:orientation="vertical"
164                    android:layout_width="match_parent"
165                    android:layout_height="wrap_content">
166
167                    <TextView
168                        android:layout_width="match_parent"
169                        android:layout_height="wrap_content"
170                        android:text="Speaker/Mic"
171                        android:textSize="18sp"/>
172
173                    <LinearLayout
174                        android:orientation="horizontal"
175                        android:layout_width="match_parent"
176                        android:layout_height="wrap_content"
177                        android:id="@+id/audio_loopback_layout">
178
179                        <Button
180                            android:layout_width="wrap_content"
181                            android:layout_height="wrap_content"
182                            android:text="@string/audio_general_start"
183                            android:id="@+id/audio_loopback_speakermicpath_btn" />
184
185                        <TextView
186                            android:layout_width="match_parent"
187                            android:layout_height="wrap_content"
188                            android:layout_gravity="fill"
189                            android:text="@string/audio_loopback_speakermicpath_instructions"
190                            android:id="@+id/audio_loopback_speakermicpath_info" />
191                    </LinearLayout>
192
193                </LinearLayout>
194
195                <!-- Headset Jack -->
196                <LinearLayout
197                    android:orientation="vertical"
198                    android:layout_width="match_parent"
199                    android:layout_height="wrap_content">
200
201                    <TextView
202                        android:layout_width="match_parent"
203                        android:layout_height="wrap_content"
204                        android:text="Headset Jack"
205                        android:textSize="18sp"/>
206
207                    <LinearLayout
208                        android:orientation="horizontal"
209                        android:layout_width="match_parent"
210                        android:layout_height="wrap_content"
211                        android:id="@+id/audio_loopback_layout">
212
213                        <Button
214                            android:layout_width="wrap_content"
215                            android:layout_height="wrap_content"
216                            android:text="@string/audio_general_start"
217                            android:id="@+id/audio_loopback_headsetpath_btn" />
218
219                        <TextView
220                            android:layout_width="match_parent"
221                            android:layout_height="wrap_content"
222                            android:layout_gravity="fill"
223                            android:text="@string/audio_loopback_headsetpath_instructions"
224                            android:id="@+id/audio_loopback_headsetpath_info" />
225                    </LinearLayout>
226            </LinearLayout>
227
228            <!-- USB -->
229            <LinearLayout
230                android:orientation="vertical"
231                android:layout_width="match_parent"
232                android:layout_height="wrap_content">
233
234                <TextView
235                    android:layout_width="match_parent"
236                    android:layout_height="wrap_content"
237                    android:text="USB"
238                    android:textSize="18sp"/>
239
240                <LinearLayout
241                    android:orientation="horizontal"
242                    android:layout_width="match_parent"
243                    android:layout_height="wrap_content">
244
245                    <Button
246                        android:layout_width="wrap_content"
247                        android:layout_height="wrap_content"
248                        android:text="@string/audio_general_start"
249                        android:id="@+id/audio_loopback_usbpath_btn" />
250
251                    <TextView
252                        android:layout_width="match_parent"
253                        android:layout_height="wrap_content"
254                        android:layout_gravity="fill"
255                        android:text="@string/audio_loopback_usbpath_instructions"
256                        android:id="@+id/audio_loopback_usbpath_info" />
257                </LinearLayout>
258
259            </LinearLayout>
260
261                <LinearLayout
262                    xmlns:android="http://schemas.android.com/apk/res/android"
263                    android:layout_width="match_parent"
264                    android:layout_height="wrap_content"
265                    android:orientation="vertical">
266
267                    <ProgressBar
268                        android:layout_width="wrap_content"
269                        android:layout_height="wrap_content"
270                        android:id="@+id/audio_loopback_progress_bar" />
271
272                    <TextView
273                        android:layout_width="wrap_content"
274                        android:layout_height="wrap_content"
275                        android:text="@string/audio_loopback_results_text"
276                        android:id="@+id/audio_loopback_status_text"
277                        android:textSize="20dp" />
278                </LinearLayout>
279
280            </LinearLayout>
281            <include layout="@layout/pass_fail_buttons" />
282        </LinearLayout>
283    </ScrollView>
284
285</LinearLayout>
286