1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2015 The Android Open Source Project Licensed under the
3    Apache License, Version 2.0 (the "License"); you may not use this file except
4    in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
5    Unless required by applicable law or agreed to in writing, software distributed
6    under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
7    OR CONDITIONS OF ANY KIND, either express or implied. See the License for
8    the specific language governing permissions and limitations under the License. -->
9<LinearLayout
10    xmlns:android="http://schemas.android.com/apk/res/android"
11    android:fitsSystemWindows="true"
12    android:layout_width="match_parent"
13    android:layout_height="wrap_content"
14    android:orientation="vertical"
15    style="@style/RootLayoutPadding">
16
17    <ScrollView
18        android:layout_width="match_parent"
19        android:layout_height="match_parent"
20        android:id="@+id/scrollView">
21
22        <LinearLayout
23            android:layout_width="match_parent"
24            android:layout_height="wrap_content"
25            android:orientation="vertical">
26
27            <include layout="@layout/audio_refmic_layout"/>
28
29            <TextView
30                android:layout_width="match_parent"
31                android:layout_height="wrap_content"
32                android:scrollbars="vertical"
33                android:gravity="bottom"
34                android:id="@+id/audio_frequency_unprocessed_defined" />
35
36            <LinearLayout
37                android:layout_width="match_parent"
38                android:layout_height="wrap_content"
39                android:orientation="vertical"
40                android:id="@+id/unprocessed_layout_test_tone"
41            >
42
43                <View
44                    android:layout_width="match_parent"
45                    android:layout_height="1dp"
46                    android:background="?android:colorAccent" />
47
48                <TextView
49                    android:layout_width="wrap_content"
50                    android:layout_height="wrap_content"
51                    android:scrollbars="vertical"
52                    android:gravity="bottom"
53                    android:text="@string/unprocessed_test_tone_instructions"
54                    android:id="@+id/unprocessed_test_tone_instructions" />
55
56                <LinearLayout
57                    android:layout_width="match_parent"
58                    android:layout_height="wrap_content"
59                    android:orientation="horizontal">
60
61                    <LinearLayout
62                        android:layout_width="wrap_content"
63                        android:layout_height="wrap_content"
64                        android:orientation="vertical"
65                        android:layout_weight="2">
66
67                        <Button
68                            android:layout_width="wrap_content"
69                            android:layout_height="wrap_content"
70                            android:soundEffectsEnabled="false"
71                            android:text="@string/unprocessed_test_tone_btn"
72                            android:id="@+id/unprocessed_test_tone_btn" />
73                        <ProgressBar
74                            android:layout_width="wrap_content"
75                            android:layout_height="wrap_content"
76                            android:layout_weight="1"
77                            android:id="@+id/unprocessed_test_tone_progress_bar" />
78
79                    </LinearLayout>
80
81                    <View
82                        android:layout_width="1dp"
83                        android:layout_height="match_parent"
84                        android:background="?android:colorAccent" />
85
86                    <LinearLayout
87                        android:layout_width="0dp"
88                        android:layout_height="wrap_content"
89                        android:orientation="vertical"
90                        android:layout_weight="1">
91                        <Button
92                            android:layout_width="wrap_content"
93                            android:layout_height="wrap_content"
94                            android:soundEffectsEnabled="false"
95                            android:text="@string/unprocessed_play"
96                            android:id="@+id/unprocessed_play_tone_btn" />
97                    </LinearLayout>
98                </LinearLayout>
99                <TextView
100                    android:layout_width="match_parent"
101                    android:layout_height="wrap_content"
102                    android:text="@string/unprocessed_test_tone_result"
103                    android:id="@+id/unprocessed_test_tone_result" />
104            </LinearLayout>
105
106            <LinearLayout
107                android:layout_width="match_parent"
108                android:layout_height="wrap_content"
109                android:orientation="vertical"
110                android:id="@+id/unprocessed_layout_test_noise">
111
112                <View
113                    android:layout_width="match_parent"
114                    android:layout_height="1dp"
115                    android:background="?android:colorAccent" />
116
117                <TextView
118                    android:layout_width="wrap_content"
119                    android:layout_height="wrap_content"
120                    android:scrollbars="vertical"
121                    android:gravity="bottom"
122                    android:text="@string/unprocessed_test_noise_instructions"
123                    android:id="@+id/unprocessed_test_noise_instructions" />
124
125                <LinearLayout
126                    android:layout_width="match_parent"
127                    android:layout_height="wrap_content"
128                    android:orientation="horizontal">
129
130                    <LinearLayout
131                        android:layout_width="wrap_content"
132                        android:layout_height="wrap_content"
133                        android:orientation="vertical"
134                        android:layout_weight="2">
135
136                        <Button
137                            android:layout_width="wrap_content"
138                            android:layout_height="wrap_content"
139                            android:soundEffectsEnabled="false"
140                            android:text="@string/unprocessed_test_noise_btn"
141                            android:id="@+id/unprocessed_test_noise_btn" />
142                        <ProgressBar
143                            android:layout_width="wrap_content"
144                            android:layout_height="wrap_content"
145                            android:layout_weight="1"
146                            android:id="@+id/unprocessed_test_noise_progress_bar" />
147                    </LinearLayout>
148
149                    <View
150                        android:layout_width="1dp"
151                        android:layout_height="match_parent"
152                        android:background="?android:colorAccent" />
153
154                    <LinearLayout
155                        android:layout_width="0dp"
156                        android:layout_height="wrap_content"
157                        android:orientation="vertical"
158                        android:layout_weight="1">
159                        <Button
160                            android:layout_width="wrap_content"
161                            android:layout_height="wrap_content"
162                            android:soundEffectsEnabled="false"
163                            android:text="@string/unprocessed_play"
164                            android:id="@+id/unprocessed_play_noise_btn" />
165                    </LinearLayout>
166                </LinearLayout>
167                <TextView
168                    android:layout_width="match_parent"
169                    android:layout_height="wrap_content"
170                    android:text="@string/unprocessed_test_noise_result"
171                    android:id="@+id/unprocessed_test_noise_result" />
172            </LinearLayout>
173
174        <LinearLayout
175                android:layout_width="match_parent"
176                android:layout_height="wrap_content"
177                android:orientation="vertical"
178                android:id="@+id/unprocessed_layout_test_usb_background">
179
180                <View
181                    android:layout_width="match_parent"
182                    android:layout_height="1dp"
183                    android:background="?android:colorAccent" />
184
185                <TextView
186                    android:layout_width="wrap_content"
187                    android:layout_height="wrap_content"
188                    android:scrollbars="vertical"
189                    android:gravity="bottom"
190                    android:text="@string/unprocessed_test_usb_background_instructions"
191                    android:id="@+id/unprocessed_test_usb_background_instructions" />
192
193                <LinearLayout
194                    android:layout_width="match_parent"
195                    android:layout_height="wrap_content"
196                    android:orientation="horizontal">
197
198                    <LinearLayout
199                        android:layout_width="wrap_content"
200                        android:layout_height="wrap_content"
201                        android:orientation="vertical"
202                        android:layout_weight="2">
203
204                        <Button
205                            android:layout_width="wrap_content"
206                            android:layout_height="wrap_content"
207                            android:soundEffectsEnabled="false"
208                            android:text="@string/unprocessed_test_usb_background_btn"
209                            android:id="@+id/unprocessed_test_usb_background_btn" />
210                        <ProgressBar
211                            android:layout_width="wrap_content"
212                            android:layout_height="wrap_content"
213                            android:layout_weight="1"
214                            android:id="@+id/unprocessed_test_usb_background_progress_bar" />
215                    </LinearLayout>
216                </LinearLayout>
217                <TextView
218                    android:layout_width="match_parent"
219                    android:layout_height="wrap_content"
220                    android:text="@string/unprocessed_test_usb_background_result"
221                    android:id="@+id/unprocessed_test_usb_background_result" />
222            </LinearLayout>
223
224            <LinearLayout
225                android:layout_width="match_parent"
226                android:layout_height="wrap_content"
227                android:orientation="vertical"
228                android:id="@+id/unprocessed_layout_test_usb_noise">
229
230                <View
231                    android:layout_width="match_parent"
232                    android:layout_height="1dp"
233                    android:background="?android:colorAccent" />
234
235                <TextView
236                    android:layout_width="wrap_content"
237                    android:layout_height="wrap_content"
238                    android:scrollbars="vertical"
239                    android:gravity="bottom"
240                    android:text="@string/unprocessed_test_usb_noise_instructions"
241                    android:id="@+id/unprocessed_test_usb_noise_instructions" />
242
243                <LinearLayout
244                    android:layout_width="match_parent"
245                    android:layout_height="wrap_content"
246                    android:orientation="horizontal">
247
248                    <LinearLayout
249                        android:layout_width="wrap_content"
250                        android:layout_height="wrap_content"
251                        android:orientation="vertical"
252                        android:layout_weight="2">
253
254                        <Button
255                            android:layout_width="wrap_content"
256                            android:layout_height="wrap_content"
257                            android:soundEffectsEnabled="false"
258                            android:text="@string/unprocessed_test_usb_noise_btn"
259                            android:id="@+id/unprocessed_test_usb_noise_btn" />
260                        <ProgressBar
261                            android:layout_width="wrap_content"
262                            android:layout_height="wrap_content"
263                            android:layout_weight="1"
264                            android:id="@+id/unprocessed_test_usb_noise_progress_bar" />
265                    </LinearLayout>
266
267                    <View
268                        android:layout_width="1dp"
269                        android:layout_height="match_parent"
270                        android:background="?android:colorAccent" />
271
272                    <LinearLayout
273                        android:layout_width="0dp"
274                        android:layout_height="wrap_content"
275                        android:orientation="vertical"
276                        android:layout_weight="1">
277                        <Button
278                            android:layout_width="wrap_content"
279                            android:layout_height="wrap_content"
280                            android:soundEffectsEnabled="false"
281                            android:text="@string/unprocessed_play"
282                            android:id="@+id/unprocessed_play_usb_noise_btn" />
283                    </LinearLayout>
284                </LinearLayout>
285                <TextView
286                    android:layout_width="match_parent"
287                    android:layout_height="wrap_content"
288                    android:text="@string/unprocessed_test_usb_noise_result"
289                    android:id="@+id/unprocessed_test_usb_noise_result" />
290            </LinearLayout>
291             <View
292                android:layout_width="match_parent"
293                android:layout_height="1dp"
294                android:background="?android:colorAccent" />
295
296            <TextView
297                    android:layout_width="match_parent"
298                    android:layout_height="wrap_content"
299                    android:text="@string/unprocessed_test_global_result"
300                    android:id="@+id/unprocessed_test_global_result" />
301
302            <include layout="@layout/pass_fail_buttons" />
303        </LinearLayout>
304    </ScrollView>
305
306</LinearLayout>
307