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