1<!-- 2 ~ Copyright (C) 2024 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/pk_location_access" 20 android:title="@string/location_access_settings_title"> 21 <com.android.car.settings.common.LogicalPreferenceGroup 22 android:key="@string/pk_location_required_apps_group" 23 settings:controller="com.android.car.settings.location.LocationRequiredAppsSectionPreferenceController"> 24 <Preference 25 android:key="@string/pk_location_adas_apps_list" 26 android:title="@string/required_apps_group_title" 27 android:summary="@string/required_apps_group_summary" 28 settings:controller="com.android.car.settings.location.LocationRequiredAppsHeaderPreferenceController"/> 29 <com.android.car.ui.preference.CarUiSwitchPreference 30 android:key="@string/pk_adas_location_state_switch" 31 android:title="@string/required_apps_group_title" 32 android:summary="@string/required_apps_group_summary" 33 settings:controller="com.android.car.settings.location.AdasLocationSwitchPreferenceController" 34 settings:searchable="true"/> 35 <com.android.car.settings.common.LogicalPreferenceGroup 36 android:key="@string/pk_location_driver_assistance_privacy_policy_group" 37 settings:controller="com.android.car.settings.location.AdasPrivacyPolicyDisclosurePreferenceController"/> 38 <com.android.car.settings.common.DividerPreference/> 39 </com.android.car.settings.common.LogicalPreferenceGroup> 40 <com.android.car.ui.preference.CarUiSwitchPreference 41 android:key="@string/pk_location_state_switch" 42 android:title="@string/location_infotainment_apps_toggle_title" 43 android:summary="@string/location_infotainment_apps_toggle_summary" 44 style="@style/ColoredSwitchPreferenceStyle" 45 settings:controller="com.android.car.settings.location.LocationStateSwitchPreferenceController" 46 settings:searchable="true"/> 47 <com.android.car.settings.common.LogicalPreferenceGroup 48 android:key="@string/pk_location_infotainment_apps_group" 49 settings:controller="com.android.car.settings.location.LocationInfotainmentAppsPreferenceController"/> 50 <com.android.car.settings.common.DividerPreference/> 51 <com.android.car.ui.preference.CarUiFooterPreference 52 android:key="@string/pk_location_access_disclaimer" 53 android:icon="@drawable/ic_settings_about" 54 android:summary="@string/location_access_disclaimer_summary" 55 android:selectable="false"/> 56</PreferenceScreen> 57