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:layout_width="match_parent"
12    android:layout_height="wrap_content"
13    android:orientation="vertical"
14    style="@style/RootLayoutPadding">
15
16    <ScrollView
17        android:layout_width="match_parent"
18        android:layout_height="match_parent"
19        android:id="@+id/scrollView">
20
21        <LinearLayout
22            android:layout_width="match_parent"
23            android:layout_height="wrap_content"
24            android:orientation="vertical">
25
26            <TextView
27                android:layout_width="match_parent"
28                android:layout_height="wrap_content"
29                android:scrollbars="vertical"
30                android:gravity="bottom"
31                android:id="@+id/audio_frequency_unprocessed_defined" />
32
33            <LinearLayout
34                android:layout_width="match_parent"
35                android:layout_height="wrap_content"
36                android:orientation="vertical"
37                android:id="@+id/unprocessed_layout_test_tone"
38            >
39
40                <View
41                    android:layout_width="match_parent"
42                    android:layout_height="1dp"
43                    android:background="?android:colorAccent" />
44
45                <TextView
46                    android:layout_width="wrap_content"
47                    android:layout_height="wrap_content"
48                    android:scrollbars="vertical"
49                    android:gravity="bottom"
50                    android:text="@string/unprocessed_test_tone_instructions"
51                    android:id="@+id/unprocessed_test_tone_instructions" />
52
53                <LinearLayout
54                    android:layout_width="match_parent"
55                    android:layout_height="wrap_content"
56                    android:orientation="horizontal">
57
58                    <LinearLayout
59                        android:layout_width="wrap_content"
60                        android:layout_height="wrap_content"
61                        android:orientation="vertical"
62                        android:layout_weight="2">
63
64                        <Button
65                            android:layout_width="wrap_content"
66                            android:layout_height="wrap_content"
67                            android:soundEffectsEnabled="false"
68                            android:text="@string/unprocessed_test_tone_btn"
69                            android:id="@+id/unprocessed_test_tone_btn" />
70                        <ProgressBar
71                            android:layout_width="wrap_content"
72                            android:layout_height="wrap_content"
73                            android:layout_weight="1"
74                            android:id="@+id/unprocessed_test_tone_progress_bar" />
75
76                    </LinearLayout>
77
78                    <View
79                        android:layout_width="1dp"
80                        android:layout_height="match_parent"
81                        android:background="?android:colorAccent" />
82
83                    <LinearLayout
84                        android:layout_width="0dp"
85                        android:layout_height="wrap_content"
86                        android:orientation="vertical"
87                        android:layout_weight="1">
88                        <Button
89                            android:layout_width="wrap_content"
90                            android:layout_height="wrap_content"
91                            android:soundEffectsEnabled="false"
92                            android:text="@string/unprocessed_play"
93                            android:id="@+id/unprocessed_play_tone_btn" />
94                    </LinearLayout>
95                </LinearLayout>
96                <TextView
97                    android:layout_width="match_parent"
98                    android:layout_height="wrap_content"
99                    android:text="@string/unprocessed_test_tone_result"
100                    android:id="@+id/unprocessed_test_tone_result" />
101            </LinearLayout>
102
103            <LinearLayout
104                android:layout_width="match_parent"
105                android:layout_height="wrap_content"
106                android:orientation="vertical"
107                android:id="@+id/unprocessed_layout_test_noise">
108
109                <View
110                    android:layout_width="match_parent"
111                    android:layout_height="1dp"
112                    android:background="?android:colorAccent" />
113
114                <TextView
115                    android:layout_width="wrap_content"
116                    android:layout_height="wrap_content"
117                    android:scrollbars="vertical"
118                    android:gravity="bottom"
119                    android:text="@string/unprocessed_test_noise_instructions"
120                    android:id="@+id/unprocessed_test_noise_instructions" />
121
122                <LinearLayout
123                    android:layout_width="match_parent"
124                    android:layout_height="wrap_content"
125                    android:orientation="horizontal">
126
127                    <LinearLayout
128                        android:layout_width="wrap_content"
129                        android:layout_height="wrap_content"
130                        android:orientation="vertical"
131                        android:layout_weight="2">
132
133                        <Button
134                            android:layout_width="wrap_content"
135                            android:layout_height="wrap_content"
136                            android:soundEffectsEnabled="false"
137                            android:text="@string/unprocessed_test_noise_btn"
138                            android:id="@+id/unprocessed_test_noise_btn" />
139                        <ProgressBar
140                            android:layout_width="wrap_content"
141                            android:layout_height="wrap_content"
142                            android:layout_weight="1"
143                            android:id="@+id/unprocessed_test_noise_progress_bar" />
144                    </LinearLayout>
145
146                    <View
147                        android:layout_width="1dp"
148                        android:layout_height="match_parent"
149                        android:background="?android:colorAccent" />
150
151                    <LinearLayout
152                        android:layout_width="0dp"
153                        android:layout_height="wrap_content"
154                        android:orientation="vertical"
155                        android:layout_weight="1">
156                        <Button
157                            android:layout_width="wrap_content"
158                            android:layout_height="wrap_content"
159                            android:soundEffectsEnabled="false"
160                            android:text="@string/unprocessed_play"
161                            android:id="@+id/unprocessed_play_noise_btn" />
162                    </LinearLayout>
163                </LinearLayout>
164                <TextView
165                    android:layout_width="match_parent"
166                    android:layout_height="wrap_content"
167                    android:text="@string/unprocessed_test_noise_result"
168                    android:id="@+id/unprocessed_test_noise_result" />
169            </LinearLayout>
170
171        <LinearLayout
172                android:layout_width="match_parent"
173                android:layout_height="wrap_content"
174                android:orientation="vertical"
175                android:id="@+id/unprocessed_layout_test_usb_background">
176
177                <View
178                    android:layout_width="match_parent"
179                    android:layout_height="1dp"
180                    android:background="?android:colorAccent" />
181
182                <TextView
183                    android:layout_width="wrap_content"
184                    android:layout_height="wrap_content"
185                    android:scrollbars="vertical"
186                    android:gravity="bottom"
187                    android:text="@string/unprocessed_test_usb_background_instructions"
188                    android:id="@+id/unprocessed_test_usb_background_instructions" />
189
190                <LinearLayout
191                    android:layout_width="match_parent"
192                    android:layout_height="wrap_content"
193                    android:orientation="horizontal">
194
195                    <LinearLayout
196                        android:layout_width="wrap_content"
197                        android:layout_height="wrap_content"
198                        android:orientation="vertical"
199                        android:layout_weight="2">
200
201                        <Button
202                            android:layout_width="wrap_content"
203                            android:layout_height="wrap_content"
204                            android:soundEffectsEnabled="false"
205                            android:text="@string/unprocessed_test_usb_background_btn"
206                            android:id="@+id/unprocessed_test_usb_background_btn" />
207                        <ProgressBar
208                            android:layout_width="wrap_content"
209                            android:layout_height="wrap_content"
210                            android:layout_weight="1"
211                            android:id="@+id/unprocessed_test_usb_background_progress_bar" />
212                    </LinearLayout>
213                </LinearLayout>
214                <TextView
215                    android:layout_width="match_parent"
216                    android:layout_height="wrap_content"
217                    android:text="@string/unprocessed_test_usb_background_result"
218                    android:id="@+id/unprocessed_test_usb_background_result" />
219            </LinearLayout>
220
221            <LinearLayout
222                android:layout_width="match_parent"
223                android:layout_height="wrap_content"
224                android:orientation="vertical"
225                android:id="@+id/unprocessed_layout_test_usb_noise">
226
227                <View
228                    android:layout_width="match_parent"
229                    android:layout_height="1dp"
230                    android:background="?android:colorAccent" />
231
232                <TextView
233                    android:layout_width="wrap_content"
234                    android:layout_height="wrap_content"
235                    android:scrollbars="vertical"
236                    android:gravity="bottom"
237                    android:text="@string/unprocessed_test_usb_noise_instructions"
238                    android:id="@+id/unprocessed_test_usb_noise_instructions" />
239
240                <LinearLayout
241                    android:layout_width="match_parent"
242                    android:layout_height="wrap_content"
243                    android:orientation="horizontal">
244
245                    <LinearLayout
246                        android:layout_width="wrap_content"
247                        android:layout_height="wrap_content"
248                        android:orientation="vertical"
249                        android:layout_weight="2">
250
251                        <Button
252                            android:layout_width="wrap_content"
253                            android:layout_height="wrap_content"
254                            android:soundEffectsEnabled="false"
255                            android:text="@string/unprocessed_test_usb_noise_btn"
256                            android:id="@+id/unprocessed_test_usb_noise_btn" />
257                        <ProgressBar
258                            android:layout_width="wrap_content"
259                            android:layout_height="wrap_content"
260                            android:layout_weight="1"
261                            android:id="@+id/unprocessed_test_usb_noise_progress_bar" />
262                    </LinearLayout>
263
264                    <View
265                        android:layout_width="1dp"
266                        android:layout_height="match_parent"
267                        android:background="?android:colorAccent" />
268
269                    <LinearLayout
270                        android:layout_width="0dp"
271                        android:layout_height="wrap_content"
272                        android:orientation="vertical"
273                        android:layout_weight="1">
274                        <Button
275                            android:layout_width="wrap_content"
276                            android:layout_height="wrap_content"
277                            android:soundEffectsEnabled="false"
278                            android:text="@string/unprocessed_play"
279                            android:id="@+id/unprocessed_play_usb_noise_btn" />
280                    </LinearLayout>
281                </LinearLayout>
282                <TextView
283                    android:layout_width="match_parent"
284                    android:layout_height="wrap_content"
285                    android:text="@string/unprocessed_test_usb_noise_result"
286                    android:id="@+id/unprocessed_test_usb_noise_result" />
287            </LinearLayout>
288             <View
289                android:layout_width="match_parent"
290                android:layout_height="1dp"
291                android:background="?android:colorAccent" />
292
293            <TextView
294                    android:layout_width="match_parent"
295                    android:layout_height="wrap_content"
296                    android:text="@string/unprocessed_test_global_result"
297                    android:id="@+id/unprocessed_test_global_result" />
298
299            <include layout="@layout/pass_fail_buttons" />
300        </LinearLayout>
301    </ScrollView>
302
303</LinearLayout>
304