blob: e64a1c5cc636f037b8008c05c481b40a4dc47c09 [file] [log] [blame]
Jason Monkb37e2882016-01-11 14:27:20 -05001<?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
Doris Ling03a3b512017-10-18 14:25:01 -070017<PreferenceScreen
18 xmlns:android="http://schemas.android.com/apk/res/android"
Sudheer Shankab8b2e512018-01-23 01:46:53 -080019 xmlns:settings="http://schemas.android.com/apk/res-auto"
20 android:key="app_data_usage_screen"
Doris Ling03a3b512017-10-18 14:25:01 -070021 android:title="@string/data_usage_app_summary_title">
Jason Monkb37e2882016-01-11 14:27:20 -050022
Jason Monk764f45d2016-01-21 14:12:11 -050023 <com.android.settings.datausage.SpinnerPreference
Raff Tsai2f180482018-11-26 14:58:22 +080024 android:key="cycle"
25 settings:isPreferenceVisible="false" />
Jason Monk764f45d2016-01-21 14:12:11 -050026
Fan Zhang9c93c282017-04-28 12:23:30 -070027 <PreferenceCategory
28 android:key="app_data_usage_summary_category">
Jason Monkb37e2882016-01-11 14:27:20 -050029
Fan Zhang9c93c282017-04-28 12:23:30 -070030 <Preference
31 android:key="total_usage"
32 android:title="@string/total_size_label"
33 android:selectable="false"
34 android:layout="@layout/horizontal_preference" />
Jason Monkb37e2882016-01-11 14:27:20 -050035
Fan Zhang9c93c282017-04-28 12:23:30 -070036 <Preference
37 android:key="foreground_usage"
38 android:title="@string/data_usage_label_foreground"
39 android:selectable="false"
40 android:layout="@layout/horizontal_preference" />
Jason Monkb37e2882016-01-11 14:27:20 -050041
Fan Zhang9c93c282017-04-28 12:23:30 -070042 <Preference
43 android:key="background_usage"
44 android:title="@string/data_usage_label_background"
45 android:selectable="false"
46 android:layout="@layout/horizontal_preference" />
Jason Monkb37e2882016-01-11 14:27:20 -050047
Fan Zhang9c93c282017-04-28 12:23:30 -070048 </PreferenceCategory>
Jason Monkb37e2882016-01-11 14:27:20 -050049
Fan Zhang9c93c282017-04-28 12:23:30 -070050 <PreferenceCategory
anitalina08e2722018-03-21 09:34:17 +080051 android:key="app_data_usage_settings_category"
52 android:layout="@layout/preference_category_no_label">
53
Fan Zhang9c93c282017-04-28 12:23:30 -070054 <Preference
55 android:key="app_settings"
56 android:title="@string/data_usage_app_settings" />
Jason Monkb37e2882016-01-11 14:27:20 -050057
Sudheer Shankab8b2e512018-01-23 01:46:53 -080058 <com.android.settingslib.RestrictedSwitchPreference
Fan Zhang9c93c282017-04-28 12:23:30 -070059 android:key="restrict_background"
60 android:title="@string/data_usage_app_restrict_background"
Sudheer Shankab8b2e512018-01-23 01:46:53 -080061 android:summary="@string/data_usage_app_restrict_background_summary"
62 settings:useAdditionalSummary="true"
63 settings:restrictedSwitchSummary="@string/disabled_by_admin" />
Jason Monkb37e2882016-01-11 14:27:20 -050064
Sudheer Shankab8b2e512018-01-23 01:46:53 -080065 <com.android.settingslib.RestrictedSwitchPreference
Fan Zhang9c93c282017-04-28 12:23:30 -070066 android:key="unrestricted_data_saver"
67 android:title="@string/unrestricted_app_title"
Sudheer Shankab8b2e512018-01-23 01:46:53 -080068 android:summary="@string/unrestricted_app_summary"
69 settings:useAdditionalSummary="true"
70 settings:restrictedSwitchSummary="@string/disabled_by_admin" />
Fan Zhang9c93c282017-04-28 12:23:30 -070071
72 </PreferenceCategory>
Jason Monk764f45d2016-01-21 14:12:11 -050073
Jason Monkb37e2882016-01-11 14:27:20 -050074 <PreferenceCategory
75 android:key="app_list"
76 android:title="@string/data_usage_other_apps" />
77
78</PreferenceScreen>