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
083cbb43
Commit
083cbb43
authored
3 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Plumb address resolution through main"
parents
7ec0cb04
d96e2b89
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
system/main/shim/acl_api.cc
+19
-0
19 additions, 0 deletions
system/main/shim/acl_api.cc
system/main/shim/acl_api.h
+7
-0
7 additions, 0 deletions
system/main/shim/acl_api.h
system/test/mock/mock_main_shim_acl_api.cc
+15
-0
15 additions, 0 deletions
system/test/mock/mock_main_shim_acl_api.cc
with
41 additions
and
0 deletions
system/main/shim/acl_api.cc
+
19
−
0
View file @
083cbb43
...
...
@@ -107,3 +107,22 @@ void bluetooth::shim::ACL_ReadConnectionAddress(const RawAddress& pseudo_addr,
conn_addr
=
ToRawAddress
(
local_address
.
GetAddress
());
*
p_addr_type
=
static_cast
<
uint8_t
>
(
local_address
.
GetAddressType
());
}
void
bluetooth
::
shim
::
ACL_AddToAddressResolution
(
const
tBLE_BD_ADDR
&
legacy_address_with_type
,
const
Octet16
&
peer_irk
,
const
Octet16
&
local_irk
)
{
Stack
::
GetInstance
()
->
GetAcl
()
->
AddToAddressResolution
(
ToAddressWithType
(
legacy_address_with_type
.
bda
,
legacy_address_with_type
.
type
),
peer_irk
,
local_irk
);
}
void
bluetooth
::
shim
::
ACL_RemoveFromAddressResolution
(
const
tBLE_BD_ADDR
&
legacy_address_with_type
)
{
Stack
::
GetInstance
()
->
GetAcl
()
->
RemoveFromAddressResolution
(
ToAddressWithType
(
legacy_address_with_type
.
bda
,
legacy_address_with_type
.
type
));
}
void
bluetooth
::
shim
::
ACL_ClearAddressResolution
()
{
Stack
::
GetInstance
()
->
GetAcl
()
->
ClearAddressResolution
();
}
This diff is collapsed.
Click to expand it.
system/main/shim/acl_api.h
+
7
−
0
View file @
083cbb43
...
...
@@ -40,5 +40,12 @@ void ACL_IgnoreAllLeConnections();
void
ACL_ReadConnectionAddress
(
const
RawAddress
&
pseudo_addr
,
RawAddress
&
conn_addr
,
uint8_t
*
p_addr_type
);
void
ACL_AddToAddressResolution
(
const
tBLE_BD_ADDR
&
legacy_address_with_type
,
const
Octet16
&
peer_irk
,
const
Octet16
&
local_irk
);
void
ACL_RemoveFromAddressResolution
(
const
tBLE_BD_ADDR
&
legacy_address_with_type
);
void
ACL_ClearAddressResolution
();
}
// namespace shim
}
// namespace bluetooth
This diff is collapsed.
Click to expand it.
system/test/mock/mock_main_shim_acl_api.cc
+
15
−
0
View file @
083cbb43
...
...
@@ -29,6 +29,7 @@ extern std::map<std::string, int> mock_function_count_map;
#include
"main/shim/acl_api.h"
#include
"stack/include/bt_hdr.h"
#include
"stack/include/bt_octets.h"
#include
"types/ble_address_with_type.h"
#include
"types/raw_address.h"
...
...
@@ -71,3 +72,17 @@ void bluetooth::shim::ACL_ReadConnectionAddress(const RawAddress& pseudo_addr,
uint8_t
*
p_addr_type
)
{
mock_function_count_map
[
__func__
]
++
;
}
void
bluetooth
::
shim
::
ACL_AddToAddressResolution
(
const
tBLE_BD_ADDR
&
legacy_address_with_type
,
const
Octet16
&
peer_irk
,
const
Octet16
&
local_irk
)
{
mock_function_count_map
[
__func__
]
++
;
}
void
bluetooth
::
shim
::
ACL_RemoveFromAddressResolution
(
const
tBLE_BD_ADDR
&
legacy_address_with_type
)
{
mock_function_count_map
[
__func__
]
++
;
}
void
bluetooth
::
shim
::
ACL_ClearAddressResolution
()
{
mock_function_count_map
[
__func__
]
++
;
}
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