blob: f15c8d897869a88c43d24f44bf4f4a8971fa023b [file] [log] [blame]
Raff Tsai50896292019-11-22 16:36:21 +08001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 ~ Copyright (C) 2019 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:key="location_settings"
22 android:title="@string/location_settings_title"
23 settings:keywords="@string/keywords_location">
24
Raff Tsai50896292019-11-22 16:36:21 +080025 <PreferenceCategory
26 android:key="recent_location_requests"
Raff Tsai91aa4b82019-12-02 15:09:26 +080027 android:title="@string/location_category_recent_location_requests"
Raff Tsai50896292019-11-22 16:36:21 +080028 settings:controller="com.android.settings.location.RecentLocationRequestPreferenceController"/>
29
30 <Preference
31 android:key="recent_location_requests_see_all_button"
32 android:title="@string/location_recent_location_requests_see_all"
33 android:icon="@drawable/ic_chevron_right_24dp"
34 android:fragment="com.android.settings.location.RecentLocationRequestSeeAllFragment"
Raff Tsai5ec8efe2019-12-13 16:46:33 +080035 settings:controller="com.android.settings.core.WorkPreferenceController"
36 settings:forWork="true"
Raff Tsai50896292019-11-22 16:36:21 +080037 settings:searchable="false"/>
38
Raff Tsai91aa4b82019-12-02 15:09:26 +080039 <com.android.settingslib.RestrictedSwitchPreference
40 android:key="managed_profile_location_switch"
41 android:title="@string/managed_profile_location_switch_title"
42 settings:useAdminDisabledSummary="true"
43 settings:controller="com.android.settings.location.LocationForWorkPreferenceController"
44 android:selectable="true"/>
45
46 <!-- This preference category gets removed if new_recent_location_ui is disabled -->
47 <Preference
48 android:key="app_level_permissions"
49 android:title="@string/location_app_level_permissions"
50 settings:controller="com.android.settings.location.AppLocationPermissionPreferenceController">
51 <intent android:action="android.intent.action.MANAGE_PERMISSION_APPS">
52 <extra android:name="android.intent.extra.PERMISSION_NAME"
53 android:value="android.permission-group.LOCATION"/>
54 </intent>
55 </Preference>
56
Raff Tsai50896292019-11-22 16:36:21 +080057 <PreferenceCategory
Raff Tsai91aa4b82019-12-02 15:09:26 +080058 android:title="@string/managed_profile_location_services"
Raff Tsai50896292019-11-22 16:36:21 +080059 android:layout="@layout/preference_category_no_label"
Raff Tsai91aa4b82019-12-02 15:09:26 +080060 android:key="location_services_managed_profile"
61 settings:controller="com.android.settings.location.LocationServiceForWorkPreferenceController"/>
Raff Tsai50896292019-11-22 16:36:21 +080062
63 <PreferenceCategory
64 android:key="location_footer"
65 android:layout="@layout/preference_category_no_label"
66 settings:allowDividerAbove="false"
67 settings:controller="com.android.settings.location.LocationFooterPreferenceController"/>
68</PreferenceScreen>