Phil Burk | 0433d8f | 2018-11-21 16:41:25 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <merge xmlns:android="http://schemas.android.com/apk/res/android"> |
| 3 | |
| 4 | <LinearLayout |
| 5 | android:layout_width="match_parent" |
| 6 | android:layout_height="wrap_content" |
| 7 | android:orientation="vertical"> |
| 8 | |
Phil Burk | f03f350 | 2019-03-11 14:11:42 -0700 | [diff] [blame] | 9 | <TextView android:id="@+id/toggle_stream_config" |
| 10 | android:layout_width="match_parent" |
| 11 | android:layout_height="wrap_content" |
| 12 | android:background="#C0F0E0" |
| 13 | android:clickable="true" |
| 14 | android:text="@string/hint_hide_settings" /> |
| 15 | |
Phil Burk | a007fb3 | 2019-06-05 12:43:21 -0700 | [diff] [blame] | 16 | <LinearLayout |
| 17 | android:id="@+id/hideableView" |
| 18 | android:layout_width="match_parent" |
| 19 | android:layout_height="wrap_content" |
| 20 | android:orientation="vertical"> |
| 21 | |
Phil Burk | 0433d8f | 2018-11-21 16:41:25 -0800 | [diff] [blame] | 22 | <TableLayout |
| 23 | android:id="@+id/optionTable" |
| 24 | android:layout_width="wrap_content" |
| 25 | android:layout_height="wrap_content" |
Phil Burk | 071bf2d | 2019-03-13 19:42:33 -0700 | [diff] [blame] | 26 | android:shrinkColumns="1" |
Phil Burk | 0433d8f | 2018-11-21 16:41:25 -0800 | [diff] [blame] | 27 | > |
| 28 | |
Phil Burk | 071bf2d | 2019-03-13 19:42:33 -0700 | [diff] [blame] | 29 | <TableRow> |
Phil Burk | 0433d8f | 2018-11-21 16:41:25 -0800 | [diff] [blame] | 30 | <TextView |
| 31 | android:layout_width="wrap_content" |
| 32 | android:layout_height="wrap_content" |
| 33 | android:text="API:" /> |
| 34 | <Spinner |
| 35 | android:id="@+id/spinnerNativeApi" |
Phil Burk | 071bf2d | 2019-03-13 19:42:33 -0700 | [diff] [blame] | 36 | android:layout_width="wrap_content" |
Phil Burk | 0433d8f | 2018-11-21 16:41:25 -0800 | [diff] [blame] | 37 | android:layout_height="wrap_content" |
Phil Burk | 0433d8f | 2018-11-21 16:41:25 -0800 | [diff] [blame] | 38 | android:entries="@array/output_modes" |
Phil Burk | cd81832 | 2019-03-22 16:51:40 -0700 | [diff] [blame] | 39 | android:prompt="@string/api_prompt" /> |
Phil Burk | 0433d8f | 2018-11-21 16:41:25 -0800 | [diff] [blame] | 40 | <TextView |
| 41 | android:id="@+id/actualNativeApi" |
| 42 | android:layout_width="wrap_content" |
| 43 | android:layout_height="wrap_content" |
| 44 | android:text="\?" /> |
| 45 | </TableRow> |
| 46 | |
Phil Burk | 2beb2c7 | 2019-09-05 18:51:14 -0700 | [diff] [blame^] | 47 | <TableRow |
| 48 | android:layout_width="match_parent" |
| 49 | android:layout_height="wrap_content"> |
| 50 | |
| 51 | <TextView |
| 52 | android:layout_width="wrap_content" |
| 53 | android:layout_height="wrap_content" |
| 54 | android:text="Device: " /> |
| 55 | |
| 56 | <com.google.sample.audio_device.AudioDeviceSpinner |
| 57 | android:id="@+id/devices_spinner" |
| 58 | android:layout_width="wrap_content" |
| 59 | android:layout_height="wrap_content"/> |
| 60 | |
| 61 | </TableRow> |
| 62 | |
Phil Burk | 071bf2d | 2019-03-13 19:42:33 -0700 | [diff] [blame] | 63 | <TableRow> |
Phil Burk | 0433d8f | 2018-11-21 16:41:25 -0800 | [diff] [blame] | 64 | |
| 65 | <TextView |
| 66 | android:layout_width="wrap_content" |
| 67 | android:layout_height="wrap_content" |
| 68 | android:text="@string/sample_rate_prompt" /> |
| 69 | |
| 70 | <Spinner |
| 71 | android:id="@+id/spinnerSampleRate" |
| 72 | android:layout_width="wrap_content" |
| 73 | android:layout_height="wrap_content" |
| 74 | android:entries="@array/sample_rates" |
| 75 | android:prompt="@string/sample_rate_prompt" /> |
| 76 | |
| 77 | <TextView |
| 78 | android:id="@+id/actualSampleRate" |
| 79 | android:layout_width="wrap_content" |
| 80 | android:layout_height="wrap_content" |
| 81 | android:text="\?" /> |
| 82 | |
| 83 | </TableRow> |
| 84 | |
Phil Burk | 071bf2d | 2019-03-13 19:42:33 -0700 | [diff] [blame] | 85 | <TableRow> |
Phil Burk | 0433d8f | 2018-11-21 16:41:25 -0800 | [diff] [blame] | 86 | |
| 87 | <TextView |
| 88 | android:layout_width="wrap_content" |
| 89 | android:layout_height="wrap_content" |
| 90 | android:text="@string/channel_count_prompt" /> |
| 91 | |
| 92 | <Spinner |
| 93 | android:id="@+id/spinnerChannelCount" |
| 94 | android:layout_width="wrap_content" |
| 95 | android:layout_height="wrap_content" |
| 96 | android:entries="@array/channel_counts" |
| 97 | android:prompt="@string/channel_count_prompt" /> |
| 98 | |
| 99 | <TextView |
| 100 | android:id="@+id/actualChannelCount" |
| 101 | android:layout_width="wrap_content" |
| 102 | android:layout_height="wrap_content" |
| 103 | android:text="\?" /> |
| 104 | |
| 105 | </TableRow> |
| 106 | |
Phil Burk | 071bf2d | 2019-03-13 19:42:33 -0700 | [diff] [blame] | 107 | <TableRow> |
Phil Burk | 0433d8f | 2018-11-21 16:41:25 -0800 | [diff] [blame] | 108 | |
| 109 | <TextView |
| 110 | android:layout_width="wrap_content" |
| 111 | android:layout_height="wrap_content" |
| 112 | android:text="@string/format_prompt"/> |
| 113 | |
| 114 | <Spinner |
| 115 | android:id="@+id/spinnerFormat" |
| 116 | android:layout_width="wrap_content" |
| 117 | android:layout_height="wrap_content" |
| 118 | android:entries="@array/audio_formats" |
| 119 | android:prompt="@string/format_prompt" /> |
| 120 | |
| 121 | <TextView |
| 122 | android:id="@+id/actualAudioFormat" |
| 123 | android:layout_width="wrap_content" |
| 124 | android:layout_height="wrap_content" |
| 125 | android:text="\?" /> |
| 126 | |
| 127 | </TableRow> |
| 128 | |
Phil Burk | 071bf2d | 2019-03-13 19:42:33 -0700 | [diff] [blame] | 129 | <TableRow> |
Phil Burk | 0433d8f | 2018-11-21 16:41:25 -0800 | [diff] [blame] | 130 | |
| 131 | <TextView |
| 132 | android:layout_width="wrap_content" |
| 133 | android:layout_height="wrap_content" |
| 134 | android:text="Perf:" /> |
| 135 | |
| 136 | <Spinner |
| 137 | android:id="@+id/spinnerPerformanceMode" |
| 138 | android:layout_width="wrap_content" |
| 139 | android:layout_height="wrap_content" |
| 140 | android:entries="@array/performance_modes" |
| 141 | android:prompt="@string/performance_prompt" /> |
| 142 | |
| 143 | <TextView |
| 144 | android:id="@+id/actualPerformanceMode" |
| 145 | android:layout_width="wrap_content" |
| 146 | android:layout_height="wrap_content" |
| 147 | android:text="\?" /> |
| 148 | |
| 149 | </TableRow> |
Phil Burk | 2beb2c7 | 2019-09-05 18:51:14 -0700 | [diff] [blame^] | 150 | </TableLayout> |
Phil Burk | 0433d8f | 2018-11-21 16:41:25 -0800 | [diff] [blame] | 151 | |
Phil Burk | 2beb2c7 | 2019-09-05 18:51:14 -0700 | [diff] [blame^] | 152 | <LinearLayout |
| 153 | android:layout_width="match_parent" |
| 154 | android:layout_height="wrap_content" |
| 155 | android:orientation="horizontal"> |
| 156 | |
| 157 | <CheckBox |
| 158 | android:id="@+id/requestedMMapEnable" |
Phil Burk | 071bf2d | 2019-03-13 19:42:33 -0700 | [diff] [blame] | 159 | android:layout_width="wrap_content" |
| 160 | android:layout_height="wrap_content" |
Phil Burk | 2beb2c7 | 2019-09-05 18:51:14 -0700 | [diff] [blame^] | 161 | android:layout_marginRight="8sp" |
| 162 | android:text="MMAP" /> |
Phil Burk | 071bf2d | 2019-03-13 19:42:33 -0700 | [diff] [blame] | 163 | |
Phil Burk | 2beb2c7 | 2019-09-05 18:51:14 -0700 | [diff] [blame^] | 164 | <TextView |
| 165 | android:id="@+id/actualMMap" |
Phil Burk | 071bf2d | 2019-03-13 19:42:33 -0700 | [diff] [blame] | 166 | android:layout_width="wrap_content" |
Phil Burk | 2beb2c7 | 2019-09-05 18:51:14 -0700 | [diff] [blame^] | 167 | android:layout_height="wrap_content" |
| 168 | android:layout_marginRight="12sp" |
| 169 | android:text="\?" /> |
Phil Burk | 071bf2d | 2019-03-13 19:42:33 -0700 | [diff] [blame] | 170 | |
Phil Burk | 2beb2c7 | 2019-09-05 18:51:14 -0700 | [diff] [blame^] | 171 | <CheckBox |
| 172 | android:id="@+id/requestedExclusiveMode" |
| 173 | android:layout_width="wrap_content" |
| 174 | android:layout_height="wrap_content" |
| 175 | android:layout_marginRight="8sp" |
| 176 | android:text="Exclusive" /> |
| 177 | |
| 178 | <TextView |
| 179 | android:id="@+id/actualExclusiveMode" |
| 180 | android:layout_width="wrap_content" |
| 181 | android:layout_height="wrap_content" |
| 182 | android:layout_marginRight="15sp" |
| 183 | android:text="\?" /> |
| 184 | |
| 185 | </LinearLayout> |
| 186 | |
| 187 | <LinearLayout |
| 188 | android:layout_width="match_parent" |
| 189 | android:layout_height="wrap_content" |
| 190 | android:orientation="horizontal"> |
| 191 | |
| 192 | <CheckBox |
| 193 | android:id="@+id/requestAudioEffect" |
| 194 | android:layout_width="wrap_content" |
| 195 | android:layout_height="wrap_content" |
| 196 | android:layout_marginRight="10sp" |
| 197 | android:text="Effect" /> |
| 198 | |
| 199 | <TextView |
| 200 | android:id="@+id/sessionId" |
| 201 | android:layout_width="wrap_content" |
| 202 | android:layout_height="wrap_content" |
| 203 | android:text="\?" /> |
| 204 | |
| 205 | </LinearLayout> |
Phil Burk | 071bf2d | 2019-03-13 19:42:33 -0700 | [diff] [blame] | 206 | |
Phil Burk | a007fb3 | 2019-06-05 12:43:21 -0700 | [diff] [blame] | 207 | <LinearLayout |
| 208 | android:layout_width="match_parent" |
| 209 | android:layout_height="wrap_content" |
| 210 | android:orientation="horizontal"> |
| 211 | |
| 212 | <TextView |
| 213 | android:layout_width="wrap_content" |
| 214 | android:layout_height="wrap_content" |
| 215 | android:text="Convert:" /> |
| 216 | <CheckBox |
| 217 | android:id="@+id/checkChannelConversion" |
| 218 | android:layout_width="wrap_content" |
| 219 | android:layout_height="wrap_content" |
| 220 | android:text="Chan, " /> |
| 221 | <CheckBox |
| 222 | android:id="@+id/checkFormatConversion" |
| 223 | android:layout_width="wrap_content" |
| 224 | android:layout_height="wrap_content" |
| 225 | android:text="Format, " /> |
| 226 | |
| 227 | <TextView |
| 228 | android:layout_width="wrap_content" |
| 229 | android:layout_height="wrap_content" |
| 230 | android:text="@string/src_prompt" /> |
| 231 | <Spinner |
| 232 | android:id="@+id/spinnerSRCQuality" |
| 233 | android:layout_width="wrap_content" |
| 234 | android:layout_height="wrap_content" |
| 235 | android:entries="@array/conversion_qualities" |
| 236 | android:prompt="@string/src_prompt" /> |
| 237 | |
| 238 | </LinearLayout> |
| 239 | |
Phil Burk | a007fb3 | 2019-06-05 12:43:21 -0700 | [diff] [blame] | 240 | </LinearLayout> |
Phil Burk | 0433d8f | 2018-11-21 16:41:25 -0800 | [diff] [blame] | 241 | |
Phil Burk | 0433d8f | 2018-11-21 16:41:25 -0800 | [diff] [blame] | 242 | |
| 243 | <TextView |
| 244 | android:id="@+id/streamInfo" |
| 245 | android:layout_width="wrap_content" |
| 246 | android:layout_height="wrap_content" |
| 247 | android:text="info:" /> |
| 248 | |
Phil Burk | fb358af | 2019-03-05 12:42:35 -0800 | [diff] [blame] | 249 | <TextView |
| 250 | android:id="@+id/statusView" |
| 251 | android:layout_width="match_parent" |
| 252 | android:layout_height="wrap_content" |
| 253 | android:lines="3" |
| 254 | android:text="@string/init_status" /> |
Phil Burk | 0433d8f | 2018-11-21 16:41:25 -0800 | [diff] [blame] | 255 | </LinearLayout> |
| 256 | |
| 257 | </merge> |