• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2023 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
18                xmlns:tools="http://schemas.android.com/tools"
19                android:layout_width="match_parent"
20                android:layout_height="match_parent"
21                android:orientation="vertical"
22                android:keepScreenOn="true"
23                style="@style/RootLayoutPadding"
24                tools:ignore="Autofill">
25
26    <ScrollView
27        android:layout_width="fill_parent"
28        android:layout_height="wrap_content">
29
30        <LinearLayout
31            android:orientation="vertical"
32            android:layout_width="match_parent"
33            android:layout_height="wrap_content">
34
35            <TextView
36                android:text="@string/ble_rx_tx_offset_precision_test_instructions"
37                android:layout_width="wrap_content"
38                android:layout_height="wrap_content"
39                android:scrollbars="vertical" />
40
41            <CheckBox
42                android:id="@+id/is_reference_device"
43                android:layout_width="wrap_content"
44                android:layout_height="wrap_content"
45                android:text="@string/is_reference_device_checkbox_text"/>
46
47            <LinearLayout
48                android:id="@+id/dut_mode_layout"
49                android:orientation="vertical"
50                android:layout_width="match_parent"
51                android:layout_height="wrap_content">
52
53                <CheckBox
54                    android:id="@+id/is_manual_pass"
55                    android:layout_width="wrap_content"
56                    android:layout_height="wrap_content"
57                    android:text="@string/is_manual_pass_text"/>
58
59                <Button
60                    android:id="@+id/start_test"
61                    android:layout_width="wrap_content"
62                    android:layout_height="wrap_content"
63                    android:text="@string/start_test_presence"/>
64
65                <Button
66                    android:id="@+id/stop_test"
67                    android:layout_width="wrap_content"
68                    android:layout_height="wrap_content"
69                    android:text="@string/stop_test_presence"/>
70
71                <TextView
72                    android:id="@+id/device_found_info"
73                    android:layout_width="wrap_content"
74                    android:layout_height="wrap_content"
75                    android:text="@string/device_found_presence"/>
76
77                <TextView
78                    android:id="@+id/dut_test_result_info"
79                    android:layout_width="wrap_content"
80                    android:layout_height="wrap_content"
81                    android:text="@string/dut_test_result_info_presence"/>
82
83                <EditText
84                    android:id="@+id/ref_device_id_input"
85                    android:layout_width="wrap_content"
86                    android:layout_height="wrap_content"
87                    android:inputType="numberDecimal|numberSigned"
88                    android:hint="@string/reference_device_id_input_presence"/>
89            </LinearLayout>
90
91            <LinearLayout
92                android:id="@+id/ref_mode_layout"
93                android:orientation="vertical"
94                android:layout_width="match_parent"
95                android:layout_height="wrap_content">
96
97                <Button
98                    android:id="@+id/start_advertising"
99                    android:layout_width="wrap_content"
100                    android:layout_height="wrap_content"
101                    android:text="@string/start_advertising_presence"/>
102
103                <Button
104                    android:id="@+id/stop_advertising"
105                    android:layout_width="wrap_content"
106                    android:layout_height="wrap_content"
107                    android:text="@string/stop_advertising_presence"/>
108
109                <TextView
110                    android:id="@+id/device_id_info"
111                    android:layout_width="wrap_content"
112                    android:layout_height="wrap_content"
113                    android:text="@string/device_id_info_presence"/>
114
115                <TextView
116                    android:id="@+id/ref_test_result_info"
117                    android:layout_width="wrap_content"
118                    android:layout_height="wrap_content"
119                    android:text="@string/ref_test_result_info_presence"/>
120            </LinearLayout>
121
122            <include
123                android:layout_width="match_parent"
124                android:layout_height="wrap_content"
125                layout="@layout/pass_fail_buttons" />
126
127        </LinearLayout>
128    </ScrollView>
129</RelativeLayout>