• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2020 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<PreferenceScreen
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:settings="http://schemas.android.com/apk/res-auto">
20
21    <com.android.settingslib.widget.LayoutPreference
22        android:key="connection_header"
23        android:layout="@layout/settings_entity_header"
24        android:selectable="false"
25        android:order="-10000"/>
26
27    <ListPreference
28        android:key="metered"
29        android:icon="@drawable/ic_attach_money_black_24dp"
30        android:title="@string/wifi_metered_title"
31        android:entries="@array/wifi_metered_entries"
32        android:entryValues="@array/wifi_metered_values"/>
33
34   <!-- Network Details -->
35   <PreferenceCategory
36           android:key="ip_details_category">
37       <Preference
38               android:key="ethernet_ip_address"
39               android:title="@string/ethernet_ip_address"
40               android:selectable="false"
41               settings:enableCopying="true"/>
42       <Preference
43               android:key="ethernet_mac_address"
44               android:title="@string/ethernet_mac_address_title"
45               android:selectable="false"
46               settings:enableCopying="true"/>
47       <Preference
48               android:key="ethernet_tx_link_speed"
49               android:title="@string/tx_ethernet_speed"
50               android:selectable="false"
51               settings:enableCopying="true"/>
52       <Preference
53               android:key="ethernet_rx_link_speed"
54               android:title="@string/rx_ethernet_speed"
55               android:selectable="false"
56               settings:enableCopying="true"/>
57   </PreferenceCategory>
58
59</PreferenceScreen>
60