xref: /aosp_15_r20/external/autotest/client/site_tests/power_VideoCall/control.option (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1AUTHOR = "jpmurphy"
2NAME = "power_VideoCall.option"
3PURPOSE = "Simulates video call multitasking."
4CRITERIA = "This test is a benchmark."
5TIME = "LENGTHY"
6TEST_CATEGORY = "Benchmark"
7TEST_CLASS = "power"
8TEST_TYPE = "client"
9PY_VERSION = 3
10
11DOC = """
12This test simulates video call multitasking and record power related statistic.
13
14This test accepts command line arguments to override default arguments to
15run_once.
16
17Default Workload
18- Camera preview in 720p using VP9 codec.
19- Four 720p 30fps video playback with two VP8 videos and two VP9 videos.
20- Google Doc with emulated typing.
21
22The default run time is 2 hours to allow the DUT to heat up to steady state.
23"""
24
25HOURS=60 * 60
26
27args_dict = utils.args_to_dict(args)
28
29duration = int(args_dict.get('duration', 2 * HOURS))
30preset = str(args_dict.get('preset', ''))
31video_url = str(args_dict.get('video_url', ''))
32num_video = int(args_dict.get('num_video', 5))
33multitask = args_dict.get('multitask')
34if multitask and (str(multitask).lower() == 'false' or int(multitask) == 0):
35    multitask = False
36else:
37    multitask = True
38min_run_time_percent = int(args_dict.get('min_run_time_percent', 100))
39
40pdash_note = args_dict.get('pdash_note', '')
41
42job.run_test('power_VideoCall', pdash_note=pdash_note, tag=NAME.split('.')[1],
43             duration=duration, preset=preset, video_url=video_url,
44             num_video=num_video, multitask=multitask,
45             min_run_time_percent=min_run_time_percent)
46