• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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="2">
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            <LinearLayout
51                android:layout_width="match_parent"
52                android:layout_height="wrap_content"
53                android:layout_weight="1"
54                android:weightSum="2">
55                <TextView
56                    android:layout_width="wrap_content"
57                    android:layout_height="wrap_content"
58                    android:text="@string/label_apply_latest_policy_on_boot"/>
59                <Switch
60                    android:id="@+id/reapplyPANSOnBootSwitch"
61                    android:layout_width="wrap_content"
62                    android:layout_height="wrap_content"/>
63            </LinearLayout>
64            <LinearLayout
65                android:layout_width="match_parent"
66                android:layout_height="wrap_content"
67                android:layout_weight="1"
68                android:weightSum="2">
69                <TextView
70                    android:layout_width="wrap_content"
71                    android:layout_height="wrap_content"
72                    android:text="@string/label_apply_wifi_policy_on_boot"/>
73                <Switch
74                    android:id="@+id/reapplyWifiSuggestionsOnBootSwitch"
75                    android:layout_width="wrap_content"
76                    android:layout_height="wrap_content"/>
77            </LinearLayout>
78        </LinearLayout>
79    </LinearLayout>
80    <LinearLayout
81        android:layout_width="match_parent"
82        android:layout_height="wrap_content"
83        android:layout_weight="1"
84        android:weightSum="2">
85        <LinearLayout
86            style="@style/SectionContainer"
87            android:layout_width="match_parent"
88            android:layout_height="wrap_content"
89            android:layout_weight="1"
90            android:weightSum="5"
91            android:orientation="vertical">
92            <LinearLayout
93                style="@style/SectionContainer"
94                android:layout_width="match_parent"
95                android:layout_height="wrap_content"
96                android:layout_weight="1"
97                android:weightSum="2"
98                android:orientation="vertical">
99                <TextView
100                    android:layout_width="match_parent"
101                    android:layout_height="wrap_content"
102                    android:text="@string/oem_paid_apps_text"
103                    android:labelFor="@+id/OEMPaidAppsEditText"/>
104                <EditText
105                    android:id="@+id/OEMPaidAppsEditText"
106                    android:layout_width="match_parent"
107                    android:layout_height="wrap_content"
108                    android:inputType="textNoSuggestions"/>
109            </LinearLayout>
110            <LinearLayout
111                style="@style/SectionContainer"
112                android:layout_width="match_parent"
113                android:layout_height="wrap_content"
114                android:layout_weight="1"
115                android:weightSum="2"
116                android:orientation="vertical">
117                <TextView
118                    android:layout_width="match_parent"
119                    android:layout_height="wrap_content"
120                    android:text="@string/oem_paid_no_fallback_apps_text"
121                    android:labelFor="@+id/OEMPaidNoFallbackAppsEditText"/>
122                <EditText
123                    android:id="@+id/OEMPaidNoFallbackAppsEditText"
124                    android:layout_width="match_parent"
125                    android:layout_height="wrap_content"
126                    android:inputType="textNoSuggestions"/>
127            </LinearLayout>
128            <LinearLayout
129                style="@style/SectionContainer"
130                android:layout_width="match_parent"
131                android:layout_height="wrap_content"
132                android:weightSum="2"
133                android:layout_weight="1"
134                android:orientation="vertical">
135                <TextView
136                    android:layout_width="match_parent"
137                    android:layout_height="wrap_content"
138                    android:text="@string/oem_paid_only_apps_text"
139                    android:labelFor="@+id/OEMPaidOnlyAppsEditText"/>
140                <EditText
141                    android:id="@+id/OEMPaidOnlyAppsEditText"
142                    android:layout_width="match_parent"
143                    android:layout_height="wrap_content"
144                    android:inputType="textNoSuggestions"/>
145            </LinearLayout>
146            <LinearLayout
147                style="@style/SectionContainer"
148                android:layout_width="match_parent"
149                android:layout_height="wrap_content"
150                android:layout_weight="1"
151                android:weightSum="2"
152                android:orientation="vertical">
153                <TextView
154                    android:layout_width="match_parent"
155                    android:layout_height="wrap_content"
156                    android:text="@string/oem_private_only_apps_text"
157                    android:labelFor="@+id/OEMPrivateOnlyAppsEditText"/>
158                <EditText
159                    android:id="@+id/OEMPrivateOnlyAppsEditText"
160                    android:layout_width="match_parent"
161                    android:layout_height="wrap_content"
162                    android:inputType="textNoSuggestions"/>
163            </LinearLayout>
164            <LinearLayout
165                android:layout_width="match_parent"
166                android:layout_height="wrap_content"
167                android:layout_weight="1"
168                android:weightSum="2">
169                <Button
170                    style="@style/Button"
171                    android:id="@+id/applyConfigurationBtn"
172                    android:layout_width="match_parent"
173                    android:layout_height="wrap_content"
174                    android:layout_weight="1"
175                    android:text="@string/button_apply_configuration"/>
176                <Button
177                    style="@style/Button"
178                    android:id="@+id/resetNetworkPreferencesBtn"
179                    android:layout_width="match_parent"
180                    android:layout_height="wrap_content"
181                    android:layout_weight="1"
182                    android:text="@string/button_reset_network_preference"/>
183            </LinearLayout>
184        </LinearLayout>
185        <LinearLayout
186            style="@style/SectionContainer"
187            android:layout_width="match_parent"
188            android:layout_height="wrap_content"
189            android:layout_weight="1"
190            android:weightSum="5"
191            android:orientation="vertical">
192            <LinearLayout
193                style="@style/SectionContainer"
194                android:layout_width="match_parent"
195                android:layout_height="wrap_content"
196                android:layout_weight="1"
197                android:weightSum="2"
198                android:orientation="vertical">
199                <TextView
200                    android:layout_width="match_parent"
201                    android:layout_height="wrap_content"
202                    android:text="@string/oem_paid_wifi_ssids_text"
203                    android:labelFor="@+id/OEMPaidWifiSSIDsEditText"/>
204                <EditText
205                    android:id="@+id/OEMPaidWifiSSIDsEditText"
206                    android:layout_width="match_parent"
207                    android:layout_height="wrap_content"
208                    android:inputType="textNoSuggestions"/>
209            </LinearLayout>
210            <LinearLayout
211                style="@style/SectionContainer"
212                android:layout_width="match_parent"
213                android:layout_height="wrap_content"
214                android:layout_weight="1"
215                android:weightSum="2"
216                android:orientation="vertical">
217                <TextView
218                    android:layout_width="match_parent"
219                    android:layout_height="wrap_content"
220                    android:text="@string/oem_private_wifi_ssids_text"
221                    android:labelFor="@+id/OEMPrivateWifiSSIDsEditText"/>
222                <EditText
223                    android:id="@+id/OEMPrivateWifiSSIDsEditText"
224                    android:layout_width="match_parent"
225                    android:layout_height="wrap_content"
226                    android:inputType="textNoSuggestions"/>
227            </LinearLayout>
228            <LinearLayout
229                android:layout_width="match_parent"
230                android:layout_height="wrap_content"
231                android:layout_weight="1"
232                android:weightSum="2">
233                <Button
234                    style="@style/Button"
235                    android:id="@+id/applyWifiCapabilitiesButton"
236                    android:layout_width="match_parent"
237                    android:layout_height="wrap_content"
238                    android:layout_weight="1"
239                    android:text="@string/button_apply_wifi_configuration"/>
240                <Button
241                    style="@style/Button"
242                    android:id="@+id/resetWifiCapabilitiesButton"
243                    android:layout_width="match_parent"
244                    android:layout_height="wrap_content"
245                    android:layout_weight="1"
246                    android:text="@string/button_reset_wifi_configuration"/>
247            </LinearLayout>
248            <LinearLayout
249                android:layout_width="match_parent"
250                android:layout_height="wrap_content"
251                android:layout_weight="1">
252                <TextView
253                    android:layout_width="wrap_content"
254                    android:layout_height="wrap_content"
255                    android:text="@string/label_switch_connect_to_oem_paid_wifi"/>
256                <Switch
257                    android:id="@+id/connectToOemPaidWifiSwitch"
258                    android:layout_width="wrap_content"
259                    android:layout_height="wrap_content"/>
260            </LinearLayout>
261            <LinearLayout
262                android:layout_width="match_parent"
263                android:layout_height="wrap_content"
264                android:layout_weight="1">
265                <TextView
266                    android:layout_width="wrap_content"
267                    android:layout_height="wrap_content"
268                    android:text="@string/label_switch_connect_to_oem_private_wifi"/>
269                <Switch
270                    android:id="@+id/connectToOemPrivateWifiSwitch"
271                    android:layout_width="wrap_content"
272                    android:layout_height="wrap_content"/>
273            </LinearLayout>
274        </LinearLayout>
275    </LinearLayout>
276</LinearLayout>
277