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
24    <!-- Work Policy info -->
25    <Preference
26        android:key="work_policy_info"
27        android:title="@string/work_policy_privacy_settings"
28        android:summary="@string/work_policy_privacy_settings_summary"
29        settings:controller="com.android.settings.privacy.WorkPolicyInfoPreferenceController"/>
30
31    <!-- Connected work and personal apps -->
32    <Preference
33        android:key="interact_across_profiles_privacy"
34        android:title="@string/interact_across_profiles_title"
35        android:fragment="com.android.settings.applications.specialaccess.interactacrossprofiles.InteractAcrossProfilesSettings"
36        settings:searchable="false"
37        settings:controller="com.android.settings.applications.specialaccess.interactacrossprofiles.InteractAcrossProfilesController" />
38
39    <!-- Accessibility usage -->
40    <Preference
41        android:key="privacy_accessibility_usage"
42        android:title="@string/accessibility_usage_title"
43        settings:controller="com.android.settings.privacy.AccessibilityUsagePreferenceController"/>
44
45    <!-- Permissions usage -->
46    <Preference
47        android:key="privacy_permissions_usage"
48        android:title="@string/permissions_usage_title"
49        android:summary="@string/permissions_usage_summary"
50        settings:controller="com.android.settings.privacy.PrivacyHubPreferenceController"/>
51
52    <!-- App permissions -->
53    <Preference
54        android:key="privacy_manage_perms"
55        android:title="@string/app_permissions"
56        android:summary="@string/runtime_permissions_summary_control_app_access"
57        settings:controller="com.android.settings.privacy.ManagePermissionsPreferenceController"/>
58
59    <!-- App Data Sharing Update -->
60    <Preference
61        android:key="privacy_app_data_sharing_updates"
62        android:title="@string/app_data_sharing_updates_title"
63        android:summary="@string/app_data_sharing_updates_summary"
64        settings:controller="com.android.settings.privacy.AppDataSharingUpdatesPreferenceController"/>
65
66
67    <!-- Camera toggle -->
68    <com.android.settingslib.RestrictedSwitchPreference
69        android:key="privacy_camera_toggle"
70        android:title="@string/camera_toggle_title"
71        android:summary="@string/perm_toggle_description"
72        settings:controller="com.android.settings.privacy.CameraToggleController"/>
73
74    <!-- Microphone toggle -->
75    <com.android.settingslib.RestrictedSwitchPreference
76        android:key="privacy_mic_toggle"
77        android:title="@string/mic_toggle_title"
78        android:summary="@string/mic_toggle_description"
79        settings:controller="com.android.settings.privacy.MicToggleController"/>
80
81    <!-- Show passwords -->
82    <SwitchPreferenceCompat
83        android:key="show_password"
84        android:title="@string/show_password"
85        android:summary="@string/show_password_summary"
86        settings:controller="com.android.settings.security.ShowPasswordPreferenceController"/>
87
88    <!-- On lock screen notifications -->
89    <com.android.settings.RestrictedListPreference
90        android:key="privacy_lock_screen_notifications"
91        android:title="@string/lock_screen_notifs_title"
92        android:summary="@string/summary_placeholder"/>
93
94    <Preference
95        android:key="privacy_lock_screen_notifications_page"
96        android:title="@string/lock_screen_notifs_title"
97        android:fragment="com.android.settings.notification.LockScreenNotificationsPreferencePageFragment"
98        settings:controller="com.android.settings.notification.LockScreenNotificationsPreferencePageController" />
99
100    <!-- Show media on lock screen -->
101    <SwitchPreferenceCompat
102        android:key="privacy_media_controls_lockscreen"
103        android:title="@string/media_controls_lockscreen_title"
104        android:summary="@string/media_controls_lockscreen_description"
105        settings:controller=
106            "com.android.settings.sound.MediaControlsLockScreenPreferenceController" />
107
108    <!-- Privacy Service -->
109    <PreferenceCategory
110        android:key="privacy_services"
111        android:layout="@layout/preference_category_no_label"/>
112
113    <PreferenceCategory
114        android:key="dashboard_tile_placeholder"/>
115
116    <!-- Work profile settings are at the bottom with high order value to avoid users thinking that
117         any of the above settings (including dynamic) are specific to the work profile. -->
118    <PreferenceCategory
119        android:key="privacy_work_profile_notifications_category"
120        android:title="@string/profile_section_header"
121        android:order="998"
122        settings:searchable="false">
123
124        <com.android.settings.RestrictedListPreference
125            android:key="privacy_lock_screen_work_profile_notifications"
126            android:title="@string/locked_work_profile_notification_title"
127            android:summary="@string/summary_placeholder"
128            android:order="999"/>
129    </PreferenceCategory>
130
131    <!-- Content Capture -->
132
133    <!-- NOTE: content capture has a different preference, depending whether or not the
134         ContentCaptureService implementations defines a custom settings activitiy on its manifest.
135         Hence, we show both here, but the controller itself will decide if it's available or not.
136    -->
137
138    <SwitchPreferenceCompat
139        android:key="content_capture"
140        android:title="@string/content_capture"
141        android:summary="@string/content_capture_summary"
142        settings:controller="com.android.settings.privacy.EnableContentCapturePreferenceController"/>
143
144    <com.android.settingslib.PrimarySwitchPreference
145        android:key="content_capture_custom_settings"
146        android:title="@string/content_capture"
147        android:summary="@string/content_capture_summary"
148        settings:controller="com.android.settings.privacy.EnableContentCaptureWithServiceSettingsPreferenceController"/>
149
150    <!-- Clipboard access notifications -->
151    <SwitchPreferenceCompat
152        android:key="show_clip_access_notification"
153        android:title="@string/show_clip_access_notification"
154        android:summary="@string/show_clip_access_notification_summary"
155        settings:controller="com.android.settings.privacy.ShowClipAccessNotificationPreferenceController"/>
156
157</PreferenceScreen>
158