xref: /aosp_15_r20/cts/apps/CtsVerifier/res/layout/audio_loopback_calibration_dialog.xml (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2023 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<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
18    android:fitsSystemWindows="@bool/fit_system_windows"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent"
21    style="@style/RootLayoutPadding">
22
23    <LinearLayout
24        android:fitsSystemWindows="@bool/fit_system_windows"
25        android:orientation="vertical"
26        android:layout_width="wrap_content"
27        android:layout_height="wrap_content">
28
29        <!-- devices -->
30        <TextView
31            android:layout_width="match_parent"
32            android:layout_height="wrap_content"
33            android:text="@string/audio_general_Input"/>
34
35        <Spinner
36            android:id="@+id/input_devices_spinner"
37            android:layout_width="match_parent"
38            android:layout_height="wrap_content" />
39
40        <TextView
41            android:layout_width="match_parent"
42            android:layout_height="wrap_content"
43            android:text="@string/audio_general_Output"/>
44
45        <Spinner
46            android:id="@+id/output_devices_spinner"
47            android:layout_width="match_parent"
48            android:layout_height="wrap_content" />
49
50        <!-- Player Controls -->
51        <LinearLayout
52            android:layout_width="match_parent"
53            android:layout_height="wrap_content"
54            android:orientation="horizontal"
55            android:layout_marginStart="10dp"
56            style="?android:attr/buttonBarStyle"
57            android:id="@+id/audio_calibration_process">
58            <Button
59                android:text="@string/audio_general_left"
60                android:layout_width="wrap_content"
61                android:layout_height="match_parent"
62                android:id="@+id/audio_calibration_left"
63                style="?android:attr/buttonBarButtonStyle"/>
64            <Button
65                android:text="@string/audio_general_right"
66                android:layout_width="wrap_content"
67                android:layout_height="match_parent"
68                android:id="@+id/audio_calibration_right"
69                style="?android:attr/buttonBarButtonStyle"/>
70            <Button
71                android:text="@string/audio_general_stop"
72                android:layout_width="wrap_content"
73                android:layout_height="match_parent"
74                android:id="@+id/audio_calibration_stop"
75                style="?android:attr/buttonBarButtonStyle"/>
76            <Button
77                android:text="@string/audio_general_done"
78                android:layout_width="wrap_content"
79                android:layout_height="match_parent"
80                android:id="@+id/audio_calibration_done"
81                style="?android:attr/buttonBarButtonStyle"/>
82        </LinearLayout>
83
84        <com.android.cts.verifier.audio.audiolib.WaveScopeView
85            android:id="@+id/uap_recordWaveView"
86            android:layout_width="match_parent"
87            android:layout_height="200dp"/>
88
89        <LinearLayout
90            android:layout_width="match_parent"
91            android:layout_height="fill_parent"
92            android:orientation="vertical"
93            android:layout_marginTop="5dp"
94            android:id="@+id/audio_calibration_info">
95
96        </LinearLayout>
97
98    </LinearLayout>
99</ScrollView>
100