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
35d2974f
Commit
35d2974f
authored
1 year ago
by
Kyunglyul Hyun
Committed by
Gerrit Code Review
1 year ago
Browse files
Options
Downloads
Plain Diff
Merge "Enable a skipped PBAP test" into main
parents
71bdb54d
f5563e0d
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/server/configs/pts_bot_tests_config.json
+2
-2
2 additions, 2 deletions
android/pandora/server/configs/pts_bot_tests_config.json
android/pandora/server/src/Pbap.kt
+16
-0
16 additions, 0 deletions
android/pandora/server/src/Pbap.kt
with
18 additions
and
2 deletions
android/pandora/server/configs/pts_bot_tests_config.json
+
2
−
2
View file @
35d2974f
...
...
@@ -550,6 +550,7 @@
"PBAP/PSE/GOEP/SRM/BI-03-C"
,
"PBAP/PSE/GOEP/SRM/BI-05-C"
,
"PBAP/PSE/GOEP/SRM/BV-08-C"
,
"PBAP/PSE/GOEP/SRMP/BI-02-C"
,
"PBAP/PSE/GOEP/SRMP/BV-02-C"
,
"PBAP/PSE/PBB/BI-01-C"
,
"PBAP/PSE/PBB/BI-07-C"
,
...
...
@@ -994,7 +995,6 @@
"PAN/NAP/MISC/UUID/BV-02-C"
,
"PAN/PANU/IP/APP/BV-04-I"
,
"PAN/PANU/IPv4/AUTONET/BV-01-I"
,
"PBAP/PSE/GOEP/SRMP/BI-02-C"
,
"PBAP/PSE/SSM/BV-07-C"
,
"RFCOMM/DEVA-DEVB/RFC/BV-21-C"
,
"RFCOMM/DEVA-DEVB/RFC/BV-22-C"
,
...
...
@@ -2219,4 +2219,4 @@
"SUM ICS"
:
{},
"VCP"
:
{}
}
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
android/pandora/server/src/Pbap.kt
+
16
−
0
View file @
35d2974f
...
...
@@ -94,6 +94,7 @@ class Pbap(val context: Context) : PBAPImplBase(), Closeable {
val
displayName
=
String
.
format
(
DEFAULT_DISPLAY_NAME
,
contactIndex
)
val
phoneNumber
=
generatePhoneNumber
(
PHONE_NUM_LENGTH
)
val
emailID
=
String
.
format
(
DEFAULT_EMAIL_ID
,
contactIndex
)
val
note
=
String
.
format
(
DEFAULT_NOTE
,
contactIndex
)
val
rawContactInsertIndex
=
operations
.
size
operations
.
add
(
...
...
@@ -129,6 +130,14 @@ class Pbap(val context: Context) : PBAPImplBase(), Closeable {
.
build
()
)
operations
.
add
(
ContentProviderOperation
.
newInsert
(
Data
.
CONTENT_URI
)
.
withValueBackReference
(
Data
.
RAW_CONTACT_ID
,
rawContactInsertIndex
)
.
withValue
(
Data
.
MIMETYPE
,
Note
.
CONTENT_ITEM_TYPE
)
.
withValue
(
Note
.
NOTE
,
note
)
.
build
()
)
context
.
getContentResolver
().
applyBatch
(
ContactsContract
.
AUTHORITY
,
operations
)
}
...
...
@@ -146,5 +155,12 @@ class Pbap(val context: Context) : PBAPImplBase(), Closeable {
const
val
DEFAULT_EMAIL_ID
=
"user%d@example.com"
const
val
CONTACT_LIST_SIZE
=
125
const
val
PHONE_NUM_LENGTH
=
10
const
val
DEFAULT_NOTE
=
"""
%d Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Vivamus condimentum rhoncus est volutpat venenatis.
Fusce semper, sapien ut venenatis pellentesque,
lorem dui aliquam sapien, non pharetra diam neque id mi.
"""
}
}
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