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    android:layout_width="fill_parent"
18    android:layout_height="fill_parent"
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:orientation="vertical" >
21    <LinearLayout
22        android:layout_width="match_parent"
23        android:layout_height="wrap_content"
24        android:orientation="horizontal" >
25        <Space
26            android:layout_width="3dp"
27            android:layout_height="match_parent" />
28        <TextView
29            android:layout_width="wrap_content"
30            android:layout_height="wrap_content"
31            android:text="@string/volume_key_events" />
32        <Space
33            android:layout_width="3dp"
34            android:layout_height="match_parent" />
35        <Button
36            android:id="@+id/volume_plus_key_event_button"
37            android:layout_width="wrap_content"
38            android:layout_height="wrap_content"
39            android:text="@string/volume_up" />
40        <Space
41            android:layout_width="3dp"
42            android:layout_height="match_parent" />
43        <Button
44            android:id="@+id/volume_minus_key_event_button"
45            android:layout_width="wrap_content"
46            android:layout_height="wrap_content"
47            android:text="@string/volume_down" />
48        <Space
49            android:layout_width="3dp"
50            android:layout_height="match_parent" />
51        <Button
52            android:id="@+id/volume_mute_key_event_button"
53            android:layout_width="wrap_content"
54            android:layout_height="wrap_content"
55            android:text="@string/volume_mute" />
56        <Space
57            android:layout_width="3dp"
58            android:layout_height="match_parent" />
59    </LinearLayout>
60    <include android:id="@+id/audio_zone_configuration_layout"
61        android:layout_width="fill_parent"
62        android:layout_height="wrap_content"
63        layout="@layout/audio_configuration_select_layout" />
64    <ScrollView
65        android:layout_width="fill_parent"
66        android:layout_height="wrap_content">
67        <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
68            android:layout_width="match_parent"
69            android:layout_height="match_parent"
70            android:orientation="vertical" >
71            <LinearLayout
72                android:layout_width="match_parent"
73                android:layout_height="wrap_content"
74                android:orientation="horizontal"
75                android:layout_weight="1"
76                android:visibility="gone"
77                android:id="@+id/audio_select_device_address_layout">
78                <TextView
79                    android:id="@+id/select_device_title"
80                    android:layout_width="wrap_content"
81                    android:layout_height="wrap_content"
82                    android:text="@string/select_device" />
83                <Space
84                    android:layout_width="3dp"
85                    android:layout_height="match_parent" />
86                <Spinner
87                    android:id="@+id/device_address_spinner"
88                    android:layout_width="wrap_content"
89                    android:layout_height="wrap_content" />
90                <Space
91                    android:layout_width="3dp"
92                    android:layout_height="match_parent" />
93                <Button
94                    android:id="@+id/button_device_media_play_start"
95                    android:layout_width="wrap_content"
96                    android:layout_height="wrap_content"
97                    android:text="@string/play" />
98                <Space
99                    android:layout_width="3dp"
100                    android:layout_height="match_parent" />
101                <Button
102                    android:id="@+id/button_device_media_play_once"
103                    android:layout_width="wrap_content"
104                    android:layout_height="wrap_content"
105                    android:text="@string/play_pcm_once" />
106                <Space
107                    android:layout_width="3dp"
108                    android:layout_height="match_parent" />
109                <Button
110                    android:id="@+id/button_device_media_play_stop"
111                    android:layout_width="wrap_content"
112                    android:layout_height="wrap_content"
113                    android:text="@string/stop" />
114            </LinearLayout>
115            <LinearLayout
116                android:layout_width="match_parent"
117                android:layout_height="wrap_content"
118                android:orientation="horizontal"
119                android:layout_weight="1" >
120                <TextView
121                    android:id="@+id/zone_selection_title"
122                    android:layout_width="wrap_content"
123                    android:layout_height="wrap_content"
124                    android:text="@string/select_zone_to_hear_on_speaker" />
125                <Spinner
126                    android:id="@+id/zone_spinner"
127                    android:layout_width="fill_parent"
128                    android:layout_height="wrap_content"
129                    android:layout_marginLeft="10dp"/>
130            </LinearLayout>
131            <LinearLayout
132                android:layout_width="match_parent"
133                android:layout_height="wrap_content"
134                android:orientation="horizontal"
135                android:layout_weight="1" >
136                <TextView
137                    android:id="@+id/activity_current_zone_id_title"
138                    android:layout_width="wrap_content"
139                    android:layout_height="wrap_content"
140                    android:text="@string/activity_current_zone_id" />
141                <TextView
142                    android:id="@+id/activity_current_zone"
143                    android:paddingLeft="8dp"
144                    android:layout_width="wrap_content"
145                    android:layout_height="wrap_content"
146                    android:text="@string/no_zone" />
147            </LinearLayout>
148            <LinearLayout
149                android:layout_width="match_parent"
150                android:layout_height="wrap_content"
151                android:orientation="vertical"
152                android:layout_weight="1" >
153                <LinearLayout
154                    android:layout_width="match_parent"
155                    android:layout_height="wrap_content"
156                    android:orientation="horizontal" >
157                    <TextView
158                        android:id="@+id/audio_focus_title"
159                        android:layout_width="wrap_content"
160                        android:layout_height="wrap_content"
161                        android:text="@string/audio_focus" />
162                    <Button
163                        android:id="@+id/button_audio_focus_request"
164                        android:layout_width="wrap_content"
165                        android:layout_height="wrap_content"
166                        android:text="@string/request" />
167                    <TextView
168                        android:id="@+id/text_audio_focus_state"
169                        android:layout_width="wrap_content"
170                        android:layout_height="wrap_content"
171                        android:text="@string/empty" />
172                </LinearLayout>
173                <RadioGroup
174                    android:id="@+id/button_focus_request_selection"
175                    android:layout_width="wrap_content"
176                    android:layout_height="wrap_content"
177                    android:orientation="horizontal" >
178                    <RadioButton
179                        android:id="@+id/focus_gain"
180                        android:layout_width="wrap_content"
181                        android:layout_height="wrap_content"
182                        android:text="@string/focus_gain" />
183                    <RadioButton
184                        android:id="@+id/focus_gain_transient"
185                        android:layout_width="wrap_content"
186                        android:layout_height="wrap_content"
187                        android:text="@string/focus_gain_transient" />
188                    <RadioButton
189                        android:id="@+id/focus_gain_transient_duck"
190                        android:layout_width="wrap_content"
191                        android:layout_height="wrap_content"
192                        android:text="@string/focus_gain_transient_duck" />
193                    <RadioButton
194                        android:id="@+id/focus_gain_transient_exclusive"
195                        android:layout_width="wrap_content"
196                        android:layout_height="wrap_content"
197                        android:text="@string/focus_gain_transient_exclusive" />
198                    <RadioButton
199                        android:id="@+id/focus_release"
200                        android:layout_width="wrap_content"
201                        android:layout_height="wrap_content"
202                        android:text="@string/focus_release" />
203                </RadioGroup>
204            </LinearLayout>
205            <LinearLayout
206                android:layout_width="match_parent"
207                android:layout_height="wrap_content"
208                android:orientation="horizontal"
209                android:layout_weight="1" >
210                <TextView
211                    android:id="@+id/nav_play_title"
212                    android:layout_width="wrap_content"
213                    android:layout_height="wrap_content"
214                    android:text="@string/nav_play" />
215                <Button
216                    android:id="@+id/button_nav_play_once"
217                    android:layout_width="wrap_content"
218                    android:layout_height="wrap_content"
219                    android:text="@string/play_pcm_once" />
220                <TextView
221                    android:id="@+id/vr_play_title"
222                    android:layout_width="wrap_content"
223                    android:layout_height="wrap_content"
224                    android:text="@string/vr_play" />
225                <Button
226                    android:id="@+id/button_vr_play_once"
227                    android:layout_width="wrap_content"
228                    android:layout_height="wrap_content"
229                    android:text="@string/play_pcm_once" />
230                <TextView
231                    android:id="@+id/system_play_title"
232                    android:layout_width="wrap_content"
233                    android:layout_height="wrap_content"
234                    android:text="@string/system_play" />
235                <Button
236                    android:id="@+id/button_system_play_once"
237                    android:layout_width="wrap_content"
238                    android:layout_height="wrap_content"
239                    android:text="@string/play_pcm_once" />
240            </LinearLayout>
241
242            <LinearLayout
243                android:layout_width="match_parent"
244                android:layout_height="wrap_content"
245                android:orientation="horizontal"
246                android:layout_weight="1" >
247                <TextView
248                    android:id="@+id/media_play_title"
249                    android:layout_width="wrap_content"
250                    android:layout_height="wrap_content"
251                    android:text="@string/media_play" />
252                <Button
253                    android:id="@+id/button_media_play_start"
254                    android:layout_width="wrap_content"
255                    android:layout_height="wrap_content"
256                    android:text="@string/play" />
257                <Button
258                    android:id="@+id/button_media_play_once"
259                    android:layout_width="wrap_content"
260                    android:layout_height="wrap_content"
261                    android:text="@string/play_pcm_once" />
262                <Button
263                    android:id="@+id/button_media_play_stop"
264                    android:layout_width="wrap_content"
265                    android:layout_height="wrap_content"
266                    android:text="@string/stop" />
267                <Button
268                    android:id="@+id/button_speaker_phone_on"
269                    android:layout_width="wrap_content"
270                    android:layout_height="wrap_content"
271                    android:text="@string/speaker_phone_on" />
272                <Button
273                    android:id="@+id/button_speaker_phone_off"
274                    android:layout_width="wrap_content"
275                    android:layout_height="wrap_content"
276                    android:text="@string/speaker_phone_off" />
277            </LinearLayout>
278            <LinearLayout
279                android:layout_width="match_parent"
280                android:layout_height="wrap_content"
281                android:orientation="horizontal"
282                android:layout_weight="1" >
283                <TextView
284                    android:layout_width="wrap_content"
285                    android:layout_height="wrap_content"
286                    android:text="@string/hw_audio_source_title" />
287                <TextView
288                    android:id="@+id/hw_audio_source_not_found"
289                    android:layout_width="wrap_content"
290                    android:layout_height="wrap_content"
291                    android:paddingLeft="8dp"
292                    android:text="@string/hw_audio_source_not_found" />
293                <Button
294                    android:id="@+id/hw_audio_source_start"
295                    android:layout_width="wrap_content"
296                    android:layout_height="wrap_content"
297                    android:text="@string/play" />
298                <Button
299                    android:id="@+id/hw_audio_source_stop"
300                    android:layout_width="wrap_content"
301                    android:layout_height="wrap_content"
302                    android:text="@string/stop" />
303            </LinearLayout>
304            <LinearLayout
305                android:layout_width="match_parent"
306                android:layout_height="wrap_content"
307                android:orientation="horizontal"
308                android:layout_weight="1" >
309                <TextView
310                    android:layout_width="wrap_content"
311                    android:layout_height="wrap_content"
312                    android:text="@string/media_with_delayed_focus" />
313                <Space
314                    android:layout_width="3dp"
315                    android:layout_height="match_parent" />
316                <Button
317                    android:id="@+id/media_delayed_focus_start"
318                    android:layout_width="wrap_content"
319                    android:layout_height="wrap_content"
320                    android:text="@string/play" />
321                <Space
322                    android:layout_width="3dp"
323                    android:layout_height="match_parent" />
324                <Button
325                    android:id="@+id/media_delayed_focus_stop"
326                    android:layout_width="wrap_content"
327                    android:layout_height="wrap_content"
328                    android:text="@string/stop" />
329                <Space
330                    android:layout_width="3dp"
331                    android:layout_height="match_parent" />
332                <TextView
333                    android:id="@+id/media_delayed_player_status"
334                    android:layout_width="wrap_content"
335                    android:layout_height="wrap_content"
336                    android:paddingLeft="8dp"
337                    android:text="@string/player_not_started" />
338                <Space
339                    android:layout_width="6dp"
340                    android:layout_height="match_parent" />
341                <TextView
342                    android:id="@+id/media_delayed_player_device"
343                    android:layout_width="wrap_content"
344                    android:layout_height="wrap_content"
345                    android:paddingLeft="8dp"
346                    android:text="@string/audio_device_selected" />
347                <Space
348                    android:layout_width="3dp"
349                    android:layout_height="match_parent" />
350            </LinearLayout>
351            <LinearLayout
352                android:layout_width="match_parent"
353                android:layout_height="wrap_content"
354                android:orientation="horizontal"
355                android:layout_weight="1" >
356                <TextView
357                    android:layout_width="wrap_content"
358                    android:layout_height="wrap_content"
359                    android:text="@string/phone_audio_player" />
360                <Button
361                    android:id="@+id/phone_audio_focus_start"
362                    android:layout_width="wrap_content"
363                    android:layout_height="wrap_content"
364                    android:text="@string/play" />
365                <Button
366                    android:id="@+id/phone_audio_focus_stop"
367                    android:layout_width="wrap_content"
368                    android:layout_height="wrap_content"
369                    android:text="@string/stop" />
370            </LinearLayout>
371            <LinearLayout
372                android:layout_width="match_parent"
373                android:layout_height="wrap_content"
374                android:orientation="horizontal"
375                android:layout_weight="1" >
376                <Button
377                    android:id="@+id/button_microphone_on"
378                    android:layout_width="wrap_content"
379                    android:layout_height="wrap_content"
380                    android:text="@string/microphone_on" />
381                <Button
382                    android:id="@+id/button_microphone_off"
383                    android:layout_width="wrap_content"
384                    android:layout_height="wrap_content"
385                    android:text="@string/microphone_off" />
386                <Button
387                    android:id="@+id/button_wav_play_start"
388                    android:layout_width="wrap_content"
389                    android:layout_height="wrap_content"
390                    android:text="@string/play_wav" />
391                <Button
392                    android:id="@+id/button_wav_play_stop"
393                    android:layout_width="wrap_content"
394                    android:layout_height="wrap_content"
395                    android:text="@string/stop_wav" />
396            </LinearLayout>
397            <LinearLayout
398                android:layout_width="match_parent"
399                android:layout_height="wrap_content"
400                android:orientation="horizontal"
401                android:layout_weight="1" >
402                <Button
403                    android:id="@+id/button_nav_start"
404                    android:layout_width="wrap_content"
405                    android:layout_height="wrap_content"
406                    android:text="@string/nav_start" />
407                <Button
408                    android:id="@+id/button_nav_end"
409                    android:layout_width="wrap_content"
410                    android:layout_height="wrap_content"
411                    android:text="@string/nav_end" />
412                <Button
413                    android:id="@+id/button_vr_start"
414                    android:layout_width="wrap_content"
415                    android:layout_height="wrap_content"
416                    android:text="@string/vr_start" />
417                <Button
418                    android:id="@+id/button_vr_end"
419                    android:layout_width="wrap_content"
420                    android:layout_height="wrap_content"
421                    android:text="@string/vr_end" />
422                <Button
423                    android:id="@+id/button_radio_start"
424                    android:layout_width="wrap_content"
425                    android:layout_height="wrap_content"
426                    android:text="@string/radio_start" />
427                <Button
428                    android:id="@+id/button_radio_end"
429                    android:layout_width="wrap_content"
430                    android:layout_height="wrap_content"
431                    android:text="@string/radio_end" />
432            </LinearLayout>
433            <LinearLayout
434                android:layout_width="match_parent"
435                android:layout_height="wrap_content"
436                android:orientation="horizontal"
437                android:layout_weight="1" >
438                <TextView
439                    android:layout_width="wrap_content"
440                    android:layout_height="wrap_content"
441                    android:text="@string/track_audio_player" />
442                <TextView
443                    android:id="@+id/tone_selection_title"
444                    android:layout_width="wrap_content"
445                    android:layout_height="wrap_content"
446                    android:text="@string/select_tone_to_hear_on_speaker" />
447                <Spinner
448                    android:id="@+id/tone_spinner"
449                    android:layout_width="wrap_content"
450                    android:layout_height="wrap_content"
451                    android:layout_marginLeft="10dp"/>
452                <Button
453                    android:id="@+id/track_audio_start"
454                    android:layout_width="wrap_content"
455                    android:layout_height="wrap_content"
456                    android:text="@string/play" />
457                <Button
458                    android:id="@+id/track_audio_stop"
459                    android:layout_width="wrap_content"
460                    android:layout_height="wrap_content"
461                    android:text="@string/stop" />
462            </LinearLayout>
463            <include android:id="@+id/audio_players"
464                android:layout_width="fill_parent"
465                android:layout_height="wrap_content"
466                layout="@layout/audio_player_tabs" />
467        </LinearLayout>
468    </ScrollView>
469</LinearLayout>
470