OSDN Git Service

android-x86/system-bt.git
7 years agoAdd A2DP codec-specific information to dumpsys output
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

7 years agoMerge "Add support for inband ringing feature" am: 3523f28d89 am: bcc86035c1
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

7 years agoMerge "Add support for inband ringing feature" am: 3523f28d89
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

7 years agoMerge "Add support for inband ringing feature"
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

7 years agoMerge "Add support for inband ringing feature"
Jack He [Mon, 10 Apr 2017 22:47:54 +0000 (22:47 +0000)]
Merge "Add support for inband ringing feature"

7 years agoAdd A2DP codec-specific information to dumpsys output am: 302113d4e4 am: 4ea5043579
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

7 years agoAdd A2DP codec-specific information to dumpsys output am: 302113d4e4
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

7 years agoAdd A2DP codec-specific information to dumpsys output
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

7 years agoAdd A2DP codec-specific information to dumpsys output
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)

7 years agoAdd A2DP codec-specific information to dumpsys output
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

7 years agoBuild fix for BLE_PRIVACY_SPT == FALSE am: b0aca861fe am: f828b0a9a1
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

7 years agoBuild fix for BLE_PRIVACY_SPT == FALSE am: b0aca861fe
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

7 years agoBuild fix for BLE_PRIVACY_SPT == FALSE
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

7 years agoBuild fix for BLE_PRIVACY_SPT == FALSE
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

7 years agoMerge "AVRC: Configure absolute volume to false if remove device not supprot it"...
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

7 years agoAdvertising manager improvements am: 1f62c122e9 am: 4d31332790
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

7 years agoAdd support for inband ringing feature
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

7 years agoMerge "AVRC: Configure absolute volume to false if remove device not supprot it"...
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

7 years agoAdvertising manager improvements am: 1f62c122e9
Jakub Pawlowski [Mon, 10 Apr 2017 19:48:15 +0000 (19:48 +0000)]
Advertising manager improvements am: 1f62c122e9
am: 4d31332790

Change-Id: I80e29224abebca4c483813f309db9cb3a28d8451

7 years agoMerge "AVRC: Configure absolute volume to false if remove device not supprot it"
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

7 years agoAdvertising manager improvements
Jakub Pawlowski [Mon, 10 Apr 2017 19:43:46 +0000 (19:43 +0000)]
Advertising manager improvements
am: 1f62c122e9

Change-Id: I9fe93fa8fdfb5cbd24d545a0a53f77e329eedcf0

7 years agoMerge "AVRC: Configure absolute volume to false if remove device not supprot it"
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"

7 years agoAVRC: 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

7 years agoAdvertising manager improvements
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

7 years agoLinux build fix am: 17f449dab5 am: 7a363a1cf2
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

7 years agoLinux build fix am: 17f449dab5
Jakub Pawlowski [Mon, 10 Apr 2017 15:45:16 +0000 (15:45 +0000)]
Linux build fix am: 17f449dab5
am: 7a363a1cf2

Change-Id: I76a0d0aae1bb051daea836188bd3ee8e1f96b3a9

7 years agoLinux build fix
Jakub Pawlowski [Mon, 10 Apr 2017 15:40:45 +0000 (15:40 +0000)]
Linux build fix
am: 17f449dab5

Change-Id: I301b32aab2f7b55d788696c3c1907734f4d634e0

7 years agoLinux build fix
Jakub Pawlowski [Mon, 10 Apr 2017 09:19:29 +0000 (02:19 -0700)]
Linux build fix

Test: manual
Change-Id: I5c86e96b9bb1cee5b535ea1fa6ba0b6d078a9b09

7 years agoUse device privacy mode as default am: f6db7cb9a3 am: f17508a998
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

7 years agoESR11-E7716: Disable scans while setting local RPA am: 6bd467a004 am: 583bca6414
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

7 years agoSupport for H7 function for key derivation am: e7f14a682d am: 3a70a19b61
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

7 years agoUse device privacy mode as default am: f6db7cb9a3
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

7 years agoESR11-E7716: Disable scans while setting local RPA am: 6bd467a004
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

7 years agoSupport for H7 function for key derivation am: e7f14a682d
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

7 years agoUse device privacy mode as default
Jakub Pawlowski [Sat, 8 Apr 2017 05:30:33 +0000 (05:30 +0000)]
Use device privacy mode as default
am: f6db7cb9a3

Change-Id: Iaaef84b029891d6f3f214ab4b4751b7f9f39ebc3

7 years agoESR11-E7716: Disable scans while setting local RPA
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

