PageRenderTime 23ms CodeModel.GetById 14ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/talkback_preics/res/raw/speechstrategy_googletv.xml

http://eyes-free.googlecode.com/
XML | 378 lines | 330 code | 38 blank | 10 comment | 0 complexity | 6eca449e7f4083819e4ba32feaad2724 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  <!-- TYPE_WINDOW_STATE_CHANGED -->
  7
  8  <ss:rule>
  9    <ss:filter>
 10      <ss:eventType>TYPE_WINDOW_STATE_CHANGED</ss:eventType>
 11      <ss:packageName>android</ss:packageName>
 12      <ss:className>com.android.internal.policy.impl.ui.Screensaver$Ui</ss:className>
 13    </ss:filter>
 14    <ss:formatter>
 15      <ss:template>@com.google.android.marvin.talkback:string/value_googletv_screen_saver</ss:template>
 16    </ss:formatter>
 17  </ss:rule>
 18
 19  <!-- Launcher -->
 20
 21  <!-- TYPE_VIEW_CLICKED -->
 22
 23  <ss:rule>
 24    <ss:filter>
 25      <ss:eventType>TYPE_VIEW_CLICKED</ss:eventType>
 26      <ss:activity>com.google.tv.launcher.HomeActivity</ss:activity>
 27      <ss:packageName>com.google.tv.launcher</ss:packageName>
 28      <ss:className>com.google.tv.launcher.ui.MoveButton</ss:className>
 29      <ss:checked>true</ss:checked>
 30    </ss:filter>
 31    <ss:formatter>
 32      <ss:template>@com.google.android.marvin.talkback:string/value_googletv_pressed</ss:template>
 33    </ss:formatter>
 34  </ss:rule>
 35
 36  <ss:rule>
 37    <ss:filter>
 38      <ss:eventType>TYPE_VIEW_CLICKED</ss:eventType>
 39      <ss:activity>com.google.tv.launcher.HomeActivity</ss:activity>
 40      <ss:packageName>com.google.tv.launcher</ss:packageName>
 41      <ss:className>com.google.tv.launcher.ui.MoveButton</ss:className>
 42    </ss:filter>
 43    <ss:formatter>
 44      <ss:template>@com.google.android.marvin.talkback:string/value_googletv_not_pressed</ss:template>
 45    </ss:formatter>
 46  </ss:rule>
 47
 48  <ss:rule>
 49    <ss:filter>
 50      <ss:eventType>TYPE_VIEW_CLICKED</ss:eventType>
 51      <ss:activity>com.google.tv.launcher.HomeActivity</ss:activity>
 52      <ss:packageName>com.google.tv.launcher</ss:packageName>
 53      <ss:className>android.widget.ToggleButton</ss:className>
 54    </ss:filter>
 55    <ss:formatter>
 56      <ss:template>@com.google.android.marvin.talkback:string/value_clicked</ss:template>
 57    </ss:formatter>
 58  </ss:rule>
 59
 60  <!-- TYPE_VIEW_FOCUSED -->
 61
 62  <ss:rule>
 63    <ss:filter>
 64      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
 65      <ss:activity>com.google.tv.launcher.HomeActivity</ss:activity>
 66      <ss:packageName>com.google.tv.launcher</ss:packageName>
 67      <ss:className>com.google.tv.launcher.ui.MoveButton</ss:className>
 68      <ss:checked>true</ss:checked>
 69    </ss:filter>
 70  </ss:rule>
 71
 72  <ss:rule>
 73    <ss:filter>
 74      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
 75      <ss:activity>com.google.tv.launcher.HomeActivity</ss:activity>
 76      <ss:packageName>com.google.tv.launcher</ss:packageName>
 77      <ss:className>android.widget.ToggleButton</ss:className>
 78    </ss:filter>
 79    <ss:formatter>
 80      <ss:template>@com.google.android.marvin.talkback:string/value_googletv_toggle_button</ss:template>
 81    </ss:formatter>
 82  </ss:rule>
 83
 84  <ss:rule>
 85    <ss:filter>
 86      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
 87      <ss:activity>com.google.tv.launcher.HomeActivity</ss:activity>
 88      <ss:packageName>com.google.tv.launcher</ss:packageName>
 89      <ss:className>com.google.tv.launcher.ui.ControlledFocus$ControlledFocusButton</ss:className>
 90    </ss:filter>
 91    <ss:formatter>
 92      <ss:template>@com.google.android.marvin.talkback:string/template_button</ss:template>
 93      <ss:property>text</ss:property>
 94    </ss:formatter>
 95  </ss:rule>
 96
 97  <ss:rule>
 98    <ss:filter>
 99      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
