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