7 years agoSupport for H7 function for key derivation
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

7 years agoUse device privacy mode as default
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

7 years agoESR11-E7716: Disable scans while setting local RPA
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

7 years agoSupport for H7 function for key derivation
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

7 years agoCreate unit test framework for audio_a2dp_hw
Pavlin Radoslavov [Sat, 8 Apr 2017 02:09:43 +0000 (02:09 +0000)]
Create unit test framework for audio_a2dp_hw
am: bdd34d216a

Change-Id: I253350ea32b2e74d1ea6952b84a7469e24b86522

7 years agoDO NOT MERGE ANYWHERE Mark AutoConnParamUpdateAddr on first auto connection param...
Jacky Cheung [Sat, 8 Apr 2017 00:09:09 +0000 (00:09 +0000)]
DO NOT MERGE ANYWHERE Mark AutoConnParamUpdateAddr on first auto connection param update am: dd467f108f  -s ours am: 1386ae5d92  -s ours
am: 9f8c8f7ed6  -s ours

Change-Id: I738bd874588222e8cceff14024926d7b25837801

7 years agoCreate unit test framework for audio_a2dp_hw
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
(cherry picked from commit 304ceeb5202060a9c625a55369cbf28d72f5e2d9)

7 years agoMerge "Create unit test framework for audio_a2dp_hw am: 304ceeb520 am: 26c22ec870...
Pavlin Radoslavov [Sat, 8 Apr 2017 00:01:36 +0000 (00:01 +0000)]
Merge "Create unit test framework for audio_a2dp_hw am: 304ceeb520 am: 26c22ec870" into nyc-mr2-dev-plus-aosp
am: 6cf360993e

Change-Id: Id7bc753f226ef6047f3cd585e6bda59e5891c3f8

7 years agoDO NOT MERGE ANYWHERE Mark AutoConnParamUpdateAddr on first auto connection param...
Jacky Cheung [Sat, 8 Apr 2017 00:01:19 +0000 (00:01 +0000)]
DO NOT MERGE ANYWHERE Mark AutoConnParamUpdateAddr on first auto connection param update am: dd467f108f  -s ours am: 1386ae5d92  -s ours
am: eee345d866  -s ours

Change-Id: I0702654fa95225bbb6d936b0a350320b396d0730

7 years agoMerge "Create unit test framework for audio_a2dp_hw am: 304ceeb520 am: 26c22ec870...
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

7 years agoCreate unit test framework for audio_a2dp_hw am: 304ceeb520
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

7 years agoDO NOT MERGE ANYWHERE Mark AutoConnParamUpdateAddr on first auto connection param...
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: Ieea4194c4ea69e72f92a21dbd08eff94d390a02d

7 years agoDO NOT MERGE ANYWHERE Mark AutoConnParamUpdateAddr on first auto connection param...
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

7 years agoCreate unit test framework for audio_a2dp_hw
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

7 years agoDO NOT MERGE ANYWHERE Mark AutoConnParamUpdateAddr on first auto connection param...
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

7 years agoCreate unit test framework for audio_a2dp_hw
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

7 years agoFix "LE Read Maximum Advertising Data Length" response parsing
Jakub Pawlowski [Fri, 7 Apr 2017 18:18:22 +0000 (18:18 +0000)]
Fix "LE Read Maximum Advertising Data Length" response parsing
am: 910f8b6439

Change-Id: I6553c56066346fb1cf08038c31d71cb86911ec68

7 years agoFix "LE Read Maximum Advertising Data Length" response parsing
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
(cherry picked from commit 16899e9d1ef49aedba8435ff3a5e4476f036427a)

7 years agoFix "LE Read Maximum Advertising Data Length" response parsing am: 16899e9d1e am...
Jakub Pawlowski [Thu, 6 Apr 2017 17:26:50 +0000 (17:26 +0000)]
Fix "LE Read Maximum Advertising Data Length" response parsing am: 16899e9d1e am: d869d9c378
am: 123c4d655f

Change-Id: Icdb9857320781776a58622731ad2b23ed3daea85

7 years agoFix "LE Read Maximum Advertising Data Length" response parsing am: 16899e9d1e
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

7 years agoFix "LE Read Maximum Advertising Data Length" response parsing
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

7 years agoFix "LE Read Maximum Advertising Data Length" response parsing
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

7 years agoMerge "Add default AVRCP version to prevent confusing log message" am: 6f1f3379c5...
Ajay Panicker [Wed, 5 Apr 2017 23:48:08 +0000 (23:48 +0000)]
Merge "Add default AVRCP version to prevent confusing log message" am: 6f1f3379c5 am: 31c945806f
am: cfa27dc549

