1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2018 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:app="http://schemas.android.com/apk/res-auto"
20    android:title="@string/accessibility_vibration_settings_title">
21
22    <com.android.settingslib.widget.MainSwitchPreference
23        android:key="vibration_switch_main"
24        android:title="@string/accessibility_vibration_primary_switch_title"
25        app:keywords="@string/keywords_accessibility_vibration_primary_switch"
26        app:controller="com.android.settings.accessibility.VibrationMainSwitchPreferenceController"/>
27
28    <PreferenceCategory
29        android:key="vibration_category_call"
30        android:title="@string/accessibility_call_vibration_category_title">
31
32        <SwitchPreferenceCompat
33            android:key="vibration_preference_ring"
34            android:title="@string/accessibility_ring_vibration_title"
35            app:keywords="@string/keywords_ring_vibration"
36            app:controller="com.android.settings.accessibility.RingVibrationTogglePreferenceController" />
37
38        <SwitchPreferenceCompat
39            android:key="vibration_preference_ramping_ringer"
40            android:title="@string/vibrate_when_ringing_option_ramping_ringer"
41            app:keywords="@string/keywords_ramping_ringer_vibration"
42            app:controller="com.android.settings.accessibility.VibrationRampingRingerTogglePreferenceController"/>
43
44    </PreferenceCategory>
45
46    <PreferenceCategory
47        android:key="vibration_category_notification_alarm"
48        android:title="@string/accessibility_notification_alarm_vibration_category_title">
49
50        <SwitchPreferenceCompat
51            android:key="vibration_preference_notification"
52            android:title="@string/accessibility_notification_vibration_title"
53            app:keywords="@string/keywords_notification_vibration"
54            app:controller="com.android.settings.accessibility.NotificationVibrationTogglePreferenceController" />
55
56        <SwitchPreferenceCompat
57            android:key="vibration_preference_alarm"
58            android:title="@string/accessibility_alarm_vibration_title"
59            app:keywords="@string/keywords_alarm_vibration"
60            app:controller="com.android.settings.accessibility.AlarmVibrationTogglePreferenceController" />
61
62    </PreferenceCategory>
63
64    <PreferenceCategory
65        android:key="vibration_category_haptics"
66        android:title="@string/accessibility_interactive_haptics_category_title">
67
68        <SwitchPreferenceCompat
69            android:key="vibration_preference_touch"
70            android:title="@string/accessibility_touch_vibration_title"
71            app:keywords="@string/keywords_touch_vibration"
72            app:controller="com.android.settings.accessibility.HapticFeedbackTogglePreferenceController" />
73
74        <SwitchPreferenceCompat
75            android:key="vibration_preference_media"
76            android:title="@string/accessibility_media_vibration_title"
77            app:keywords="@string/keywords_media_vibration"
78            app:controller="com.android.settings.accessibility.MediaVibrationTogglePreferenceController" />
79
80        <SwitchPreferenceCompat
81            android:key="vibration_preference_keyboard"
82            android:title="@string/accessibility_keyboard_vibration_title"
83            app:keywords="@string/keywords_keyboard_vibration"
84            app:controller="com.android.settings.accessibility.KeyboardVibrationTogglePreferenceController"/>
85
86    </PreferenceCategory>
87
88</PreferenceScreen>
89