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