1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2022 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:fitsSystemWindows="true" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:keepScreenOn="true" 23 android:orientation="vertical" 24 style="@style/RootLayoutPadding" 25 tools:ignore="Autofill"> 26 27 <ScrollView 28 android:layout_width="fill_parent" 29 android:layout_height="wrap_content"> 30 31 <LinearLayout 32 android:orientation="vertical" 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content"> 35 36 <TextView 37 android:text="@string/nan_accuracy_test_instructions" 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 android:scrollbars="vertical"/> 41 42 <CheckBox 43 android:id="@+id/is_reference_device" 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content" 46 android:text="@string/is_reference_device_checkbox_text"/> 47 48 <LinearLayout 49 android:id="@+id/dut_mode_layout" 50 android:orientation="vertical" 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content"> 53 54 <CheckBox 55 android:id="@+id/is_manual_pass" 56 android:layout_width="wrap_content" 57 android:layout_height="wrap_content" 58 android:text="@string/is_manual_pass_text"/> 59 60 <TextView 61 android:id="@+id/test_distance_radio_group_description" 62 android:layout_height="wrap_content" 63 android:layout_width="wrap_content" 64 android:text="@string/select_test_distance_presence"/> 65 66 <RadioGroup 67 android:id="@+id/test_distance_radio_group" 68 android:layout_width="match_parent" 69 android:layout_height="wrap_content" 70 android:checkedButton="@id/distance_10cm" 71 android:orientation="horizontal"> 72 73 <RadioButton 74 android:id="@+id/distance_10cm" 75 android:layout_width="wrap_content" 76 android:layout_height="wrap_content" 77 android:text="@string/distance_10cm_presence"/> 78 79 <RadioButton 80 android:id="@+id/distance_1m" 81 android:layout_width="wrap_content" 82 android:layout_height="wrap_content" 83 android:text="@string/distance_1m_presence"/> 84 85 <RadioButton 86 android:id="@+id/distance_3m" 87 android:layout_width="wrap_content" 88 android:layout_height="wrap_content" 89 android:text="@string/distance_3m_presence"/> 90 91 <RadioButton 92 android:id="@+id/distance_5m" 93 android:layout_width="wrap_content" 94 android:layout_height="wrap_content" 95 android:text="@string/distance_5m_presence"/> 96 </RadioGroup> 97 98 <LinearLayout 99 android:id="@+id/start_stop_layout" 100 android:orientation="horizontal" 101 android:layout_width="wrap_content" 102 android:layout_height="wrap_content"> 103 104 <Button 105 android:id="@+id/start_test" 106 android:layout_width="wrap_content" 107 android:layout_height="wrap_content" 108 android:text="@string/start_test_presence"/> 109 110 <Button 111 android:id="@+id/stop_test" 112 android:layout_width="wrap_content" 113 android:layout_height="wrap_content" 114 android:text="@string/stop_test_presence"/> 115 </LinearLayout> 116 117 <EditText 118 android:id="@+id/service_id_input" 119 android:layout_width="wrap_content" 120 android:layout_height="wrap_content" 121 android:inputType="numberDecimal|numberSigned" 122 android:hint="@string/service_id_input_presence"/> 123 124 <TextView 125 android:id="@+id/device_found_info" 126 android:layout_width="wrap_content" 127 android:layout_height="wrap_content" 128 android:text="@string/device_found_presence"/> 129 130 <TextView 131 android:id="@+id/test_status_info" 132 android:layout_width="wrap_content" 133 android:layout_height="wrap_content"/> 134 135 </LinearLayout> 136 <LinearLayout 137 android:id="@+id/ref_mode_layout" 138 android:orientation="vertical" 139 android:layout_width="match_parent" 140 android:layout_height="wrap_content"> 141 142 <Button 143 android:id="@+id/start_publishing" 144 android:layout_width="wrap_content" 145 android:layout_height="wrap_content" 146 android:text="@string/start_publishing_presence"/> 147 148 <Button 149 android:id="@+id/stop_publishing" 150 android:layout_width="wrap_content" 151 android:layout_height="wrap_content" 152 android:text="@string/stop_publishing_presence"/> 153 154 <TextView 155 android:id="@+id/service_id_info" 156 android:layout_width="wrap_content" 157 android:layout_height="wrap_content" 158 android:text="@string/service_id_info_presence"/> 159 </LinearLayout> 160 161 <include 162 android:layout_width="match_parent" 163 android:layout_height="wrap_content" 164 layout="@layout/pass_fail_buttons"/> 165 166 </LinearLayout> 167 </ScrollView> 168</RelativeLayout>