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