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="@string/audio_loopback_proaudio"/> 78 79 <TextView 80 android:layout_width="wrap_content" 81 android:layout_height="match_parent" 82 android:textStyle="bold" 83 android:id="@+id/audio_loopback_pro_audio"/> 84 85 <TextView 86 android:layout_width="wrap_content" 87 android:layout_height="match_parent" 88 android:layout_marginStart="5dp" 89 android:text="@string/audio_loopback_lowlatency"/> 90 91 <TextView 92 android:layout_width="wrap_content" 93 android:layout_height="match_parent" 94 android:textStyle="bold" 95 android:id="@+id/audio_loopback_low_latency"/> 96 97 <TextView 98 android:layout_width="wrap_content" 99 android:layout_height="match_parent" 100 android:layout_marginStart="5dp" 101 android:text="@string/audio_loopback_mcp"/> 102 103 <TextView 104 android:layout_width="wrap_content" 105 android:layout_height="match_parent" 106 android:textStyle="bold" 107 android:id="@+id/audio_loopback_mpc"/> 108 </LinearLayout> 109 110 <LinearLayout 111 android:orientation="horizontal" 112 android:layout_width="match_parent" 113 android:layout_height="wrap_content"> 114 115 <TextView 116 android:layout_width="wrap_content" 117 android:layout_height="match_parent" 118 android:text="@string/audio_loopback_mmap"/> 119 120 <TextView 121 android:layout_width="wrap_content" 122 android:layout_height="match_parent" 123 android:textStyle="bold" 124 android:id="@+id/audio_loopback_mmap"/> 125 126 <TextView 127 android:layout_width="wrap_content" 128 android:layout_height="match_parent" 129 android:layout_marginStart="5dp" 130 android:text="@string/audio_loopback_mmapexclusive"/> 131 132 <TextView 133 android:layout_width="wrap_content" 134 android:layout_height="match_parent" 135 android:textStyle="bold" 136 android:id="@+id/audio_loopback_mmap_exclusive"/> 137 </LinearLayout> 138 139 <LinearLayout 140 android:orientation="horizontal" 141 android:layout_width="match_parent" 142 android:layout_height="wrap_content"> 143 144 <TextView 145 android:layout_width="wrap_content" 146 android:layout_height="match_parent" 147 android:text="@string/audio_loopback_watch"/> 148 149 <TextView 150 android:layout_width="wrap_content" 151 android:layout_height="match_parent" 152 android:textStyle="bold" 153 android:id="@+id/audio_loopback_is_watch"/> 154 155 <TextView 156 android:layout_width="wrap_content" 157 android:layout_height="match_parent" 158 android:layout_marginStart="5dp" 159 android:text="@string/audio_loopback_tv"/> 160 161 <TextView 162 android:layout_width="wrap_content" 163 android:layout_height="match_parent" 164 android:textStyle="bold" 165 android:id="@+id/audio_loopback_is_TV"/> 166 167 <TextView 168 android:layout_width="wrap_content" 169 android:layout_height="match_parent" 170 android:layout_marginStart="5dp" 171 android:text="@string/audio_loopback_automobile"/> 172 173 <TextView 174 android:layout_width="wrap_content" 175 android:layout_height="match_parent" 176 android:textStyle="bold" 177 android:id="@+id/audio_loopback_is_automobile"/> 178 179 <TextView 180 android:layout_width="wrap_content" 181 android:layout_height="match_parent" 182 android:layout_marginStart="5dp" 183 android:text="@string/audio_loopback_handheld"/> 184 185 <TextView 186 android:layout_width="wrap_content" 187 android:layout_height="match_parent" 188 android:textStyle="bold" 189 android:id="@+id/audio_loopback_is_handheld"/> 190 </LinearLayout> 191 192 <TextView 193 android:layout_width="match_parent" 194 android:layout_height="wrap_content" 195 android:id="@+id/audio_loopback_instructions" 196 android:textSize="20dp" 197 android:gravity="center"/> 198 199 <!-- Speaker/Mic --> 200 <LinearLayout 201 android:orientation="vertical" 202 android:layout_width="match_parent" 203 android:layout_height="wrap_content"> 204 205 <TextView 206 android:layout_width="match_parent" 207 android:layout_height="wrap_content" 208 android:text="@string/audio_loopback_speakermic" 209 android:textSize="18sp"/> 210 211 <LinearLayout 212 android:orientation="horizontal" 213 android:layout_width="match_parent" 214 android:layout_height="wrap_content" 215 android:id="@+id/audio_loopback_layout"> 216 217 <Button 218 android:layout_width="wrap_content" 219 android:layout_height="wrap_content" 220 android:text="@string/audio_general_start" 221 android:id="@+id/audio_loopback_speakermicpath_btn" /> 222 223 <TextView 224 android:layout_width="match_parent" 225 android:layout_height="wrap_content" 226 android:layout_gravity="fill" 227 android:text="@string/audio_loopback_speakermicpath_instructions" 228 android:id="@+id/audio_loopback_speakermicpath_info" /> 229 </LinearLayout> 230 231 </LinearLayout> 232 233 <!-- Headset Jack --> 234 <LinearLayout 235 android:orientation="vertical" 236 android:layout_width="match_parent" 237 android:layout_height="wrap_content"> 238 239 <TextView 240 android:layout_width="match_parent" 241 android:layout_height="wrap_content" 242 android:text="@string/audio_loopback_headsetjack" 243 android:textSize="18sp"/> 244 245 <LinearLayout 246 android:orientation="horizontal" 247 android:layout_width="match_parent" 248 android:layout_height="wrap_content" 249 android:id="@+id/audio_loopback_layout"> 250 251 <Button 252 android:layout_width="wrap_content" 253 android:layout_height="wrap_content" 254 android:text="@string/audio_general_start" 255 android:id="@+id/audio_loopback_headsetpath_btn" /> 256 257 <TextView 258 android:layout_width="match_parent" 259 android:layout_height="wrap_content" 260 android:layout_gravity="fill" 261 android:text="@string/audio_loopback_headsetpath_instructions" 262 android:id="@+id/audio_loopback_headsetpath_info" /> 263 </LinearLayout> 264 </LinearLayout> 265 266 <!-- USB --> 267 <LinearLayout 268 android:orientation="vertical" 269 android:layout_width="match_parent" 270 android:layout_height="wrap_content"> 271 272 <TextView 273 android:layout_width="match_parent" 274 android:layout_height="wrap_content" 275 android:text="@string/audio_loopback_usb" 276 android:textSize="18sp"/> 277 278 <LinearLayout 279 android:orientation="horizontal" 280 android:layout_width="match_parent" 281 android:layout_height="wrap_content"> 282 283 <Button 284 android:layout_width="wrap_content" 285 android:layout_height="wrap_content" 286 android:text="@string/audio_general_start" 287 android:id="@+id/audio_loopback_usbpath_btn" /> 288 289 <TextView 290 android:layout_width="match_parent" 291 android:layout_height="wrap_content" 292 android:layout_gravity="fill" 293 android:text="@string/audio_loopback_usbpath_instructions" 294 android:id="@+id/audio_loopback_usbpath_info" /> 295 </LinearLayout> 296 297 </LinearLayout> 298 299 <LinearLayout 300 xmlns:android="http://schemas.android.com/apk/res/android" 301 android:layout_width="match_parent" 302 android:layout_height="wrap_content" 303 android:orientation="vertical"> 304 305 <ProgressBar 306 android:layout_width="wrap_content" 307 android:layout_height="wrap_content" 308 android:id="@+id/audio_loopback_progress_bar" /> 309 310 <TextView 311 android:layout_width="wrap_content" 312 android:layout_height="wrap_content" 313 android:text="@string/audio_loopback_results_text" 314 android:id="@+id/audio_loopback_status_text" 315 android:textSize="20dp" /> 316 </LinearLayout> 317 318 </LinearLayout> 319 <include layout="@layout/pass_fail_buttons" /> 320 </LinearLayout> 321 </ScrollView> 322 323</LinearLayout> 324