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/pk_location_access"
20                  android:title="@string/location_access_settings_title">
21    <com.android.car.settings.common.ColoredSwitchPreference
22        android:key="@string/pk_location_state_switch"
23        android:title="@string/location_toggle_title"
24        android:summary="@string/location_toggle_summary"
25        style="@style/ColoredSwitchPreferenceStyle"
26        settings:controller="com.android.car.settings.location.LocationStateSwitchPreferenceController"
27        settings:searchable="false"/>
28    <com.android.car.ui.preference.CarUiSwitchPreference
29        android:key="@string/pk_adas_location_state_switch"
30        android:title="@string/adas_location_toggle_title"
31        android:summary="@string/adas_location_toggle_summary"
32        settings:controller="com.android.car.settings.location.AdasLocationSwitchPreferenceController"
33        settings:searchable="true"/>
34    <com.android.car.ui.preference.CarUiFooterPreference
35        android:key="@string/pk_location_access_disclaimer"
36        android:summary="@string/location_access_disclaimer_summary"
37        android:icon="@drawable/ic_settings_about"
38        android:selectable="false"/>
39    <com.android.car.settings.common.DividerPreference/>
40    <PreferenceCategory
41        android:key="@string/pk_location_adas_apps_list"
42        android:title="@string/location_adas_apps_list_title"
43        android:selectable="false"/>
44    <com.android.car.settings.common.LogicalPreferenceGroup
45        android:key="@string/pk_location_driver_assistance_privacy_policy_group"
46        settings:controller="com.android.car.settings.location.AdasPrivacyPolicyDisclosurePreferenceController"/>
47    <com.android.car.ui.preference.CarUiFooterPreference
48        android:key="@string/pk_location_adas_app_info"
49        android:summary="@string/location_adas_app_info_summary"
50        android:icon="@drawable/ic_settings_about"
51        android:selectable="false"/>
52</PreferenceScreen>
53