Change-Id: I7e342f0b0863479d3bf9ad8abd4e5498c17f3c3e

7 years agoMerge "Add default AVRCP version to prevent confusing log message" am: 6f1f3379c5
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

7 years agoMerge "Add default AVRCP version to prevent confusing log message"
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

7 years agoMerge "Add default AVRCP version to prevent confusing log message"
Treehugger Robot [Wed, 5 Apr 2017 23:36:40 +0000 (23:36 +0000)]
Merge "Add default AVRCP version to prevent confusing log message"

7 years agoFinish conversion to Android.bp
Myles Watson [Wed, 5 Apr 2017 17:59:23 +0000 (17:59 +0000)]
Finish conversion to Android.bp
am: e311cf9068

Change-Id: I460cb0f381d6f2be011f84c0555e47486f47ed0a

7 years agoMerge "test: Add a simulated Bluetooth HAL implementation" into oc-dev
Myles Watson [Wed, 5 Apr 2017 17:59:13 +0000 (17:59 +0000)]
Merge "test: Add a simulated Bluetooth HAL implementation" into oc-dev
am: 4307daa017

Change-Id: I11d0dfd0293996b030f61f1b88a24efc40dc4d19

7 years agoFinish conversion to Android.bp
Myles Watson [Tue, 7 Mar 2017 13:00:04 +0000 (05:00 -0800)]
Finish conversion to Android.bp

Bug: 356519023567257636810308
Test: build, Android Cloud Bluetooth net_test_bluetooth
Change-Id: Ie99966d610ea35ab8caf8a084d92c43618e90b94

7 years agoMerge "test: Add a simulated Bluetooth HAL implementation" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 17:51:07 +0000 (17:51 +0000)]
Merge "test: Add a simulated Bluetooth HAL implementation" into oc-dev

7 years agoMerge "Add test config to net_test_hci" am: 2986b2b949 am: 90322eff6e
Dan Shi [Wed, 5 Apr 2017 16:39:20 +0000 (16:39 +0000)]
Merge "Add test config to net_test_hci" am: 2986b2b949 am: 90322eff6e
am: a09aa88cfe

Change-Id: I098107f3e10852c0516c62baa55bb89afdc545b1

7 years agoMerge "Add test config to net_test_device" am: 84054a8942 am: 305cd4c7bd
Dan Shi [Wed, 5 Apr 2017 16:39:08 +0000 (16:39 +0000)]
Merge "Add test config to net_test_device" am: 84054a8942 am: 305cd4c7bd
am: c12719b657

Change-Id: Ifd804e322f5eebc00bd95b57a6e1d840fff64b4d

7 years agoMerge "Add test config to net_test_hci" am: 2986b2b949
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

7 years agoMerge "Add test config to net_test_device" am: 84054a8942
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

7 years agoMerge "Add test config to net_test_hci"
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

7 years agoMerge "Add test config to net_test_device"
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

7 years agoMerge "Add test config to net_test_hci"
Dan Shi [Wed, 5 Apr 2017 16:29:14 +0000 (16:29 +0000)]
Merge "Add test config to net_test_hci"

7 years agoMerge "Add test config to net_test_device"
Dan Shi [Wed, 5 Apr 2017 16:28:39 +0000 (16:28 +0000)]
Merge "Add test config to net_test_device"

7 years agoCompute the audio data buffer size based on stream characteristics
Pavlin Radoslavov [Wed, 5 Apr 2017 11:23:18 +0000 (11:23 +0000)]
Compute the audio data buffer size based on stream characteristics
am: ae9db0f8fa

Change-Id: I827ee27553b3f65364f99d5b9888194564326ccf

7 years agoMerge "Add test config to net_test_btcore" am: 686bcbb817 am: 7e2aa70dc2
Dan Shi [Wed, 5 Apr 2017 08:24:09 +0000 (08:24 +0000)]
Merge "Add test config to net_test_btcore" am: 686bcbb817 am: 7e2aa70dc2
am: 5ce964632c

Change-Id: I06fa5672ae59d266dcc0e9681527166fef925540

7 years agoMerge "Add test config to net_test_btcore" am: 686bcbb817
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

7 years agoMerge "Add test config to net_test_btcore"
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

7 years agoMerge "Add test config to net_test_btcore"
Treehugger Robot [Wed, 5 Apr 2017 08:14:16 +0000 (08:14 +0000)]
Merge "Add test config to net_test_btcore"

