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#
15#  Licensed under the Apache License, Version 2.0 (the "License");
16#  you may not use this file except in compliance with the License.
17#  You may obtain a copy of the License at
18#
19#       http://www.apache.org/licenses/LICENSE-2.0
20#
21#  Unless required by applicable law or agreed to in writing, software
22#  distributed under the License is distributed on an "AS IS" BASIS,
23#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24#  See the License for the specific language governing permissions and
25#  limitations under the License.
26
27"""This file is just a proof-of-concept stub checking to make sure the MBS utilities are
28working as expected. """
29
30
31import sys
32import logging
33import pprint
34
35from mobly import asserts
36from mobly import base_test
37from mobly import test_runner
38from mobly.controllers import android_device
39
40from utilities import constants
41from utilities import spectatio_utils
42from utilities import bt_utils
43from utilities.main_utils import common_main
44
45from bluetooth_test import bluetooth_base_test
46
47
48
49# Number of seconds for the target to stay discoverable on Bluetooth.
50DISCOVERABLE_TIME = 60
51
52class UtilityClassTest(bluetooth_base_test.BluetoothBaseTest):
53
54    def setup_test(self):
55        super().setup_test()
56        # Pair caller phone with automotive device
57        self.bt_utils.pair_primary_to_secondary()
58
59    def test_call_utility(self):
60        # Navigate to the phone app page
61        self.call_utils.open_phone_app()
62
63
64if __name__ == '__main__':
65    # Take test args
66    common_main()