Loading android/pandora/mmi2grpc/mmi2grpc/a2dp.py +9 −0 Original line number Diff line number Diff line Loading @@ -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" android/pandora/mmi2grpc/mmi2grpc/avrcp.py +1 −0 Original line number Diff line number Diff line Loading @@ -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. Loading android/pandora/mmi2grpc/mmi2grpc/gatt.py +11 −0 Original line number Diff line number Diff line Loading @@ -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 Loading android/pandora/mmi2grpc/mmi2grpc/l2cap.py +28 −0 Original line number Diff line number Diff line Loading @@ -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. Loading @@ -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. Loading Loading @@ -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" android/pandora/mmi2grpc/mmi2grpc/sdp.py +34 −0 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading Loading
android/pandora/mmi2grpc/mmi2grpc/a2dp.py +9 −0 Original line number Diff line number Diff line Loading @@ -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"
android/pandora/mmi2grpc/mmi2grpc/avrcp.py +1 −0 Original line number Diff line number Diff line Loading @@ -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. Loading
android/pandora/mmi2grpc/mmi2grpc/gatt.py +11 −0 Original line number Diff line number Diff line Loading @@ -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 Loading
android/pandora/mmi2grpc/mmi2grpc/l2cap.py +28 −0 Original line number Diff line number Diff line Loading @@ -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. Loading @@ -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. Loading Loading @@ -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"
android/pandora/mmi2grpc/mmi2grpc/sdp.py +34 −0 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading