OSDN Git Service
Bailey Forrest [Wed, 19 Apr 2017 20:13:29 +0000 (20:13 +0000)]
Merge "bta_gattc_cache: Initialize gatt_db_elemement_t permissions to 0" am:
27a9864f9f
am:
150583af9a
Change-Id: I02ce7bac14342ca017f85cc2a043887b883779eb
Bailey Forrest [Wed, 19 Apr 2017 20:11:28 +0000 (20:11 +0000)]
Merge "bta_gattc_cache: Initialize gatt_db_elemement_t permissions to 0"
am:
27a9864f9f
Change-Id: I57a83cb501da230abaabacb35c3c6562f6c3a1f3
Treehugger Robot [Wed, 19 Apr 2017 20:07:46 +0000 (20:07 +0000)]
Merge "bta_gattc_cache: Initialize gatt_db_elemement_t permissions to 0"
Pavlin Radoslavov [Wed, 19 Apr 2017 19:22:55 +0000 (19:22 +0000)]
Fix line formatting per clang-format am:
ce48fc7525
am:
35d372cf0d
Change-Id: I92512f68b228c4a8346212d56ca3a991ca2c439a
Pavlin Radoslavov [Wed, 19 Apr 2017 19:20:23 +0000 (19:20 +0000)]
Fix line formatting per clang-format
am:
ce48fc7525
Change-Id: I4a8916a40ca92b6baaee1199f7d568fb597d6783
Pavlin Radoslavov [Wed, 19 Apr 2017 18:44:19 +0000 (11:44 -0700)]
Fix line formatting per clang-format
The fix is needed to resolve a merge conflict.
Test: Code compilation
Change-Id: I41cd79db1750b526fafa33e097c56a7cb46ba6af
Jakub Pawlowski [Wed, 19 Apr 2017 16:02:47 +0000 (16:02 +0000)]
Manually merge commit '
08215a3375a1e79fc9c1b2d12eba2ff26298910d' into stage-aosp-master
am:
1e79289a3d
Change-Id: Id6e840155d3717eaa63d04f4f876bae78288e9a0
The Android Automerger [Wed, 19 Apr 2017 15:35:44 +0000 (15:35 +0000)]
Manually merge commit '
08215a3375a1e79fc9c1b2d12eba2ff26298910d' into stage-aosp-master
Jakub Pawlowski [Fri, 14 Apr 2017 14:27:49 +0000 (07:27 -0700)]
Read by UUID for PTS tests (4/5)
Add a hidden api for reading characteristic by UUID for PTS.
Bug:
35150313
Test: sl4a GattReadTest.byUuid
Change-Id: I072473c5f7b761707774efd89f8a22bfdf012135
Treehugger Robot [Wed, 19 Apr 2017 06:08:48 +0000 (06:08 +0000)]
Merge "Read by UUID for PTS tests (4/5)"
Bailey Forrest [Wed, 19 Apr 2017 04:04:10 +0000 (21:04 -0700)]
bta_gattc_cache: Initialize gatt_db_elemement_t permissions to 0
Previously this value was uninitialized. Attribute permissions are not
discovable via the attribute protocol.
Bug: None
Test: Build. permissions are 0.
Change-Id: I5fdac3b90683245a0af0d6e27a2873499ca90e6c
Hemant Gupta [Wed, 19 Apr 2017 00:49:49 +0000 (00:49 +0000)]
Merge "AVRCP TG: Get Item Attribute command not working" am:
d2aa2fc95b
am:
cb7f8c70b5
Change-Id: I65110974cf2836bceda165e80f7318cb2e44a261
Hemant Gupta [Wed, 19 Apr 2017 00:48:18 +0000 (00:48 +0000)]
Merge "AVRCP TG: Get Item Attribute command not working"
am:
d2aa2fc95b
Change-Id: I674de144b19bc97c540d7f806c16cb3f29cb3f95
Treehugger Robot [Wed, 19 Apr 2017 00:41:26 +0000 (00:41 +0000)]
Merge "AVRCP TG: Get Item Attribute command not working"
Hemant Gupta [Tue, 18 Apr 2017 22:19:35 +0000 (22:19 +0000)]
stack: AVRCP: add missing debug arguments am:
2dc048b0ed
am:
b40f1ad083
Change-Id: Ifeaf62250d7d9b5ec4788c4ef7843dfa4d28da1e
Hemant Gupta [Tue, 18 Apr 2017 22:15:03 +0000 (22:15 +0000)]
stack: AVRCP: add missing debug arguments
am:
2dc048b0ed
Change-Id: I11e19332f16c577353f811ab87bcc384d9cdfcac
Hemant Gupta [Fri, 14 Apr 2017 06:37:37 +0000 (12:07 +0530)]
stack: AVRCP: add missing debug arguments
Fixes a crash while sending AVRCP Get Item Attribute response due to missing
function arguments.
Test: test with BMW kit, Crysler kit which trigger this bug
Bug:
37334553
Fixes:
37474772
Change-Id: Ie129e22e427896028a50e6b0ae8c2cdd151b0ea1
Jakub Pawlowski [Fri, 14 Apr 2017 14:27:49 +0000 (07:27 -0700)]
Read by UUID for PTS tests (4/5)
Add a hidden api for reading characteristic by UUID for PTS.
Bug:
35150313
Test: sl4a GattReadTest.byUuid
Change-Id: I072473c5f7b761707774efd89f8a22bfdf012135
Jacky Cheung [Tue, 18 Apr 2017 01:08:02 +0000 (01:08 +0000)]
Do not GATT_ERROR on MTU change am:
f271c9109e
am:
57e7660ce4
Change-Id: Id8f4c458340b05106a499ab2851209113b0ad084
Jacky Cheung [Tue, 18 Apr 2017 01:03:02 +0000 (01:03 +0000)]
Do not GATT_ERROR on MTU change
am:
f271c9109e
Change-Id: Iab8d8d1c770b8d93fb62ff2210b55b23cd08d990
Jacky Cheung [Mon, 17 Apr 2017 20:38:39 +0000 (13:38 -0700)]
Do not GATT_ERROR on MTU change
Bug:
37305498
Test: manual on MSM8909
Change-Id: I07389620efc914d0ece52262edc2c35b498d5564
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
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 [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
Hemant Gupta [Thu, 13 Apr 2017 14:34:36 +0000 (20:04 +0530)]
AVRCP TG: Get Item Attribute command not working
Usecase:
1) Connect from carkit supporting AVRCP 1.4/1.5 CT to DUT
2) Issue get item attribute command with valid attribute list.
Expected behaviour:
Get item attribute command succeeds and returns the requested
attributes of particular item
Observed result:
Get Item attribute command fails with BAD Param Error
Root Cause:
Wrong structure from tAVRC_COMMAND was being passed to fill_attribute_id_array
which was leading to error being returned.
Fix:
Use get_attrs of type tAVRC_GET_ATTRS_CMD instead of get_elem_attrs of type
tAVRC_GET_ELEM_ATTRS_CMD when remote device requests for get item attributes.
Test: Checked that now bad param error is not returned in response for
get item attribute command from remote device.
Bug:
37302234
Change-Id: I9245f726f37ffd666d143d2232dac868a2cc3268
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
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: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"
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)
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
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: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
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
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: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: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
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
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
Android Build Merger (Role) [Fri, 7 Apr 2017 23:57:29 +0000 (23:57 +0000)]
Merge "Create unit test framework for audio_a2dp_hw am:
304ceeb520 am:
26c22ec870" into nyc-mr2-dev-plus-aosp
Pavlin Radoslavov [Fri, 7 Apr 2017 23:57:21 +0000 (23:57 +0000)]
Create unit test framework for audio_a2dp_hw am:
304ceeb520
am:
26c22ec870
Change-Id: Idc9d71789698025e3a5a9eb75d2595d99240c716
Jacky Cheung [Fri, 7 Apr 2017 23:57:19 +0000 (23:57 +0000)]
DO NOT MERGE ANYWHERE Mark AutoConnParamUpdateAddr on first auto connection param update am:
dd467f108f -s ours
am:
1386ae5d92 -s ours
Change-Id: I029185f7f73eb115041e191853b1cb847e9f0557
Pavlin Radoslavov [Fri, 7 Apr 2017 23:53:51 +0000 (23:53 +0000)]
Create unit test framework for audio_a2dp_hw
am:
304ceeb520
Change-Id: Id806117eda5e93f723c0ad3cc450c315f2ed21ce
Jacky Cheung [Fri, 7 Apr 2017 23:53:48 +0000 (23:53 +0000)]
DO NOT MERGE ANYWHERE Mark AutoConnParamUpdateAddr on first auto connection param update
am:
dd467f108f -s ours
Change-Id: Iae88352c83d7f3b1430c02e2af3a683bebae3bb2
Pavlin Radoslavov [Wed, 5 Apr 2017 23:18:26 +0000 (16:18 -0700)]
Create unit test framework for audio_a2dp_hw
Create unit test framework for audio_a2dp_hw and implement a unit test
for function audio_a2dp_hw_stream_compute_buffer_size()
Also:
* Remove obsolete check for mixer unit size inside out_get_buffer_size()
* Reorganize the file structure inside directory audio_a2dp_hw/ :
- Moved the source code files *.cc to audio_a2dp_hw/src/
- Moved the header file(s) *.h to audio_a2dp_hw/include/
- The unit test file(s) are stored in audio_a2dp_hw/test/
Bug:
35849921
Test: This is the unit test. Code compilation and unit test succeed
Change-Id: I3dcc508cb6799462b7103cb2ee452b4399843899
Jakub Pawlowski [Thu, 6 Apr 2017 17:23:19 +0000 (17:23 +0000)]
Fix "LE Read Maximum Advertising Data Length" response parsing am:
16899e9d1e
am:
d869d9c378
Change-Id: I5628a758442aa0e1c29959d8141e46053ae7780c
Jakub Pawlowski [Thu, 6 Apr 2017 17:20:29 +0000 (17:20 +0000)]
Fix "LE Read Maximum Advertising Data Length" response parsing
am:
16899e9d1e
Change-Id: Ifd695a52b4d65b784935f58f476c4b29e91834fc
Jakub Pawlowski [Thu, 6 Apr 2017 13:59:20 +0000 (06:59 -0700)]
Fix "LE Read Maximum Advertising Data Length" response parsing
The value is uint16_t, not uint8_t
Bug:
30622771
Test: manual
Change-Id: I93e8687fa74cb0f5877f9921a860b2ba83106691
Ajay Panicker [Wed, 5 Apr 2017 23:45:10 +0000 (23:45 +0000)]
Merge "Add default AVRCP version to prevent confusing log message" am:
6f1f3379c5
am:
31c945806f
Change-Id: Iadc63069357826f2485c9ce974b4782ffe0c8181
Ajay Panicker [Wed, 5 Apr 2017 23:42:09 +0000 (23:42 +0000)]
Merge "Add default AVRCP version to prevent confusing log message"
am:
6f1f3379c5
Change-Id: I06dca69bf293436434bf95acb193c5a60a07e3bc
Treehugger Robot [Wed, 5 Apr 2017 23:36:40 +0000 (23:36 +0000)]
Merge "Add default AVRCP version to prevent confusing log message"
Dan Shi [Wed, 5 Apr 2017 16:36:50 +0000 (16:36 +0000)]
Merge "Add test config to net_test_hci" am:
2986b2b949
am:
90322eff6e
Change-Id: I03f4af64bb7d85331e7c24a594c3cfe8a1b8d909
Dan Shi [Wed, 5 Apr 2017 16:36:39 +0000 (16:36 +0000)]
Merge "Add test config to net_test_device" am:
84054a8942
am:
305cd4c7bd
Change-Id: Icd2fab4a1170232f8b94d7ef354576b3e09f3eb1
Dan Shi [Wed, 5 Apr 2017 16:33:49 +0000 (16:33 +0000)]
Merge "Add test config to net_test_hci"
am:
2986b2b949
Change-Id: I1bd384f3c0f10d2daeba4d4976cdcb81ec4a526f
Dan Shi [Wed, 5 Apr 2017 16:33:38 +0000 (16:33 +0000)]
Merge "Add test config to net_test_device"
am:
84054a8942
Change-Id: I7cf4ee88e44d5238be1f841e691469fc0dcd6a03
Dan Shi [Wed, 5 Apr 2017 16:29:14 +0000 (16:29 +0000)]
Merge "Add test config to net_test_hci"
Dan Shi [Wed, 5 Apr 2017 16:28:39 +0000 (16:28 +0000)]
Merge "Add test config to net_test_device"
Dan Shi [Wed, 5 Apr 2017 08:21:08 +0000 (08:21 +0000)]
Merge "Add test config to net_test_btcore" am:
686bcbb817
am:
7e2aa70dc2
Change-Id: I79042e0fc49d6f32331eb4deedcd60076563de90
Dan Shi [Wed, 5 Apr 2017 08:19:08 +0000 (08:19 +0000)]
Merge "Add test config to net_test_btcore"
am:
686bcbb817
Change-Id: I6c5700d3e5c0fb71ed6f6149bc27a8945d55f7c5