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="date_time_settings_screen" 21 android:title="@string/date_and_time" 22 settings:keywords="@string/keywords_date_and_time"> 23 24 <PreferenceCategory 25 android:key="date_time_preference_category" 26 android:layout="@layout/preference_category_no_label"> 27 <com.android.settingslib.RestrictedSwitchPreference 28 android:key="auto_time" 29 android:title="@string/date_time_auto" 30 settings:useAdditionalSummary="true" 31 settings:userRestriction="no_config_date_time" /> 32 33 <com.android.settingslib.RestrictedPreference 34 android:key="date" 35 android:title="@string/date_time_set_date_title" 36 android:summary="@string/summary_placeholder" 37 settings:userRestriction="no_config_date_time" /> 38 39 <com.android.settingslib.RestrictedPreference 40 android:key="time" 41 android:title="@string/date_time_set_time_title" 42 android:summary="@string/summary_placeholder" 43 settings:userRestriction="no_config_date_time" /> 44 </PreferenceCategory> 45 46 <PreferenceCategory 47 android:key="time_zone_preference_category" 48 android:layout="@layout/preference_category_no_label"> 49 <com.android.settingslib.RestrictedSwitchPreference 50 android:key="auto_zone" 51 android:title="@string/zone_auto_title" 52 settings:userRestriction="no_config_date_time" /> 53 54 <com.android.settingslib.RestrictedPreference 55 android:key="timezone" 56 android:title="@string/date_time_set_timezone_title" 57 android:summary="@string/summary_placeholder" 58 android:fragment="com.android.car.developeroptions.datetime.timezone.TimeZoneSettings" 59 settings:userRestriction="no_config_date_time" 60 settings:keywords="@string/keywords_time_zone"/> 61 </PreferenceCategory> 62 63 <PreferenceCategory 64 android:key="time_format_preference_category" 65 android:title="@string/time_format_category_title" 66 settings:keywords="@string/keywords_time_format"> 67 <SwitchPreference 68 android:key="auto_24hour" 69 android:title="@string/date_time_24hour_auto"/> 70 71 <SwitchPreference 72 android:key="24 hour" 73 android:title="@string/date_time_24hour" /> 74 </PreferenceCategory> 75 76</PreferenceScreen> 77