7 years agoAdd test config to net_test_hci
Dan Shi [Sat, 1 Apr 2017 00:12:46 +0000 (17:12 -0700)]
Add test config to net_test_hci

This change allows TradeFederation to run the test directly.
Refer to b/35882476 for design and discussion of this change.

Bug: 35882476
Test: local test
tradefed.sh run template/local --template:map test=net_test_hci

Change-Id: Ifbac48ad8b425f43e6c919696cc72d5997e614db

7 years agotest: Add a simulated Bluetooth HAL implementation
Myles Watson [Tue, 7 Mar 2017 12:28:51 +0000 (04:28 -0800)]
test: Add a simulated Bluetooth HAL implementation

Bug: 35672576
Test: Angler Bluetooth starts/stops with test HAL
      Android Cloud net_test_bluetooth tests pass
Change-Id: I104e0dd3946f0efff9709e05c056bee3538394f7

7 years agoCompute the audio data buffer size based on stream characteristics
Pavlin Radoslavov [Tue, 4 Apr 2017 18:31:29 +0000 (11:31 -0700)]
Compute the audio data buffer size based on stream characteristics

Use the audio data stream characteristics (sample rate, bits per sample,
channel mode) to compute the audio stream output buffer size from
the Audio A2DP HAL to the Bluetooth stack.

Previously, the buffer size was pre-computed based on the original
(44.1kHz, 16 bits per sample, Stereo) PCM audio stream used by SBC.
NOTE: We cannot change the buffer size on the receiver side (Bluetooth),
because SO_RCVBUF option does not have effect for Domain Sockets.

Also, removed uipc_linux.h header file, because it is not used.

Test: A2DP streaming and switching the codecs, sample rate, bits per sample
Bug: 35849921
Change-Id: Ib6772f7564442ac18a02876a5aa5e3208e5aade1
(cherry picked from commit b32704f424e0ab4cd33ad670173997f8e3a0a31c)

7 years agoMerge "Compute the audio data buffer size based on stream characteristics" am: 1fbbc3...
Pavlin Radoslavov [Wed, 5 Apr 2017 02:40:47 +0000 (02:40 +0000)]
Merge "Compute the audio data buffer size based on stream characteristics" am: 1fbbc39d0c am: 409c280468
am: 77286a99e0

Change-Id: I99e72c1c5064403de0a1f35e19b0e0fc8c74ce45

7 years agoMerge "Compute the audio data buffer size based on stream characteristics" am: 1fbbc39d0c
Pavlin Radoslavov [Wed, 5 Apr 2017 02:38:17 +0000 (02:38 +0000)]
Merge "Compute the audio data buffer size based on stream characteristics" am: 1fbbc39d0c
am: 409c280468

Change-Id: Id2be07e2205ec2b257ee742b2c264b5b5b418c2b

7 years agoMerge "Compute the audio data buffer size based on stream characteristics"
Pavlin Radoslavov [Wed, 5 Apr 2017 02:36:16 +0000 (02:36 +0000)]
Merge "Compute the audio data buffer size based on stream characteristics"
am: 1fbbc39d0c

Change-Id: Idf1c06635f32e5ecc94ee52d274a0fb08cc52337

7 years agoMerge "Compute the audio data buffer size based on stream characteristics"
Treehugger Robot [Wed, 5 Apr 2017 02:30:35 +0000 (02:30 +0000)]
Merge "Compute the audio data buffer size based on stream characteristics"

7 years agoMerge "Add test config to net_test_bluetooth" am: ee8965eb9b am: c4ecd95a22
Dan Shi [Wed, 5 Apr 2017 02:15:15 +0000 (02:15 +0000)]
Merge "Add test config to net_test_bluetooth" am: ee8965eb9b am: c4ecd95a22
am: e2ef2c8d38

Change-Id: I61025872a4050c0b48db8de4cc737831a2d33ce5

7 years agoMerge "Add test config to net_test_bluetooth" am: ee8965eb9b
Dan Shi [Wed, 5 Apr 2017 02:13:15 +0000 (02:13 +0000)]
Merge "Add test config to net_test_bluetooth" am: ee8965eb9b
am: c4ecd95a22

Change-Id: I9f28b892c30395b0c2dfd3f9986d4ae39b74111c

7 years agoMerge "Add test config to net_test_bluetooth"
Dan Shi [Wed, 5 Apr 2017 02:11:14 +0000 (02:11 +0000)]
Merge "Add test config to net_test_bluetooth"
am: ee8965eb9b

Change-Id: I0d1d12ecec9d325eb860ff44bddddc40a5252b5a

