• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 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<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content"
21    android:orientation="vertical"
22    style="@style/RootLayoutPadding">
23
24    <ScrollView
25        android:layout_width="match_parent"
26        android:layout_height="match_parent"
27        android:id="@+id/scrollView">
28
29        <LinearLayout
30            android:layout_width="match_parent"
31            android:layout_height="wrap_content"
32            android:orientation="vertical">
33
34            <include layout="@layout/audio_refmic_layout"/>
35
36            <LinearLayout
37                android:layout_width="match_parent"
38                android:layout_height="wrap_content"
39                android:orientation="vertical"
40                android:id="@+id/vr_layout_test_tone">
41
42                <View
43                    android:layout_width="match_parent"
44                    android:layout_height="1dp"
45                    android:background="?android:colorAccent" />
46
47                <TextView
48                    android:layout_width="wrap_content"
49                    android:layout_height="wrap_content"
50                    android:scrollbars="vertical"
51                    android:gravity="bottom"
52                    android:text="@string/vr_test_tone_instructions"
53                    android:id="@+id/vr_test_tone_instructions" />
54
55                <LinearLayout
56                    android:layout_width="match_parent"
57                    android:layout_height="wrap_content"
58                    android:orientation="horizontal">
59
60                    <LinearLayout
61                        android:layout_width="wrap_content"
62                        android:layout_height="wrap_content"
63                        android:orientation="vertical"
64                        android:layout_weight="2">
65
66                        <Button
67                            android:layout_width="wrap_content"
68                            android:layout_height="wrap_content"
69                            android:soundEffectsEnabled="false"
70                            android:text="@string/af_button_test"
71                            android:id="@+id/vr_button_test_tone" />
72                        <ProgressBar
73                            android:layout_width="wrap_content"
74                            android:layout_height="wrap_content"
75                            android:layout_weight="1"
76                            android:id="@+id/vr_test_tone_progress_bar" />
77
78                    </LinearLayout>
79
80                    <View
81                        android:layout_width="1dp"
82                        android:layout_height="match_parent"
83                        android:background="?android:colorAccent" />
84
85                    <LinearLayout
86                        android:layout_width="0dp"
87                        android:layout_height="wrap_content"
88                        android:orientation="vertical"
89                        android:layout_weight="1">
90                        <Button
91                            android:layout_width="wrap_content"
92                            android:layout_height="wrap_content"
93                            android:soundEffectsEnabled="false"
94                            android:text="@string/af_button_play"
95                            android:id="@+id/vr_button_play_tone" />
96                    </LinearLayout>
97                </LinearLayout>
98                <TextView
99                    android:layout_width="match_parent"
100                    android:layout_height="wrap_content"
101                    android:text="@string/af_test_results"
102                    android:id="@+id/vr_test_tone_result" />
103            </LinearLayout>
104
105            <LinearLayout
106                android:layout_width="match_parent"
107                android:layout_height="wrap_content"
108                android:orientation="vertical"
109                android:id="@+id/vr_layout_test_noise">
110
111                <View
112                    android:layout_width="match_parent"
113                    android:layout_height="1dp"
114                    android:background="?android:colorAccent" />
115
116                <TextView
117                    android:layout_width="wrap_content"
118                    android:layout_height="wrap_content"
119                    android:scrollbars="vertical"
120                    android:gravity="bottom"
121                    android:text="@string/vr_test_noise_instructions"
122                    android:id="@+id/vr_test_noise_instructions" />
123
124                <LinearLayout
125                    android:layout_width="match_parent"
126                    android:layout_height="wrap_content"
127                    android:orientation="horizontal">
128
129                    <LinearLayout
130                        android:layout_width="wrap_content"
131                        android:layout_height="wrap_content"
132                        android:orientation="vertical"
133                        android:layout_weight="2">
134
135                        <Button
136                            android:layout_width="wrap_content"
137                            android:layout_height="wrap_content"
138                            android:soundEffectsEnabled="false"
139                            android:text="@string/af_button_test"
140                            android:id="@+id/vr_button_test_noise" />
141                        <ProgressBar
142                            android:layout_width="wrap_content"
143                            android:layout_height="wrap_content"
144                            android:layout_weight="1"
145                            android:id="@+id/vr_test_noise_progress_bar" />
146                    </LinearLayout>
147
148                    <View
149                        android:layout_width="1dp"
150                        android:layout_height="match_parent"
151                        android:background="?android:colorAccent" />
152
153                    <LinearLayout
154                        android:layout_width="0dp"
155                        android:layout_height="wrap_content"
156                        android:orientation="vertical"
157                        android:layout_weight="1">
158                        <Button
159                            android:layout_width="wrap_content"
160                            android:layout_height="wrap_content"
161                            android:soundEffectsEnabled="false"
162                            android:text="@string/af_button_play"
163                            android:id="@+id/vr_button_play_noise" />
164                    </LinearLayout>
165                </LinearLayout>
166                <TextView
167                    android:layout_width="match_parent"
168                    android:layout_height="wrap_content"
169                    android:text="@string/af_test_results"
170                    android:id="@+id/vr_test_noise_result" />
171            </LinearLayout>
172
173        <LinearLayout
174                android:layout_width="match_parent"
175                android:layout_height="wrap_content"
176                android:orientation="vertical"
177                android:id="@+id/vr_layout_test_usb_background">
178
179                <View
180                    android:layout_width="match_parent"
181                    android:layout_height="1dp"
182                    android:background="?android:colorAccent" />
183
184                <TextView
185                    android:layout_width="wrap_content"
186                    android:layout_height="wrap_content"
187                    android:scrollbars="vertical"
188                    android:gravity="bottom"
189                    android:text="@string/vr_test_usb_background_instructions"
190                    android:id="@+id/vr_test_usb_background_instructions" />
191
192                <LinearLayout
193                    android:layout_width="match_parent"
194                    android:layout_height="wrap_content"
195                    android:orientation="horizontal">
196
197                    <LinearLayout
198                        android:layout_width="wrap_content"
199                        android:layout_height="wrap_content"
200                        android:orientation="vertical"
201                        android:layout_weight="2">
202
203                        <Button
204                            android:layout_width="wrap_content"
205                            android:layout_height="wrap_content"
206                            android:soundEffectsEnabled="false"
207                            android:text="@string/af_button_test"
208                            android:id="@+id/vr_button_test_usb_background" />
209                        <ProgressBar
210                            android:layout_width="wrap_content"
211                            android:layout_height="wrap_content"
212                            android:layout_weight="1"
213                            android:id="@+id/vr_test_usb_background_progress_bar" />
214                    </LinearLayout>
215                </LinearLayout>
216                <TextView
217                    android:layout_width="match_parent"
218                    android:layout_height="wrap_content"
219                    android:text="@string/af_test_results"
220                    android:id="@+id/vr_test_usb_background_result" />
221            </LinearLayout>
222
223            <LinearLayout
224                android:layout_width="match_parent"
225                android:layout_height="wrap_content"
226                android:orientation="vertical"
227                android:id="@+id/vr_layout_test_usb_noise">
228
229                <View
230                    android:layout_width="match_parent"
231                    android:layout_height="1dp"
232                    android:background="?android:colorAccent" />
233
234                <TextView
235                    android:layout_width="wrap_content"
236                    android:layout_height="wrap_content"
237                    android:scrollbars="vertical"
238                    android:gravity="bottom"
239                    android:text="@string/vr_test_usb_noise_instructions"
240                    android:id="@+id/vr_test_usb_noise_instructions" />
241
242                <LinearLayout
243                    android:layout_width="match_parent"
244                    android:layout_height="wrap_content"
245                    android:orientation="horizontal">
246
247                    <LinearLayout
248                        android:layout_width="wrap_content"
249                        android:layout_height="wrap_content"
250                        android:orientation="vertical"
251                        android:layout_weight="2">
252
253                        <Button
254                            android:layout_width="wrap_content"
255                            android:layout_height="wrap_content"
256                            android:soundEffectsEnabled="false"
257                            android:text="@string/af_button_test"
258                            android:id="@+id/vr_button_test_usb_noise" />
259                        <ProgressBar
260                            android:layout_width="wrap_content"
261                            android:layout_height="wrap_content"
262                            android:layout_weight="1"
263                            android:id="@+id/vr_test_usb_noise_progress_bar" />
264                    </LinearLayout>
265
266                    <View
267                        android:layout_width="1dp"
268                        android:layout_height="match_parent"
269                        android:background="?android:colorAccent" />
270
271                    <LinearLayout
272                        android:layout_width="0dp"
273                        android:layout_height="wrap_content"
274                        android:orientation="vertical"
275                        android:layout_weight="1">
276                        <Button
277                            android:layout_width="wrap_content"
278                            android:layout_height="wrap_content"
279                            android:soundEffectsEnabled="false"
280                            android:text="@string/af_button_play"
281                            android:id="@+id/vr_button_play_usb_noise" />
282                    </LinearLayout>
283                </LinearLayout>
284                <TextView
285                    android:layout_width="match_parent"
286                    android:layout_height="wrap_content"
287                    android:text="@string/af_test_results"
288                    android:id="@+id/vr_test_usb_noise_result" />
289            </LinearLayout>
290            <View
291                android:layout_width="match_parent"
292                android:layout_height="1dp"
293                android:background="?android:colorAccent" />
294
295            <TextView
296                    android:layout_width="match_parent"
297                    android:layout_height="wrap_content"
298                    android:text="@string/af_global_test_results"
299                    android:id="@+id/vr_test_global_result" />
300
301            <include layout="@layout/pass_fail_buttons" />
302        </LinearLayout>
303    </ScrollView>
304
305</LinearLayout>
306