1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright (C) 2018 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="privacy_dashboard_page"
22    android:title="@string/privacy_dashboard_title"
23    settings:initialExpandedChildrenCount="4">
24
25    <!-- Work Policy info -->
26    <Preference
27        android:key="work_policy_info"
28        android:title="@string/work_policy_privacy_settings"
29        android:summary="@string/work_policy_privacy_settings_summary"
30        settings:allowDividerAbove="true"
31        settings:controller="com.android.settings.privacy.WorkPolicyInfoPreferenceController"/>
32
33    <!-- Accessibility usage -->
34    <Preference
35        android:key="privacy_accessibility_usage"
36        android:title="@string/accessibility_usage_title"
37        settings:allowDividerAbove="true"
38        settings:controller="com.android.settings.privacy.AccessibilityUsagePreferenceController">
39        <intent android:action="android.intent.action.REVIEW_ACCESSIBILITY_SERVICES"/>
40    </Preference>
41
42    <!-- App permissions -->
43    <Preference
44        android:key="privacy_manage_perms"
45        android:title="@string/app_permissions"
46        settings:allowDividerAbove="true"
47        settings:keywords="@string/keywords_app_permissions"
48        settings:controller="com.android.settings.applications.AppPermissionsPreferenceController">
49        <intent android:action="android.intent.action.MANAGE_PERMISSIONS"/>
50    </Preference>
51
52    <!-- Show passwords -->
53    <SwitchPreference
54        android:key="show_password"
55        android:title="@string/show_password"
56        android:summary="@string/show_password_summary"
57        settings:controller="com.android.settings.security.ShowPasswordPreferenceController"/>
58
59    <!-- On lock screen notifications -->
60    <com.android.settings.RestrictedListPreference
61        android:key="privacy_lock_screen_notifications"
62        android:title="@string/lock_screen_notifications_title"
63        android:summary="@string/summary_placeholder"
64        settings:searchable="false"/>
65
66    <!-- Privacy Service -->
67    <PreferenceCategory
68        android:key="privacy_services"
69        android:layout="@layout/preference_category_no_label"/>
70
71    <PreferenceCategory
72        android:key="dashboard_tile_placeholder"/>
73
74    <!-- Work profile settings are at the bottom with high order value to avoid users thinking that
75         any of the above settings (including dynamic) are specific to the work profile. -->
76    <PreferenceCategory
77        android:key="privacy_work_profile_notifications_category"
78        android:title="@string/profile_section_header"
79        android:order="998"
80        settings:searchable="false">
81
82        <com.android.settings.RestrictedListPreference
83            android:key="privacy_lock_screen_work_profile_notifications"
84            android:title="@string/locked_work_profile_notification_title"
85            android:summary="@string/summary_placeholder"
86            android:order="999"
87            settings:searchable="false"/>
88    </PreferenceCategory>
89
90    <!-- Content Capture -->
91
92    <!-- NOTE: content capture has a different preference, depending whether or not the
93         ContentCaptureService implementations defines a custom settings activitiy on its manifest.
94         Hence, we show both here, but the controller itself will decide if it's available or not.
95    -->
96
97    <SwitchPreference
98        android:key="content_capture"
99        android:title="@string/content_capture"
100        android:summary="@string/content_capture_summary"
101        settings:controller="com.android.settings.privacy.EnableContentCapturePreferenceController"/>
102
103    <com.android.settings.widget.MasterSwitchPreference
104        android:key="content_capture_custom_settings"
105        android:title="@string/content_capture"
106        android:summary="@string/content_capture_summary"
107        settings:controller="com.android.settings.privacy.EnableContentCaptureWithServiceSettingsPreferenceController">
108    </com.android.settings.widget.MasterSwitchPreference>
109
110</PreferenceScreen>
111