PageRenderTime 37ms CodeModel.GetById 32ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/TalkBack/res/raw/speechstrategy.xml

http://eyes-free.googlecode.com/
XML | 264 lines | 207 code | 30 blank | 27 comment | 0 complexity | 3436820f0886472d7462ca05a0fc997c MD5 | raw file
  1<?xml version="1.0" encoding="UTF-8"?>
  2  <ss:speechstrategy xmlns:ss="http://www.google.android.marvin.talkback.com/speechstrategy" 
  3  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  4  xsi:schemaLocation="http://www.google.android.marvin.talkback.com/speechstrategy speechstrategy.xsd">
  5
  6  <!-- This file contains only generic speech strategy rules that could apply to any app. -->
  7  <!-- Rules specific to just one app should go in speechstrategy_apps.xml or -->
  8  <!-- speechstrategy_thirdparty.xml. -->
  9
 10  <!-- Custom formatter for notification bar -->
 11
 12  <ss:rule>
 13    <ss:filter>
 14      <ss:custom>com.google.android.marvin.talkback.formatter.TouchExplorationSystemUiFormatter</ss:custom>
 15    </ss:filter>
 16    <ss:formatter>
 17      <ss:custom>com.google.android.marvin.talkback.formatter.TouchExplorationSystemUiFormatter</ss:custom>
 18    </ss:formatter>
 19  </ss:rule>
 20
 21  <!-- TYPE_VIEW_SCROLLED -->
 22  
 23  <ss:rule>
 24    <ss:filter>
 25      <ss:eventType>TYPE_VIEW_SCROLLED</ss:eventType>
 26    </ss:filter>
 27    <ss:formatter>
 28      <ss:custom>com.google.android.marvin.talkback.formatter.ScrollFormatter</ss:custom>
 29    </ss:formatter>
 30  </ss:rule>
 31
 32  <!-- TYPE_VIEW_CLICKED -->
 33
 34  <!-- CompoundButton checked -->
 35  <ss:rule>
 36    <ss:filter>
 37      <ss:eventType>TYPE_VIEW_CLICKED</ss:eventType>
 38      <ss:className>android.widget.CompoundButton</ss:className>
 39      <ss:checked>true</ss:checked>
 40    </ss:filter>
 41    <ss:formatter>
 42      <ss:template>@string/value_checked</ss:template>
 43    </ss:formatter>
 44  </ss:rule>
 45
 46  <!-- CompoundButton unchecked-->
 47  <ss:rule>
 48    <ss:filter>
 49      <ss:eventType>TYPE_VIEW_CLICKED</ss:eventType>
 50      <ss:className>android.widget.CompoundButton</ss:className>
 51    </ss:filter>
 52    <ss:metadata>
 53      <ss:vibration>@array/view_clicked_pattern</ss:vibration>
 54      <ss:earcon>@raw/button</ss:earcon>
 55    </ss:metadata>
 56    <ss:formatter>
 57      <ss:template>@string/value_not_checked</ss:template>
 58    </ss:formatter>
 59  </ss:rule>
 60
 61  <!-- All other clicks -->
 62  <ss:rule>
 63    <ss:filter>
 64      <ss:eventType>TYPE_VIEW_CLICKED</ss:eventType>
 65    </ss:filter>
 66    <ss:metadata>
 67      <ss:vibration>@array/view_clicked_pattern</ss:vibration>
 68      <ss:earcon>@raw/button</ss:earcon>
 69    </ss:metadata>
 70    <ss:formatter>
 71      <ss:template>@string/value_clicked</ss:template>
 72    </ss:formatter>
 73  </ss:rule>
 74
 75  <!-- TYPE_VIEW_SELECTED -->
 76
 77  <!-- WebView -->
 78  <ss:rule>
 79    <ss:filter>
 80      <ss:eventType>TYPE_VIEW_SELECTED</ss:eventType>
 81      <ss:className>android.webkit.WebView</ss:className>
 82    </ss:filter>
 83    <ss:metadata>
 84      <ss:vibration>@array/view_focused_or_selected_pattern</ss:vibration>
 85      <ss:earcon>@raw/select</ss:earcon>
 86    </ss:metadata>
 87    <ss:formatter>
 88      <ss:custom>com.google.android.marvin.talkback.formatter.WebContentFormatter</ss:custom>
 89    </ss:formatter>
 90  </ss:rule>
 91
 92  <!-- TYPE_WINDOW_STATE_CHANGED -->
 93
 94  <!-- Dialog -->
 95  <ss:rule>
 96    <ss:filter>
 97      <ss:eventType>TYPE_WINDOW_STATE_CHANGED</ss:eventType>
 98      <ss:className>android.app.Dialog</ss:className>
 99    </ss:filter>
