1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright 2018 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17 18<PreferenceScreen 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:settings="http://schemas.android.com/apk/res-auto" 21 android:title="@string/location_settings_title" 22 android:key="@string/psk_location_settings"> 23 <com.android.car.settings.common.ClickableWhileDisabledSwitchPreference 24 android:key="@string/pk_location_state_switch" 25 style="@style/ColoredSwitchPreferenceStyle" 26 settings:controller="com.android.car.settings.location.LocationStateSwitchPreferenceController" 27 settings:searchable="false"/> 28 <com.android.car.settings.common.DividerPreference/> 29 <Preference 30 android:fragment="com.android.car.settings.location.RecentLocationRequestsFragment" 31 android:key="@string/pk_location_recent_requests_entry" 32 android:title="@string/location_settings_recent_requests_title" 33 settings:controller="com.android.car.settings.location.RecentLocationRequestsEntryPreferenceController"/> 34 <Preference 35 android:key="@string/pk_location_app_permissions" 36 android:title="@string/location_settings_app_permissions_title" 37 settings:controller="com.android.car.settings.common.DefaultRestrictionsPreferenceController"> 38 <intent android:action="android.intent.action.MANAGE_PERMISSION_APPS"> 39 <extra android:name="android.intent.extra.PERMISSION_NAME" 40 android:value="android.permission-group.LOCATION"/> 41 </intent> 42 </Preference> 43 <PreferenceCategory 44 android:key="@string/pk_location_services" 45 android:title="@string/location_settings_services_title" 46 settings:controller="com.android.car.settings.location.LocationServicesPreferenceController"/> 47 48 <Preference 49 android:key="@string/pk_location_footer" 50 android:summary="@string/location_settings_footer" 51 android:icon="@drawable/ic_settings_about" 52 android:selectable="false"/> 53</PreferenceScreen> 54