Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1513c6f0 authored by Henri Chataing's avatar Henri Chataing Committed by Gerrit Code Review
Browse files

Merge "pandora: Add missing MMIs for PTS Setup v8.4.1"

parents 15c32ffa 2a9dbd70
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -631,3 +631,12 @@ class A2DPProxy(ProfileProxy):
        """
        # TODO: verify
        return "OK"

    @match_description
    def TSC_A2DP_mmi_iut_reject_set_configuration_error_code(self, **kwargs):
        """
        Please prepare the IUT to reject an AVDTP SET CONFIGURATION command with
        error code (?P<errorcode>[A-Z_]+), then press 'OK' to continue.
        """

        return "OK"
+1 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ from pandora.host_pb2 import Connection
from pandora_experimental.mediaplayer_grpc import MediaPlayer
from pandora_experimental.mediaplayer_pb2 import NONE, ALL, GROUP


class AVRCPProxy(ProfileProxy):
    """AVRCP proxy.

+11 −0
Original line number Diff line number Diff line
@@ -848,6 +848,17 @@ class GATTProxy(ProfileProxy):
        characteristics if needed.
        """

        return self.MMI_IUT_WRITE_SUPPORT_FEATURE_MULTIPLE_HANDLE_VALUE(description, **kwargs)

    def MMI_IUT_WRITE_SUPPORT_FEATURE_MULTIPLE_HANDLE_VALUE(self, description: str, **kwargs):
        """
        Please send an ATT_Write_Request to Client Support Features handle =
        'XXXX'O to enable Multiple Handle Value Notifications.

        Discover all
        characteristics if needed.
        """

        assert self.connection is not None
        handle = stringHandleToInt(re.findall("'([a0-Z9]*)'O", description)[0])
        data = bytes([4])  # Multiple Handle Value Notifications
+28 −0
Original line number Diff line number Diff line
@@ -247,6 +247,16 @@ class L2CAPProxy(ProfileProxy):

    @assert_description
    def _mmi_135(self, test: str, **kwargs):
        """
        Please make sure an authentication requirement exists for a channel
        L2CAP.
        When receiving Credit Based Connection Request from PTS, please
        respond with Result 0x0005 (Insufficient Authentication)
        """
        return self.MMI_IUT_SEND_INSUFFICIENT_AUTHENTICATION_ON_LE(test, **kwargs)

    @assert_description
    def MMI_IUT_SEND_INSUFFICIENT_AUTHENTICATION_ON_LE(self, test: str, **kwargs):
        """
        Please make sure an authentication requirement exists for a channel
        L2CAP.
@@ -260,6 +270,16 @@ class L2CAPProxy(ProfileProxy):

    @assert_description
    def _mmi_136(self, **kwargs):
        """
        Please make sure an authorization requirement exists for a channel
        L2CAP.
        When receiving Credit Based Connection Request from PTS, please
        respond with Result 0x0006 (Insufficient Authorization)
        """
        return self.MMI_IUT_SEND_INSUFFICIENT_AUTHORIZATION_ON_LE(**kwargs)

    @assert_description
    def MMI_IUT_SEND_INSUFFICIENT_AUTHORIZATION_ON_LE(self, **kwargs):
        """
        Please make sure an authorization requirement exists for a channel
        L2CAP.
@@ -503,3 +523,11 @@ class L2CAPProxy(ProfileProxy):
        """

        return "OK"

    @assert_description
    def MMI_IUT_SEND_L2CAP_CONNECTION_REQ(self, **kwargs):
        """
        Please send L2CAP Connection REQ to PTS.
        """

        return "OK"
+34 −0
Original line number Diff line number Diff line
@@ -57,6 +57,14 @@ class SDPProxy(ProfileProxy):
        If necessary take action to accept the SDP channel connection.
        """

        return self.TSC_SDP_mmi_iut_accept_connection(**kwargs)

    @assert_description
    def TSC_SDP_mmi_iut_accept_connection(self, **kwargs):
        """
        If necessary take action to accept the SDP channel connection.
        """

        return "OK"

    @assert_description
@@ -66,6 +74,15 @@ class SDPProxy(ProfileProxy):
        appropriately.
        """

        return self.TSC_SDP_mmi_iut_accept_service_attribute(**kwargs)

    @assert_description
    def TSC_SDP_mmi_iut_accept_service_attribute(self, **kwargs):
        """
        If necessary take action to respond to the Service Attribute operation
        appropriately.
        """

        return "OK"

    @assert_description
@@ -74,6 +91,14 @@ class SDPProxy(ProfileProxy):
        If necessary take action to accept the Service Search operation.
        """

        return self.TSC_SDP_mmi_iut_accept_service_search(**kwargs)

    @assert_description
    def TSC_SDP_mmi_iut_accept_service_search(self, **kwargs):
        """
        If necessary take action to accept the Service Search operation.
        """

        return "OK"

    @assert_description
@@ -83,6 +108,15 @@ class SDPProxy(ProfileProxy):
        operation appropriately.
        """

        return self.TSC_SDP_mmi_iut_accept_service_search_attribute(**kwargs)

    @assert_description
    def TSC_SDP_mmi_iut_accept_service_search_attribute(self, **kwargs):
        """
        If necessary take action to respond to the Service Search Attribute
        operation appropriately.
        """

        return "OK"

    @match_description