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 xmlns:android="http://schemas.android.com/apk/res/android"
17    android:layout_width="match_parent"
18    android:layout_height="match_parent"
19    android:orientation="vertical" >
20    <!--  dummy one for top area -->
21    <LinearLayout
22        android:layout_width="match_parent"
23        android:layout_height="50dp"
24        android:orientation="vertical"
25        android:layout_weight="1" />
26    <LinearLayout
27        android:layout_width="match_parent"
28        android:layout_height="wrap_content"
29        android:orientation="horizontal"
30        android:layout_weight="1" >
31        <ToggleButton
32            android:id="@+id/button_mock_audio"
33            android:layout_width="wrap_content"
34            android:layout_height="wrap_content"
35            android:textOn="@string/mock_audio_on"
36            android:textOff="@string/mock_audio_off" />
37        <ToggleButton
38            android:id="@+id/button_reject_audio_focus"
39            android:layout_width="wrap_content"
40            android:layout_height="wrap_content"
41            android:textOn="@string/reject_audio_focus_on"
42            android:textOff="@string/reject_audio_focus_off" />
43    </LinearLayout>
44    <LinearLayout
45        android:layout_width="match_parent"
46        android:layout_height="wrap_content"
47        android:orientation="vertical"
48        android:layout_weight="1" >
49        <LinearLayout
50            android:layout_width="match_parent"
51            android:layout_height="wrap_content"
52            android:orientation="horizontal" >
53            <TextView
54                android:id="@+id/audio_focus_title"
55                android:layout_width="wrap_content"
56                android:layout_height="wrap_content"
57                android:text="@string/audio_focus" />
58            <Button
59                android:id="@+id/button_audio_focus_request"
60                android:layout_width="wrap_content"
61                android:layout_height="wrap_content"
62                android:text="@string/request" />
63            <TextView
64                android:id="@+id/text_audio_focus_state"
65                android:layout_width="wrap_content"
66                android:layout_height="wrap_content"
67                android:text="@string/empty" />
68        </LinearLayout>
69        <RadioGroup
70            android:id="@+id/button_focus_request_selection"
71            android:layout_width="wrap_content"
72            android:layout_height="wrap_content"
73            android:orientation="horizontal" >
74            <RadioButton
75                android:id="@+id/focus_gain"
76                android:layout_width="wrap_content"
77                android:layout_height="wrap_content"
78                android:text="@string/focus_gain" />
79            <RadioButton
80                android:id="@+id/focus_gain_transient_duck"
81                android:layout_width="wrap_content"
82                android:layout_height="wrap_content"
83                android:text="@string/focus_gain_transient_duck" />
84            <RadioButton
85                android:id="@+id/focus_release"
86                android:layout_width="wrap_content"
87                android:layout_height="wrap_content"
88                android:text="@string/focus_release" />
89        </RadioGroup>
90    </LinearLayout>
91    <LinearLayout
92        android:layout_width="match_parent"
93        android:layout_height="wrap_content"
94        android:orientation="horizontal"
95        android:layout_weight="1" >
96        <TextView
97            android:id="@+id/nav_play_title"
98            android:layout_width="wrap_content"
99            android:layout_height="wrap_content"
100            android:text="@string/nav_play" />
101        <Button
102            android:id="@+id/button_nav_play_once"
103            android:layout_width="wrap_content"
104            android:layout_height="wrap_content"
105            android:text="@string/play_pcm_once" />
106        <TextView
107            android:id="@+id/vr_play_title"
108            android:layout_width="wrap_content"
109            android:layout_height="wrap_content"
110            android:text="@string/vr_play" />
111        <Button
112            android:id="@+id/button_vr_play_once"
113            android:layout_width="wrap_content"
114            android:layout_height="wrap_content"
115            android:text="@string/play_pcm_once" />
116        <TextView
117            android:id="@+id/system_play_title"
118            android:layout_width="wrap_content"
119            android:layout_height="wrap_content"
120            android:text="@string/system_play" />
121        <Button
122            android:id="@+id/button_system_play_once"
123            android:layout_width="wrap_content"
124            android:layout_height="wrap_content"
125            android:text="@string/play_pcm_once" />
126    </LinearLayout>
127
128    <LinearLayout
129        android:layout_width="match_parent"
130        android:layout_height="wrap_content"
131        android:orientation="horizontal"
132        android:layout_weight="1" >
133        <TextView
134            android:id="@+id/media_play_title"
135            android:layout_width="wrap_content"
136            android:layout_height="wrap_content"
137            android:text="@string/media_play" />
138        <Button
139            android:id="@+id/button_media_play_start"
140            android:layout_width="wrap_content"
141            android:layout_height="wrap_content"
142            android:text="@string/play" />
143        <Button
144            android:id="@+id/button_media_play_once"
145            android:layout_width="wrap_content"
146            android:layout_height="wrap_content"
147            android:text="@string/play_pcm_once" />
148        <Button
149            android:id="@+id/button_media_play_stop"
150            android:layout_width="wrap_content"
151            android:layout_height="wrap_content"
152            android:text="@string/stop" />
153        <Button
154            android:id="@+id/button_speaker_phone_on"
155            android:layout_width="wrap_content"
156            android:layout_height="wrap_content"
157            android:text="@string/speaker_phone_on" />
158        <Button
159            android:id="@+id/button_speaker_phone_off"
160            android:layout_width="wrap_content"
161            android:layout_height="wrap_content"
162            android:text="@string/speaker_phone_off" />
163        <Button
164            android:id="@+id/button_microphone_on"
165            android:layout_width="wrap_content"
166            android:layout_height="wrap_content"
167            android:text="@string/microphone_on" />
168        <Button
169            android:id="@+id/button_microphone_off"
170            android:layout_width="wrap_content"
171            android:layout_height="wrap_content"
172            android:text="@string/microphone_off" />
173    </LinearLayout>
174
175    <TextView
176        android:id="@+id/system_play_message"
177        android:layout_width="wrap_content"
178        android:layout_height="wrap_content"
179        android:text="@string/empty"
180        android:layout_weight="1" />
181    <LinearLayout
182        android:layout_width="match_parent"
183        android:layout_height="wrap_content"
184        android:orientation="horizontal"
185        android:layout_weight="1" >
186        <Button
187            android:id="@+id/button_nav_start"
188            android:layout_width="wrap_content"
189            android:layout_height="wrap_content"
190            android:text="@string/nav_start" />
191        <Button
192            android:id="@+id/button_nav_end"
193            android:layout_width="wrap_content"
194            android:layout_height="wrap_content"
195            android:text="@string/nav_end" />
196        <Button
197            android:id="@+id/button_vr_start"
198            android:layout_width="wrap_content"
199            android:layout_height="wrap_content"
200            android:text="@string/vr_start" />
201        <Button
202            android:id="@+id/button_vr_end"
203            android:layout_width="wrap_content"
204            android:layout_height="wrap_content"
205            android:text="@string/vr_end" />
206        <Button
207            android:id="@+id/button_radio_start"
208            android:layout_width="wrap_content"
209            android:layout_height="wrap_content"
210            android:text="@string/radio_start" />
211        <Button
212            android:id="@+id/button_radio_end"
213            android:layout_width="wrap_content"
214            android:layout_height="wrap_content"
215            android:text="@string/radio_end" />
216    </LinearLayout>
217</LinearLayout>
218