def test_if_support_a2dp_profile(self):
     """ Test that a single device can support A2DP profile.
     Steps
     1. Initialize one android devices
     2. Check devices support profiles and return a dictionary
     3. Check the value of key 'a2dp'
     :return: test_result: bool
     """
     profiles = check_device_supported_profiles(self.droid_ad.droid)
     if not profiles['a2dp']:
         self.log.debug("Android device do not support A2DP profile.")
         return False
     return True
示例#2
0
 def test_if_support_pbap_client_profile(self):
     """ Test that a single device can support PBAP PCE profile.
     Steps
     1. Initialize one android devices
     2. Check devices support profiles and return a dictionary
     3. Check the value of key 'pbap_client'
     :return: test_result: bool
     """
     profiles = check_device_supported_profiles(self.car_ad.droid)
     if not profiles['pbap_client']:
         self.car_ad.log.debug(
             "Android device do not support PBAP Client profile.")
         return False
     return True
    def test_if_support_hid_profile(self):
        """ Test that a single device can support HID profile.
        Steps
        1. Initialize one android devices
        2. Check devices support profiles and return a dictionary
        3. Check the value of key 'hid'

        Expected Result:
        Device1 is in the discovered devices list.

        Returns:
          Pass if True
          Fail if False

        TAGS: Classic
        Priority: 1
        """
        profiles = check_device_supported_profiles(self.droid_ad.droid)
        if not profiles['hid']:
            self.log.debug("Android device do not support HID profile.")
            return False
        return True