blob: ab9fcf1e6b5f414ed497130597d667f5e02eaaf8 [file] [log] [blame]
#!/usr/bin/env python3
#
# Copyright 2020 - Google
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from acts.test_decorators import test_tracker_info
from acts_contrib.test_utils.tel.loggers.telephony_metric_logger import TelephonyMetricLogger
from acts_contrib.test_utils.tel.tel_dsds_utils import dds_switch_during_data_transfer_test
from acts_contrib.test_utils.tel.tel_defines import YOUTUBE_PACKAGE_NAME
from acts_contrib.test_utils.tel.tel_phone_setup_utils import ensure_phones_idle
from acts_contrib.test_utils.tel.tel_subscription_utils import set_dds_on_slot_0
from acts_contrib.test_utils.tel.TelephonyBaseTest import TelephonyBaseTest
class Nsa5gDSDSDDSSwitchTest(TelephonyBaseTest):
def setup_class(self):
TelephonyBaseTest.setup_class(self)
self.message_lengths = (50, 160, 180)
self.tel_logger = TelephonyMetricLogger.for_test_case()
def setup_test(self):
set_dds_on_slot_0(self.android_devices[0])
def teardown_test(self):
self.android_devices[0].force_stop_apk(YOUTUBE_PACKAGE_NAME)
ensure_phones_idle(self.log, self.android_devices)
@test_tracker_info(uuid="727a75ef-7277-42fe-8a4b-7b2debe666d9")
@TelephonyBaseTest.tel_test_wrap
def test_dds_switch_youtube_psim_5g_nsa_volte_esim_5g_nsa_volte(self):
return dds_switch_during_data_transfer_test(
self.log,
self.tel_logger,
self.android_devices,
nw_rat=["5g_volte", "5g_volte"])
@test_tracker_info(uuid="4ef4626a-11b3-4a09-ac98-2e3d94e54bf7")
@TelephonyBaseTest.tel_test_wrap
def test_dds_switch_youtube_and_voice_mo_psim_5g_nsa_volte_esim_5g_nsa_volte(self):
return dds_switch_during_data_transfer_test(
self.log,
self.tel_logger,
self.android_devices,
nw_rat=["5g_volte", "5g_volte"],
call_slot=0,
call_direction="mo")
@test_tracker_info(uuid="ef3bc49f-e94f-432b-bb51-4b6008359313")
@TelephonyBaseTest.tel_test_wrap
def test_dds_switch_youtube_and_voice_mt_psim_5g_nsa_volte_esim_5g_nsa_volte(self):
return dds_switch_during_data_transfer_test(
self.log,
self.tel_logger,
self.android_devices,
nw_rat=["5g_volte", "5g_volte"],
call_slot=0,
call_direction="mt")
@test_tracker_info(uuid="6d913c58-dde5-453d-b9a9-30e76cdac554")
@TelephonyBaseTest.tel_test_wrap
def test_dds_switch_youtube_and_voice_mo_esim_5g_nsa_volte_psim_5g_nsa_volte(self):
return dds_switch_during_data_transfer_test(
self.log,
self.tel_logger,
self.android_devices,
nw_rat=["5g_volte", "5g_volte"],
call_slot=1,
call_direction="mo")
@test_tracker_info(uuid="df91d2ce-ef5e-4d38-a642-6470ade625c6")
@TelephonyBaseTest.tel_test_wrap
def test_dds_switch_youtube_and_voice_mt_esim_5g_nsa_volte_psim_5g_nsa_volte(self):
return dds_switch_during_data_transfer_test(
self.log,
self.tel_logger,
self.android_devices,
nw_rat=["5g_volte", "5g_volte"],
call_slot=1,
call_direction="mt")
@test_tracker_info(uuid="4ba86f3c-1de6-4888-a2e5-a5e6079c3886")
@TelephonyBaseTest.tel_test_wrap
def test_dds_switch_youtube_and_voice_mo_psim_5g_nsa_csfb_esim_5g_nsa_csfb(self):
return dds_switch_during_data_transfer_test(
self.log,
self.tel_logger,
self.android_devices,
nw_rat=["5g_csfb", "5g_csfb"],
call_slot=0,
call_direction="mo")
@test_tracker_info(uuid="aa426eb2-dc7b-4ffe-aaa2-a3204251c131")
@TelephonyBaseTest.tel_test_wrap
def test_dds_switch_youtube_and_voice_mt_psim_5g_nsa_csfb_esim_5g_nsa_csfb(self):
return dds_switch_during_data_transfer_test(
self.log,
self.tel_logger,
self.android_devices,
nw_rat=["5g_csfb", "5g_csfb"],
call_slot=0,
call_direction="mt")
@test_tracker_info(uuid="854634e8-7a2a-4d14-8269-8f4f463f8f56")
@TelephonyBaseTest.tel_test_wrap
def test_dds_switch_youtube_and_voice_mo_esim_5g_nsa_csfb_psim_5g_nsa_csfb(self):
return dds_switch_during_data_transfer_test(
self.log,
self.tel_logger,
self.android_devices,
nw_rat=["5g_csfb", "5g_csfb"],
call_slot=1,
call_direction="mo")
@test_tracker_info(uuid="02478b9e-6bf6-4148-bbc4-0cbdf59f1625")
@TelephonyBaseTest.tel_test_wrap
def test_dds_switch_youtube_and_voice_mt_esim_5g_nsa_csfb_psim_5g_nsa_csfb(self):
return dds_switch_during_data_transfer_test(
self.log,
self.tel_logger,
self.android_devices,
nw_rat=["5g_csfb", "5g_csfb"],
call_slot=1,
call_direction="mt")