PageRenderTime 28ms CodeModel.GetById 23ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/talkback_preics/res/raw/speechstrategy.xml

http://eyes-free.googlecode.com/
XML | 317 lines | 248 code | 34 blank | 35 comment | 0 complexity | feca0c88b9e7608c90a82f93c1693908 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  <!-- TYPE_VIEW_CLICKED -->
 11
 12  <!-- CompoundButton checked -->
 13  <ss:rule>
 14    <ss:filter>
 15      <ss:eventType>TYPE_VIEW_CLICKED</ss:eventType>
 16      <ss:className>android.widget.CompoundButton</ss:className>
 17      <ss:checked>true</ss:checked>
 18    </ss:filter>
 19    <ss:formatter>
 20      <ss:template>@com.google.android.marvin.talkback:string/value_checked</ss:template>
 21    </ss:formatter>
 22  </ss:rule>
 23
 24  <!-- CompoundButton unchecked-->
 25  <ss:rule>
 26    <ss:filter>
 27      <ss:eventType>TYPE_VIEW_CLICKED</ss:eventType>
 28      <ss:className>android.widget.CompoundButton</ss:className>
 29    </ss:filter>
 30    <ss:formatter>
 31      <ss:template>@com.google.android.marvin.talkback:string/value_not_checked</ss:template>
 32    </ss:formatter>
 33  </ss:rule>
 34
 35  <!-- All other clicks -->
 36  <ss:rule>
 37    <ss:filter>
 38      <ss:eventType>TYPE_VIEW_CLICKED</ss:eventType>
 39    </ss:filter>
 40    <ss:formatter>
 41      <ss:template>@com.google.android.marvin.talkback:string/value_clicked</ss:template>
 42    </ss:formatter>
 43  </ss:rule>
 44
 45  <!-- TYPE_VIEW_FOCUSED -->
 46
 47  <!-- CompoundButton - checked -->
 48  <ss:rule>
 49    <ss:filter>
 50      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
 51      <ss:className>android.widget.CompoundButton</ss:className>
 52      <ss:checked>true</ss:checked>
 53    </ss:filter>
 54    <ss:formatter>
 55      <ss:template>@com.google.android.marvin.talkback:string/template_compound_button_checked</ss:template>
 56      <ss:property>text</ss:property>
 57    </ss:formatter>
 58  </ss:rule>
 59
 60  <!-- CompoundButton - not checked -->
 61  <ss:rule>
 62    <ss:filter>
 63      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
 64      <ss:className>android.widget.CompoundButton</ss:className>
 65    </ss:filter>
 66    <ss:formatter>
 67      <ss:template>@com.google.android.marvin.talkback:string/template_compound_button_not_checked</ss:template>
 68      <ss:property>text</ss:property>
 69    </ss:formatter>
 70  </ss:rule>
 71
 72  <!-- EditText - password -->
 73  <ss:rule>
 74    <ss:filter>
 75      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
 76      <ss:className>android.widget.EditText</ss:className>
 77      <ss:password>true</ss:password>
 78    </ss:filter>
 79    <ss:formatter>
 80      <ss:template>@com.google.android.marvin.talkback:string/value_password</ss:template>
 81    </ss:formatter>
 82  </ss:rule>
 83
 84  <!-- EditText - not password -->
 85  <ss:rule>
 86    <ss:filter>
 87      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
 88      <ss:className>android.widget.EditText</ss:className>
 89    </ss:filter>
 90    <ss:formatter>
 91      <ss:template>@com.google.android.marvin.talkback:string/template_edit_box</ss:template>
 92      <ss:property>text</ss:property>
 93    </ss:formatter>
 94  </ss:rule>
 95
 96  <!-- ImageButton -->
 97  <ss:rule>
 98    <ss:filter>
 99      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
