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:fitsSystemWindows="true" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:orientation="vertical" 23 style="@style/RootLayoutPadding"> 24 25 <ScrollView 26 android:layout_width="match_parent" 27 android:layout_height="match_parent" 28 android:id="@+id/scrollView"> 29 30 <LinearLayout 31 android:layout_width="match_parent" 32 android:layout_height="wrap_content" 33 android:orientation="vertical"> 34 35 <include layout="@layout/audio_refmic_layout"/> 36 37 <LinearLayout 38 android:layout_width="match_parent" 39 android:layout_height="wrap_content" 40 android:orientation="vertical" 41 android:id="@+id/vr_layout_test_tone"> 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/vr_test_tone_instructions" 54 android:id="@+id/vr_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/af_button_test" 72 android:id="@+id/vr_button_test_tone" /> 73 <ProgressBar 74 android:layout_width="wrap_content" 75 android:layout_height="wrap_content" 76 android:layout_weight="1" 77 android:id="@+id/vr_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/af_button_play" 96 android:id="@+id/vr_button_play_tone" /> 97 </LinearLayout> 98 </LinearLayout> 99 <TextView 100 android:layout_width="match_parent" 101 android:layout_height="wrap_content" 102 android:text="@string/af_test_results" 103 android:id="@+id/vr_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/vr_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/vr_test_noise_instructions" 123 android:id="@+id/vr_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/af_button_test" 141 android:id="@+id/vr_button_test_noise" /> 142 <ProgressBar 143 android:layout_width="wrap_content" 144 android:layout_height="wrap_content" 145 android:layout_weight="1" 146 android:id="@+id/vr_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/af_button_play" 164 android:id="@+id/vr_button_play_noise" /> 165 </LinearLayout> 166 </LinearLayout> 167 <TextView 168 android:layout_width="match_parent" 169 android:layout_height="wrap_content" 170 android:text="@string/af_test_results" 171 android:id="@+id/vr_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/vr_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/vr_test_usb_background_instructions" 191 android:id="@+id/vr_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/af_button_test" 209 android:id="@+id/vr_button_test_usb_background" /> 210 <ProgressBar 211 android:layout_width="wrap_content" 212 android:layout_height="wrap_content" 213 android:layout_weight="1" 214 android:id="@+id/vr_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/af_test_results" 221 android:id="@+id/vr_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/vr_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/vr_test_usb_noise_instructions" 241 android:id="@+id/vr_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/af_button_test" 259 android:id="@+id/vr_button_test_usb_noise" /> 260 <ProgressBar 261 android:layout_width="wrap_content" 262 android:layout_height="wrap_content" 263 android:layout_weight="1" 264 android:id="@+id/vr_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/af_button_play" 282 android:id="@+id/vr_button_play_usb_noise" /> 283 </LinearLayout> 284 </LinearLayout> 285 <TextView 286 android:layout_width="match_parent" 287 android:layout_height="wrap_content" 288 android:text="@string/af_test_results" 289 android:id="@+id/vr_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/af_global_test_results" 300 android:id="@+id/vr_test_global_result" /> 301 302 <include layout="@layout/pass_fail_buttons" /> 303 </LinearLayout> 304 </ScrollView> 305 306</LinearLayout> 307