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