• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_main_switch"
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="accessibility_call_vibration_category"
30        android:title="@string/accessibility_call_vibration_category_title">
31
32        <SwitchPreference
33            android:key="ring_vibration_preference_screen"
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        <SwitchPreference
39            android:key="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="accessibility_notification_alarm_vibration_category"
48        android:title="@string/accessibility_notification_alarm_vibration_category_title">
49
50        <SwitchPreference
51            android:key="notification_vibration_preference_screen"
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        <SwitchPreference
57            android:key="alarm_vibration_preference_screen"
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="accessibility_interactive_haptics_category"
66        android:title="@string/accessibility_interactive_haptics_category_title">
67
68        <SwitchPreference
69            android:key="touch_vibration_preference_screen"
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        <SwitchPreference
75            android:key="media_vibration_preference_screen"
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    </PreferenceCategory>
81
82</PreferenceScreen>
83