• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 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    android:key="app_data_usage_screen"
21    android:title="@string/data_usage_app_summary_title">
22
23    <com.android.settings.datausage.SpinnerPreference
24        android:key="cycle" />
25
26    <PreferenceCategory
27        android:key="app_data_usage_summary_category">
28
29        <Preference
30            android:key="total_usage"
31            android:title="@string/total_size_label"
32            android:selectable="false"
33            android:layout="@layout/horizontal_preference"
34            android:summary="@string/summary_placeholder" />
35
36        <Preference
37            android:key="foreground_usage"
38            android:title="@string/data_usage_label_foreground"
39            android:selectable="false"
40            android:layout="@layout/horizontal_preference"
41            android:summary="@string/summary_placeholder" />
42
43        <Preference
44            android:key="background_usage"
45            android:title="@string/data_usage_label_background"
46            android:selectable="false"
47            android:layout="@layout/horizontal_preference"
48            android:summary="@string/summary_placeholder" />
49
50    </PreferenceCategory>
51
52    <PreferenceCategory
53        android:key="app_data_usage_settings_category"
54        settings:isPreferenceVisible="@bool/config_show_sim_info"
55        android:layout="@layout/preference_category_no_label">
56
57        <Preference
58            android:key="app_settings"
59            android:title="@string/data_usage_app_settings" />
60
61        <com.android.settingslib.RestrictedSwitchPreference
62            android:key="restrict_background"
63            android:title="@string/data_usage_app_restrict_background"
64            android:summary="@string/data_usage_app_restrict_background_summary"
65            settings:useAdditionalSummary="true"
66            settings:restrictedSwitchSummary="@string/disabled_by_admin" />
67
68        <com.android.settingslib.RestrictedSwitchPreference
69            android:key="unrestricted_data_saver"
70            android:title="@string/unrestricted_app_title"
71            android:summary="@string/unrestricted_app_summary"
72            settings:useAdditionalSummary="true"
73            settings:restrictedSwitchSummary="@string/disabled_by_admin" />
74
75    </PreferenceCategory>
76
77    <PreferenceCategory
78        android:key="app_list"
79        android:title="@string/data_usage_other_apps" />
80
81</PreferenceScreen>
82