1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright (C) 2017 The Android Open Source Project
4
5  Licensed under the Apache License, Version 2.0 (the "License");
6  you may not use this file except in compliance with the License.
7  You may obtain a copy of the License at
8
9       http://www.apache.org/licenses/LICENSE-2.0
10
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16  -->
17
18<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:custom="http://schemas.android.com/apk/res-auto"
20    android:key="accessibility_preference_screen"
21    android:title="@string/accessibility_category_title">
22
23    <PreferenceCategory
24        android:key="accessibility_screen_readers_category"
25        android:title="@string/accessibility_screen_readers_category_title">
26        <Preference
27            android:key="text_to_speech"
28            android:title="@string/system_accessibility_tts_output"
29            android:fragment="com.android.tv.settings.system.TextToSpeechFragment" />
30    </PreferenceCategory>
31
32    <PreferenceCategory
33        android:key="accessibility_display_category"
34        android:title="@string/accessibility_display_category_title">
35        <Preference
36            android:key="font_scale"
37            android:title="@string/font_scale_settings_title"
38            android:fragment="com.android.tv.settings.device.displaysound.FontScalePreferenceFragment" />
39
40        <com.android.tv.settings.widget.SwitchWithSoundPreference
41            android:key="toggle_bold_text"
42            android:persistent="true"
43            android:title="@string/accessibility_toggle_bold_text_preference_title" />
44
45        <Preference
46            android:key="color_correction_only_twopanel"
47            android:title="@string/accessibility_color_correction"
48            android:fragment="com.android.tv.settings.accessibility.AccessibilityColorCorrectionPreferenceFragment"
49            custom:isPreferenceVisible="false" />
50
51        <Preference
52            android:key="color_correction_only_classic"
53            android:title="@string/accessibility_color_correction"
54            custom:isPreferenceVisible="false">
55            <intent
56                android:action="android.intent.action.MAIN"
57                android:targetClass="com.android.tv.settings.accessibility.AccessibilityColorCorrectionActivity"
58                android:targetPackage="com.android.tv.settings" />
59        </Preference>
60    </PreferenceCategory>
61
62    <PreferenceCategory
63        android:key="accessibility_interaction_controls_category"
64        android:title="@string/accessibility_interaction_controls_category_title">
65        <Preference
66            android:key="accessibility_shortcut"
67            android:title="@string/accessibility_shortcut"
68            android:fragment="com.android.tv.settings.accessibility.AccessibilityShortcutFragment" />
69        <Preference
70            android:key="accessibility_timeout"
71            android:title="@string/accessibility_timeout_detailed"
72            android:fragment="com.android.tv.settings.accessibility.AccessibilityTimeoutFragment" />
73    </PreferenceCategory>
74
75    <PreferenceCategory
76        android:key="accessibility_audio_and_onscreen_text_category"
77        android:title="@string/accessibility_audio_and_onscreen_text_category_title">
78        <com.android.tv.settings.widget.SwitchWithSoundPreference
79            android:key="toggle_audio_description"
80            android:persistent="true"
81            android:title="@string/accessibility_toggle_audio_description_preference_title"
82            android:summary="@string/accessibility_audio_description_summary" />
83
84        <Preference
85            android:key="captions"
86            android:title="@string/accessibility_captions">
87            <intent
88                android:action="android.intent.action.MAIN"
89                android:targetClass="com.android.tv.settings.system.CaptionSetupActivity"
90                android:targetPackage="com.android.tv.settings" />
91        </Preference>
92    </PreferenceCategory>
93
94    <PreferenceCategory
95        android:key="accessibility_experimental_category"
96        android:title="@string/accessibility_experimental_category_title">
97        <com.android.tv.settings.widget.SwitchWithSoundPreference
98            android:key="toggle_high_text_contrast"
99            android:persistent="true"
100            android:title="@string/accessibility_toggle_high_text_contrast_preference_title"
101            android:summary="@string/experimental_preference" />
102    </PreferenceCategory>
103
104    <PreferenceCategory
105        android:key="accessibility_services_category"
106        android:title="@string/accessibility_services_category_title"
107        custom:isPreferenceVisible="false" />
108</PreferenceScreen>
109