|
1 // _Unsupported_ Those API could be not implemented and return KErrNotSupported |
|
2 |
|
3 |
|
4 [Define] |
|
5 KErrNotFound -1 |
|
6 KErrNotSupported -5 |
|
7 KErrAlreadyExists -11 |
|
8 KErrNotReady -18 |
|
9 KErrAccessDenied -21 |
|
10 |
|
11 KErrEventPending -2000 |
|
12 KErrCallbackErrorCode -2001 |
|
13 KErrUnexpectedValue -2002 |
|
14 KErrNotificationPending -2005 |
|
15 KErrUnexpectedNotification -2006 |
|
16 KErrTimeoutController -2007 |
|
17 |
|
18 |
|
19 |
|
20 [Enddefine] |
|
21 |
|
22 |
|
23 [Test] |
|
24 title 1. Create Factory |
|
25 create RestrictedAOTestClass AO |
|
26 AO CreateFactory |
|
27 delete AO |
|
28 [Endtest] |
|
29 |
|
30 [Test] |
|
31 title 2. Create RestrictedAO |
|
32 create RestrictedAOTestClass AO |
|
33 AO CreateFactory |
|
34 AO CreateRestrictedAO |
|
35 delete AO |
|
36 [Endtest] |
|
37 |
|
38 |
|
39 [Test] |
|
40 title 3. AppendAllowedOutput All |
|
41 create RestrictedAOTestClass AO |
|
42 AO CreateFactory |
|
43 AO CreateRestrictedAO |
|
44 AO AppendAllowedOutput All |
|
45 delete AO |
|
46 [Endtest] |
|
47 |
|
48 [Test] |
|
49 title 4. AppendAllowedOutput AudioAnalog |
|
50 create RestrictedAOTestClass AO |
|
51 AO CreateFactory |
|
52 AO CreateRestrictedAO |
|
53 AO AppendAllowedOutput AudioAnalog |
|
54 delete AO |
|
55 [Endtest] |
|
56 |
|
57 [Test] |
|
58 title 5. AppendAllowedOutput FM |
|
59 create RestrictedAOTestClass AO |
|
60 AO CreateFactory |
|
61 AO CreateRestrictedAO |
|
62 AO AppendAllowedOutput FM |
|
63 delete AO |
|
64 [Endtest] |
|
65 |
|
66 [Test] |
|
67 title 6. AppendAllowedOutput StereoBT |
|
68 create RestrictedAOTestClass AO |
|
69 AO CreateFactory |
|
70 AO CreateRestrictedAO |
|
71 AO AppendAllowedOutput StereoBT |
|
72 delete AO |
|
73 [Endtest] |
|
74 |
|
75 [Test] |
|
76 title 7. AppendAllowedOutput BTA2DP |
|
77 create RestrictedAOTestClass AO |
|
78 AO CreateFactory |
|
79 AO CreateRestrictedAO |
|
80 AO AppendAllowedOutput BTA2DP |
|
81 delete AO |
|
82 [Endtest] |
|
83 |
|
84 [Test] |
|
85 title 8. AppendAllowedOutput USB |
|
86 create RestrictedAOTestClass AO |
|
87 AO CreateFactory |
|
88 AO CreateRestrictedAO |
|
89 AO AppendAllowedOutput USB |
|
90 delete AO |
|
91 [Endtest] |
|
92 |
|
93 [Test] |
|
94 title 9. AppendAllowedOutput Record |
|
95 create RestrictedAOTestClass AO |
|
96 AO CreateFactory |
|
97 AO CreateRestrictedAO |
|
98 AO AppendAllowedOutput Record |
|
99 delete AO |
|
100 [Endtest] |
|
101 |
|
102 [Test] |
|
103 title 10. AppendAllowedOutput Visualization |
|
104 create RestrictedAOTestClass AO |
|
105 AO CreateFactory |
|
106 AO CreateRestrictedAO |
|
107 AO AppendAllowedOutput Visualization |
|
108 delete AO |
|
109 [Endtest] |
|
110 |
|
111 |
|
112 [Test] |
|
113 title 11. AppendAllowedOutput multiple |
|
114 create RestrictedAOTestClass AO |
|
115 AO CreateFactory |
|
116 AO CreateRestrictedAO |
|
117 AO AppendAllowedOutput All |
|
118 AO AppendAllowedOutput AudioAnalog |
|
119 AO AppendAllowedOutput FM |
|
120 AO AppendAllowedOutput StereoBT |
|
121 AO AppendAllowedOutput BTA2DP |
|
122 AO AppendAllowedOutput AudioUplink |
|
123 AO AppendAllowedOutput USB |
|
124 AO AppendAllowedOutput Record |
|
125 AO AppendAllowedOutput Visualization |
|
126 delete AO |
|
127 [Endtest] |
|
128 |
|
129 |
|
130 [Test] |
|
131 title 12. RemoveAllowedOutput All |
|
132 create RestrictedAOTestClass AO |
|
133 AO CreateFactory |
|
134 AO CreateRestrictedAO |
|
135 AO Reset |
|
136 AO AppendAllowedOutput All |
|
137 AO RemoveAllowedOutput All |
|
138 delete AO |
|
139 [Endtest] |
|
140 |
|
141 [Test] |
|
142 title 13. RemoveAllowedOutput AudioAnalog |
|
143 create RestrictedAOTestClass AO |
|
144 AO CreateFactory |
|
145 AO CreateRestrictedAO |
|
146 AO Reset |
|
147 AO AppendAllowedOutput AudioAnalog |
|
148 AO RemoveAllowedOutput AudioAnalog |
|
149 delete AO |
|
150 [Endtest] |
|
151 |
|
152 [Test] |
|
153 title 14. RemoveAllowedOutput FM |
|
154 create RestrictedAOTestClass AO |
|
155 AO CreateFactory |
|
156 AO CreateRestrictedAO |
|
157 AO Reset |
|
158 AO AppendAllowedOutput FM |
|
159 AO RemoveAllowedOutput FM |
|
160 delete AO |
|
161 [Endtest] |
|
162 |
|
163 [Test] |
|
164 title 15. RemoveAllowedOutput StereoBT |
|
165 create RestrictedAOTestClass AO |
|
166 AO CreateFactory |
|
167 AO CreateRestrictedAO |
|
168 AO Reset |
|
169 AO AppendAllowedOutput StereoBT |
|
170 AO RemoveAllowedOutput StereoBT |
|
171 delete AO |
|
172 [Endtest] |
|
173 |
|
174 [Test] |
|
175 title 16. RemoveAllowedOutput BTA2DP |
|
176 create RestrictedAOTestClass AO |
|
177 AO CreateFactory |
|
178 AO CreateRestrictedAO |
|
179 AO Reset |
|
180 AO AppendAllowedOutput BTA2DP |
|
181 AO RemoveAllowedOutput BTA2DP |
|
182 delete AO |
|
183 [Endtest] |
|
184 |
|
185 [Test] |
|
186 title 17. RemoveAllowedOutput USB |
|
187 create RestrictedAOTestClass AO |
|
188 AO CreateFactory |
|
189 AO CreateRestrictedAO |
|
190 AO Reset |
|
191 AO AppendAllowedOutput USB |
|
192 AO RemoveAllowedOutput USB |
|
193 delete AO |
|
194 [Endtest] |
|
195 |
|
196 [Test] |
|
197 title 18. RemoveAllowedOutput Record |
|
198 create RestrictedAOTestClass AO |
|
199 AO CreateFactory |
|
200 AO CreateRestrictedAO |
|
201 AO Reset |
|
202 AO AppendAllowedOutput Record |
|
203 AO RemoveAllowedOutput Record |
|
204 delete AO |
|
205 [Endtest] |
|
206 |
|
207 [Test] |
|
208 title 19. RemoveAllowedOutput Visualization |
|
209 create RestrictedAOTestClass AO |
|
210 AO CreateFactory |
|
211 AO CreateRestrictedAO |
|
212 AO Reset |
|
213 AO AppendAllowedOutput Visualization |
|
214 AO RemoveAllowedOutput Visualization |
|
215 delete AO |
|
216 [Endtest] |
|
217 |
|
218 |
|
219 [Test] |
|
220 title 19. RemoveAllowedOutput NotAppended |
|
221 create RestrictedAOTestClass AO |
|
222 AO CreateFactory |
|
223 AO CreateRestrictedAO |
|
224 AO Reset |
|
225 AO AppendAllowedOutput All |
|
226 allownextresult KErrNotFound |
|
227 AO RemoveAllowedOutput Visualization |
|
228 AO RemoveAllowedOutput All |
|
229 allownextresult KErrNotFound |
|
230 AO RemoveAllowedOutput All |
|
231 delete AO |
|
232 [Endtest] |
|
233 |
|
234 |
|
235 [Test] |
|
236 title 20. AppendAllowedOutput twice |
|
237 create RestrictedAOTestClass AO |
|
238 AO CreateFactory |
|
239 AO CreateRestrictedAO |
|
240 AO Reset |
|
241 AO AppendAllowedOutput All |
|
242 allownextresult KErrAlreadyExists |
|
243 AO AppendAllowedOutput All |
|
244 delete AO |
|
245 [Endtest] |
|
246 |
|
247 |
|
248 [Test] |
|
249 title 21. GetAllowedOutputCount |
|
250 create RestrictedAOTestClass AO |
|
251 AO CreateFactory |
|
252 AO CreateRestrictedAO |
|
253 AO Reset |
|
254 AO AppendAllowedOutput All |
|
255 allownextresult 1 |
|
256 AO GetAllowedOutputCount |
|
257 AO AppendAllowedOutput AudioAnalog |
|
258 AO AppendAllowedOutput FM |
|
259 AO AppendAllowedOutput StereoBT |
|
260 AO AppendAllowedOutput BTA2DP |
|
261 AO AppendAllowedOutput AudioUplink |
|
262 AO AppendAllowedOutput USB |
|
263 AO AppendAllowedOutput Record |
|
264 AO AppendAllowedOutput Visualization |
|
265 allownextresult 9 |
|
266 AO GetAllowedOutputCount |
|
267 delete AO |
|
268 [Endtest] |
|
269 |
|
270 |
|
271 [Test] |
|
272 title 22. Reset |
|
273 create RestrictedAOTestClass AO |
|
274 AO CreateFactory |
|
275 AO CreateRestrictedAO |
|
276 AO Reset |
|
277 AO AppendAllowedOutput All |
|
278 allownextresult 1 |
|
279 AO GetAllowedOutputCount |
|
280 AO AppendAllowedOutput AudioAnalog |
|
281 AO AppendAllowedOutput FM |
|
282 AO AppendAllowedOutput StereoBT |
|
283 AO AppendAllowedOutput BTA2DP |
|
284 AO AppendAllowedOutput AudioUplink |
|
285 AO AppendAllowedOutput USB |
|
286 AO AppendAllowedOutput Record |
|
287 AO AppendAllowedOutput Visualization |
|
288 allownextresult 9 |
|
289 AO GetAllowedOutputCount |
|
290 AO Reset |
|
291 allownextresult 0 |
|
292 AO GetAllowedOutputCount |
|
293 delete AO |
|
294 [Endtest] |
|
295 |
|
296 |
|
297 [Test] |
|
298 title 23. GetAllowedOutput |
|
299 create RestrictedAOTestClass AO |
|
300 AO CreateFactory |
|
301 AO CreateRestrictedAO |
|
302 AO Reset |
|
303 AO AppendAllowedOutput All |
|
304 AO GetAllowedOutput All |
|
305 AO AppendAllowedOutput AudioAnalog |
|
306 AO GetAllowedOutput AudioAnalog |
|
307 AO AppendAllowedOutput FM |
|
308 AO GetAllowedOutput FM |
|
309 AO AppendAllowedOutput StereoBT |
|
310 AO GetAllowedOutput StereoBT |
|
311 AO AppendAllowedOutput BTA2DP |
|
312 AO GetAllowedOutput BTA2DP |
|
313 AO AppendAllowedOutput AudioUplink |
|
314 AO GetAllowedOutput AudioUplink |
|
315 AO AppendAllowedOutput USB |
|
316 AO GetAllowedOutput USB |
|
317 AO AppendAllowedOutput Record |
|
318 AO GetAllowedOutput Record |
|
319 AO AppendAllowedOutput Visualization |
|
320 AO GetAllowedOutput Record |
|
321 delete AO |
|
322 [Endtest] |
|
323 |
|
324 |
|
325 [Test] |
|
326 title 24. GetAllowedOutput after remove |
|
327 create RestrictedAOTestClass AO |
|
328 AO CreateFactory |
|
329 AO CreateRestrictedAO |
|
330 AO Reset |
|
331 AO AppendAllowedOutput FM |
|
332 AO GetAllowedOutput FM |
|
333 AO AppendAllowedOutput StereoBT |
|
334 AO GetAllowedOutput StereoBT |
|
335 AO AppendAllowedOutput BTA2DP |
|
336 AO GetAllowedOutput BTA2DP |
|
337 AO RemoveAllowedOutput StereoBT |
|
338 AO GetAllowedOutput BTA2DP |
|
339 allownextresult KErrNotFound |
|
340 AO GetAllowedOutput StereoBT |
|
341 delete AO |
|
342 [Endtest] |
|
343 |
|
344 |
|
345 // Adding Test cases 26 and 27 for |
|
346 // RIM CR 417-7642: HDMI with HDCP to Resctricted Audio Output API |
|
347 // Adding new ENUMs to CRestrictedAudioOutput::TAllowedOutputPreference for HDMI and HDCP |
|
348 // EAllowAudioHDMI and EAllowAudioHdmiHdcpRequired |
|
349 // |
|
350 |
|
351 [Test] |
|
352 title 26. AppendAllowedOutput HDMI |
|
353 create RestrictedAOTestClass AO |
|
354 AO CreateFactory |
|
355 AO CreateRestrictedAO |
|
356 AO AppendAllowedOutput HDMI |
|
357 delete AO |
|
358 [Endtest] |
|
359 |
|
360 |
|
361 |
|
362 [Test] |
|
363 title 27. AppendAllowedOutput HdmiHdcpRequired |
|
364 create RestrictedAOTestClass AO |
|
365 AO CreateFactory |
|
366 AO CreateRestrictedAO |
|
367 AO AppendAllowedOutput HdmiHdcpRequired |
|
368 delete AO |
|
369 [Endtest] |
|
370 |
|
371 |
|
372 //[Test] |
|
373 //title 25. Commit |
|
374 //create RestrictedAOTestClass AO |
|
375 //AO CreateFactory |
|
376 //AO CreateRestrictedAO |
|
377 //AO Reset |
|
378 //AO AppendAllowedOutput FM |
|
379 //AO AppendAllowedOutput StereoBT |
|
380 //AO AppendAllowedOutput BTA2DP |
|
381 //AO Commit |
|
382 //delete AO |
|
383 //[Endtest] |
|
384 |
|
385 |
|
386 //[Test] |
|
387 //title ExampleL |
|
388 //create RestrictedAOTestClass AO |
|
389 //AO Example |
|
390 //delete AO |
|
391 //[Endtest] |
|
392 |
|
393 |