xref: /aosp_15_r20/platform_testing/tests/automotive/mobly_tests/dialer/Android.bp (revision dd0948b35e70be4c0246aabd6c72554a5eb8b22a)
1// Copyright (C) 2023 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_team: "trendy_team_aaos_framework",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20python_test_host {
21    name: "BTUtilityTest",
22    main: "bt_utility_test.py",
23    srcs: ["bt_utility_test.py"],
24    libs: [
25        "mobly",
26        "utilities",
27        "bluetooth_test"
28    ],
29    test_suites: [
30        "catbox",
31    ],
32    test_options: {
33        unit_test: false,
34    },
35    device_common_data: [
36        // Package the snippet with the mobly test
37        ":AutomotiveSnippet",
38        ":PhoneSnippet",
39    ],
40    version: {
41        py3: {
42            embedded_launcher: true,
43        },
44    },
45}
46
47python_test_host {
48    name: "BluetoothDialTest",
49    main: "dialer_test_dial_test.py",
50    srcs: ["dialer_test_dial_test.py"],
51    libs: [
52        "mobly",
53        "utilities",
54        "bluetooth_test"
55    ],
56    test_suites: [
57        "catbox",
58    ],
59    test_options: {
60        unit_test: false,
61    },
62    device_common_data: [
63        // Package the snippet with the mobly test
64        ":AutomotiveSnippet",
65        ":PhoneSnippet",
66    ],
67    version: {
68        py3: {
69            embedded_launcher: true,
70        },
71    },
72}
73python_test_host {
74    name: "BTContactSortTest",
75    main: "dialer_test_sort_contacts_by_last_name.py",
76    srcs: ["dialer_test_sort_contacts_by_last_name.py"],
77    libs: [
78        "mobly",
79        "utilities",
80        "bluetooth_test"
81    ],
82    test_suites: [
83        "catbox",
84    ],
85    test_options: {
86        unit_test: false,
87    },
88    device_common_data: [
89        // Package the snippet with the mobly test
90        ":AutomotiveSnippet",
91        ":PhoneSnippet",
92    ],
93    version: {
94        py3: {
95            embedded_launcher: true,
96        },
97    },
98}
99
100python_test_host {
101    name: "BTAddRemoveFavoriteContactTest",
102    main: "dialer_test_add_remove_favorite_contact.py",
103    srcs: ["dialer_test_add_remove_favorite_contact.py"],
104    libs: [
105        "mobly",
106        "utilities",
107        "bluetooth_test"
108    ],
109    test_suites: [
110        "catbox",
111    ],
112    test_options: {
113        unit_test: false,
114    },
115    device_common_data: [
116        // Package the snippet with the mobly test
117        ":AutomotiveSnippet",
118        ":PhoneSnippet",
119    ],
120    version: {
121        py3: {
122            embedded_launcher: true,
123        },
124    },
125}
126
127python_test_host {
128    name: "BTContactTest",
129    main: "dialer_test_contact_test.py",
130    srcs: ["dialer_test_contact_test.py"],
131    libs: [
132        "mobly",
133        "utilities",
134        "bluetooth_test"
135    ],
136    test_suites: [
137        "catbox",
138    ],
139    test_options: {
140        unit_test: false,
141    },
142    device_common_data: [
143        // Package the snippet with the mobly test
144        ":AutomotiveSnippet",
145        ":PhoneSnippet",
146    ],
147    version: {
148        py3: {
149            embedded_launcher: true,
150        },
151    },
152}
153
154python_test_host {
155    name: "BTAddressTest",
156    main: "dialer_test_import_address_details.py",
157    srcs: ["dialer_test_import_address_details.py"],
158    libs: [
159        "mobly",
160        "utilities",
161        "bluetooth_test",
162    ],
163    test_suites: [
164        "catbox",
165    ],
166    test_options: {
167        unit_test: false,
168    },
169    device_common_data: [
170        // Package the snippet with the mobly test
171        ":AutomotiveSnippet",
172        ":PhoneSnippet",
173    ],
174    version: {
175        py3: {
176            embedded_launcher: true,
177        },
178    },
179}
180
181python_test_host {
182    name: "DialerHFPErrorTest",
183    main: "dialer_hfp_error_test.py",
184    srcs: ["dialer_hfp_error_test.py"],
185    libs: [
186        "mobly",
187        "utilities",
188        "bluetooth_test",
189    ],
190    test_suites: [
191        "catbox",
192    ],
193    test_options: {
194        unit_test: false,
195    },
196    device_common_data: [
197        // Package the snippet with the mobly test
198        ":AutomotiveSnippet",
199        ":PhoneSnippet",
200    ],
201    version: {
202        py3: {
203            embedded_launcher: true,
204        },
205    },
206}
207
208python_test_host {
209    name: "BTContactSortByFirstNameTest",
210    main: "dialer_test_sort_contacts_by_first_name.py",
211    srcs: ["dialer_test_sort_contacts_by_first_name.py"],
212    libs: [
213        "mobly",
214        "utilities",
215        "bluetooth_test"
216    ],
217    test_suites: [
218        "catbox",
219    ],
220    test_options: {
221        unit_test: false,
222    },
223    device_common_data: [
224        // Package the snippet with the mobly test
225        ":AutomotiveSnippet",
226        ":PhoneSnippet",
227    ],
228    version: {
229        py3: {
230            embedded_launcher: true,
231        },
232    },
233}
234
235python_test_host {
236    name: "SearchContactByPhoneNumberTest",
237    main: "dialer_test_search_contact_by_phone_number.py",
238    srcs: ["dialer_test_search_contact_by_phone_number.py"],
239    libs: [
240        "mobly",
241        "utilities",
242        "bluetooth_test",
243    ],
244    test_suites: [
245        "catbox",
246    ],
247    test_options: {
248        unit_test: false,
249    },
250    device_common_data: [
251        // Package the snippet with the mobly test
252        ":AutomotiveSnippet",
253        ":PhoneSnippet",
254    ],
255    version: {
256        py3: {
257            embedded_launcher: true,
258        },
259    },
260}
261
262python_test_host {
263    name: "SearchShowingFoundContact",
264    main: "dialer_test_search_showing_found_contacts.py",
265    srcs: ["dialer_test_search_showing_found_contacts.py"],
266    libs: [
267        "mobly",
268        "utilities",
269        "bluetooth_test",
270    ],
271    test_suites: [
272        "catbox",
273    ],
274    test_options: {
275        unit_test: false,
276    },
277    device_common_data: [
278        // Package the snippet with the mobly test
279        ":AutomotiveSnippet",
280        ":PhoneSnippet",
281    ],
282    version: {
283        py3: {
284            embedded_launcher: true,
285        },
286    },
287}
288python_test_host {
289    name: "CallingDeclineBtTest",
290    main: "dialer_test_basic_calling_test_with_reject_call.py",
291    srcs: ["dialer_test_basic_calling_test_with_reject_call.py"],
292    libs: [
293        "mobly",
294        "utilities",
295        "BluetoothSMSTestLibrary"
296    ],
297    test_suites: [
298        "catbox",
299    ],
300    test_options: {
301        unit_test: false,
302    },
303    device_common_data: [
304        // Package the snippet with the mobly test
305        ":AutomotiveSnippet",
306        ":PhoneSnippet",
307        "bt_3device_config.yaml"
308    ],
309    version: {
310        py3: {
311            embedded_launcher: true,
312        },
313    },
314}
315
316
317python_test_host {
318    name: "BluetoothMuteUnmuteCallTest",
319    main: "dialer_test_mute_unmute_call.py",
320    srcs: ["dialer_test_mute_unmute_call.py"],
321    libs: [
322        "mobly",
323        "utilities",
324        "bluetooth_test",
325    ],
326    test_suites: [
327        "catbox",
328    ],
329    test_options: {
330        unit_test: false,
331    },
332    device_common_data: [
333        // Package the snippet with the mobly test
334        ":AutomotiveSnippet",
335        ":PhoneSnippet",
336    ],
337    version: {
338        py3: {
339            embedded_launcher: true,
340        },
341    },
342}
343
344python_test_host {
345    name: "DeleteDialedNumberTest",
346    main: "dialer_test_delete_dialed_number.py",
347    srcs: ["dialer_test_delete_dialed_number.py"],
348    libs: [
349        "mobly",
350        "utilities",
351        "bluetooth_test",
352    ],
353    test_suites: [
354        "catbox",
355    ],
356    test_options: {
357        unit_test: false,
358    },
359    device_common_data: [
360        // Package the snippet with the mobly test
361        ":AutomotiveSnippet",
362        ":PhoneSnippet",
363    ],
364    version: {
365        py3: {
366            embedded_launcher: true,
367        },
368    },
369}
370
371python_test_host {
372       name: "DialerCallFromHistoryTest",
373       main: "dialer_test_call_from_history.py",
374       srcs: ["dialer_test_call_from_history.py"],
375       libs: [
376           "mobly",
377           "utilities",
378           "bluetooth_test",
379       ],
380       test_suites: [
381           "catbox",
382       ],
383       test_options: {
384           unit_test: false,
385       },
386       device_common_data: [
387           // Package the snippet with the mobly test
388           ":AutomotiveSnippet",
389           ":PhoneSnippet",
390       ],
391       version: {
392           py3: {
393               embedded_launcher: true,
394           },
395       }
396}
397
398python_test_host {
399    name: "BTCallAudioSourceTransferringTest",
400    main: "dialer_test_call_audio_source_transferring.py",
401    srcs: ["dialer_test_call_audio_source_transferring.py"],
402    libs: [
403        "mobly",
404        "utilities",
405        "bluetooth_test"
406    ],
407    test_suites: [
408        "catbox",
409    ],
410    test_options: {
411        unit_test: false,
412    },
413    device_common_data: [
414        // Package the snippet with the mobly test
415        ":AutomotiveSnippet",
416        ":PhoneSnippet",
417    ],
418    version: {
419        py3: {
420            embedded_launcher: true,
421        },
422    },
423}
424
425python_test_host {
426    name: "BTContactSearchByLastNameTest",
427    main: "dialer_test_search_contacts_by_last_name.py",
428    srcs: ["dialer_test_search_contacts_by_last_name.py"],
429    libs: [
430        "mobly",
431        "utilities",
432        "bluetooth_test"
433    ],
434    test_suites: [
435        "catbox",
436    ],
437    test_options: {
438        unit_test: false,
439    },
440    device_common_data: [
441        // Package the snippet with the mobly test
442        ":AutomotiveSnippet",
443        ":PhoneSnippet",
444    ],
445    version: {
446        py3: {
447            embedded_launcher: true,
448        },
449    },
450}
451
452
453python_test_host {
454    name: "BTContactSearchByFirstNameTest",
455    main: "dialer_test_search_contacts_by_first_name.py",
456    srcs: ["dialer_test_search_contacts_by_first_name.py"],
457    libs: [
458        "mobly",
459        "utilities",
460        "bluetooth_test"
461    ],
462    test_suites: [
463        "catbox",
464    ],
465    test_options: {
466        unit_test: false,
467    },
468    device_common_data: [
469        // Package the snippet with the mobly test
470        ":AutomotiveSnippet",
471        ":PhoneSnippet",
472    ],
473    version: {
474        py3: {
475            embedded_launcher: true,
476        },
477    },
478}
479
480python_test_host {
481    name: "BTConnectedPhoneTest",
482    main: "dialer_test_connected_phone_in_settings.py",
483    srcs: ["dialer_test_connected_phone_in_settings.py"],
484    libs: [
485        "mobly",
486        "utilities",
487        "bluetooth_test"
488    ],
489    test_suites: [
490        "catbox",
491    ],
492    test_options: {
493        unit_test: false,
494    },
495    device_common_data: [
496        // Package the snippet with the mobly test
497        ":AutomotiveSnippet",
498        ":PhoneSnippet",
499    ],
500    version: {
501        py3: {
502            embedded_launcher: true,
503        },
504    },
505}
506
507python_test_host {
508    name: "BTDialerVerifyCallHistoryTest",
509    main: "dialer_test_verify_call_history.py",
510    srcs: ["dialer_test_verify_call_history.py"],
511    libs: [
512        "mobly",
513        "utilities",
514        "bluetooth_test"
515    ],
516    test_suites: [
517        "catbox",
518    ],
519    test_options: {
520        unit_test: false,
521    },
522    device_common_data: [
523        // Package the snippet with the mobly test
524        ":AutomotiveSnippet",
525        ":PhoneSnippet",
526    ],
527    version: {
528        py3: {
529            embedded_launcher: true,
530        },
531    },
532}
533
534python_test_host {
535    name: "BTDialerSearchAndCall",
536    main: "dialer_test_search_contacts_and_call.py",
537    srcs: ["dialer_test_search_contacts_and_call.py"],
538    libs: [
539            "mobly",
540            "utilities",
541            "bluetooth_test"
542    ],
543    test_suites: [
544        "catbox",
545    ],
546    test_options: {
547        unit_test: false,
548    },
549    device_common_data: [
550        // Package the snippet with the mobly test
551        ":AutomotiveSnippet",
552        ":PhoneSnippet",
553    ],
554    version: {
555        py3: {
556            embedded_launcher: true,
557        },
558    },
559}
560
561python_test_host {
562    name: "BTDialerPageRefresh",
563    main: "dialer_test_page_refresh.py",
564    srcs: ["dialer_test_page_refresh.py"],
565
566    libs: [
567        "mobly",
568        "utilities",
569        "bluetooth_test"
570    ],
571    test_suites: [
572        "catbox",
573    ],
574    test_options: {
575        unit_test: false,
576    },
577    device_common_data: [
578        // Package the snippet with the mobly test
579        ":AutomotiveSnippet",
580        ":PhoneSnippet",
581    ],
582    version: {
583        py3: {
584            embedded_launcher: true,
585        },
586    },
587}
588
589
590
591python_test_host {
592    name: "BTDialerBluetoothSettingsReflection",
593    main: "dialer_test_bluetooth_settings_reflection.py",
594    srcs: ["dialer_test_bluetooth_settings_reflection.py"],
595
596    libs: [
597        "mobly",
598        "utilities",
599        "bluetooth_test"
600    ],
601    test_suites: [
602        "catbox",
603    ],
604    test_options: {
605        unit_test: false,
606    },
607    device_common_data: [
608        // Package the snippet with the mobly test
609        ":AutomotiveSnippet",
610        ":PhoneSnippet",
611    ],
612    version: {
613        py3: {
614            embedded_launcher: true,
615        },
616    },
617}
618
619python_test_host {
620    name: "BTDialerDeclineCall",
621    main: "dialer_test_decline_incoming_call.py",
622    srcs: ["dialer_test_decline_incoming_call.py"],
623    libs: [
624        "mobly",
625        "utilities",
626        "bluetooth_test",
627        "BluetoothSMSTestLibrary"
628    ],
629    test_suites: [
630        "catbox",
631    ],
632    test_options: {
633        unit_test: false,
634    },
635    device_common_data: [
636        // Package the snippet with the mobly test
637        ":AutomotiveSnippet",
638        ":PhoneSnippet",
639    ],
640    version: {
641        py3: {
642            embedded_launcher: true,
643        },
644    },
645}
646
647python_test_host {
648    name: "BTDialerActiveCallOn",
649    main: "dialer_test_active_call_on.py",
650    srcs: ["dialer_test_active_call_on.py"],
651
652    libs: [
653        "mobly",
654        "utilities",
655        "bluetooth_test",
656        "BluetoothSMSTestLibrary"
657    ],
658    test_suites: [
659        "catbox",
660    ],
661    test_options: {
662        unit_test: false,
663    },
664    device_common_data: [
665        // Package the snippet with the mobly test
666        ":AutomotiveSnippet",
667        ":PhoneSnippet",
668    ],
669    version: {
670        py3: {
671            embedded_launcher: true,
672        },
673    },
674}
675
676python_test_host {
677    name: "BTDialerActiveCallOff",
678    main: "dialer_test_active_call_off.py",
679    srcs: ["dialer_test_active_call_off.py"],
680
681    libs: [
682        "mobly",
683        "utilities",
684        "bluetooth_test",
685        "BluetoothSMSTestLibrary"
686    ],
687    test_suites: [
688        "catbox",
689    ],
690    test_options: {
691        unit_test: false,
692    },
693    device_common_data: [
694        // Package the snippet with the mobly test
695        ":AutomotiveSnippet",
696        ":PhoneSnippet",
697    ],
698    version: {
699        py3: {
700            embedded_launcher: true,
701        },
702    },
703}
704
705python_test_host {
706    name: "BTDialerPhoneCard",
707    main: "dialer_test_launch_from_phone_card.py",
708    srcs: ["dialer_test_launch_from_phone_card.py"],
709
710    libs: [
711        "mobly",
712        "utilities",
713        "bluetooth_test",
714        "BluetoothSMSTestLibrary"
715    ],
716    test_suites: [
717        "catbox",
718    ],
719    test_options: {
720        unit_test: false,
721    },
722    device_common_data: [
723        // Package the snippet with the mobly test
724        ":AutomotiveSnippet",
725        ":PhoneSnippet",
726    ],
727    version: {
728        py3: {
729            embedded_launcher: true,
730        },
731    },
732}