1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2011 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 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:settings="http://schemas.android.com/apk/res-auto" 20 android:key="location_settings" 21 android:title="@string/location_settings_title" 22 settings:keywords="@string/keywords_location"> 23 24 <PreferenceCategory 25 android:key="recent_location_access" 26 android:title="@string/location_category_recent_location_access" 27 settings:controller= 28 "com.android.settings.location.RecentLocationAccessPreferenceController"/> 29 30 <Preference 31 android:key="recent_location_access_see_all_button" 32 android:title="@string/location_recent_location_access_see_all" 33 android:icon="@drawable/ic_chevron_right_24dp" 34 android:fragment="com.android.settings.location.RecentLocationAccessSeeAllFragment" 35 settings:controller="com.android.settings.location.RecentLocationAccessSeeAllButtonPreferenceController" 36 settings:searchable="false"/> 37 38 <PreferenceCategory 39 android:key="location_advanced_settings" 40 android:layout="@layout/preference_category_no_label"> 41 42 <!-- This preference gets removed if there is no managed profile --> 43 <com.android.settingslib.RestrictedSwitchPreference 44 android:enabled="false" 45 android:key="managed_profile_location_switch" 46 android:selectable="true" 47 android:title="@string/managed_profile_location_switch_title" 48 settings:controller="com.android.settings.location.LocationForWorkPreferenceController" 49 settings:forWork="true" 50 settings:useAdminDisabledSummary="true"/> 51 52 <!-- This preference category gets removed if new_recent_location_ui is disabled --> 53 <Preference 54 android:key="app_level_permissions" 55 android:title="@string/location_app_level_permissions" 56 settings:controller="com.android.settings.location.AppLocationPermissionPreferenceController"> 57 <intent android:action="android.intent.action.MANAGE_PERMISSION_APPS"> 58 <extra android:name="android.intent.extra.PERMISSION_NAME" 59 android:value="android.permission-group.LOCATION"/> 60 </intent> 61 </Preference> 62 63 <Preference 64 android:fragment="com.android.settings.location.LocationServices" 65 android:key="location_services" 66 android:title="@string/location_services_preference_title" 67 settings:controller="com.android.settings.location.LocationServicesPreferenceController"/> 68 69 </PreferenceCategory> 70 71 <com.android.settingslib.widget.FooterPreference 72 android:title="@string/location_settings_footer_general" 73 android:key="location_footer" 74 settings:searchable="false" 75 settings:controller="com.android.settings.location.LocationSettingsFooterPreferenceController"/> 76</PreferenceScreen> 77