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 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        <PreferenceCategory
24            android:key="recent_location_requests"
25            android:title="@string/location_category_recent_location_requests"/>
26
27        <Preference
28            android:key="recent_location_requests_see_all_button"
29            android:title="@string/location_recent_location_requests_see_all"
30            android:icon="@drawable/ic_chevron_right_24dp"
31            android:fragment="com.android.settings.location.RecentLocationRequestSeeAllFragment"
32            settings:searchable="false"/>
33
34        <PreferenceCategory
35            android:key="location_advanced_settings"
36            android:layout="@layout/preference_category_no_label"
37            settings:initialExpandedChildrenCount="2">
38
39            <!-- This preference category gets removed if new_recent_location_ui is disabled -->
40            <Preference
41                android:key="app_level_permissions"
42                android:title="@string/location_app_level_permissions">
43                <intent android:action="android.intent.action.MANAGE_PERMISSION_APPS">
44                    <extra android:name="android.intent.extra.PERMISSION_NAME"
45                           android:value="android.permission-group.LOCATION" />
46                </intent>
47            </Preference>
48
49            <Preference
50                android:key="location_scanning"
51                android:title="@string/location_scanning_screen_title"
52                android:fragment="com.android.settings.location.ScanningSettings"/>
53
54            <!-- This preference gets removed if there is no managed profile -->
55            <com.android.settingslib.RestrictedSwitchPreference
56                android:key="managed_profile_location_switch"
57                android:title="@string/managed_profile_location_switch_title"
58                settings:useAdminDisabledSummary="true"
59                android:enabled="false"
60                android:selectable="true" />
61
62            <PreferenceCategory
63                android:key="location_services"
64                android:layout="@layout/preference_category_no_label"/>
65
66            <!-- This preference gets removed if there is no managed profile -->
67            <PreferenceCategory
68                android:title="@string/managed_profile_location_services"
69                android:key="location_services_managed_profile" />
70
71        </PreferenceCategory>
72
73        <PreferenceCategory
74            android:key="location_footer"
75            android:layout="@layout/preference_category_no_label"
76            settings:allowDividerAbove="false"/>
77</PreferenceScreen>
78