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 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:settings="http://schemas.android.com/apk/res-auto" 19 android:key="location_settings" 20 android:title="@string/location_settings_title" 21 settings:keywords="@string/keywords_location"> 22 23 <com.android.settingslib.widget.LayoutPreference 24 android:key="apps_dashboard" 25 android:layout="@layout/app_entities_header" 26 android:selectable="false" 27 settings:allowDividerBelow="true" /> 28 29 <PreferenceCategory 30 android:key="location_advanced_settings" 31 settings:initialExpandedChildrenCount="2"> 32 33 <!-- This preference category gets removed if new_recent_location_ui is disabled --> 34 <Preference 35 android:key="app_level_permissions" 36 android:title="@string/location_app_level_permissions"> 37 <intent android:action="android.intent.action.MANAGE_PERMISSION_APPS"> 38 <extra android:name="android.intent.extra.PERMISSION_NAME" 39 android:value="android.permission-group.LOCATION" /> 40 </intent> 41 </Preference> 42 43 <Preference 44 android:key="location_scanning" 45 android:title="@string/location_scanning_screen_title" 46 android:fragment="com.android.car.developeroptions.location.ScanningSettings"/> 47 48 <!-- This preference gets removed if there is no managed profile --> 49 <com.android.settingslib.RestrictedSwitchPreference 50 android:key="managed_profile_location_switch" 51 android:title="@string/managed_profile_location_switch_title" 52 settings:useAdminDisabledSummary="true" 53 android:enabled="false" 54 android:selectable="true" /> 55 56 <PreferenceCategory 57 android:key="location_services" /> 58 59 <!-- This preference gets removed if there is no managed profile --> 60 <PreferenceCategory 61 android:title="@string/managed_profile_location_services" 62 android:key="location_services_managed_profile" /> 63 64 </PreferenceCategory> 65 66 <PreferenceCategory 67 android:key="location_footer" 68 settings:allowDividerAbove="false"/> 69</PreferenceScreen> 70