1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2021 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:title="@string/enterprise_privacy_settings"
22    android:key="@string/psk_enterprise_privacy_settings">
23
24    <PreferenceCategory android:key="@string/psk_enterprise_privacy_exposure_category"
25                        android:title="@string/enterprise_privacy_exposure_category"
26                        android:contentDescription="@string/enterprise_privacy_exposure_category">
27        <com.android.car.ui.preference.CarUiPreference
28            android:key="@string/pk_enterprise_privacy_exposure_desc"
29            android:selectable="false"
30            android:title="@string/enterprise_privacy_exposure_desc"
31            settings:singleLineTitle="false"
32            settings:showChevron="false"/>
33    <!-- TODO(b/206155858): figure out why it doesn't have a title -->
34        <Preference android:key="@string/pk_enterprise_privacy_network_logs"
35                    settings:controller="com.android.car.settings.enterprise.NetworkLogsPreferenceController"
36                    android:title="@string/enterprise_privacy_network_logs"
37                    android:selectable="false"/>
38        <Preference android:key="@string/pk_enterprise_privacy_bug_reports"
39                    settings:controller="com.android.car.settings.enterprise.BugReportsPreferenceController"
40                    android:icon="@drawable/ic_bugreport"
41                    android:title="@string/enterprise_privacy_bug_reports"
42                    android:selectable="false"/>
43        <Preference android:key="@string/pk_enterprise_privacy_security_logs"
44                    settings:controller="com.android.car.settings.enterprise.SecurityLogsPreferenceController"
45                    android:title="@string/enterprise_privacy_security_logs"
46                    android:selectable="false"/>
47    </PreferenceCategory>
48    <com.android.car.settings.common.DividerPreference/>
49
50    <PreferenceCategory android:title="@string/enterprise_privacy_exposure_changes_category"
51                        android:key="@string/psk_enterprise_privacy_exposure_changes_category">
52        <Preference
53                    android:fragment="com.android.car.settings.enterprise.ApplicationListFragment$EnterpriseInstalledPackages"
54                    settings:controller="com.android.car.settings.enterprise.EnterpriseInstalledPackagesPreferenceController"
55                    android:key="@string/pk_enterprise_privacy_number_enterprise_installed_packages"
56                    android:icon="@drawable/ic_apps"
57                    android:title="@string/enterprise_privacy_enterprise_installed_packages"/>
58        <Preference
59                    android:fragment="com.android.car.settings.enterprise.ApplicationListFragment$AdminGrantedLocationPermissions"
60                    settings:controller="com.android.car.settings.enterprise.AdminGrantedLocationPermissionsPreferenceController"
61                    android:key="@string/pk_enterprise_privacy_number_location_access_packages"
62                    android:title="@string/enterprise_privacy_location_access"/>
63        <Preference
64                    android:fragment="com.android.car.settings.enterprise.ApplicationListFragment$AdminGrantedMicrophonePermission"
65                    settings:controller="com.android.car.settings.enterprise.AdminGrantedMicrophonePermissionPreferenceController"
66                    android:key="@string/pk_enterprise_privacy_number_microphone_access_packages"
67                    android:title="@string/enterprise_privacy_microphone_access"/>
68        <Preference
69                    android:fragment="com.android.car.settings.enterprise.ApplicationListFragment$AdminGrantedCameraPermission"
70                    settings:controller="com.android.car.settings.enterprise.AdminGrantedCameraPermissionPreferenceController"
71                    android:key="@string/pk_enterprise_privacy_number_camera_access_packages"
72                    android:title="@string/enterprise_privacy_camera_access"/>
73        <Preference
74                    android:fragment="com.android.car.settings.enterprise.EnterpriseSetDefaultAppsListFragment"
75                    android:icon="@drawable/ic_apps"
76                    settings:controller="com.android.car.settings.enterprise.EnterpriseSetDefaultAppsPreferenceController"
77                    android:key="@string/pk_enterprise_privacy_number_enterprise_set_default_apps"
78                    android:title="@string/enterprise_privacy_enterprise_set_default_apps"/>
79
80	<!-- TODO(b/206155695): figure out why it doesn't have a title -->
81        <Preference android:key="@string/pk_enterprise_privacy_always_on_vpn_primary_user"
82                    settings:controller="com.android.car.settings.enterprise.AlwaysOnVpnCurrentUserPreferenceController"
83                    android:selectable="false"/>
84
85        <Preference android:key="@string/pk_enterprise_privacy_input_method"
86                    settings:controller="com.android.car.settings.enterprise.ImePreferenceController"
87                    android:title="@string/enterprise_privacy_input_method"
88                    android:selectable="false"/>
89        <Preference android:key="@string/pk_enterprise_privacy_global_http_proxy"
90                    settings:controller="com.android.car.settings.enterprise.GlobalHttpProxyPreferenceController"
91                    android:title="@string/enterprise_privacy_global_http_proxy"
92                    android:selectable="false"/>
93        <Preference android:key="@string/pk_enterprise_privacy_ca_certs_current_user"
94                    settings:controller="com.android.car.settings.enterprise.CaCertsCurrentUserPreferenceController"
95                    android:title="@string/enterprise_privacy_ca_certs_personal"
96                    android:selectable="false"/>
97    </PreferenceCategory>
98    <com.android.car.settings.common.DividerPreference/>
99
100    <PreferenceCategory android:key="@string/psk_enterprise_privacy_device_access_category"
101                        android:title="@string/enterprise_privacy_device_access_category">
102        <com.android.car.ui.preference.CarUiPreference
103            android:key="@string/pk_enterprise_privacy_device_access_desc"
104            android:selectable="false"
105            android:title="@string/enterprise_privacy_device_access_desc"
106            settings:singleLineTitle="false"
107            settings:showChevron="false"/>
108        <Preference android:key="@string/pk_enterprise_privacy_failed_password_wipe_current_user"
109                    settings:controller="com.android.car.settings.enterprise.FailedPasswordWipeCurrentUserPreferenceController"
110                    android:title="@string/enterprise_privacy_failed_password_wipe_device"
111                    android:selectable="false"/>
112    </PreferenceCategory>
113    <com.android.car.settings.common.DividerPreference/>
114
115    <com.android.car.ui.preference.CarUiFooterPreference
116        android:key="@string/pk_enterprise_privacy_header"
117        android:summary="@string/enterprise_privacy_header"
118        android:icon="@drawable/ic_settings_about"
119        android:selectable="false"/>
120</PreferenceScreen>
121