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