1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2018 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
17    style="@style/SectionContainer"
18    android:layout_width="match_parent"
19    android:layout_height="wrap_content"
20    android:weightSum="3"
21    android:orientation="vertical">
22    <include layout="@layout/metric_display" />
23    <LinearLayout
24        android:layout_width="match_parent"
25        android:layout_height="wrap_content"
26        android:layout_weight="1"
27        android:weightSum="3">
28        <LinearLayout
29            style="@style/SectionContainer"
30            android:layout_width="match_parent"
31            android:layout_height="match_parent"
32            android:layout_weight="1"
33            android:weightSum="2">
34            <TextView
35                android:layout_width="wrap_content"
36                android:layout_height="wrap_content"
37                android:text="@string/label_is_pans_overridden"/>
38            <TextView
39                android:id="@+id/currentPANSStatusTextView"
40                android:layout_width="wrap_content"
41                android:layout_height="wrap_content"
42                android:text="@string/no"/>
43        </LinearLayout>
44        <LinearLayout
45            style="@style/SectionContainer"
46            android:layout_width="match_parent"
47            android:layout_height="wrap_content"
48            android:layout_weight="1"
49            android:weightSum="2">
50            <TextView
51                android:layout_width="wrap_content"
52                android:layout_height="wrap_content"
53                android:text="@string/label_apply_latest_policy_on_boot"/>
54            <Switch
55                android:id="@+id/reapplyPANSOnBootSwitch"
56                android:layout_width="wrap_content"
57                android:layout_height="wrap_content"/>
58        </LinearLayout>
59        <LinearLayout
60            style="@style/SectionContainer"
61            android:layout_width="match_parent"
62            android:layout_height="wrap_content"
63            android:layout_weight="1"
64            android:weightSum="2">
65            <TextView
66                android:layout_width="wrap_content"
67                android:layout_height="wrap_content"
68                android:text="@string/label_apply_wifi_policy_on_boot"/>
69            <Switch
70                android:id="@+id/reapplyWifiSuggestionsOnBootSwitch"
71                android:layout_width="wrap_content"
72                android:layout_height="wrap_content"/>
73        </LinearLayout>
74    </LinearLayout>
75    <LinearLayout
76        android:layout_width="match_parent"
77        android:layout_height="wrap_content"
78        android:layout_weight="1"
79        android:weightSum="2">
80        <LinearLayout
81            style="@style/SectionContainer"
82            android:layout_width="match_parent"
83            android:layout_height="wrap_content"
84            android:layout_weight="1"
85            android:weightSum="5"
86            android:orientation="vertical">
87            <LinearLayout
88                style="@style/SectionContainer"
89                android:layout_width="match_parent"
90                android:layout_height="wrap_content"
91                android:layout_weight="1"
92                android:weightSum="2"
93                android:orientation="vertical">
94                <TextView
95                    android:layout_width="match_parent"
96                    android:layout_height="wrap_content"
97                    android:text="@string/oem_paid_apps_text"
98                    android:labelFor="@+id/OEMPaidAppsEditText"/>
99                <EditText
100                    android:id="@+id/OEMPaidAppsEditText"
101                    android:layout_width="match_parent"
102                    android:layout_height="wrap_content"
103                    android:inputType="textNoSuggestions"/>
104            </LinearLayout>
105            <LinearLayout
106                style="@style/SectionContainer"
107                android:layout_width="match_parent"
108                android:layout_height="wrap_content"
109                android:layout_weight="1"
110                android:weightSum="2"
111                android:orientation="vertical">
112                <TextView
113                    android:layout_width="match_parent"
114                    android:layout_height="wrap_content"
115                    android:text="@string/oem_paid_no_fallback_apps_text"
116                    android:labelFor="@+id/OEMPaidNoFallbackAppsEditText"/>
117                <EditText
118                    android:id="@+id/OEMPaidNoFallbackAppsEditText"
119                    android:layout_width="match_parent"
120                    android:layout_height="wrap_content"
121                    android:inputType="textNoSuggestions"/>
122            </LinearLayout>
123            <LinearLayout
124                style="@style/SectionContainer"
125                android:layout_width="match_parent"
126                android:layout_height="wrap_content"
127                android:weightSum="2"
128                android:layout_weight="1"
129                android:orientation="vertical">
130                <TextView
131                    android:layout_width="match_parent"
132                    android:layout_height="wrap_content"
133                    android:text="@string/oem_paid_only_apps_text"
134                    android:labelFor="@+id/OEMPaidOnlyAppsEditText"/>
135                <EditText
136                    android:id="@+id/OEMPaidOnlyAppsEditText"
137                    android:layout_width="match_parent"
138                    android:layout_height="wrap_content"
139                    android:inputType="textNoSuggestions"/>
140            </LinearLayout>
141            <LinearLayout
142                style="@style/SectionContainer"
143                android:layout_width="match_parent"
144                android:layout_height="wrap_content"
145                android:layout_weight="1"
146                android:weightSum="2"
147                android:orientation="vertical">
148                <TextView
149                    android:layout_width="match_parent"
150                    android:layout_height="wrap_content"
151                    android:text="@string/oem_private_only_apps_text"
152                    android:labelFor="@+id/OEMPrivateOnlyAppsEditText"/>
153                <EditText
154                    android:id="@+id/OEMPrivateOnlyAppsEditText"
155                    android:layout_width="match_parent"
156                    android:layout_height="wrap_content"
157                    android:inputType="textNoSuggestions"/>
158            </LinearLayout>
159            <LinearLayout
160                android:layout_width="match_parent"
161                android:layout_height="wrap_content"
162                android:layout_weight="1"
163                android:weightSum="2">
164                <Button
165                    style="@style/Button"
166                    android:id="@+id/applyConfigurationBtn"
167                    android:layout_width="match_parent"
168                    android:layout_height="wrap_content"
169                    android:layout_weight="1"
170                    android:text="@string/button_apply_configuration"/>
171                <Button
172                    style="@style/Button"
173                    android:id="@+id/resetNetworkPreferencesBtn"
174                    android:layout_width="match_parent"
175                    android:layout_height="wrap_content"
176                    android:layout_weight="1"
177                    android:text="@string/button_reset_network_preference"/>
178            </LinearLayout>
179        </LinearLayout>
180        <LinearLayout
181            style="@style/SectionContainer"
182            android:layout_width="match_parent"
183            android:layout_height="wrap_content"
184            android:layout_weight="1"
185            android:weightSum="5"
186            android:orientation="vertical">
187            <LinearLayout
188                style="@style/SectionContainer"
189                android:layout_width="match_parent"
190                android:layout_height="wrap_content"
191                android:layout_weight="1"
192                android:weightSum="2"
193                android:orientation="vertical">
194                <TextView
195                    android:layout_width="match_parent"
196                    android:layout_height="wrap_content"
197                    android:text="@string/oem_paid_wifi_ssids_text"
198                    android:labelFor="@+id/OEMPaidWifiSSIDsEditText"/>
199                <EditText
200                    android:id="@+id/OEMPaidWifiSSIDsEditText"
201                    android:layout_width="match_parent"
202                    android:layout_height="wrap_content"
203                    android:inputType="textNoSuggestions"/>
204            </LinearLayout>
205            <LinearLayout
206                style="@style/SectionContainer"
207                android:layout_width="match_parent"
208                android:layout_height="wrap_content"
209                android:layout_weight="1"
210                android:weightSum="2"
211                android:orientation="vertical">
212                <TextView
213                    android:layout_width="match_parent"
214                    android:layout_height="wrap_content"
215                    android:text="@string/oem_private_wifi_ssids_text"
216                    android:labelFor="@+id/OEMPrivateWifiSSIDsEditText"/>
217                <EditText
218                    android:id="@+id/OEMPrivateWifiSSIDsEditText"
219                    android:layout_width="match_parent"
220                    android:layout_height="wrap_content"
221                    android:inputType="textNoSuggestions"/>
222            </LinearLayout>
223            <LinearLayout
224                android:layout_width="match_parent"
225                android:layout_height="wrap_content"
226                android:layout_weight="1"
227                android:weightSum="2">
228                <Button
229                    style="@style/Button"
230                    android:id="@+id/applyWifiCapabilitiesButton"
231                    android:layout_width="match_parent"
232                    android:layout_height="wrap_content"
233                    android:layout_weight="1"
234                    android:text="@string/button_apply_wifi_configuration"/>
235                <Button
236                    style="@style/Button"
237                    android:id="@+id/resetWifiCapabilitiesButton"
238                    android:layout_width="match_parent"
239                    android:layout_height="wrap_content"
240                    android:layout_weight="1"
241                    android:text="@string/button_reset_wifi_configuration"/>
242            </LinearLayout>
243            <LinearLayout
244                android:layout_width="match_parent"
245                android:layout_height="wrap_content"
246                android:layout_weight="1">
247                <TextView
248                    android:layout_width="wrap_content"
249                    android:layout_height="wrap_content"
250                    android:text="@string/label_switch_connect_to_oem_paid_wifi"/>
251                <Switch
252                    android:id="@+id/connectToOemPaidWifiSwitch"
253                    android:layout_width="wrap_content"
254                    android:layout_height="wrap_content"/>
255            </LinearLayout>
256            <LinearLayout
257                android:layout_width="match_parent"
258                android:layout_height="wrap_content"
259                android:layout_weight="1">
260                <TextView
261                    android:layout_width="wrap_content"
262                    android:layout_height="wrap_content"
263                    android:text="@string/label_switch_connect_to_oem_private_wifi"/>
264                <Switch
265                    android:id="@+id/connectToOemPrivateWifiSwitch"
266                    android:layout_width="wrap_content"
267                    android:layout_height="wrap_content"/>
268            </LinearLayout>
269        </LinearLayout>
270    </LinearLayout>
271</LinearLayout>
272