1<!-- 2 ~ Copyright (C) 2024 The Android Open Source Project 3 ~ 4 ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 ~ you may not use this file except in compliance with the License. 6 ~ You may obtain a copy of the License at 7 ~ 8 ~ http://www.apache.org/licenses/LICENSE-2.0 9 ~ 10 ~ Unless required by applicable law or agreed to in writing, software 11 ~ distributed under the License is distributed on an "AS IS" BASIS, 12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 ~ See the License for the specific language governing permissions and 14 ~ limitations under the License. 15 --> 16 17<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:settings="http://schemas.android.com/apk/res-auto" 19 android:key="@string/pk_camera_access" 20 android:title="@string/camera_access_settings_title"> 21 <com.android.car.settings.common.LogicalPreferenceGroup 22 android:key="@string/pk_camera_required_apps_group" 23 settings:controller= 24 "com.android.car.settings.privacy.CameraRequiredAppsPreferenceController"> 25 <Preference 26 android:key="@string/pk_camera_required_apps_header" 27 android:title="@string/required_apps_group_title" 28 android:summary="@string/required_apps_group_summary" 29 settings:controller= 30 "com.android.car.settings.privacy.CameraRequiredAppsHeaderPreferenceController"/> 31 <com.android.car.ui.preference.CarUiSwitchPreference 32 android:key="@string/pk_camera_required_apps_switch" 33 android:title="@string/required_apps_group_title" 34 android:summary="@string/required_apps_group_summary" 35 settings:controller= 36 "com.android.car.settings.privacy.CameraRequiredAppsTogglePreferenceController" 37 settings:searchable="true"/> 38 <com.android.car.settings.common.LogicalPreferenceGroup 39 android:key="@string/pk_camera_required_apps_list" android:selectable="false"/> 40 <com.android.car.settings.common.DividerPreference/> 41 </com.android.car.settings.common.LogicalPreferenceGroup> 42 <com.android.car.settings.common.LogicalPreferenceGroup 43 android:key="@string/pk_camera_infotainment_apps_group" 44 settings:controller= 45 "com.android.car.settings.privacy.CameraInfotainmentAppsPreferenceController"> 46 <com.android.car.ui.preference.CarUiSwitchPreference 47 android:key="@string/pk_camera_infotainment_apps_switch" 48 android:title="@string/camera_infotainment_apps_toggle_title" 49 android:summary="@string/camera_infotainment_apps_toggle_summary" 50 settings:controller= 51 "com.android.car.settings.privacy.CameraInfotainmentAppsTogglePreferenceController" 52 settings:searchable="true"/> 53 <com.android.car.settings.common.LogicalPreferenceGroup 54 android:key="@string/pk_camera_infotainment_apps_list" android:selectable="false" /> 55 <com.android.car.settings.common.DividerPreference/> 56 <com.android.car.ui.preference.CarUiFooterPreference 57 android:key="@string/pk_camera_access_disclaimer" 58 android:summary="@string/camera_access_disclaimer_summary" 59 android:icon="@drawable/ic_settings_about" 60 android:selectable="false"/> 61 </com.android.car.settings.common.LogicalPreferenceGroup> 62</PreferenceScreen> 63