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 <ScrollView 17 android:layout_width="match_parent" 18 android:layout_height="match_parent" 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 android:id="@+id/scrollView" 21 style="@style/RootLayoutPadding"> 22 23 <LinearLayout 24 android:layout_width="match_parent" 25 android:layout_height="wrap_content" 26 android:orientation="vertical"> 27 28 <LinearLayout 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content" 31 android:orientation="horizontal" 32 style="?android:attr/buttonBarStyle"> 33 <Button 34 android:layout_width="wrap_content" 35 android:layout_height="wrap_content" 36 style="?android:attr/buttonBarButtonStyle" 37 android:text="@string/audio_loopback_calibrate_button" 38 android:id="@+id/audio_loopback_calibrate_button"/> 39 40 <Button 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 style="?android:attr/buttonBarButtonStyle" 44 android:text="@string/audio_loopback_devsupport_button" 45 android:id="@+id/audio_loopback_devsupport_button"/> 46 </LinearLayout> 47 48 <LinearLayout 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:orientation="vertical" 52 android:id="@+id/audio_loopback_headset_port"> 53 54 <LinearLayout 55 android:orientation="horizontal" 56 android:layout_width="match_parent" 57 android:layout_height="wrap_content"> 58 59 <TextView 60 android:layout_width="wrap_content" 61 android:layout_height="match_parent" 62 android:text="@string/audio_loopback_proaudio"/> 63 64 <TextView 65 android:layout_width="wrap_content" 66 android:layout_height="match_parent" 67 android:textStyle="bold" 68 android:id="@+id/audio_loopback_pro_audio"/> 69 70 <TextView 71 android:layout_width="wrap_content" 72 android:layout_height="match_parent" 73 android:layout_marginStart="5dp" 74 android:text="@string/audio_loopback_lowlatency"/> 75 76 <TextView 77 android:layout_width="wrap_content" 78 android:layout_height="match_parent" 79 android:textStyle="bold" 80 android:id="@+id/audio_loopback_low_latency"/> 81 82 <TextView 83 android:layout_width="wrap_content" 84 android:layout_height="match_parent" 85 android:layout_marginStart="5dp" 86 android:text="@string/audio_loopback_mcp"/> 87 88 <TextView 89 android:layout_width="wrap_content" 90 android:layout_height="match_parent" 91 android:textStyle="bold" 92 android:id="@+id/audio_loopback_mpc"/> 93 </LinearLayout> 94 95 <LinearLayout 96 android:orientation="horizontal" 97 android:layout_width="match_parent" 98 android:layout_height="wrap_content"> 99 100 <TextView 101 android:layout_width="wrap_content" 102 android:layout_height="match_parent" 103 android:text="@string/audio_loopback_mmap"/> 104 105 <TextView 106 android:layout_width="wrap_content" 107 android:layout_height="match_parent" 108 android:textStyle="bold" 109 android:id="@+id/audio_loopback_mmap"/> 110 111 <TextView 112 android:layout_width="wrap_content" 113 android:layout_height="match_parent" 114 android:layout_marginStart="5dp" 115 android:text="@string/audio_loopback_mmapexclusive"/> 116 117 <TextView 118 android:layout_width="wrap_content" 119 android:layout_height="match_parent" 120 android:textStyle="bold" 121 android:id="@+id/audio_loopback_mmap_exclusive"/> 122 </LinearLayout> 123 124 <LinearLayout 125 android:orientation="horizontal" 126 android:layout_width="match_parent" 127 android:layout_height="wrap_content"> 128 129 <TextView 130 android:layout_width="wrap_content" 131 android:layout_height="match_parent" 132 android:text="@string/audio_loopback_watch"/> 133 134 <TextView 135 android:layout_width="wrap_content" 136 android:layout_height="match_parent" 137 android:textStyle="bold" 138 android:id="@+id/audio_loopback_is_watch"/> 139 140 <TextView 141 android:layout_width="wrap_content" 142 android:layout_height="match_parent" 143 android:layout_marginStart="5dp" 144 android:text="@string/audio_loopback_tv"/> 145 146 <TextView 147 android:layout_width="wrap_content" 148 android:layout_height="match_parent" 149 android:textStyle="bold" 150 android:id="@+id/audio_loopback_is_TV"/> 151 152 <TextView 153 android:layout_width="wrap_content" 154 android:layout_height="match_parent" 155 android:layout_marginStart="5dp" 156 android:text="@string/audio_loopback_automobile"/> 157 158 <TextView 159 android:layout_width="wrap_content" 160 android:layout_height="match_parent" 161 android:textStyle="bold" 162 android:id="@+id/audio_loopback_is_automobile"/> 163 164 <TextView 165 android:layout_width="wrap_content" 166 android:layout_height="match_parent" 167 android:layout_marginStart="5dp" 168 android:text="@string/audio_loopback_handheld"/> 169 170 <TextView 171 android:layout_width="wrap_content" 172 android:layout_height="match_parent" 173 android:textStyle="bold" 174 android:id="@+id/audio_loopback_is_handheld"/> 175 </LinearLayout> 176 177 <TextView 178 android:layout_width="match_parent" 179 android:layout_height="wrap_content" 180 android:id="@+id/audio_loopback_instructions" 181 android:textSize="20dp" 182 android:gravity="center"/> 183 184 <!-- Speaker/Mic --> 185 <LinearLayout 186 android:orientation="vertical" 187 android:layout_width="match_parent" 188 android:layout_height="wrap_content"> 189 190 <TextView 191 android:layout_width="match_parent" 192 android:layout_height="wrap_content" 193 android:text="@string/audio_loopback_speakermic" 194 android:textSize="18sp"/> 195 196 <LinearLayout 197 android:orientation="horizontal" 198 android:layout_width="match_parent" 199 android:layout_height="wrap_content"> 200 201 <Button 202 android:layout_width="wrap_content" 203 android:layout_height="wrap_content" 204 android:text="@string/audio_general_start" 205 android:id="@+id/audio_loopback_speakermicpath_btn" /> 206 207 <TextView 208 android:layout_width="match_parent" 209 android:layout_height="wrap_content" 210 android:layout_gravity="fill" 211 android:text="@string/audio_loopback_speakermicpath_instructions" 212 android:id="@+id/audio_loopback_speakermicpath_info" /> 213 </LinearLayout> 214 215 </LinearLayout> 216 217 <!-- Headset Jack --> 218 <LinearLayout 219 android:orientation="vertical" 220 android:layout_width="match_parent" 221 android:layout_height="wrap_content"> 222 223 <TextView 224 android:layout_width="match_parent" 225 android:layout_height="wrap_content" 226 android:text="@string/audio_loopback_headsetjack" 227 android:textSize="18sp"/> 228 229 <LinearLayout 230 android:orientation="horizontal" 231 android:layout_width="match_parent" 232 android:layout_height="wrap_content"> 233 234 <Button 235 android:layout_width="wrap_content" 236 android:layout_height="wrap_content" 237 android:text="@string/audio_general_start" 238 android:id="@+id/audio_loopback_headsetpath_btn" /> 239 240 <TextView 241 android:layout_width="match_parent" 242 android:layout_height="wrap_content" 243 android:layout_gravity="fill" 244 android:id="@+id/audio_loopback_headsetpath_info" /> 245 </LinearLayout> 246 </LinearLayout> 247 248 <!-- USB --> 249 <LinearLayout 250 android:orientation="vertical" 251 android:layout_width="match_parent" 252 android:layout_height="wrap_content"> 253 254 <TextView 255 android:layout_width="match_parent" 256 android:layout_height="wrap_content" 257 android:text="@string/audio_loopback_usb" 258 android:textSize="18sp"/> 259 260 <LinearLayout 261 android:orientation="horizontal" 262 android:layout_width="match_parent" 263 android:layout_height="wrap_content"> 264 265 <Button 266 android:layout_width="wrap_content" 267 android:layout_height="wrap_content" 268 android:text="@string/audio_general_start" 269 android:id="@+id/audio_loopback_usbpath_btn" /> 270 271 <TextView 272 android:layout_width="match_parent" 273 android:layout_height="wrap_content" 274 android:layout_gravity="fill" 275 android:id="@+id/audio_loopback_usbpath_info" /> 276 </LinearLayout> 277 278 </LinearLayout> 279 <LinearLayout 280 xmlns:android="http://schemas.android.com/apk/res/android" 281 android:layout_width="match_parent" 282 android:layout_height="wrap_content" 283 android:orientation="vertical"> 284 285 <ProgressBar 286 android:layout_width="wrap_content" 287 android:layout_height="wrap_content" 288 android:id="@+id/audio_loopback_progress_bar" /> 289 290 <TextView 291 android:layout_width="wrap_content" 292 android:layout_height="wrap_content" 293 android:text="@string/audio_loopback_results_text" 294 android:id="@+id/audio_loopback_status_text" 295 android:textSize="20dp" /> 296 </LinearLayout> 297 </LinearLayout> 298 <include layout="@layout/pass_fail_buttons" /> 299 </LinearLayout> 300 </ScrollView> 301