OSDN Git Service
Pavlin Radoslavov [Mon, 17 Apr 2017 22:45:26 +0000 (22:45 +0000)]
Add missing NULL pointer assignment after fixed_queue_free and alarm_free am:
86ae6c0200 am:
804f314dcc
am:
fc5f89b8fb
Change-Id: I88427349979009fc14110649adb1436539df9eaf
Pavlin Radoslavov [Mon, 17 Apr 2017 22:32:21 +0000 (22:32 +0000)]
Add missing NULL pointer assignment after fixed_queue_free and alarm_free am:
86ae6c0200
am:
804f314dcc
Change-Id: I2dad2cf7bdfc2d067fb1665b370917397830051a
Pavlin Radoslavov [Mon, 17 Apr 2017 22:27:50 +0000 (22:27 +0000)]
Add missing NULL pointer assignment after fixed_queue_free and alarm_free
am:
86ae6c0200
Change-Id: I611bb32f00f1665707d810f7355b20ec696cb2b9
Pavlin Radoslavov [Fri, 14 Apr 2017 10:45:18 +0000 (03:45 -0700)]
Add missing NULL pointer assignment after fixed_queue_free and alarm_free
Bug:
37285767
Test: Code compilation
Change-Id: I53f759ea477079b0b6aed4bcbeefb645886263d6
Andre Eisenbach [Fri, 14 Apr 2017 07:59:32 +0000 (07:59 +0000)]
Do not remove device security record on LMP timeout
am:
4f484079fd
Change-Id: If1eb044333ea61e87847ad3cae8edb493ded887e
Pavlin Radoslavov [Fri, 14 Apr 2017 07:27:57 +0000 (07:27 +0000)]
Fix a race condition during HCI module shutdown am:
a3292051d9 am:
95ea3f7a15
am:
c343d03ed4
Change-Id: I9ace0008c743f8ad3de7da02e37ca0d9319a2065
Pavlin Radoslavov [Fri, 14 Apr 2017 07:21:00 +0000 (07:21 +0000)]
Fix a race condition during HCI module shutdown am:
a3292051d9
am:
95ea3f7a15
Change-Id: I29ca75b6c67266a5a2564dcce9ad3c3103d7ed71
Pavlin Radoslavov [Fri, 14 Apr 2017 07:13:59 +0000 (07:13 +0000)]
Fix a race condition during HCI module shutdown
am:
a3292051d9
Change-Id: I2116b3d5e0c992a4fbd35745ee5c9b3f14fdb1a9
Pavlin Radoslavov [Thu, 13 Apr 2017 21:33:30 +0000 (14:33 -0700)]
Fix a race condition during HCI module shutdown
If an HCI event (e.g., incoming event) happens during
HCI module shutdown, and the processing of that event
calls update_command_response_timer() right after
"alarm_free(command_response_timer)" in the beginning
of hci_module_shut_down(), then update_command_response_timer()
will try to schedule an alarm on command_response_timer that is NULL.
Test: Enable/disable Bluetooth, added unit tests
Bug:
37241256
Change-Id: I7fd58446caedc135e906953644201f88b5df32bb
Andre Eisenbach [Thu, 13 Apr 2017 21:49:36 +0000 (14:49 -0700)]
Do not remove device security record on LMP timeout
If an LMP timeout is encountered in the middle of authentication, the
link key is removed from the controller (but not from NVRAM). This can
result in a follow up connction triggering a LINK_KEY_MISSING reply,
which in turn can cause a remote device to initiate pairing which will
then finally remove the link key stored in NVRAM as well.
This change prevents the link key from being removed from the Bluetooth
controller in case of a timeout during link authentication.
Bug:
36798442
Test: manual
Change-Id: Ic89a16b45756e3d40b2e374c645c8f245f6ce3fc
(cherry picked from commit
1f5ec7304fc4e297f9f9868b5bd9382c2a26c8cc)
Po-Chien Hsueh [Fri, 14 Apr 2017 03:04:56 +0000 (03:04 +0000)]
Merge "Move audio.a2dp.default to vendor" into oc-dev
am:
81eba70e0d
Change-Id: I83bf5d47624f8ac4bf248ad8dce4a9b72b7e2e4f
TreeHugger Robot [Fri, 14 Apr 2017 02:45:48 +0000 (02:45 +0000)]
Merge "Move audio.a2dp.default to vendor" into oc-dev
Andre Eisenbach [Fri, 14 Apr 2017 00:55:34 +0000 (00:55 +0000)]
Do not remove device security record on LMP timeout am:
1f5ec7304f am:
688e5d66e8
am:
423e58a4ec
Change-Id: Ica760836df055e5c09c82d3af73592983418fa43
Andre Eisenbach [Fri, 14 Apr 2017 00:50:12 +0000 (00:50 +0000)]
Do not remove device security record on LMP timeout am:
1f5ec7304f
am:
688e5d66e8
Change-Id: Icb4aace3361dd0238ce9f68120f7442d6ea596e4
Andre Eisenbach [Fri, 14 Apr 2017 00:44:32 +0000 (00:44 +0000)]
Do not remove device security record on LMP timeout
am:
1f5ec7304f
Change-Id: I429d8cfb4d048174764400096de655777411410c
Andre Eisenbach [Thu, 13 Apr 2017 21:49:36 +0000 (14:49 -0700)]
Do not remove device security record on LMP timeout
If an LMP timeout is encountered in the middle of authentication, the
link key is removed from the controller (but not from NVRAM). This can
result in a follow up connction triggering a LINK_KEY_MISSING reply,
which in turn can cause a remote device to initiate pairing which will
then finally remove the link key stored in NVRAM as well.
This change prevents the link key from being removed from the Bluetooth
controller in case of a timeout during link authentication.
Bug:
36798442
Test: manual
Change-Id: Ic89a16b45756e3d40b2e374c645c8f245f6ce3fc
Yoshiharu Kurita [Thu, 13 Apr 2017 20:25:43 +0000 (20:25 +0000)]
Merge "HFP: Disable BTRH feature" into oc-dev
am:
d084b7c9ac
Change-Id: Ib1bc691a92b1a47624321011cfd7b8a94fd6f02b
Jack He [Thu, 13 Apr 2017 20:08:16 +0000 (20:08 +0000)]
Add support for inband ringing feature
am:
9cb269c25b
Change-Id: Icbc6277f714e2c0c045f73b983f169d579214956
TreeHugger Robot [Thu, 13 Apr 2017 20:05:37 +0000 (20:05 +0000)]
Merge "HFP: Disable BTRH feature" into oc-dev
Po-Chien Hsueh [Tue, 7 Mar 2017 02:27:21 +0000 (10:27 +0800)]
Move audio.a2dp.default to vendor
Default HAL should go to /vendor/.
Bug:
35907904
Bug:
35979581
Test: Compiled and checked install path. Verified on Sailfish with
$ lsof | grep default. MP3 playback over my BT headset.
Change-Id: I93a341cc96b8d991dea52070f633566bf71f0dc0
Yoshiharu Kurita [Wed, 25 Nov 2015 09:00:30 +0000 (18:00 +0900)]
HFP: Disable BTRH feature
Fluoride does not notify application layer upon AT+BTRH, and always
sends error response (BTRH is not supported) to remote device.
That is, Fluoride does not support BTRH feature.
But BTRH is enabled by default, so OK is sent to remote device by mistake
before the error response is sent. This makes some carkits unstable.
Bug:
29587048
Test: make, PTS test
Change-Id: If1aa32291491982851ecd480c4ba8390f39a27a2
Merged-In: If1aa32291491982851ecd480c4ba8390f39a27a2
(cherry picked from commit
a25ef0b60b4ca10385dac02334dc3e4e2ad23edb)
Jack He [Fri, 3 Feb 2017 01:42:40 +0000 (17:42 -0800)]
Add support for inband ringing feature
* Change HFP init API so that the HFP feature bit field depends on
whether in-band ringing is supported on the device
* Feature disabled by default unless system property enables it
Bug:
19171297
Test: mm -j 40, HFP regression test, testplans/82144
Change-Id: Ib8ba28ac6e70eb23b2a2ad11c5805793911a4e43
(cherry picked from commit
7a9892c63bad8f8d93681fb74d5532a79387b60e)
Pavlin Radoslavov [Wed, 12 Apr 2017 19:34:28 +0000 (19:34 +0000)]
Reduce the audio A2DP HAL output audio stream buffer size
am:
9db04a2c01
Change-Id: I9548b399ad6ca3fc156bb69453a5e668006fa725
Pavlin Radoslavov [Wed, 12 Apr 2017 02:45:24 +0000 (02:45 +0000)]
Reduce the audio A2DP HAL output audio stream buffer size am:
5e9f56940e am:
c7fe75f5a0
am:
320cf5cc13
Change-Id: Iad27ceb84ef3bb6384b3531c455b6bfb2e32cd62
Pavlin Radoslavov [Wed, 12 Apr 2017 02:39:26 +0000 (02:39 +0000)]
Reduce the audio A2DP HAL output audio stream buffer size am:
5e9f56940e
am:
c7fe75f5a0
Change-Id: I2608003161b8d9492c044207744d127ae95549c9
Pavlin Radoslavov [Wed, 12 Apr 2017 02:34:25 +0000 (02:34 +0000)]
Reduce the audio A2DP HAL output audio stream buffer size
am:
5e9f56940e
Change-Id: Ib4af0fad802cd629f4008f52b0ec99a9ef1829e3
Pavlin Radoslavov [Wed, 5 Apr 2017 23:38:42 +0000 (16:38 -0700)]
Reduce the audio A2DP HAL output audio stream buffer size
Reduce the audio A2DP HAL output audio stream buffer size
(per constant AUDIO_STREAM_OUTPUT_BUFFER_PERIODS) from 4 to 2.
After the change, the output buffer size is double the buffer period.
Bug:
35849921
Test: A2DP streaming with various codec settings. Testplans/83305.
Change-Id: I2a15d468e748a03b481bf2117903ab06cddd02a3
(cherry picked from commit
5e9f56940e1865d16892639e4c9144a65547626e)
Jack He [Tue, 11 Apr 2017 22:54:06 +0000 (22:54 +0000)]
Check LE advertising data length before caching advertising records am:
1bef3546a6 am:
e6620d18cf am:
585e0c08f5 am:
005eb1d305 am:
7752061901 am:
0ddb124e6e am:
2feb43b5b1 am:
72270d976b am:
e0702cd5b8 -s ours
am:
c918b22853
Change-Id: I4a76bea5e4936535b30146b305ccea7dc48efbcb
Jack He [Tue, 11 Apr 2017 22:53:40 +0000 (22:53 +0000)]
Check LE advertising data length before caching advertising records am:
1bef3546a6 am:
e6620d18cf am:
585e0c08f5 am:
005eb1d305 am:
7752061901 am:
0ddb124e6e am:
2feb43b5b1 am:
72270d976b am:
e0702cd5b8 -s ours
am:
dd6f2cc7aa
Change-Id: I7c679f003d404c4808c457c6644a26d4500d72ea
Jack He [Tue, 11 Apr 2017 22:49:06 +0000 (22:49 +0000)]
Check LE advertising data length before caching advertising records am:
1bef3546a6 am:
e6620d18cf am:
585e0c08f5 am:
005eb1d305 am:
7752061901 am:
0ddb124e6e am:
2feb43b5b1 am:
72270d976b
am:
e0702cd5b8 -s ours
Change-Id: I3157998e2357ece35235b6636d9ab45bcc60ef60
Jack He [Tue, 11 Apr 2017 22:48:40 +0000 (22:48 +0000)]
Check LE advertising data length before caching advertising records am:
1bef3546a6 am:
e6620d18cf am:
585e0c08f5 am:
005eb1d305 am:
7752061901 am:
0ddb124e6e am:
2feb43b5b1 am:
72270d976b
am:
e0702cd5b8 -s ours
Change-Id: I9e26974ca9cf13f5c497ed94e11dcda4e108212f
Jack He [Tue, 11 Apr 2017 22:38:39 +0000 (22:38 +0000)]
Check LE advertising data length before caching advertising records am:
1bef3546a6 am:
e6620d18cf am:
585e0c08f5 am:
005eb1d305 am:
7752061901 am:
0ddb124e6e am:
2feb43b5b1
am:
72270d976b
Change-Id: I6dbf93e14a6c31092d2ecce2738b7680b738220c
Jack He [Tue, 11 Apr 2017 22:33:09 +0000 (22:33 +0000)]
Check LE advertising data length before caching advertising records am:
1bef3546a6 am:
e6620d18cf am:
585e0c08f5 am:
005eb1d305 am:
7752061901 am:
0ddb124e6e
am:
2feb43b5b1
Change-Id: I3d16a2939976a326ca20056b29818e2df550ee67
Jack He [Tue, 11 Apr 2017 22:28:08 +0000 (22:28 +0000)]
Check LE advertising data length before caching advertising records am:
1bef3546a6 am:
e6620d18cf am:
585e0c08f5 am:
005eb1d305 am:
7752061901
am:
0ddb124e6e
Change-Id: I61b9f5741d5fd6035fb7d472b83dc9df54eb3483
Jack He [Tue, 11 Apr 2017 22:23:08 +0000 (22:23 +0000)]
Check LE advertising data length before caching advertising records am:
1bef3546a6 am:
e6620d18cf am:
585e0c08f5 am:
005eb1d305
am:
7752061901
Change-Id: I1f821df2a72958ed17ce5bf8baed431a52dfb087
Jack He [Tue, 11 Apr 2017 22:18:07 +0000 (22:18 +0000)]
Check LE advertising data length before caching advertising records am:
1bef3546a6 am:
e6620d18cf am:
585e0c08f5
am:
005eb1d305
Change-Id: Ic4f826e4f963f969c360fe39c6e720c3fb013d23
Jack He [Tue, 11 Apr 2017 22:13:06 +0000 (22:13 +0000)]
Check LE advertising data length before caching advertising records am:
1bef3546a6 am:
e6620d18cf
am:
585e0c08f5
Change-Id: If70a5f9b56845e758c2a2a3150936a72cac9f438
Jack He [Tue, 11 Apr 2017 22:08:06 +0000 (22:08 +0000)]
Check LE advertising data length before caching advertising records am:
1bef3546a6
am:
e6620d18cf
Change-Id: I412c0dd7854d7f6157e1974e285078909543bb41
Jack He [Tue, 11 Apr 2017 22:03:05 +0000 (22:03 +0000)]
Check LE advertising data length before caching advertising records
am:
1bef3546a6
Change-Id: Ibbf6183833d7f00937742fa337a04569c4ef3c2f
Pavlin Radoslavov [Wed, 5 Apr 2017 23:38:42 +0000 (16:38 -0700)]
Reduce the audio A2DP HAL output audio stream buffer size
Reduce the audio A2DP HAL output audio stream buffer size
(per constant AUDIO_STREAM_OUTPUT_BUFFER_PERIODS) from 4 to 2.
After the change, the output buffer size is double the buffer period.
Bug:
35849921
Test: A2DP streaming with various codec settings. Testplans/83305.
Change-Id: I2a15d468e748a03b481bf2117903ab06cddd02a3
Yoshiharu Kurita [Tue, 11 Apr 2017 20:26:11 +0000 (20:26 +0000)]
Merge "HFP: Disable BTRH feature" am:
59921ffef4 am:
73c0f4ec7a
am:
2c2b4e6454
Change-Id: Iaae57aa29d3cfb8c706a0527b26d8af2e0ef5473
Yoshiharu Kurita [Tue, 11 Apr 2017 20:20:10 +0000 (20:20 +0000)]
Merge "HFP: Disable BTRH feature" am:
59921ffef4
am:
73c0f4ec7a
Change-Id: I302fcffd62ad7163a852096632a7027445bff376
Yoshiharu Kurita [Tue, 11 Apr 2017 20:15:12 +0000 (20:15 +0000)]
Merge "HFP: Disable BTRH feature"
am:
59921ffef4
Change-Id: I730e60eed923b20e58667ecafd9f1c268b9559c7
Treehugger Robot [Tue, 11 Apr 2017 20:09:18 +0000 (20:09 +0000)]
Merge "HFP: Disable BTRH feature"
Jakub Pawlowski [Tue, 11 Apr 2017 20:02:23 +0000 (20:02 +0000)]
Build fix for BLE_PRIVACY_SPT == FALSE
am:
58931e5d3c
Change-Id: I65f5efd9ede94d6abe35bfd4d3eb1a4885175625
Jakub Pawlowski [Tue, 11 Apr 2017 20:02:15 +0000 (20:02 +0000)]
Advertising manager improvements
am:
777ccd1145 -s ours
Change-Id: I69266974e61b4b666b906e7827a34e975557c0c9
Jakub Pawlowski [Tue, 11 Apr 2017 20:02:05 +0000 (20:02 +0000)]
Linux build fix
am:
7e478a0db6
Change-Id: Iffa0e85abaf94f4b6eccbcbff0a883d6669982d7
Jakub Pawlowski [Tue, 11 Apr 2017 20:02:01 +0000 (20:02 +0000)]
Use device privacy mode as default
am:
56aed815e0
Change-Id: Iacf22bb3220aa08f4ffac150e66a39ad9010ae24
Jakub Pawlowski [Tue, 11 Apr 2017 20:01:57 +0000 (20:01 +0000)]
ESR11-E7716: Disable scans while setting local RPA
am:
917db0236b
Change-Id: I4963eff8e2b18161a8a55508e4749bf86b5a0a74
Jakub Pawlowski [Tue, 11 Apr 2017 20:01:52 +0000 (20:01 +0000)]
Support for H7 function for key derivation
am:
c84faa65fb
Change-Id: I3e87361f67ebc970d80f2b8c30b10e07a2430a45
liuchao [Tue, 11 Apr 2017 19:16:44 +0000 (19:16 +0000)]
Fix log record after return am:
3d38129e2a am:
5c7cc0bb4d
am:
82b9eda9c7
Change-Id: I16de912f00a0223e8b93815bc946a2cc14b6f182
liuchao [Tue, 11 Apr 2017 19:10:56 +0000 (19:10 +0000)]
Fix log record after return am:
3d38129e2a
am:
5c7cc0bb4d
Change-Id: Ie8d7933d8cb8a7a7bbcd4cc55db6c66c8592d7a8
liuchao [Tue, 11 Apr 2017 19:05:55 +0000 (19:05 +0000)]
Fix log record after return
am:
3d38129e2a
Change-Id: I94f3d33e9a9e40e8395e2632db386ce0cda401c4
Jack He [Thu, 6 Apr 2017 00:59:58 +0000 (17:59 -0700)]
Check LE advertising data length before caching advertising records
Bug:
33899337
Test: make, receive LE advertising
Change-Id: I06b249ac5cabdef64528deda07b8bae749e1d2fd
(cherry picked from commit
d57adbc350fdee4f27b82c9e39a14bd745d92320)
Jakub Pawlowski [Mon, 10 Apr 2017 20:00:27 +0000 (13:00 -0700)]
Build fix for BLE_PRIVACY_SPT == FALSE
Bug:
30622771
Test: manual
Change-Id: I9a418b8c0477ac50ec2a81e318895c2788e5ceec
(cherry picked from commit
b0aca861fee4f0fbab809b5a1ef75c31d10055bd)
Jakub Pawlowski [Tue, 4 Apr 2017 11:08:19 +0000 (04:08 -0700)]
Advertising manager improvements
* Keep track wether advertiser is enabled.
* Make sure that random address for connectable advertisers is updated
when advertising is disabled, as per ESR11-E7716.
* Make sure that the local variable holding the address is properly
updated after the address is pushed to the controller.
* Use "LE Remove Advertising Set" command to free advertiser after use.
Bug:
35935853
Bug:
30622771
Test: manual
Change-Id: I1415f7272dd99e5e81ce1e2b7ef2bf98f7229cf9
(cherry picked from commit
1f62c122e908573497a8c69ccd7bd829ce02a0b9)
Jakub Pawlowski [Mon, 10 Apr 2017 09:19:29 +0000 (02:19 -0700)]
Linux build fix
Test: manual
Change-Id: I5c86e96b9bb1cee5b535ea1fa6ba0b6d078a9b09
(cherry picked from commit
17f449dab52a6092422a0405e6fe589488661594)
Jakub Pawlowski [Fri, 7 Apr 2017 13:19:50 +0000 (06:19 -0700)]
Use device privacy mode as default
This change configures device privacy mode for each
remote device added to the resolving list.
Before exercising the privacy command it confirms
whether the set privacy HCI command is supported.
This patch is based on CAF patch by niarora@codeaurora.org
36fa3c528d2ae58e0b3f969665e3d25986dcdbaa
Test: manual
Bug:
35935853
Change-Id: I839045ccc3ddb73dc9c0cbe05d87c25dae9b9236
(cherry picked from commit
f6db7cb9a30b34493df8658d59b2fe2232bc828a)
Jakub Pawlowski [Fri, 7 Apr 2017 12:50:16 +0000 (05:50 -0700)]
ESR11-E7716: Disable scans while setting local RPA
This change is required to disable any ongoing classic
advertisement or any scan before setting the RPA for the
DUT, and reenable them after the Set RPA command.
If a direct connection is ongoing, the RPA is not set.
A background connection is suspended and resumed for
sending the "Set RPA" HCI command.
This patch is based on CAF patch by niarora@codeaurora.org
690c2db21f650f74c202fd380cca4ca74cbdf83c
Test: manual
Bug:
35935853
Change-Id: Ifbc90d0c52c8f1fa627ac80c20a69149e89cb794
(cherry picked from commit
6bd467a004f4416aafc7fbd4da19b1e54578fd18)
Jakub Pawlowski [Mon, 20 Mar 2017 22:38:56 +0000 (15:38 -0700)]
Support for H7 function for key derivation
This change sets bit 5 of the auth req to 1 to display
the support for H7 function, for key derivation.
Also, it adds the implementation of the h7 function as
defined in the spec (ERRATA E7301]
H7 is used if both host and remote devices exhibit
their support for H7 function in the auth request,
else the key derivation falls back to the H6
implementation.
The method is similar for derivation from either
transports with the only difference being in the first
byte of the SAL used in h7.
This patch is based on CAF patch by niarora@codeaurora.org
70668ad34ff15d0a53aea612d3c488fa575176ca
Test: manual
Bug:
35935853
Change-Id: I2fa29b2f3d2b3ac007b2f5f024871f81220237d8
(cherry picked from commit
e7f14a682d57811d9df0d64372f222bcc143ec86)
liuchao [Tue, 11 Apr 2017 12:41:29 +0000 (20:41 +0800)]
Fix log record after return
Put log before the returned BUSY
Test: mm -j8
Change-Id: Ic3fb15a35adac363519cabecfcf8a2d3da60107c
Pavlin Radoslavov [Tue, 11 Apr 2017 00:41:18 +0000 (00:41 +0000)]
Add A2DP codec-specific information to dumpsys output
am:
67ae84fb7f
Change-Id: I3faf2f07e97c6da2cf8c25874de4e3e0c54b189e
Jack He [Mon, 10 Apr 2017 23:20:42 +0000 (23:20 +0000)]
Merge "Add support for inband ringing feature" am:
3523f28d89 am:
bcc86035c1
am:
b34d6f2cc9
Change-Id: I8dffafb8a5f3e73ec0352392802ad1c29b82c090
Jack He [Mon, 10 Apr 2017 23:11:53 +0000 (23:11 +0000)]
Merge "Add support for inband ringing feature" am:
3523f28d89
am:
bcc86035c1
Change-Id: I90a485413a1656f556d2268a31255bbf420ace9e
Jack He [Mon, 10 Apr 2017 23:00:19 +0000 (23:00 +0000)]
Merge "Add support for inband ringing feature"
am:
3523f28d89
Change-Id: I21b543a6eea34b6da45037a8ee87208337551114
Yoshiharu Kurita [Wed, 25 Nov 2015 09:00:30 +0000 (18:00 +0900)]
HFP: Disable BTRH feature
Fluoride does not notify application layer upon AT+BTRH, and always
sends error response (BTRH is not supported) to remote device.
That is, Fluoride does not support BTRH feature.
But BTRH is enabled by default, so OK is sent to remote device by mistake
before the error response is sent. This makes some carkits unstable.
Bug:
29587048
Change-Id: If1aa32291491982851ecd480c4ba8390f39a27a2
Jack He [Mon, 10 Apr 2017 22:47:54 +0000 (22:47 +0000)]
Merge "Add support for inband ringing feature"
Pavlin Radoslavov [Mon, 10 Apr 2017 22:30:16 +0000 (22:30 +0000)]
Add A2DP codec-specific information to dumpsys output am:
302113d4e4 am:
4ea5043579
am:
e5ce4c2929
Change-Id: I3ab26f8f476c2b748c4eafad67f07f4d3e441e21
Pavlin Radoslavov [Mon, 10 Apr 2017 22:16:44 +0000 (22:16 +0000)]
Add A2DP codec-specific information to dumpsys output am:
302113d4e4
am:
4ea5043579
Change-Id: Ie7d85b7236fcec644c7b54ccc0126a561089eadc
Pavlin Radoslavov [Mon, 10 Apr 2017 22:07:11 +0000 (22:07 +0000)]
Add A2DP codec-specific information to dumpsys output
am:
302113d4e4
Change-Id: I006834b1168daf51027b91f829f9c665afb1d219
Pavlin Radoslavov [Thu, 6 Apr 2017 22:13:16 +0000 (15:13 -0700)]
Add A2DP codec-specific information to dumpsys output
Now we print the following information:
* Current codec name
* Info for each supported codec:
- Priority
- Encoder interval (ms)
- Codec Config: Sampling rate, Bits per sample, Channel mode (MONO/STEREO)
- Selectable codec configuration
- Codec's local capability
- Packet counts (expected/dropped)
- PCM read counts (expected/actual)
- PCM read bytes (expected/actual)
* LDAC codec-specific info:
- LDAC quality mode: HIGH/MID/LOW/ABR
- LDAC saved transmit queue length [used in ABR mode]
* SBC codec-specific info:
- Frames counts (expected/dropped)
Sample of the new format is below:
---
A2DP Codecs State:
Current Codec: LDAC
A2DP LDAC State:
Priority:
1000000
Encoder interval (ms): 20
Config: Rate=96000 Bits=32 Mode=STEREO
Selectable: Rate=44100|48000|88200|96000 Bits=16|24|32 Mode=MONO|STEREO
Local capability: Rate=44100|48000|88200|96000 Bits=16|24|32 Mode=MONO|STEREO
Packet counts (expected/dropped) : 596 / 161
PCM read counts (expected/actual) : 2488 / 2488
PCM read bytes (expected/actual) :
2547712 /
2547712
LDAC quality mode : ABR
LDAC saved transmit queue length : 0
A2DP aptX-HD State:
Priority: 4001
Encoder interval (ms): 0
Config: Invalid
Selectable: Invalid
Local capability: Rate=44100|48000 Bits=24 Mode=STEREO
Packet counts (expected/dropped) : 0 / 0
PCM read counts (expected/actual) : 0 / 0
PCM read bytes (expected/actual) : 0 / 0
A2DP aptX State:
Priority: 3001
Encoder interval (ms): 0
Config: Rate=44100 Bits=16 Mode=STEREO
Selectable: Rate=44100|48000 Bits=16 Mode=STEREO
Local capability: Rate=44100|48000 Bits=16 Mode=STEREO
Packet counts (expected/dropped) : 0 / 0
PCM read counts (expected/actual) : 0 / 0
PCM read bytes (expected/actual) : 0 / 0
A2DP AAC State:
Priority: 2001
Encoder interval (ms): 20
Config: Rate=44100 Bits=16 Mode=STEREO
Selectable: Rate=44100|48000 Bits=16 Mode=STEREO
Local capability: Rate=44100|48000|88200|96000 Bits=16 Mode=STEREO
Packet counts (expected/dropped) : 0 / 0
PCM read counts (expected/actual) : 0 / 0
PCM read bytes (expected/actual) : 0 / 0
A2DP SBC State:
Priority: 1001
Encoder interval (ms): 20
Config: Rate=44100 Bits=16 Mode=STEREO
Selectable: Rate=44100 Bits=16 Mode=STEREO
Local capability: Rate=44100 Bits=16 Mode=STEREO
Packet counts (expected/dropped) : 580 / 0
PCM read counts (expected/actual) : 2900 / 2900
PCM read bytes (expected/actual) :
1484800 /
1484800
Frames counts (expected/dropped) : 3724 / 0
---
Bug:
36567128
Test: Stream A2DP and "adb shell dumpsys bluetooth_manager"
Change-Id: Idd86005b842a4e569b7df91b8bbaf0632ed7f7c9
(cherry picked from commit
302113d4e44f06e90f90a5903e33ae830edb58a3)
Pavlin Radoslavov [Thu, 6 Apr 2017 22:13:16 +0000 (15:13 -0700)]
Add A2DP codec-specific information to dumpsys output
Now we print the following information:
* Current codec name
* Info for each supported codec:
- Priority
- Encoder interval (ms)
- Codec Config: Sampling rate, Bits per sample, Channel mode (MONO/STEREO)
- Selectable codec configuration
- Codec's local capability
- Packet counts (expected/dropped)
- PCM read counts (expected/actual)
- PCM read bytes (expected/actual)
* LDAC codec-specific info:
- LDAC quality mode: HIGH/MID/LOW/ABR
- LDAC saved transmit queue length [used in ABR mode]
* SBC codec-specific info:
- Frames counts (expected/dropped)
Sample of the new format is below:
---
A2DP Codecs State:
Current Codec: LDAC
A2DP LDAC State:
Priority:
1000000
Encoder interval (ms): 20
Config: Rate=96000 Bits=32 Mode=STEREO
Selectable: Rate=44100|48000|88200|96000 Bits=16|24|32 Mode=MONO|STEREO
Local capability: Rate=44100|48000|88200|96000 Bits=16|24|32 Mode=MONO|STEREO
Packet counts (expected/dropped) : 596 / 161
PCM read counts (expected/actual) : 2488 / 2488
PCM read bytes (expected/actual) :
2547712 /
2547712
LDAC quality mode : ABR
LDAC saved transmit queue length : 0
A2DP aptX-HD State:
Priority: 4001
Encoder interval (ms): 0
Config: Invalid
Selectable: Invalid
Local capability: Rate=44100|48000 Bits=24 Mode=STEREO
Packet counts (expected/dropped) : 0 / 0
PCM read counts (expected/actual) : 0 / 0
PCM read bytes (expected/actual) : 0 / 0
A2DP aptX State:
Priority: 3001
Encoder interval (ms): 0
Config: Rate=44100 Bits=16 Mode=STEREO
Selectable: Rate=44100|48000 Bits=16 Mode=STEREO
Local capability: Rate=44100|48000 Bits=16 Mode=STEREO
Packet counts (expected/dropped) : 0 / 0
PCM read counts (expected/actual) : 0 / 0
PCM read bytes (expected/actual) : 0 / 0
A2DP AAC State:
Priority: 2001
Encoder interval (ms): 20
Config: Rate=44100 Bits=16 Mode=STEREO
Selectable: Rate=44100|48000 Bits=16 Mode=STEREO
Local capability: Rate=44100|48000|88200|96000 Bits=16 Mode=STEREO
Packet counts (expected/dropped) : 0 / 0
PCM read counts (expected/actual) : 0 / 0
PCM read bytes (expected/actual) : 0 / 0
A2DP SBC State:
Priority: 1001
Encoder interval (ms): 20
Config: Rate=44100 Bits=16 Mode=STEREO
Selectable: Rate=44100 Bits=16 Mode=STEREO
Local capability: Rate=44100 Bits=16 Mode=STEREO
Packet counts (expected/dropped) : 580 / 0
PCM read counts (expected/actual) : 2900 / 2900
PCM read bytes (expected/actual) :
1484800 /
1484800
Frames counts (expected/dropped) : 3724 / 0
---
Bug:
36567128
Test: Stream A2DP and "adb shell dumpsys bluetooth_manager"
Change-Id: Idd86005b842a4e569b7df91b8bbaf0632ed7f7c9
Jakub Pawlowski [Mon, 10 Apr 2017 21:42:08 +0000 (21:42 +0000)]
Build fix for BLE_PRIVACY_SPT == FALSE am:
b0aca861fe am:
f828b0a9a1
am:
42167c5eab
Change-Id: Ic7578c06304be64d40cdf88ef896abefb190020b
Jakub Pawlowski [Mon, 10 Apr 2017 21:36:37 +0000 (21:36 +0000)]
Build fix for BLE_PRIVACY_SPT == FALSE am:
b0aca861fe
am:
f828b0a9a1
Change-Id: Iea7bef5834697e4b99935435a6d5b42d8692c326
Jakub Pawlowski [Mon, 10 Apr 2017 21:31:37 +0000 (21:31 +0000)]
Build fix for BLE_PRIVACY_SPT == FALSE
am:
b0aca861fe
Change-Id: Iea84f1fd5443fa0954b8023d7e68e9968f79bb27
Jakub Pawlowski [Mon, 10 Apr 2017 20:00:27 +0000 (13:00 -0700)]
Build fix for BLE_PRIVACY_SPT == FALSE
Bug:
30622771
Test: manual
Change-Id: I9a418b8c0477ac50ec2a81e318895c2788e5ceec
Tsuyoshi Kamata [Mon, 10 Apr 2017 19:52:53 +0000 (19:52 +0000)]
Merge "AVRC: Configure absolute volume to false if remove device not supprot it" am:
2aea44a0cb am:
eeb8ed571b
am:
35bb8ce666
Change-Id: Ie4ade08926e53d5f5068d063c8d1280993e7ba3e
Jakub Pawlowski [Mon, 10 Apr 2017 19:52:43 +0000 (19:52 +0000)]
Advertising manager improvements am:
1f62c122e9 am:
4d31332790
am:
68482da476
Change-Id: I2fd16c2f886b98889f57e3efafcc1d534cd134ba
Jack He [Fri, 3 Feb 2017 01:42:40 +0000 (17:42 -0800)]
Add support for inband ringing feature
* Change HFP init API so that the HFP feature bit field depends on
whether in-band ringing is supported on the device
* Feature disabled by default unless system property enables it
Bug:
19171297
Test: mm -j 40, HFP regression test, testplans/82144
Change-Id: Ib8ba28ac6e70eb23b2a2ad11c5805793911a4e43
Tsuyoshi Kamata [Mon, 10 Apr 2017 19:48:26 +0000 (19:48 +0000)]
Merge "AVRC: Configure absolute volume to false if remove device not supprot it" am:
2aea44a0cb
am:
eeb8ed571b
Change-Id: I3c9c6786e4471257a76cddff78238262a2cd5a1b
Jakub Pawlowski [Mon, 10 Apr 2017 19:48:15 +0000 (19:48 +0000)]
Advertising manager improvements am:
1f62c122e9
am:
4d31332790
Change-Id: I80e29224abebca4c483813f309db9cb3a28d8451
Tsuyoshi Kamata [Mon, 10 Apr 2017 19:43:58 +0000 (19:43 +0000)]
Merge "AVRC: Configure absolute volume to false if remove device not supprot it"
am:
2aea44a0cb
Change-Id: Ic6dac9ea29396047208dba241f30957949fd224a
Jakub Pawlowski [Mon, 10 Apr 2017 19:43:46 +0000 (19:43 +0000)]
Advertising manager improvements
am:
1f62c122e9
Change-Id: I9fe93fa8fdfb5cbd24d545a0a53f77e329eedcf0
Treehugger Robot [Mon, 10 Apr 2017 19:32:29 +0000 (19:32 +0000)]
Merge "AVRC: Configure absolute volume to false if remove device not supprot it"
Tsuyoshi Kamata [Tue, 7 Mar 2017 06:46:34 +0000 (15:46 +0900)]
AVRC: Configure absolute volume to false if remove device not supprot it
Some AVRCP(ver>1.4) devices don't support absolute volume, when connected
to such device, volume control doesn't work properly on phone.
This patch fix the problem as bellow:
- check category of remote device
when add absolute volume feature flag.
- remove absolute volume feature flag
if remote device responses REJECT or NOT_IMPLEMENT.
Bug:
33441894
Change-Id: Icfd6f61699490efd937fa6d2383f333eb0f0144a
Jakub Pawlowski [Tue, 4 Apr 2017 11:08:19 +0000 (04:08 -0700)]
Advertising manager improvements
* Keep track wether advertiser is enabled.
* Make sure that random address for connectable advertisers is updated
when advertising is disabled, as per ESR11-E7716.
* Make sure that the local variable holding the address is properly
updated after the address is pushed to the controller.
* Use "LE Remove Advertising Set" command to free advertiser after use.
Bug:
35935853
Bug:
30622771
Test: manual
Change-Id: I1415f7272dd99e5e81ce1e2b7ef2bf98f7229cf9
Jakub Pawlowski [Mon, 10 Apr 2017 15:50:17 +0000 (15:50 +0000)]
Linux build fix am:
17f449dab5 am:
7a363a1cf2
am:
33f91d3ade
Change-Id: Ibc3886559a622f976eebf3412e6549da52504cea
Jakub Pawlowski [Mon, 10 Apr 2017 15:45:16 +0000 (15:45 +0000)]
Linux build fix am:
17f449dab5
am:
7a363a1cf2
Change-Id: I76a0d0aae1bb051daea836188bd3ee8e1f96b3a9
Jakub Pawlowski [Mon, 10 Apr 2017 15:40:45 +0000 (15:40 +0000)]
Linux build fix
am:
17f449dab5
Change-Id: I301b32aab2f7b55d788696c3c1907734f4d634e0
Jakub Pawlowski [Mon, 10 Apr 2017 09:19:29 +0000 (02:19 -0700)]
Linux build fix
Test: manual
Change-Id: I5c86e96b9bb1cee5b535ea1fa6ba0b6d078a9b09
Jakub Pawlowski [Sat, 8 Apr 2017 05:39:37 +0000 (05:39 +0000)]
Use device privacy mode as default am:
f6db7cb9a3 am:
f17508a998
am:
8c85ffcc76
Change-Id: I7ba2c89b8d13ed306326e29cacc41b0a7ea7d024
Jakub Pawlowski [Sat, 8 Apr 2017 05:39:25 +0000 (05:39 +0000)]
ESR11-E7716: Disable scans while setting local RPA am:
6bd467a004 am:
583bca6414
am:
6541c30ac1
Change-Id: I1be04c168f5159c5ff6c532f98fafd8cd508bcf3
Jakub Pawlowski [Sat, 8 Apr 2017 05:39:13 +0000 (05:39 +0000)]
Support for H7 function for key derivation am:
e7f14a682d am:
3a70a19b61
am:
b67525ea3b
Change-Id: I6c19ac66628106f91996f3cd60b7662dbba41739
Jakub Pawlowski [Sat, 8 Apr 2017 05:35:04 +0000 (05:35 +0000)]
Use device privacy mode as default am:
f6db7cb9a3
am:
f17508a998
Change-Id: I7fbbb53a906f48e2fa0b2e0b0096bcfb7d6978d5
Jakub Pawlowski [Sat, 8 Apr 2017 05:34:53 +0000 (05:34 +0000)]
ESR11-E7716: Disable scans while setting local RPA am:
6bd467a004
am:
583bca6414
Change-Id: I8cfb02ff8c45a175fade8456c5ee47db52d63a61
Jakub Pawlowski [Sat, 8 Apr 2017 05:34:41 +0000 (05:34 +0000)]
Support for H7 function for key derivation am:
e7f14a682d
am:
3a70a19b61
Change-Id: Ib8b847d9f5ee432eb7d0584a7c416797dc30c2ce
Jakub Pawlowski [Sat, 8 Apr 2017 05:30:33 +0000 (05:30 +0000)]
Use device privacy mode as default
am:
f6db7cb9a3
Change-Id: Iaaef84b029891d6f3f214ab4b4751b7f9f39ebc3
Jakub Pawlowski [Sat, 8 Apr 2017 05:30:21 +0000 (05:30 +0000)]
ESR11-E7716: Disable scans while setting local RPA
am:
6bd467a004
Change-Id: I894cc3a4b7aced3808ef680985045c03973ee477
Jakub Pawlowski [Sat, 8 Apr 2017 05:30:10 +0000 (05:30 +0000)]
Support for H7 function for key derivation
am:
e7f14a682d
Change-Id: I7c8739d5956be9b2c430e8b5c952469c54bb98df
Jakub Pawlowski [Fri, 7 Apr 2017 13:19:50 +0000 (06:19 -0700)]
Use device privacy mode as default
This change configures device privacy mode for each
remote device added to the resolving list.
Before exercising the privacy command it confirms
whether the set privacy HCI command is supported.
This patch is based on CAF patch by niarora@codeaurora.org
36fa3c528d2ae58e0b3f969665e3d25986dcdbaa
Test: manual
Bug:
35935853
Change-Id: I839045ccc3ddb73dc9c0cbe05d87c25dae9b9236