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_microphone_access"
20                  android:title="@string/microphone_access_settings_title">
21    <com.android.car.settings.common.LogicalPreferenceGroup>
22        <com.android.car.settings.common.ColoredSwitchPreference
23            android:key="@string/pk_microphone_infotainment_apps_switch"
24            android:title="@string/microphone_infotainment_apps_toggle_title"
25            android:summary="@string/microphone_infotainment_apps_toggle_summary"
26            style="@style/ColoredSwitchPreferenceStyle"
27            settings:controller="com.android.car.settings.privacy.MicTogglePreferenceController"
28            settings:searchable="true"/>
29        <com.android.car.settings.common.LogicalPreferenceGroup
30            android:key="@string/pk_microphone_infotainment_apps_list"
31            settings:controller=
32                "com.android.car.settings.privacy.MicrophoneInfotainmentAppsPreferenceController"/>
33    </com.android.car.settings.common.LogicalPreferenceGroup>
34</PreferenceScreen>
35