Home | History | Annotate | Download | only in xml
      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 
     35         <Preference
     36             android:key="foreground_usage"
     37             android:title="@string/data_usage_label_foreground"
     38             android:selectable="false"
     39             android:layout="@layout/horizontal_preference" />
     40 
     41         <Preference
     42             android:key="background_usage"
     43             android:title="@string/data_usage_label_background"
     44             android:selectable="false"
     45             android:layout="@layout/horizontal_preference" />
     46 
     47     </PreferenceCategory>
     48 
     49     <PreferenceCategory
     50         android:key="app_data_usage_settings_category"
     51         android:layout="@layout/preference_category_no_label">
     52 
     53         <Preference
     54             android:key="app_settings"
     55             android:title="@string/data_usage_app_settings" />
     56 
     57         <com.android.settingslib.RestrictedSwitchPreference
     58             android:key="restrict_background"
     59             android:title="@string/data_usage_app_restrict_background"
     60             android:summary="@string/data_usage_app_restrict_background_summary"
     61             settings:useAdditionalSummary="true"
     62             settings:restrictedSwitchSummary="@string/disabled_by_admin" />
     63 
     64         <com.android.settingslib.RestrictedSwitchPreference
     65             android:key="unrestricted_data_saver"
     66             android:title="@string/unrestricted_app_title"
     67             android:summary="@string/unrestricted_app_summary"
     68             settings:useAdditionalSummary="true"
     69             settings:restrictedSwitchSummary="@string/disabled_by_admin" />
     70 
     71     </PreferenceCategory>
     72 
     73     <PreferenceCategory
     74         android:key="app_list"
     75         android:title="@string/data_usage_other_apps" />
     76 
     77 </PreferenceScreen>
     78