1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright 2020 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/privacy_settings_title" 22 android:key="@string/psk_privacy_settings"> 23 24 <!-- TODO(b/182409057): proper icon --> 25 <Preference 26 android:key="@string/pk_privacy_work_policy" 27 android:title="@string/work_policy_privacy_settings" 28 android:summary="@string/work_policy_privacy_settings_summary" 29 android:icon="@drawable/privacy_app_permissions" 30 settings:controller="com.android.car.settings.enterprise.WorkPolicyInfoPreferenceController"> 31 </Preference> 32 33 <com.android.car.ui.preference.CarUiTwoActionSwitchPreference 34 android:key="@string/pk_mute_mic_switch" 35 android:title="@string/mute_mic_title" 36 android:summary="@string/mute_mic_summary" 37 android:icon="@drawable/privacy_mic" 38 settings:controller="com.android.car.settings.privacy.MuteMicTogglePreferenceController"> 39 <intent android:action="android.intent.action.MANAGE_PERMISSION_APPS"> 40 <extra android:name="android.intent.extra.PERMISSION_NAME" 41 android:value="android.permission-group.MICROPHONE"/> 42 </intent> 43 </com.android.car.ui.preference.CarUiTwoActionSwitchPreference> 44 45 <com.android.car.ui.preference.CarUiTwoActionSwitchPreference 46 android:fragment="com.android.car.settings.location.LocationSettingsFragment" 47 android:key="@string/pk_location_settings_entry" 48 android:title="@string/location_settings_title" 49 android:summary="@string/privacy_location_summary" 50 android:icon="@drawable/privacy_location" 51 settings:controller="com.android.car.settings.privacy.LocationTogglePreferenceController"/> 52 53 <Preference 54 android:key="@string/pk_privacy_manage_perms" 55 android:title="@string/app_permissions" 56 android:summary="@string/app_permissions_summary" 57 android:icon="@drawable/privacy_app_permissions" 58 settings:controller="com.android.car.settings.common.DefaultRestrictionsPreferenceController"> 59 <intent android:action="android.intent.action.MANAGE_PERMISSIONS"/> 60 </Preference> 61 62 <Preference 63 android:fragment="com.android.car.settings.privacy.VehicleDataFragment" 64 android:key="@string/pk_vehicle_data" 65 android:summary="@string/vehicle_data_summary" 66 android:title="@string/vehicle_data_title" 67 android:icon="@drawable/privacy_vehicle_data" 68 settings:controller="com.android.car.settings.common.DefaultRestrictionsPreferenceController"/> 69 70 <com.android.car.settings.common.LogicalPreferenceGroup 71 android:key="@string/pk_privacy_extra_settings" 72 settings:controller="com.android.car.settings.common.ExtraSettingsPreferenceController"> 73 <intent> 74 <extra android:name="com.android.settings.category" 75 android:value="com.android.settings.category.ia.privacy"/> 76 </intent> 77 </com.android.car.settings.common.LogicalPreferenceGroup> 78 79</PreferenceScreen> 80