• 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:allowDividerAbove="true"
49            settings:userRestriction="no_config_date_time"/>
50
51        <!-- This preference gets removed if location-based time zone detection is not supported -->
52        <SwitchPreference
53            android:key="location_time_zone_detection"
54            android:title="@string/location_time_zone_detection_toggle_title"
55            settings:controller="com.android.settings.datetime.LocationTimeZoneDetectionPreferenceController"/>
56
57        <com.android.settingslib.RestrictedPreference
58            android:key="timezone"
59            android:title="@string/date_time_set_timezone_title"
60            android:summary="@string/summary_placeholder"
61            android:fragment="com.android.settings.datetime.timezone.TimeZoneSettings"
62            settings:userRestriction="no_config_date_time"
63            settings:keywords="@string/keywords_time_zone"/>
64
65    </PreferenceCategory>
66
67    <PreferenceCategory
68        android:key="time_format_preference_category"
69        android:title="@string/time_format_category_title"
70        settings:keywords="@string/keywords_time_format">
71        <SwitchPreference
72            android:key="auto_24hour"
73            android:title="@string/date_time_24hour_auto"/>
74
75        <SwitchPreference
76            android:key="24 hour"
77            android:title="@string/date_time_24hour" />
78    </PreferenceCategory>
79
80</PreferenceScreen>
81