7 years agoMerge "Add test config to net_test_bluetooth"
Treehugger Robot [Wed, 5 Apr 2017 02:07:44 +0000 (02:07 +0000)]
Merge "Add test config to net_test_bluetooth"

7 years agoFinish conversion to Android.bp am: e59cbd20e1 am: 1bc478b57a
Myles Watson [Wed, 5 Apr 2017 00:27:52 +0000 (00:27 +0000)]
Finish conversion to Android.bp am: e59cbd20e1 am: 1bc478b57a
am: 7aabdc90b3

Change-Id: I2b84ba7517f80974e19aa60cf1fff8f8afeefb4c

7 years agotest: Add a simulated Bluetooth HAL implementation am: 73ad031083 am: 8b2852a243
Myles Watson [Wed, 5 Apr 2017 00:27:46 +0000 (00:27 +0000)]
test: Add a simulated Bluetooth HAL implementation am: 73ad031083 am: 8b2852a243
am: 809c6ff051

Change-Id: I7e72f10066b46a9afef7a4bb9318171f4241f24c

7 years agoCompute the audio data buffer size based on stream characteristics
Pavlin Radoslavov [Tue, 4 Apr 2017 18:31:29 +0000 (11:31 -0700)]
Compute the audio data buffer size based on stream characteristics

Use the audio data stream characteristics (sample rate, bits per sample,
channel mode) to compute the audio stream output buffer size from
the Audio A2DP HAL to the Bluetooth stack.

Previously, the buffer size was pre-computed based on the original
(44.1kHz, 16 bits per sample, Stereo) PCM audio stream used by SBC.
NOTE: We cannot change the buffer size on the receiver side (Bluetooth),
because SO_RCVBUF option does not have effect for Domain Sockets.

Also, removed uipc_linux.h header file, because it is not used.

Test: A2DP streaming and switching the codecs, sample rate, bits per sample
Bug: 35849921
Change-Id: Ib6772f7564442ac18a02876a5aa5e3208e5aade1

7 years agoFinish conversion to Android.bp am: e59cbd20e1
Myles Watson [Wed, 5 Apr 2017 00:18:11 +0000 (00:18 +0000)]
Finish conversion to Android.bp am: e59cbd20e1
am: 1bc478b57a

Change-Id: Id1dba01c9a1b15d3bbb6fed99b4aa4b6c1569f56

7 years agotest: Add a simulated Bluetooth HAL implementation am: 73ad031083
Myles Watson [Wed, 5 Apr 2017 00:18:07 +0000 (00:18 +0000)]
test: Add a simulated Bluetooth HAL implementation am: 73ad031083
am: 8b2852a243

Change-Id: Ie7bb48e20cae7b341cb0ce8280c71588a4d578f7

7 years agoFinish conversion to Android.bp
Myles Watson [Wed, 5 Apr 2017 00:15:40 +0000 (00:15 +0000)]
Finish conversion to Android.bp
am: e59cbd20e1

Change-Id: I5cbe1ad7636d5ba8ce6af4f2ff98ed704b08dc4e

7 years agotest: Add a simulated Bluetooth HAL implementation
Myles Watson [Wed, 5 Apr 2017 00:15:36 +0000 (00:15 +0000)]
test: Add a simulated Bluetooth HAL implementation
am: 73ad031083

Change-Id: I896613c1ef6a756b807ab21f541f5dc9ca4e0bd2

7 years agoAdd test config to net_test_bluetooth
Dan Shi [Thu, 30 Mar 2017 20:41:12 +0000 (13:41 -0700)]
Add test config to net_test_bluetooth

This change allows TradeFederation to run the test directly.
Refer to b/35882476 for design and discussion of this change.

Bug: 35882476
Test: local test
Change-Id: I45100b2be22906f2b631d3377749b86f8f1b6ecd

7 years agoFinish conversion to Android.bp
Myles Watson [Tue, 7 Mar 2017 13:00:04 +0000 (05:00 -0800)]
Finish conversion to Android.bp

Bug: 356519023567257636810308
Test: build, Android Cloud Bluetooth net_test_bluetooth
Change-Id: Ie99966d610ea35ab8caf8a084d92c43618e90b94

7 years agotest: Add a simulated Bluetooth HAL implementation
Myles Watson [Tue, 7 Mar 2017 12:28:51 +0000 (04:28 -0800)]
test: Add a simulated Bluetooth HAL implementation

Bug: 35672576
Test: Angler Bluetooth starts/stops with test HAL
      Android Cloud net_test_bluetooth tests pass
Change-Id: I104e0dd3946f0efff9709e05c056bee3538394f7