100    <ss:metadata>
101      <ss:vibration>@array/view_notification_or_window_state_changed_pattern</ss:vibration>
102      <ss:earcon>@raw/open</ss:earcon>
103    </ss:metadata>
104    <ss:formatter>
105      <ss:template>@string/template_alert_dialog_template</ss:template>
106      <ss:property>text</ss:property>
107    </ss:formatter>
108  </ss:rule>
109
110  <!-- IconMenuView -->
111  <ss:rule>
112    <ss:filter>
113      <ss:eventType>TYPE_WINDOW_STATE_CHANGED</ss:eventType>
114      <ss:className>com.android.internal.view.menu.IconMenuView</ss:className>
115    </ss:filter>
116    <ss:metadata>
117      <ss:vibration>@array/view_notification_or_window_state_changed_pattern</ss:vibration>
118      <ss:earcon>@raw/open</ss:earcon>
119    </ss:metadata>
120    <ss:formatter>
121      <ss:template>@string/value_options_menu_open</ss:template>
122    </ss:formatter>
123  </ss:rule>
124
125  <!-- SlidingDrawer -->
126  <ss:rule>
127    <ss:filter>
128      <ss:eventType>TYPE_WINDOW_STATE_CHANGED</ss:eventType>
129      <ss:className>android.widget.SlidingDrawer</ss:className>
130    </ss:filter>
131    <ss:metadata>
132      <ss:vibration>@array/view_notification_or_window_state_changed_pattern</ss:vibration>
133      <ss:earcon>@raw/open</ss:earcon>
134    </ss:metadata>
135    <ss:formatter>
136      <ss:template>@string/value_sliding_drawer_opened</ss:template>
137    </ss:formatter>
138  </ss:rule>
139
140  <!-- All other state changes -->
141  <ss:rule>
142    <ss:filter>
143      <ss:eventType>TYPE_WINDOW_STATE_CHANGED</ss:eventType>
144    </ss:filter>
145    <ss:metadata>
146      <ss:vibration>@array/view_notification_or_window_state_changed_pattern</ss:vibration>
147      <ss:earcon>@raw/open</ss:earcon>
148    </ss:metadata>
149    <ss:formatter>
150      <ss:property>text</ss:property>
151    </ss:formatter>
152  </ss:rule>
153
154  <!-- TYPE_WINDOW_CONTENT_CHANGED -->
155
156  <!-- All -->
157  <ss:rule>
158    <ss:filter>
159      <ss:eventType>TYPE_WINDOW_CONTENT_CHANGED</ss:eventType>
160    </ss:filter>
161    <ss:formatter>
162      <ss:property>text</ss:property>
163    </ss:formatter>
164  </ss:rule>
165
166  <!-- TYPE_VIEW_TEXT_CHANGED -->
167
168  <!-- Text added -->
169  <ss:rule>
170    <ss:filter>
171      <ss:eventType>TYPE_VIEW_TEXT_CHANGED</ss:eventType>
172      <ss:removedCount>0</ss:removedCount>
173    </ss:filter>
174    <ss:metadata>
175      <ss:earcon>@raw/item</ss:earcon>
176    </ss:metadata>
177    <ss:formatter>
178      <ss:custom>com.google.android.marvin.talkback.formatter.TextFormatters$AddedTextFormatter</ss:custom>
179    </ss:formatter>
180  </ss:rule>
181
182  <!-- Text deleted -->
183  <ss:rule>
184    <ss:filter>
185      <ss:eventType>TYPE_VIEW_TEXT_CHANGED</ss:eventType>
186      <ss:addedCount>0</ss:addedCount>
187    </ss:filter>
188    <ss:metadata>
189      <ss:earcon>@raw/item</ss:earcon>
190    </ss:metadata>
191    <ss:formatter>
192      <ss:custom>com.google.android.marvin.talkback.formatter.TextFormatters$RemovedTextFormatter</ss:custom>
193    </ss:formatter>
194  </ss:rule>
195
196  <!-- Text replaced -->
197  <ss:rule>
198    <ss:filter>
199      <ss:eventType>TYPE_VIEW_TEXT_CHANGED</ss:eventType>
200    </ss:filter>
201    <ss:metadata>
202      <ss:earcon>@raw/item</ss:earcon>
203    </ss:metadata>
204    <ss:formatter>
205      <ss:custom>com.google.android.marvin.talkback.formatter.TextFormatters$ReplacedTextFormatter</ss:custom>
206    </ss:formatter>
207  </ss:rule>
208  
209  <!-- TYPE_VIEW_TEXT_SELECTION_CHANGED -->
210
211  <!-- Password selected -->
212  <ss:rule>
213    <ss:filter>
214      <ss:eventType>TYPE_VIEW_TEXT_SELECTION_CHANGED</ss:eventType>
215      <ss:password>true</ss:password>
216    </ss:filter>
217    <ss:formatter>
218      <ss:template>@string/template_password_selected</ss:template>
219      <ss:property>fromIndex</ss:property>
220      <ss:property>toIndex</ss:property>
221    </ss:formatter>
222  </ss:rule>
223
224  <ss:rule>
225    <ss:filter>
226      <ss:eventType>TYPE_VIEW_TEXT_SELECTION_CHANGED</ss:eventType>
227    </ss:filter>
228    <ss:formatter>
229      <ss:custom>com.google.android.marvin.talkback.formatter.TextFormatters$SelectedTextFormatter</ss:custom>
230    </ss:formatter>
231  </ss:rule>
232
233  <!-- TYPE_NOTIFICATION_STATE_CHANGED -->
234
235  <!-- All -->
236  <ss:rule>
237    <ss:filter>
238      <ss:eventType>TYPE_NOTIFICATION_STATE_CHANGED</ss:eventType>
239    </ss:filter>
240    <ss:metadata>
241      <ss:vibration>@array/view_notification_or_window_state_changed_pattern</ss:vibration>
242      <ss:earcon>@raw/working</ss:earcon>
243      <ss:queuing>QUEUE</ss:queuing>
244    </ss:metadata>
245    <ss:formatter>
246      <ss:custom>com.google.android.marvin.talkback.formatter.NotificationFormatter</ss:custom>
247    </ss:formatter>
248  </ss:rule>
249
250  <!-- DEFAULT -->
251
252  <ss:rule>
253    <ss:filter>
254      <ss:eventType>TYPE_TOUCH_EXPLORATION_GESTURE_START||TYPE_TOUCH_EXPLORATION_GESTURE_END||TYPE_VIEW_HOVER_ENTER||TYPE_VIEW_HOVER_EXIT||TYPE_VIEW_FOCUSED||TYPE_VIEW_SELECTED</ss:eventType>
255    </ss:filter>
256    <ss:metadata>
257      <ss:queuing>INTERRUPT</ss:queuing>
258    </ss:metadata>
259    <ss:formatter>
260      <ss:custom>com.google.android.marvin.talkback.formatter.TouchExplorationFormatter</ss:custom>
261    </ss:formatter>
262  </ss:rule>
263
264</ss:speechstrategy>