Exemplo n.º 1
0
    def setup_class(self):
        if not self.scn_ad.droid.bluetoothIsLeExtendedAdvertisingSupported():
            raise signals.TestSkipClass(
                "Scanner does not support LE Extended Advertising")

        if not self.adv_ad.droid.bluetoothIsLeExtendedAdvertisingSupported():
            raise signals.TestSkipClass(
                "Advertiser does not support LE Extended Advertising")
Exemplo n.º 2
0
    def setup_class(self):
        if not self.cen_ad.droid.bluetoothIsLe2MPhySupported():
            raise signals.TestSkipClass(
                "Central device does not support LE 2M PHY")

        if not self.per_ad.droid.bluetoothIsLe2MPhySupported():
            raise signals.TestSkipClass(
                "Peripheral device does not support LE 2M PHY")
Exemplo n.º 3
0
 def test_wfc_apm_parallel_stress(self):
     """ Wifi calling in APM mode on stress test"""
     if CAPABILITY_WFC not in self.dut_capabilities:
         raise signals.TestSkipClass("WFC is not supported")
     return self.parallel_tests(
         setup_func=self._setup_wfc_apm,
         call_verification_func=is_phone_in_call_iwlan)
Exemplo n.º 4
0
 def test_lte_volte_parallel_stress(self):
     """ VoLTE on stress test"""
     if CAPABILITY_VOLTE not in self.dut_capabilities:
         raise signals.TestSkipClass("VoLTE is not supported")
     return self.parallel_tests(
         setup_func=self._setup_lte_volte_enabled,
         call_verification_func=is_phone_in_call_volte)
Exemplo n.º 5
0
 def test_wfc_parallel_stress(self):
     """ Wifi calling APM mode off stress test"""
     if CAPABILITY_WFC not in self.dut_capabilities:
         raise signals.TestSkipClass("WFC is not supported")
     if WFC_MODE_WIFI_PREFERRED not in self.dut_wfc_modes:
         raise signals.TestSkip("WFC_MODE_WIFI_PREFERRED is not supported")
     return self.parallel_tests(
         setup_func=self._setup_wfc,
         call_verification_func=is_phone_in_call_iwlan)
Exemplo n.º 6
0
    def setup_class(self):
        super(BtOtaTest, self).setup_class()
        ota_updater.initialize(self.user_params, self.android_devices)
        self.dut = self.android_devices[0]
        self.pre_ota_name = self.dut.droid.bluetoothGetLocalName()
        self.pre_ota_address = self.dut.droid.bluetoothGetLocalAddress()
        self.sec_address = self.android_devices[
            1].droid.bluetoothGetLocalAddress()

        # Pairing devices
        if not pair_pri_to_sec(self.dut, self.android_devices[1]):
            raise signals.TestSkipClass(
                "Failed to bond devices prior to update")

        #Run OTA below, if ota fails then abort all tests
        try:
            ota_updater.update(self.dut)
        except Exception as err:
            raise signals.TestSkipClass(
                "Failed up apply OTA update. Aborting tests")
Exemplo n.º 7
0
    def setup_class(self):
        TelephonyBaseTest.setup_class(self)
        self.dut = self.android_devices[0]
        self.number_of_devices = 1
        self.skip_reset_between_cases = False
        self.carrier_configs = dumpsys_carrier_config(self.dut)
        self.dut_capabilities = self.dut.telephony.get("capabilities", [])
        self.dut.log.info("DUT capabilities: %s", self.dut_capabilities)
        if CAPABILITY_VOLTE not in self.dut_capabilities:
            raise signals.TestSkipClass("VoLTE is not supported")
        if CAPABILITY_WFC not in self.dut_capabilities:
            raise signals.TestSkipClass("WFC is not supported")

        self.default_volte = (CAPABILITY_VOLTE in self.dut_capabilities) and (
            self.carrier_configs[
                CarrierConfigs.ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL])
        self.default_wfc_enabled = (
            CAPABILITY_WFC in self.dut_capabilities) and (self.carrier_configs[
                CarrierConfigs.DEFAULT_WFC_IMS_ENABLED_BOOL])
        self.default_wfc_mode = self.carrier_configs.get(
            CarrierConfigs.DEFAULT_WFC_IMS_MODE_INT, None)
        self.dut_wfc_modes = self.dut.telephony.get("wfc_modes", [])
Exemplo n.º 8
0
 def test_volte_modeprefchange_parallel_stress(self):
     """ VoLTE Mode Pref call stress test"""
     if CAPABILITY_VOLTE not in self.dut_capabilities:
         raise signals.TestSkipClass("VoLTE is not supported")
     return self.parallel_with_network_change_tests(
         setup_func=self._setup_lte_volte_enabled)