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: "BTMediaEnabledDuringParingWHenRadioLunchedOnHU",
22    main: "media_test_stream_when_radio_lunched.py",
23    srcs: ["media_test_stream_when_radio_lunched.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    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: "BTMediaIsAVRCPTreeDisplayedOnHU",
49    main: "media_test_avrcp_tree_displayed.py",
50    srcs: ["media_test_avrcp_tree_displayed.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    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}
73
74python_test_host {
75    name: "BTMediaAbleToPlayPauseMediaOnHU",
76    main: "media_test_play_media_from_widget.py",
77    srcs: ["media_test_play_media_from_widget.py"],
78    libs: [
79        "mobly",
80        "utilities",
81        "bluetooth_test",
82    ],
83    test_suites: [
84        "catbox",
85    ],
86    test_options: {
87        unit_test: false,
88    },
89    data: [
90        // Package the snippet with the mobly test
91        ":AutomotiveSnippet",
92        ":PhoneSnippet",
93    ],
94    version: {
95        py3: {
96            embedded_launcher: true,
97        },
98    },
99}
100
101python_test_host {
102    name: "BTMediaMediaMetadataValidationPrevAndNextSongOnHu",
103    main: "media_test_prev_and_next_song_metadata_validation.py",
104    srcs: ["media_test_prev_and_next_song_metadata_validation.py"],
105    libs: [
106        "mobly",
107        "utilities",
108        "bluetooth_test",
109    ],
110    test_suites: [
111        "catbox",
112    ],
113    test_options: {
114        unit_test: false,
115    },
116    data: [
117        // Package the snippet with the mobly test
118        ":AutomotiveSnippet",
119        ":PhoneSnippet",
120    ],
121    version: {
122        py3: {
123            embedded_launcher: true,
124        },
125    },
126}
127
128python_test_host {
129    name: "BTMediaIsCategoriesSelectableTest",
130    main: "media_test_categories_playlists_selectable.py",
131    srcs: ["media_test_categories_playlists_selectable.py"],
132    libs: [
133        "mobly",
134        "utilities",
135        "bluetooth_test",
136    ],
137    test_suites: [
138        "catbox",
139    ],
140    test_options: {
141        unit_test: false,
142    },
143    data: [
144        // Package the snippet with the mobly test
145        ":AutomotiveSnippet",
146        ":PhoneSnippet",
147    ],
148    version: {
149        py3: {
150            embedded_launcher: true,
151        },
152    },
153}
154
155python_test_host {
156    name: "BTMediaIsDeviceSynchedAfterStartHuTest",
157    main: "media_test_device_sync_after_hu_start.py",
158    srcs: ["media_test_device_sync_after_hu_start.py"],
159    libs: [
160        "mobly",
161        "utilities",
162        "bluetooth_test",
163    ],
164    test_suites: [
165        "catbox",
166    ],
167    test_options: {
168        unit_test: false,
169    },
170    data: [
171        // Package the snippet with the mobly test
172        ":AutomotiveSnippet",
173        ":PhoneSnippet",
174    ],
175    version: {
176        py3: {
177            embedded_launcher: true,
178        },
179    },
180}
181
182python_test_host {
183    name: "BTMediaSelectSongFromPlaylistTest",
184    main: "media_test_select_song_from_playlist.py",
185    srcs: ["media_test_select_song_from_playlist.py"],
186    libs: [
187        "mobly",
188        "utilities",
189        "bluetooth_test",
190    ],
191    test_suites: [
192        "catbox",
193    ],
194    test_options: {
195        unit_test: false,
196    },
197    data: [
198        // Package the snippet with the mobly test
199        ":AutomotiveSnippet",
200        ":PhoneSnippet",
201    ],
202    version: {
203        py3: {
204            embedded_launcher: true,
205        },
206    },
207}
208
209python_test_host {
210    name: "BTMediaDeviceNotPairedTest",
211    main: "media_test_device_not_paired.py",
212    srcs: ["media_test_device_not_paired.py"],
213    libs: [
214        "mobly",
215        "utilities",
216        "bluetooth_test",
217    ],
218    test_suites: [
219        "catbox",
220    ],
221    test_options: {
222        unit_test: false,
223    },
224    data: [
225        // Package the snippet with the mobly test
226        ":AutomotiveSnippet",
227        ":PhoneSnippet",
228    ],
229    version: {
230        py3: {
231            embedded_launcher: true,
232        },
233    },
234}
235
236python_test_host {
237    name: "BTMediaIsSongPlayingTest",
238    main: "media_test_song_is_playing.py",
239    srcs: ["media_test_song_is_playing.py"],
240     libs: [
241         "mobly",
242         "utilities",
243         "bluetooth_test",
244     ],
245     test_suites: [
246         "catbox",
247     ],
248     test_options: {
249         unit_test: false,
250     },
251     data: [
252         // Package the snippet with the mobly test
253         ":AutomotiveSnippet",
254         ":PhoneSnippet",
255     ],
256     version: {
257         py3: {
258             embedded_launcher: true,
259         },
260     },
261 }
262
263python_test_host {
264     name: "BTMediaIsAbleToSwitchAppTest",
265     main: "media_test_switch_app_validation.py",
266     srcs: ["media_test_switch_app_validation.py"],
267      libs: [
268          "mobly",
269          "utilities",
270          "bluetooth_test",
271      ],
272      test_suites: [
273          "catbox",
274      ],
275      test_options: {
276          unit_test: false,
277      },
278      data: [
279          // Package the snippet with the mobly test
280          ":AutomotiveSnippet",
281          ":PhoneSnippet",
282      ],
283      version: {
284          py3: {
285              embedded_launcher: true,
286          },
287      },
288  }
289
290 python_test_host {
291     name: "BTMediaSynchronizedAfterReconnect",
292     main: "media_test_synchronized_device_disconnected_connected.py",
293     srcs: ["media_test_synchronized_device_disconnected_connected.py"],
294      libs: [
295          "mobly",
296          "utilities",
297          "bluetooth_test"
298      ],
299      test_suites: [
300          "catbox",
301      ],
302      test_options: {
303          unit_test: false,
304      },
305      data: [
306          // Package the snippet with the mobly test
307          ":AutomotiveSnippet",
308          ":PhoneSnippet",
309      ],
310      version: {
311          py3: {
312              embedded_launcher: true,
313          },
314      },
315  }
316
317 python_test_host {
318     name: "BTMediaIsSongPlayingAfterReboot",
319     main: "media_test_play_status_after_reboot.py",
320     srcs: ["media_test_play_status_after_reboot.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      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
344 python_test_host {
345     name: "BTMediaIsMediaMetadataValidOnHu",
346     main: "media_test_song_metadata_validation.py",
347     srcs: ["media_test_song_metadata_validation.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      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
371   python_test_host {
372       name: "BTMediaIsNoePlayingLabelDisplayedOnHu",
373       main: "media_test_now_playing_label_displayed.py",
374       srcs: ["media_test_now_playing_label_displayed.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        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
398   python_test_host {
399       name: "BTMediaPlaylistRenderingOnHu",
400       main: "media_test_playlist_rendering.py",
401       srcs: ["media_test_playlist_rendering.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        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