1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2021 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<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="match_parent" 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:orientation="horizontal" 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content"> 32 33 <TextView 34 android:layout_width="wrap_content" 35 android:layout_height="match_parent" 36 android:text="Internal Mic: "/> 37 38 <TextView 39 android:layout_width="wrap_content" 40 android:layout_height="match_parent" 41 android:text="" 42 android:id="@+id/audio_t2t_mic"/> 43 </LinearLayout> 44 45 <LinearLayout 46 android:orientation="horizontal" 47 android:layout_width="match_parent" 48 android:layout_height="wrap_content"> 49 50 <TextView 51 android:layout_width="wrap_content" 52 android:layout_height="match_parent" 53 android:text="Internal Speaker: "/> 54 55 <TextView 56 android:layout_width="wrap_content" 57 android:layout_height="match_parent" 58 android:text="" 59 android:id="@+id/audio_t2t_speaker"/> 60 </LinearLayout> 61 62 <LinearLayout 63 android:orientation="horizontal" 64 android:layout_width="match_parent" 65 android:layout_height="wrap_content"> 66 67 <TextView 68 android:layout_width="wrap_content" 69 android:layout_height="match_parent" 70 android:text="Pro Audio: "/> 71 72 <TextView 73 android:layout_width="wrap_content" 74 android:layout_height="match_parent" 75 android:text="" 76 android:id="@+id/audio_t2t_pro_audio"/> 77 </LinearLayout> 78 79 <LinearLayout 80 android:orientation="horizontal" 81 android:layout_width="match_parent" 82 android:layout_height="wrap_content"> 83 84 <TextView 85 android:layout_width="wrap_content" 86 android:layout_height="match_parent" 87 android:text="Low Latency: "/> 88 89 <TextView 90 android:layout_width="wrap_content" 91 android:layout_height="match_parent" 92 android:text="" 93 android:id="@+id/audio_t2t_low_latency"/> 94 </LinearLayout> 95 96 <LinearLayout 97 android:orientation="horizontal" 98 android:layout_width="match_parent" 99 android:layout_height="wrap_content"> 100 101 <TextView 102 android:layout_width="wrap_content" 103 android:layout_height="match_parent" 104 android:text="Media Performance Class: "/> 105 106 <TextView 107 android:layout_width="wrap_content" 108 android:layout_height="match_parent" 109 android:text="" 110 android:id="@+id/audio_t2t_mpc"/> 111 </LinearLayout> 112 113 <include layout="@layout/audio_java_native_api_buttons" /> 114 115 <LinearLayout 116 android:layout_width="match_parent" 117 android:layout_height="wrap_content" 118 android:orientation="horizontal"> 119 120 <Button 121 android:layout_width="wrap_content" 122 android:layout_height="wrap_content" 123 android:soundEffectsEnabled="false" 124 android:text="@string/audio_general_start" 125 android:id="@+id/tap2tone_startBtn" /> 126 127 <Button 128 android:layout_width="wrap_content" 129 android:layout_height="wrap_content" 130 android:soundEffectsEnabled="false" 131 android:text="@string/audio_general_stop" 132 android:id="@+id/tap2tone_stopBtn" /> 133 </LinearLayout> 134 135 <LinearLayout 136 android:orientation="horizontal" 137 android:layout_width="match_parent" 138 android:layout_height="wrap_content"> 139 140 <TextView 141 android:layout_width="wrap_content" 142 android:layout_height="match_parent" 143 android:textSize="20sp" 144 android:textStyle="bold" 145 android:text="Required Maximum Latency:"/> 146 147 <TextView 148 android:layout_width="wrap_content" 149 android:layout_height="match_parent" 150 android:text="" 151 android:textSize="20sp" 152 android:textStyle="bold" 153 android:id="@+id/audio_t2t_required_latency"/> 154 </LinearLayout> 155 156 <TextView 157 android:id="@+id/tap2tone_specTxt" 158 android:layout_width="match_parent" 159 android:layout_height="wrap_content" 160 android:textSize="20sp" 161 android:textStyle="bold"/> 162 163 <TextView 164 android:id="@+id/tap2tone_resultTxt" 165 android:layout_width="match_parent" 166 android:layout_height="wrap_content" 167 android:textSize="20sp" 168 android:textStyle="bold"/> 169 170 <TextView 171 android:id="@+id/tap2tone_statsTxt" 172 android:layout_width="match_parent" 173 android:layout_height="wrap_content" 174 android:textSize="20sp" 175 android:textStyle="bold"/> 176 177 <TextView 178 android:id="@+id/tap2tone_phaseInfo" 179 android:layout_width="match_parent" 180 android:layout_height="wrap_content" 181 android:textSize="20sp" 182 android:textStyle="bold"/> 183 184 <Button 185 android:layout_width="wrap_content" 186 android:layout_height="wrap_content" 187 android:soundEffectsEnabled="false" 188 android:text="@string/audio_general_clear_results" 189 android:id="@+id/tap2tone_clearResults" /> 190 191 <com.android.cts.verifier.audio.audiolib.WaveformView 192 android:id="@+id/tap2tone_waveView" 193 android:layout_width="fill_parent" 194 android:layout_height="120dp" /> 195 196 <include layout="@layout/pass_fail_buttons" /> 197 198 </LinearLayout> 199</ScrollView> 200