1<!--
2  ~ Copyright (C) 2022 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
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:settings="http://schemas.android.com/apk/res-auto"
20    android:key="privacy_controls_page"
21    android:title="@string/privacy_controls_title">
22
23    <!-- Camera toggle -->
24    <com.android.settingslib.RestrictedSwitchPreference
25        android:key="privacy_camera_toggle"
26        android:title="@string/camera_toggle_title"
27        android:summary="@string/perm_toggle_description"
28        settings:controller="com.android.settings.privacy.CameraToggleController"/>
29
30    <!-- Microphone toggle -->
31    <com.android.settingslib.RestrictedSwitchPreference
32        android:key="privacy_mic_toggle"
33        android:title="@string/mic_toggle_title"
34        android:summary="@string/mic_toggle_description"
35        settings:controller="com.android.settings.privacy.MicToggleController"/>
36
37    <!-- Clipboard access notifications -->
38    <SwitchPreferenceCompat
39        android:key="show_clip_access_notification"
40        android:title="@string/show_clip_access_notification"
41        android:summary="@string/show_clip_access_notification_summary"
42        settings:controller="com.android.settings.privacy.ShowClipAccessNotificationPreferenceController"/>
43
44</PreferenceScreen>
45