• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2#   Copyright 2021 - The Android Open Source Project
3#
4#   Licensed under the Apache License, Version 2.0 (the "License");
5#   you may not use this file except in compliance with the License.
6#   You may obtain a copy of the License at
7#
8#   http://www.apache.org/licenses/LICENSE-2.0
9#
10#   Unless required by applicable law or agreed to in writing, software
11#   distributed under the License is distributed on an "AS IS" BASIS,
12#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13#   See the License for the specific language governing permissions and
14#   limitations under the License.
15
16
17from acts.test_decorators import test_tracker_info
18from acts_contrib.test_utils.tel.TelephonyBaseTest import TelephonyBaseTest
19from WifiTeleCoexTest import WifiTeleCoexTest
20
21
22class WifiTeleCoex6eTest(WifiTeleCoexTest):
23  """Tests for wifi tel coex 6e tests.
24
25  Test Bed Requirement:
26    1 Android devices, 1 Asus AXE11000 Access Point, 1 Carrier SIM.
27  """
28
29  def __init__(self, configs):
30    super().__init__(configs)
31
32    self.tests = (
33        "test_toggle_wifi_call_6e",
34        "test_toggle_airplane_call_6e",
35        "test_toggle_airplane_and_wifi_call_6e",
36    )
37
38  def setup_class(self):
39    TelephonyBaseTest.setup_class(self)
40
41    self.ads = self.android_devices
42    self.dut = self.android_devices[0]
43    req_params = ["reference_networks",]
44    self.unpack_userparams(req_param_names=req_params,)
45    self.network = self.reference_networks[0]["6g"]
46    self.wifi_network_ssid = self.network["SSID"]
47
48  ### Tests ###
49
50  @test_tracker_info(uuid="2ca35dcd-f449-4e74-9d5a-9238168f25a5")
51  def test_toggle_wifi_call_6e(self):
52    super().test_toggle_wifi_call()
53
54  @test_tracker_info(uuid="d819a404-609b-477a-95f6-9fc68ce04947")
55  def test_toggle_airplane_call_6e(self):
56    super().test_toggle_airplane_call()
57
58  @test_tracker_info(uuid="bc802fc9-2763-4789-94b0-15655333af81")
59  def test_toggle_airplane_and_wifi_call_6e(self):
60    super().test_toggle_airplane_and_wifi_call()
61