100      <ss:className>android.widget.ImageButton</ss:className>
101    </ss:filter>
102    <ss:formatter>
103      <ss:template>@com.google.android.marvin.talkback:string/template_image_button</ss:template>
104      <ss:property>text</ss:property>
105    </ss:formatter>
106  </ss:rule>
107
108  <!-- Button -->
109  <ss:rule>
110    <ss:filter>
111      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
112      <ss:className>android.widget.Button</ss:className>
113    </ss:filter>
114    <ss:formatter>
115      <ss:template>@com.google.android.marvin.talkback:string/template_button</ss:template>
116      <ss:property>text</ss:property>
117    </ss:formatter>
118  </ss:rule>
119
120  <!-- ImageView -->
121  <ss:rule>
122    <ss:filter>
123      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
124      <ss:className>android.widget.ImageView</ss:className>
125    </ss:filter>
126    <ss:formatter>
127      <ss:template>@com.google.android.marvin.talkback:string/template_image_view</ss:template>
128      <ss:property>text</ss:property>
129    </ss:formatter>
130  </ss:rule>
131
132  <!-- SeekBar -->
133  <ss:rule>
134    <ss:filter>
135      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
136      <ss:className>android.widget.SeekBar</ss:className>
137    </ss:filter>
138    <ss:formatter>
139      <ss:template>@com.google.android.marvin.talkback:string/template_seek_bar</ss:template>
140      <ss:property>text</ss:property>
141    </ss:formatter>
142  </ss:rule>
143
144  <!-- Spinner -->
145  <ss:rule>
146    <ss:filter>
147      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
148      <ss:className>android.widget.Spinner</ss:className>
149    </ss:filter>
150    <ss:formatter>
151      <ss:template>@com.google.android.marvin.talkback:string/template_spinner</ss:template>
152      <ss:property>text</ss:property>
153    </ss:formatter>
154  </ss:rule>
155
156  <!-- WebView -->
157  <ss:rule>
158    <ss:filter>
159      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
160      <ss:className>android.webkit.WebView</ss:className>
161    </ss:filter>
162    <ss:formatter>
163      <ss:template>@com.google.android.marvin.talkback:string/value_web_view</ss:template>
164    </ss:formatter>
165  </ss:rule>
166
167  <!-- Focused object without text or description -->
168  <ss:rule>
169    <ss:filter>
170      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
171      <ss:text></ss:text>
172      <ss:contentDescription></ss:contentDescription>
173    </ss:filter>
174    <ss:formatter>
175      <ss:template>@com.google.android.marvin.talkback:string/value_unknown_object</ss:template>
176    </ss:formatter>
177  </ss:rule>
178
179  <!-- Focused object with text or description -->
180  <ss:rule>
181    <ss:filter>
182      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
183    </ss:filter>
184    <ss:formatter>
185      <ss:property>text</ss:property>
186    </ss:formatter>
187  </ss:rule>
188
189  <!-- TYPE_VIEW_SELECTED -->
190
191  <!-- Spinner (sometimes gets selected event instead of focused event) -->
192  <ss:rule>
193    <ss:filter>
194      <ss:eventType>TYPE_VIEW_SELECTED</ss:eventType>
195      <ss:className>android.widget.Spinner</ss:className>
196    </ss:filter>
197    <ss:formatter>
198      <ss:template>@com.google.android.marvin.talkback:string/template_spinner</ss:template>
199      <ss:property>text</ss:property>
200    </ss:formatter>
201  </ss:rule>
202
203  <!-- WebView -->
204  <ss:rule>
205    <ss:filter>
206      <ss:eventType>TYPE_VIEW_SELECTED</ss:eventType>
207      <ss:className>android.webkit.WebView</ss:className>
208    </ss:filter>
209    <ss:formatter>
210       <ss:custom>com.google.android.marvin.talkback.formatter.WebContentFormatter</ss:custom>
211    </ss:formatter>
212  </ss:rule>
213
214  <!-- All other objects -->
215  <ss:rule>
216    <ss:filter>
217      <ss:eventType>TYPE_VIEW_SELECTED</ss:eventType>
218    </ss:filter>
219    <ss:formatter>
220      <ss:property>text</ss:property>
221    </ss:formatter>
222  </ss:rule>
223
224  <!-- TYPE_WINDOW_STATE_CHANGED -->
225
226  <!-- Dialog -->
227  <ss:rule>
228    <ss:filter>
229      <ss:eventType>TYPE_WINDOW_STATE_CHANGED</ss:eventType>
230      <ss:className>android.app.Dialog</ss:className>
231    </ss:filter>
232    <ss:formatter>
233      <ss:template>@com.google.android.marvin.talkback:string/template_alert_dialog_template</ss:template>
234      <ss:property>text</ss:property>
235    </ss:formatter>
236  </ss:rule>
237
238  <!-- IconMenuView -->
239  <ss:rule>
240    <ss:filter>
241      <ss:eventType>TYPE_WINDOW_STATE_CHANGED</ss:eventType>
242      <ss:className>com.android.internal.view.menu.IconMenuView</ss:className>
243    </ss:filter>
244    <ss:formatter>
245      <ss:template>@com.google.android.marvin.talkback:string/value_options_menu_open</ss:template>
246    </ss:formatter>
247  </ss:rule>
248
249  <!-- SlidingDrawer -->
250  <ss:rule>
251    <ss:filter>
252      <ss:eventType>TYPE_WINDOW_STATE_CHANGED</ss:eventType>
253      <ss:className>android.widget.SlidingDrawer</ss:className>
254    </ss:filter>
255    <ss:formatter>
256      <ss:template>@com.google.android.marvin.talkback:string/value_sliding_drawer_opened</ss:template>
257    </ss:formatter>
258  </ss:rule>
259
260  <!-- LinearLayout -->
261  <ss:rule>
262    <ss:filter>
263      <ss:eventType>TYPE_WINDOW_STATE_CHANGED</ss:eventType>
264      <ss:className>android.widget.LinearLayout</ss:className>
265    </ss:filter>
266    <ss:formatter>
267      <ss:property>text</ss:property>
268    </ss:formatter>
269  </ss:rule>
270
271  <!-- TYPE_VIEW_TEXT_CHANGED -->
272
273  <!-- Text added -->
274  <ss:rule>
275    <ss:filter>
276      <ss:eventType>TYPE_VIEW_TEXT_CHANGED</ss:eventType>
277      <ss:removedCount>0</ss:removedCount>
278    </ss:filter>
279    <ss:formatter>
280      <ss:custom>com.google.android.marvin.talkback.formatter.TextFormatters$AddedTextFormatter</ss:custom>
281    </ss:formatter>
282  </ss:rule>
283
284  <!-- Text deleted -->
285  <ss:rule>
286    <ss:filter>
287      <ss:eventType>TYPE_VIEW_TEXT_CHANGED</ss:eventType>
288      <ss:addedCount>0</ss:addedCount>
289    </ss:filter>
290    <ss:formatter>
291      <ss:custom>com.google.android.marvin.talkback.formatter.TextFormatters$RemovedTextFormatter</ss:custom>
292    </ss:formatter>
293  </ss:rule>
294
295  <!-- Text replaced -->
296  <ss:rule>
297    <ss:filter>
298      <ss:eventType>TYPE_VIEW_TEXT_CHANGED</ss:eventType>
299    </ss:filter>
300    <ss:formatter>
301      <ss:custom>com.google.android.marvin.talkback.formatter.TextFormatters$ReplacedTextFormatter</ss:custom>
302    </ss:formatter>
303  </ss:rule>
304
305  <!-- TYPE_NOTIFICATION_STATE_CHANGED -->
306
307  <!-- All -->
308  <ss:rule>
309    <ss:filter>
310      <ss:eventType>TYPE_NOTIFICATION_STATE_CHANGED</ss:eventType>
311    </ss:filter>
312    <ss:formatter>
313      <ss:custom>com.google.android.marvin.talkback.formatter.phone.NotificationFormatter</ss:custom>
314    </ss:formatter>
315  </ss:rule>
316
317</ss:speechstrategy>