1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2020 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
17<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content"
21    android:orientation="vertical">
22
23    <LinearLayout
24        android:layout_width="match_parent"
25        android:layout_height="wrap_content"
26        android:orientation="vertical">
27
28        <!-- Has Headset Buttons -->
29        <LinearLayout
30            android:layout_width="match_parent"
31            android:layout_height="wrap_content"
32            android:orientation="vertical">
33            <TextView
34                android:layout_width="match_parent"
35                android:layout_height="wrap_content"
36                android:text="@string/analog_headset_query"
37                android:id="@+id/analog_headset_query"/>
38            <LinearLayout
39                android:layout_width="match_parent"
40                android:layout_height="wrap_content"
41                android:orientation="horizontal"
42                android:layout_marginLeft="10dp">
43                <Button
44                    android:text="@string/audio_general_yes"
45                    android:layout_width="wrap_content"
46                    android:layout_height="match_parent"
47                    android:id="@+id/headset_analog_port_yes"/>
48                <Button
49                    android:text="@string/audio_general_no"
50                    android:layout_width="wrap_content"
51                    android:layout_height="match_parent"
52                    android:id="@+id/headset_analog_port_no"/>
53            </LinearLayout>
54        </LinearLayout>
55
56        <!-- Device Connection -->
57        <TextView
58            android:layout_width="match_parent"
59            android:layout_height="wrap_content"
60            android:id="@+id/headset_analog_plug_message"/>
61        <TextView
62            android:layout_width="match_parent"
63            android:layout_height="wrap_content"
64            android:id="@+id/headset_analog_name"/>
65
66        <!-- Player Controls -->
67        <LinearLayout
68            android:layout_width="match_parent"
69            android:layout_height="wrap_content"
70            android:orientation="horizontal"
71            android:layout_marginLeft="10dp">
72            <Button
73                android:text="@string/analog_headset_play"
74                android:layout_width="wrap_content"
75                android:layout_height="match_parent"
76                android:id="@+id/headset_analog_play"/>
77            <Button
78                android:text="@string/analog_headset_stop"
79                android:layout_width="wrap_content"
80                android:layout_height="match_parent"
81                android:id="@+id/headset_analog_stop"/>
82        </LinearLayout>
83    </LinearLayout>
84
85    <!-- Playback Status -->
86    <LinearLayout
87        android:layout_width="match_parent"
88        android:layout_height="wrap_content"
89        android:orientation="vertical">
90
91        <TextView
92            android:layout_width="match_parent"
93            android:layout_height="wrap_content"
94            android:id="@+id/analog_headset_playback_status"/>
95
96        <LinearLayout
97            android:layout_width="match_parent"
98            android:layout_height="wrap_content"
99            android:orientation="horizontal"
100            android:layout_marginLeft="10dp">
101            <Button
102                android:text="@string/audio_general_yes"
103                android:layout_width="wrap_content"
104                android:layout_height="match_parent"
105                android:id="@+id/headset_analog_play_yes"/>
106            <Button
107                android:text="@string/audio_general_no"
108                android:layout_width="wrap_content"
109                android:layout_height="match_parent"
110                android:id="@+id/headset_analog_play_no"/>
111        </LinearLayout>
112    </LinearLayout>
113
114    <!-- Keycodes -->
115    <LinearLayout
116        android:layout_width="match_parent"
117        android:layout_height="wrap_content"
118        android:orientation="vertical">
119        <TextView
120            android:layout_width="match_parent"
121            android:layout_height="wrap_content"
122            android:id="@+id/analog_headset_keycodes_prompt"/>
123        <TextView
124            android:layout_width="match_parent"
125            android:layout_height="wrap_content"
126            android:text="@string/analog_headset_keycodes_label"/>
127        <LinearLayout
128            android:layout_width="match_parent"
129            android:layout_height="wrap_content"
130            android:orientation="horizontal"
131            android:layout_marginLeft="10dp">
132            <TextView
133                android:layout_width="wrap_content"
134                android:layout_height="wrap_content"
135                android:text="@string/analog_headset_headsethook"
136                android:paddingHorizontal="10dp"
137                android:id="@+id/headset_keycode_headsethook"/>
138            <TextView
139                android:layout_width="wrap_content"
140                android:layout_height="wrap_content"
141                android:text="@string/analog_headset_volup"
142                android:paddingHorizontal="10dp"
143                android:id="@+id/headset_keycode_volume_up"/>
144            <TextView
145                android:layout_width="wrap_content"
146                android:layout_height="wrap_content"
147                android:text="@string/analog_headset_voldown"
148                android:paddingHorizontal="10dp"
149                android:id="@+id/headset_keycode_volume_down"/>
150        </LinearLayout>
151    </LinearLayout>
152
153    <!-- Results -->
154    <TextView
155        android:layout_width="match_parent"
156        android:layout_height="wrap_content"
157        android:id="@+id/headset_results"
158        android:textSize="20dp"/>
159
160    <include layout="@layout/pass_fail_buttons" />
161
162</LinearLayout>