1<!-- 2 ~ Copyright (C) 2021 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 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:settings="http://schemas.android.com/apk/res-auto" 19 android:key="@string/psk_adas_settings" 20 android:title="@string/driver_assistance_settings_title"> 21 <com.android.car.settings.common.LogicalPreferenceGroup 22 android:key="@string/pk_location_driver_assistance_preference_group" 23 settings:controller="com.android.car.settings.location.AdasGroupPreferenceController"> 24 <com.android.car.ui.preference.CarUiTwoActionTextPreference 25 android:key="@string/pk_location_driver_assistance_state_switch" 26 android:title="@string/location_driver_assistance_toggle_off_title" 27 android:summary="@string/location_driver_assistance_toggle_off_summary" 28 android:icon="@drawable/ic_settings_location_off" 29 settings:secondaryActionStyle="borderless" 30 settings:secondaryActionText="@string/location_driver_assistance_action_text" 31 settings:controller="com.android.car.settings.location.AdasLocationSwitchSubMenuPreferenceController"/> 32 <com.android.car.settings.common.DividerPreference/> 33 </com.android.car.settings.common.LogicalPreferenceGroup> 34 <Preference 35 android:key="@string/pk_location_footer" 36 android:summary="@string/adas_settings_footer" 37 android:icon="@drawable/ic_settings_about" 38 android:selectable="false"/> 39</PreferenceScreen>