100      <ss:activity>com.google.tv.launcher.HomeActivity</ss:activity>
101      <ss:packageName>com.google.tv.launcher</ss:packageName>
102      <ss:className>android.widget.ImageButton</ss:className>
103    </ss:filter>
104    <ss:formatter>
105      <ss:template>@com.google.android.marvin.talkback:string/template_button</ss:template>
106      <ss:property>text</ss:property>
107    </ss:formatter>
108  </ss:rule>
109
110  <ss:rule>
111    <ss:filter>
112      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
113      <ss:activity>com.google.tv.launcher.HomeActivity</ss:activity>
114      <ss:packageName>com.google.tv.launcher</ss:packageName>
115      <ss:className>android.widget.Button</ss:className>
116    </ss:filter>
117    <ss:formatter>
118      <ss:custom>com.google.android.marvin.talkback.formatter.tv.LauncherButtonFormatter</ss:custom>
119    </ss:formatter>
120  </ss:rule>
121
122  <!-- TYPE_VIEW_SELECTED -->
123
124  <ss:rule>
125    <ss:filter>
126      <ss:eventType>TYPE_VIEW_SELECTED</ss:eventType>
127      <ss:activity>com.google.tv.launcher.HomeActivity</ss:activity>
128      <ss:packageName>com.google.tv.launcher</ss:packageName>
129      <ss:className>com.google.tv.launcher.ui.HeaderLayout</ss:className>
130    </ss:filter>
131    <ss:formatter>
132      <ss:custom>com.google.android.marvin.talkback.formatter.tv.ItemPositionFormatter</ss:custom>
133    </ss:formatter>
134  </ss:rule>
135
136  <!-- CNBC -->
137
138  <!-- TYPE_VIEW_FOCUSED -->
139
140  <ss:rule>
141    <ss:filter>
142      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
143      <ss:activity>com.cnbc.client.ui.cnbcclient</ss:activity>
144      <ss:packageName>com.cnbc.client</ss:packageName>
145      <ss:className>android.widget.ImageButton</ss:className>
146      <ss:currentItemIndex>0</ss:currentItemIndex>
147    </ss:filter>
148    <ss:formatter>
149      <ss:template>@com.google.android.marvin.talkback:string/value_googletv_my_stocks</ss:template>
150    </ss:formatter>
151  </ss:rule>
152
153  <ss:rule>
154    <ss:filter>
155      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
156      <ss:activity>com.cnbc.client.ui.cnbcclient</ss:activity>
157      <ss:packageName>com.cnbc.client</ss:packageName>
158      <ss:className>android.widget.ImageButton</ss:className>
159      <ss:currentItemIndex>1</ss:currentItemIndex>
160    </ss:filter>
161    <ss:formatter>
162      <ss:template>@com.google.android.marvin.talkback:string/value_googletv_hot_stocks</ss:template>
163    </ss:formatter>
164  </ss:rule>
165
166  <ss:rule>
167    <ss:filter>
168      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
169      <ss:activity>com.cnbc.client.ui.cnbcclient</ss:activity>
170      <ss:packageName>com.cnbc.client</ss:packageName>
171      <ss:className>android.widget.ImageButton</ss:className>
172      <ss:currentItemIndex>2</ss:currentItemIndex>
173    </ss:filter>
174    <ss:formatter>
175      <ss:template>@com.google.android.marvin.talkback:string/value_googletv_videos</ss:template>
176    </ss:formatter>
177  </ss:rule>
178
179  <ss:rule>
180    <ss:filter>
181      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
182      <ss:activity>com.cnbc.client.ui.cnbcclient</ss:activity>
183      <ss:packageName>com.cnbc.client</ss:packageName>
184      <ss:className>android.widget.ImageButton</ss:className>
185      <ss:currentItemIndex>6</ss:currentItemIndex>
186      <ss:itemCount>9</ss:itemCount>
187    </ss:filter>
188    <ss:formatter>
189      <ss:template>@com.google.android.marvin.talkback:string/value_googletv_edit_button</ss:template>
190    </ss:formatter>
191  </ss:rule>
192
193  <ss:rule>
194    <ss:filter>
195      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
196      <ss:activity>com.cnbc.client.ui.cnbcclient</ss:activity>
197      <ss:packageName>com.cnbc.client</ss:packageName>
198      <ss:className>android.widget.ImageButton</ss:className>
199      <ss:currentItemIndex>7</ss:currentItemIndex>
200      <ss:itemCount>10</ss:itemCount>
201    </ss:filter>
202    <ss:formatter>
203      <ss:template>@com.google.android.marvin.talkback:string/value_googletv_edit_button</ss:template>
204    </ss:formatter>
205  </ss:rule>
206
207  <ss:rule>
208    <ss:filter>
209      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
210      <ss:activity>com.cnbc.client.ui.cnbcclient</ss:activity>
211      <ss:packageName>com.cnbc.client</ss:packageName>
212      <ss:className>android.widget.ImageButton</ss:className>
213      <ss:currentItemIndex>6</ss:currentItemIndex>
214      <ss:itemCount>8</ss:itemCount>
215    </ss:filter>
216    <ss:formatter>
217      <ss:template>@com.google.android.marvin.talkback:string/value_googletv_cnbc_com</ss:template>
218    </ss:formatter>
219  </ss:rule>
220
221  <ss:rule>
222    <ss:filter>
223      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
224      <ss:activity>com.cnbc.client.ui.cnbcclient</ss:activity>
225      <ss:packageName>com.cnbc.client</ss:packageName>
226      <ss:className>android.widget.ImageButton</ss:className>
227      <ss:currentItemIndex>7</ss:currentItemIndex>
228      <ss:itemCount>9</ss:itemCount>
229    </ss:filter>
230    <ss:formatter>
231      <ss:template>@com.google.android.marvin.talkback:string/value_googletv_cnbc_com</ss:template>
232    </ss:formatter>
233  </ss:rule>
234
235  <ss:rule>
236    <ss:filter>
237      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
238      <ss:activity>com.cnbc.client.ui.cnbcclient</ss:activity>
239      <ss:packageName>com.cnbc.client</ss:packageName>
240      <ss:className>android.widget.ImageButton</ss:className>
241      <ss:currentItemIndex>8</ss:currentItemIndex>
242      <ss:itemCount>10</ss:itemCount>
243    </ss:filter>
244    <ss:formatter>
245      <ss:template>@com.google.android.marvin.talkback:string/value_googletv_cnbc_com</ss:template>
246    </ss:formatter>
247  </ss:rule>
248
249  <ss:rule>
250    <ss:filter>
251      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
252      <ss:activity>com.cnbc.client.ui.cnbcclient</ss:activity>
253      <ss:packageName>com.cnbc.client</ss:packageName>
254      <ss:className>android.widget.ImageButton</ss:className>
255      <ss:currentItemIndex>7</ss:currentItemIndex>
256      <ss:itemCount>8</ss:itemCount>
257    </ss:filter>
258    <ss:formatter>
259      <ss:template>@com.google.android.marvin.talkback:string/value_googletv_cnbc_tv</ss:template>
260    </ss:formatter>
261  </ss:rule>
262
263  <ss:rule>
264    <ss:filter>
265      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
266      <ss:activity>com.cnbc.client.ui.cnbcclient</ss:activity>
267      <ss:packageName>com.cnbc.client</ss:packageName>
268      <ss:className>android.widget.ImageButton</ss:className>
269      <ss:currentItemIndex>8</ss:currentItemIndex>
270      <ss:itemCount>9</ss:itemCount>
271    </ss:filter>
272    <ss:formatter>
273      <ss:template>@com.google.android.marvin.talkback:string/value_googletv_cnbc_tv</ss:template>
274    </ss:formatter>
275  </ss:rule>
276
277  <ss:rule>
278    <ss:filter>
279      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
280      <ss:activity>com.cnbc.client.ui.cnbcclient</ss:activity>
281      <ss:packageName>com.cnbc.client</ss:packageName>
282      <ss:className>android.widget.ImageButton</ss:className>
283      <ss:currentItemIndex>4</ss:currentItemIndex>
284      <ss:itemCount>6</ss:itemCount>
285    </ss:filter>
286    <ss:formatter>
287      <ss:template>@com.google.android.marvin.talkback:string/value_googletv_cnbc_com</ss:template>
288    </ss:formatter>
289  </ss:rule>
290  
291  <ss:rule>
292    <ss:filter>
293      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
294      <ss:activity>com.cnbc.client.ui.cnbcclient</ss:activity>
295      <ss:packageName>com.cnbc.client</ss:packageName>
296      <ss:className>android.widget.ImageButton</ss:className>
297      <ss:currentItemIndex>5</ss:currentItemIndex>
298      <ss:itemCount>6</ss:itemCount>
299    </ss:filter>
300    <ss:formatter>
301      <ss:template>@com.google.android.marvin.talkback:string/value_googletv_cnbc_tv</ss:template>
302    </ss:formatter>
303  </ss:rule>
304
305  <!-- TYPE_VIEW_SELECTED -->
306
307  <ss:rule>
308    <ss:filter>
309      <ss:eventType>TYPE_VIEW_SELECTED</ss:eventType>
310      <ss:activity>com.cnbc.client.ui.cnbcclient</ss:activity>
311      <ss:packageName>com.cnbc.client</ss:packageName>
312      <ss:className>android.widget.ListView</ss:className>
313      <ss:itemCount>&lt;=1</ss:itemCount>
314    </ss:filter>
315    <ss:formatter>
316      <ss:property>text</ss:property>
317    </ss:formatter>
318  </ss:rule>
319
320  <ss:rule>
321    <ss:filter>
322      <ss:eventType>TYPE_VIEW_SELECTED</ss:eventType>
323      <ss:activity>com.cnbc.client.ui.cnbcclient</ss:activity>
324      <ss:packageName>com.cnbc.client</ss:packageName>
325      <ss:className>android.widget.ListView</ss:className>
326    </ss:filter>
327    <ss:formatter>
328      <ss:custom>com.google.android.marvin.talkback.formatter.tv.CnbcStockQuoteFormatter</ss:custom>
329    </ss:formatter>
330  </ss:rule>
331
332  <!-- The Weather Channel -->
333
334  <!-- TYPE_VIEW_FOCUSED -->
335
336  <ss:rule>
337    <ss:filter>
338      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
339      <ss:activity>com.weather.Weather.activities.WeatherSummaryActivity</ss:activity>
340      <ss:packageName>com.weather.Weather</ss:packageName>
341      <ss:className>android.widget.Button</ss:className>
342      <ss:currentItemIndex>2</ss:currentItemIndex>
343      <ss:itemCount>8</ss:itemCount>
344    </ss:filter>
345    <ss:formatter>
346      <ss:template>@com.google.android.marvin.talkback:string/value_googletv_weather_fahrenheit</ss:template>
347    </ss:formatter>
348  </ss:rule>
349
350  <ss:rule>
351    <ss:filter>
352      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
353      <ss:activity>com.weather.Weather.activities.WeatherSummaryActivity</ss:activity>
354      <ss:packageName>com.weather.Weather</ss:packageName>
355      <ss:className>android.widget.Button</ss:className>
356      <ss:currentItemIndex>1</ss:currentItemIndex>
357      <ss:itemCount>8</ss:itemCount>
358    </ss:filter>
359    <ss:formatter>
360      <ss:template>@com.google.android.marvin.talkback:string/value_googletv_weather_celsius</ss:template>
361    </ss:formatter>
362  </ss:rule>
363
364  <ss:rule>
365    <ss:filter>
366      <ss:eventType>TYPE_VIEW_FOCUSED</ss:eventType>
367      <ss:activity>com.weather.Weather.activities.WeatherSummaryActivity</ss:activity>
368      <ss:packageName>com.weather.Weather</ss:packageName>
369      <ss:className>android.widget.Button</ss:className>
370      <ss:currentItemIndex>6</ss:currentItemIndex>
371      <ss:itemCount>8</ss:itemCount>
372    </ss:filter>
373    <ss:formatter>
374      <ss:template>@com.google.android.marvin.talkback:string/value_googletv_weather_play_top_story</ss:template>
375    </ss:formatter>
376  </ss:rule>
377
378</ss:speechstrategy>