• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 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
15TestBeds:
16  - Name: TEST_BED_TABLET_SCENES_INDEX_0  # Need 'tablet' in name for tablet scenes
17    Controllers:
18        AndroidDevice:
19          - serial: <device-id-0>  # quotes are needed if serial id is entirely numeric
20            label: dut
21          - serial: <tablet-id-0>  # quotes are needed if serial id is entirely numeric
22            label: tablet
23    TestParams:
24      brightness: 192
25      chart_distance: 22.0
26      debug_mode: "False"  # quotes are needed here
27      lighting_cntl: <controller-type>  # can be arduino or "None"
28      lighting_ch: <controller-channel-0>
29      camera: <camera-id>
30      scene: <scene-name>  # if <scene-name> left as-is runs all scenes
31      foldable_device: "False" # set to "True" if testing a foldable device
32
33  - Name: TEST_BED_TABLET_SCENES_INDEX_1  # Need 'tablet' in name for tablet scenes
34    Controllers:
35        AndroidDevice:
36          - serial: <device-id-1>  # quotes are needed if serial id is entirely numeric
37            label: dut
38          - serial: <tablet-id-1>  # quotes are needed if serial id is entirely numeric
39            label: tablet
40    TestParams:
41      brightness: 192
42      chart_distance: 22.0
43      debug_mode: "False"  # quotes are needed here
44      lighting_cntl: <controller-type>  # can be arduino or "None"
45      lighting_ch: <controller-channel-1>
46      camera: <camera-id>
47      scene: <scene-name>  # if <scene-name> left as-is runs all scenes
48      foldable_device: "False" # set to "True" if testing a foldable device
49
50  - Name: TEST_BED_TABLET_SCENES_INDEX_2  # Need 'tablet' in name for tablet scenes
51    Controllers:
52        AndroidDevice:
53          - serial: <device-id-2>  # quotes are needed if serial id is entirely numeric
54            label: dut
55          - serial: <tablet-id-2>  # quotes are needed if serial id is entirely numeric
56            label: tablet
57    TestParams:
58      brightness: 192
59      chart_distance: 22.0
60      debug_mode: "False"  # quotes are needed here
61      lighting_cntl: <controller-type>  # can be arduino or "None"
62      lighting_ch: <controller-channel-2>
63      camera: <camera-id>
64      scene: <scene-name>  # if <scene-name> left as-is runs all scenes
65      foldable_device: "False" # set to "True" if testing a foldable device
66
67  # TEST_BED_SENSOR_FUSION represents testbed index 3
68  # Parallel sensor_fusion is currently unsupported due to Arduino requirements
69  - Name: TEST_BED_SENSOR_FUSION  # Need 'sensor_fusion' in name for SF tests
70    # Test configuration for sensor_fusion/test_sensor_fusion.py
71    Controllers:
72        AndroidDevice:
73          - serial: <device-id>  # quotes are needed if serial id is entirely numeric
74            label: dut
75    TestParams:
76      fps: 30
77      img_size: 640,480
78      test_length: 7
79      debug_mode: "False"  # quotes are needed here
80      chart_distance: 25
81      rotator_cntl: "arduino"  # Note: only sensor fusion supports manual
82      rotator_ch: <controller-channel>
83      camera: <camera-id>
84      foldable_device: "False" # set to "True" if testing a foldable device
85      tablet_device: "False" # set to "True" if testing a tablet device
86      lighting_cntl: <controller-type>  # can be arduino or "None"
87      lighting_ch: <controller-channel>
88      scene: "sensor_fusion"
89