Raff Tsai | 5089629 | 2019-11-22 16:36:21 +0800 | [diff] [blame] | 1 | <?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 Tsai | 5089629 | 2019-11-22 16:36:21 +0800 | [diff] [blame] | 25 | <PreferenceCategory |
| 26 | android:key="recent_location_requests" |
Raff Tsai | 91aa4b8 | 2019-12-02 15:09:26 +0800 | [diff] [blame] | 27 | android:title="@string/location_category_recent_location_requests" |
Raff Tsai | 5089629 | 2019-11-22 16:36:21 +0800 | [diff] [blame] | 28 | 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 Tsai | 5ec8efe | 2019-12-13 16:46:33 +0800 | [diff] [blame] | 35 | settings:controller="com.android.settings.core.WorkPreferenceController" |
| 36 | settings:forWork="true" |
Raff Tsai | 5089629 | 2019-11-22 16:36:21 +0800 | [diff] [blame] | 37 | settings:searchable="false"/> |
| 38 | |
Raff Tsai | 91aa4b8 | 2019-12-02 15:09:26 +0800 | [diff] [blame] | 39 | <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 Tsai | 5089629 | 2019-11-22 16:36:21 +0800 | [diff] [blame] | 57 | <PreferenceCategory |
Raff Tsai | 91aa4b8 | 2019-12-02 15:09:26 +0800 | [diff] [blame] | 58 | android:title="@string/managed_profile_location_services" |
Raff Tsai | 5089629 | 2019-11-22 16:36:21 +0800 | [diff] [blame] | 59 | android:layout="@layout/preference_category_no_label" |
Raff Tsai | 91aa4b8 | 2019-12-02 15:09:26 +0800 | [diff] [blame] | 60 | android:key="location_services_managed_profile" |
| 61 | settings:controller="com.android.settings.location.LocationServiceForWorkPreferenceController"/> |
Raff Tsai | 5089629 | 2019-11-22 16:36:21 +0800 | [diff] [blame] | 62 | |
| 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> |