Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_packages_modules_Bluetooth
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LMODroid
platform_packages_modules_Bluetooth
Commits
62b87165
Commit
62b87165
authored
2 years ago
by
Charlie Boutier
Committed by
Gerrit Code Review
2 years ago
Browse files
Options
Downloads
Plain Diff
Merge "[PTS-Bot]: Added 3 AVCTP test cases"
parents
925d7340
b444ed28
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
android/pandora/mmi2grpc/mmi2grpc/avrcp.py
+166
-0
166 additions, 0 deletions
android/pandora/mmi2grpc/mmi2grpc/avrcp.py
android/pandora/server/configs/pts_bot_tests_config.json
+3
-3
3 additions, 3 deletions
android/pandora/server/configs/pts_bot_tests_config.json
with
169 additions
and
3 deletions
android/pandora/mmi2grpc/mmi2grpc/avrcp.py
+
166
−
0
View file @
62b87165
...
...
@@ -793,3 +793,169 @@ class AVRCPProxy(ProfileProxy):
self
.
mediaplayer
.
Play
()
return
"
OK
"
@assert_description
def
_mmi_1016
(
self
,
test
:
str
,
pts_addr
:
bytes
,
**
kwargs
):
"""
Create an AVDTP signaling channel.
Action: Create an audio or video
connection with PTS.
"""
self
.
connection
=
self
.
host
.
Connect
(
address
=
pts_addr
).
connection
if
"
TG
"
in
test
:
try
:
self
.
source
=
self
.
a2dp
.
OpenSource
(
connection
=
self
.
connection
).
source
except
RpcError
:
pass
else
:
try
:
self
.
sink
=
self
.
a2dp
.
WaitSink
(
connection
=
self
.
connection
).
sink
except
RpcError
:
pass
return
"
OK
"
@assert_description
def
TSC_AVCTP_mmi_send_AVCT_ConnectReq
(
self
,
pts_addr
:
bytes
,
**
kwargs
):
"""
Using the Upper Tester, send an AVCT_ConnectReq command to the IUT with
the following input parameter values:
* BD_ADDR = BD_ADDRLower_Tester
* PID = PIDTest_System
The IUT should then initiate an
L2CAP_ConnectReq.
"""
return
"
OK
"
@assert_description
def
TSC_AVCTP_mmi_verify_ConnectCfm_CB
(
self
,
pts_addr
:
bytes
,
**
kwargs
):
"""
Press
'
OK
'
if the following conditions were met :
1. The IUT returns
the following AVCT_ConnectReq output parameters to the Upper Tester:
* Result = 0x0000 (Event successfully registered)
2. The IUT calls the
ConnectCfm_CBTest_System function in the Upper Tester with the following
parameters:
* BD_ADDR = BD_ADDRLower_Tester
* Connect Result =
0x0000 (L2CAP Connect Request successful)
* Config Result = 0x0000
(L2CAP Configure successful)
* Status = L2CAP Connect Request Status
"""
return
"
OK
"
@assert_description
def
TSC_AVCTP_mmi_register_DisconnectCfm_CB
(
self
,
pts_addr
:
bytes
,
**
kwargs
):
"""
Using the Upper Tester register the function DisconnectCfm_CBTest_System
for callback on the AVCT_Disconnect_Cfm event by sending an
AVCT_EventRegistration command to the IUT with the following parameter
values:
* Event = AVCT_Disconnect_Cfm
* Callback =
DisconnectCfm_CBTest_System
* PID = PIDTest_System
Press
'
OK
'
to
continue once the IUT has responded.
"""
return
"
OK
"
def
TSC_AVCTP_mmi_send_AVCT_Disconnect_Req
(
self
,
test
:
str
,
pts_addr
:
bytes
,
**
kwargs
):
"""
Using the Upper Tester send an AVCT_DisconnectReq command to the IUT
with the following parameter values:
* BD_ADDR = BD_ADDRLower_Tester
* PID = PIDTest_System
The IUT should then initiate an
L2CAP_DisconnectReq.
"""
# Currently disconnect is required in TG role
if
"
TG
"
in
test
:
if
self
.
connection
is
None
:
self
.
connection
=
self
.
host
.
GetConnection
(
address
=
pts_addr
).
connection
time
.
sleep
(
3
)
self
.
host
.
Disconnect
(
connection
=
self
.
connection
)
self
.
connection
=
None
return
"
OK
"
@assert_description
def
TSC_AVCTP_mmi_verify_DisconnectCfm_CB
(
self
,
**
kwargs
):
"""
Press
'
OK
'
if the following conditions were met :
1. The IUT returns
the following AVCT_EventRegistration output parameters to the Upper
Tester:
* Result = 0x0000 (Event successfully registered)
2. The IUT
calls the DisconnectCfm_CBTest_System function in the Upper Tester with
the following parameter values:
* BD_ADDR = BD_ADDRLower_Tester
*
Disconnect Result = 0x0000 (L2CAP disconnect success)
3. The IUT
returns the following AVCT_DisconnectReq output parameter values to the
Upper Tester:
* RSP = 0x0000 (Request accepted)
"""
return
"
OK
"
@assert_description
def
TSC_AVCTP_mmi_send_AVCT_SendMessage_TG
(
self
,
**
kwargs
):
"""
Upon a call to the call back function MessageInd_CBTest_System, use the
Upper Tester to send an AVCT_SendMessage command to the IUT with the
following parameter values:
* BD_ADDR = BD_ADDRTest_System
*
Transaction = TRANSTest_System
* Type = CRTest_System = 1 (Response
Message)
* PID = PIDTest_System
* Data = ADDRESSdata_buffer
(Buffer containing DATA[]Upper_Tester)
* Length =
LengthOf(DATA[]Upper_Tester) <= MTU – 3bytes
"""
return
"
OK
"
@assert_description
def
TSC_AVCTP_mmi_verify_MessageInd_CB_TG
(
self
,
**
kwargs
):
"""
Press
'
OK
'
if the following conditions were met :
1. The
MessageInd_CBTest_System function in the Upper Tester is called with the
following parameters:
* BD_ADDR = BD_ADDRLower_Tester
*
Transaction = TRANSTest_System
* Type = 0x00 (Command message)
*
Data = ADDRESSdata_buffer (Buffer containing DATA[]Lower_Tester)
*
Length = LengthOf(DATA[]Lower_Tester)
2. the IUT returns the following
AVCT_SendMessage output parameters to the Upper Tester:
* Result =
0x0000 (Request accepted)
"""
return
"
OK
"
This diff is collapsed.
Click to expand it.
android/pandora/server/configs/pts_bot_tests_config.json
+
3
−
3
View file @
62b87165
...
...
@@ -25,10 +25,13 @@
"A2DP/SRC/SUS/BV-01-I"
,
"AVCTP/CT/CCM/BV-03-C"
,
"AVCTP/CT/CCM/BV-04-C"
,
"AVCTP/TG/CCM/BV-01-C"
,
"AVCTP/TG/CCM/BV-02-C"
,
"AVCTP/TG/CCM/BV-03-C"
,
"AVCTP/TG/CCM/BV-04-C"
,
"AVCTP/TG/FRA/BV-03-C"
,
"AVCTP/TG/NFR/BI-01-C"
,
"AVCTP/TG/NFR/BV-02-C"
,
"AVCTP/TG/NFR/BV-03-C"
,
"AVDTP/SNK/ACP/SIG/SMG/BI-05-C"
,
"AVDTP/SNK/ACP/SIG/SMG/BI-08-C"
,
...
...
@@ -551,10 +554,7 @@
"AVCTP/CT/FRA/BV-04-C"
,
"AVCTP/CT/NFR/BV-01-C"
,
"AVCTP/CT/NFR/BV-04-C"
,
"AVCTP/TG/CCM/BV-01-C"
,
"AVCTP/TG/CCM/BV-02-C"
,
"AVCTP/TG/FRA/BV-02-C"
,
"AVCTP/TG/NFR/BV-02-C"
,
"AVDTP/SNK/ACP/SIG/SMG/BI-11-C"
,
"AVDTP/SNK/ACP/SIG/SMG/BI-23-C"
,
"AVDTP/SNK/ACP/SIG/SMG/BV-14-C"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment