xref: /aosp_15_r20/cts/apps/CtsVerifier/res/layout/audio_datapaths_activity.xml (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2021 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:fitsSystemWindows="@bool/fit_system_windows"
20        android:layout_width="match_parent"
21        android:layout_height="wrap_content"
22        android:orientation="vertical">
23
24        <include layout="@layout/audio_java_native_api_buttons" />
25        <include layout="@layout/audio_loopback_utilities" />
26
27        <!-- Player Controls -->
28        <LinearLayout
29            android:layout_width="match_parent"
30            android:layout_height="wrap_content"
31            android:orientation="horizontal"
32            android:layout_marginStart="10dp"
33            style="?android:attr/buttonBarStyle">
34            <LinearLayout
35                android:layout_width="wrap_content"
36                android:layout_height="wrap_content"
37                android:orientation="vertical"
38                android:layout_marginStart="10dp">
39
40                <TextView
41                    android:layout_width="wrap_content"
42                    android:layout_height="wrap_content"
43                    android:text="@string/audio_general_test"/>
44                <LinearLayout
45                    android:layout_width="wrap_content"
46                    android:layout_height="wrap_content"
47                    android:orientation="horizontal">
48                    <Button
49                        android:text="@string/audio_general_cancel"
50                        android:layout_width="wrap_content"
51                        android:layout_height="match_parent"
52                        android:id="@+id/audio_datapaths_cancel"
53                        style="?android:attr/buttonBarButtonStyle"/>
54                    <Button
55                        android:text="@string/audio_general_start"
56                        android:layout_width="wrap_content"
57                        android:layout_height="match_parent"
58                        android:id="@+id/audio_datapaths_start"
59                        style="?android:attr/buttonBarButtonStyle"/>
60                </LinearLayout>
61            </LinearLayout>
62
63            <LinearLayout
64                android:layout_width="match_parent"
65                android:layout_height="wrap_content"
66                android:orientation="vertical"
67                android:layout_marginStart="10dp">
68
69                <TextView
70                    android:layout_width="wrap_content"
71                    android:layout_height="wrap_content"
72                    android:text="@string/audio_general_results"/>
73                <LinearLayout
74                    android:layout_width="wrap_content"
75                    android:layout_height="wrap_content"
76                    android:orientation="horizontal">
77                    <Button
78                        android:text="@string/audio_datapaths_clearresults"
79                        android:layout_width="wrap_content"
80                        android:layout_height="match_parent"
81                        android:id="@+id/audio_datapaths_clearresults"
82                        style="?android:attr/buttonBarButtonStyle"/>
83                    <Button
84                        android:text="@string/audio_datapaths_showresults"
85                        android:layout_width="wrap_content"
86                        android:layout_height="match_parent"
87                        android:id="@+id/audio_datapaths_showresults"
88                        style="?android:attr/buttonBarButtonStyle"/>
89                    <Button
90                        android:text="@string/audio_datapaths_shareresults"
91                        android:layout_width="wrap_content"
92                        android:layout_height="match_parent"
93                        android:id="@+id/audio_datapaths_shareresults"
94                        style="?android:attr/buttonBarButtonStyle"/>
95                </LinearLayout>
96            </LinearLayout>
97        </LinearLayout>
98
99        <com.android.cts.verifier.audio.audiolib.WaveScopeView
100            android:id="@+id/uap_recordWaveView"
101            android:layout_width="match_parent"
102            android:layout_height="150dp"/>
103
104        <TextView
105            android:layout_width="match_parent"
106            android:layout_height="wrap_content"
107            android:id="@+id/audio_datapaths_routes"/>
108
109        <LinearLayout
110            android:layout_width="match_parent"
111            android:layout_height="match_parent"
112            android:orientation="vertical"
113            android:id="@+id/audio_datapaths_results">
114        </LinearLayout>
115
116    </LinearLayout>
117