Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
external_bluetooth_bluedroid
Commits
07ea194a
Commit
07ea194a
authored
11 years ago
by
Zhihai Xu
Committed by
Android (Google) Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "DO NOT MERGE use bluetooth HID remote device name as input device name." into klp-dev
parents
f677f810
ad73b9c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
btif/src/btif_hh.c
btif/src/btif_hh.c
+12
-3
No files found.
btif/src/btif_hh.c
View file @
07ea194a
...
...
@@ -938,9 +938,18 @@ static void btif_hh_upstreams_evt(UINT16 event, char* p_param)
}
{
char
*
cached_name
=
NULL
;
char
name
[]
=
"Broadcom Bluetooth HID"
;
if
(
cached_name
==
NULL
)
{
cached_name
=
name
;
bt_bdname_t
bdname
;
bt_property_t
prop_name
;
BTIF_STORAGE_FILL_PROPERTY
(
&
prop_name
,
BT_PROPERTY_BDNAME
,
sizeof
(
bt_bdname_t
),
&
bdname
);
if
(
btif_storage_get_remote_device_property
(
&
p_dev
->
bd_addr
,
&
prop_name
)
==
BT_STATUS_SUCCESS
)
{
cached_name
=
(
char
*
)
bdname
.
name
;
}
else
{
cached_name
=
"Bluetooth HID"
;
}
BTIF_TRACE_WARNING2
(
"%s: name = %s"
,
__FUNCTION__
,
cached_name
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment