• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 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:title="@string/date_and_time"
21    settings:keywords="@string/keywords_date_and_time">
22
23    <com.android.settingslib.RestrictedSwitchPreference
24        android:key="auto_time"
25        android:title="@string/date_time_auto"
26        settings:useAdditionalSummary="true"
27        settings:userRestriction="no_config_date_time"/>
28
29    <com.android.settingslib.RestrictedPreference
30        android:key="date"
31        android:title="@string/date_time_set_date_title"
32        android:summary="@string/summary_placeholder"
33        settings:userRestriction="no_config_date_time"/>
34
35    <com.android.settingslib.RestrictedPreference
36        android:key="time"
37        android:title="@string/date_time_set_time_title"
38        android:summary="@string/summary_placeholder"
39        settings:userRestriction="no_config_date_time"/>
40
41    <PreferenceCategory
42        android:key="timezone_preference_category"
43        android:title="@string/date_time_set_timezone_title">
44
45        <com.android.settingslib.RestrictedSwitchPreference
46            android:key="auto_zone"
47            android:title="@string/zone_auto_title"
48            settings:userRestriction="no_config_date_time"/>
49
50        <com.android.settingslib.widget.BannerMessagePreference
51            android:key="location_time_zone_detection_status"
52            android:title="@string/location_time_zone_detection_status_title"
53            settings:controller="com.android.settings.datetime.LocationProviderStatusPreferenceController"/>
54
55        <!-- This preference gets removed if location-based time zone detection is not supported -->
56        <SwitchPreference
57            android:key="location_time_zone_detection"
58            android:title="@string/location_time_zone_detection_toggle_title"
59            settings:controller="com.android.settings.datetime.LocationTimeZoneDetectionPreferenceController"/>
60
61        <com.android.settingslib.RestrictedPreference
62            android:key="timezone"
63            android:title="@string/date_time_set_timezone_title"
64            android:summary="@string/summary_placeholder"
65            android:fragment="com.android.settings.datetime.timezone.TimeZoneSettings"
66            settings:userRestriction="no_config_date_time"
67            settings:keywords="@string/keywords_time_zone"/>
68
69    </PreferenceCategory>
70
71    <PreferenceCategory
72        android:key="time_format_preference_category"
73        android:title="@string/time_format_category_title"
74        settings:keywords="@string/keywords_time_format">
75        <SwitchPreference
76            android:key="auto_24hour"
77            android:title="@string/date_time_24hour_auto"/>
78
79        <SwitchPreference
80            android:key="24 hour"
81            android:title="@string/date_time_24hour" />
82    </PreferenceCategory>
83
84</PreferenceScreen>
85