OSDN Git Service

android-x86/system-bt.git
7 years agoCompute the audio data buffer size based on stream characteristics am: ae9db0f8fa
Pavlin Radoslavov [Wed, 5 Apr 2017 11:25:48 +0000 (11:25 +0000)]
Compute the audio data buffer size based on stream characteristics am: ae9db0f8fa
am: 280ba21490

Change-Id: I3dca5db74beb09b4f3d43606b294c11a236b5c8f

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 am: 5ce964632c
Dan Shi [Wed, 5 Apr 2017 08:26:10 +0000 (08:26 +0000)]
Merge "Add test config to net_test_btcore" am: 686bcbb817 am: 7e2aa70dc2 am: 5ce964632c
am: 584f017cf1

Change-Id: If05b5494ad5c5afafaaff5d0ec830b0f83cbf527

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 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:46:43 +0000 (02:46 +0000)]
Merge "Compute the audio data buffer size based on stream characteristics" am: 1fbbc39d0c am: 409c280468 am: 77286a99e0
am: 57b4143ac0

Change-Id: Iab061f919dd1334220df6b01013e1b51fef374e3

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 am: e2ef2...
Dan Shi [Wed, 5 Apr 2017 02:17:46 +0000 (02:17 +0000)]
Merge "Add test config to net_test_bluetooth" am: ee8965eb9b am: c4ecd95a22 am: e2ef2c8d38
am: e41d05e3d9

Change-Id: I0f6d1f48c3d67eacd54bc97ba8026e1fc65677b9

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 am: 7aabdc90b3
Myles Watson [Wed, 5 Apr 2017 00:31:42 +0000 (00:31 +0000)]
Finish conversion to Android.bp am: e59cbd20e1 am: 1bc478b57a am: 7aabdc90b3
am: 269470d97c

Change-Id: I3b9abcaf59eceac0c2f94987afff7952df1813c7

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

Change-Id: I1fcbe99a3afacd404868707fff40487aabd29ae7

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

7 years agotest-vendor-lib: Enable building for 64 bits am: b24adecb51
Jorge E. Moreira [Mon, 3 Apr 2017 20:38:26 +0000 (20:38 +0000)]
test-vendor-lib: Enable building for 64 bits am: b24adecb51
am: d3ecfb6153

Change-Id: I483d845d3f50e50608695ee5cc86e9934e70a7b2

7 years agotest-vendor-lib: Enable building for 64 bits
Jorge E. Moreira [Mon, 3 Apr 2017 20:34:36 +0000 (20:34 +0000)]
test-vendor-lib: Enable building for 64 bits
am: b24adecb51

Change-Id: If034b293b0c9128728f97cca763fb53c134b63c0

7 years agotest-vendor-lib: Enable building for 64 bits
Jorge E. Moreira [Mon, 27 Mar 2017 22:44:55 +0000 (15:44 -0700)]
test-vendor-lib: Enable building for 64 bits

Removes LOCAL_MODULE_PATH which is not supported for 64 bit builds.
Uses LOCAL_PROPRIETARY_MODULE to let the build system know it should
go in the vendor directory.

Test: builds
Change-Id: Iba55d497d8cbe97911a41a5623248306a8954ec2
(cherry picked from commit 77c6bc5886da34011fc6b6bfcc15cf19dc4b5b68)

7 years agoaudio_a2dp_hw: add device lock am: 2328b5754d am: db5123ef19 am: 09ed061cf7
Andy Hung [Mon, 3 Apr 2017 19:05:31 +0000 (19:05 +0000)]
audio_a2dp_hw: add device lock am: 2328b5754d am: db5123ef19 am: 09ed061cf7
am: 8f1d740f83

Change-Id: I3694dddfa46d998e4479bd3c41830cefba6d0055

7 years agoaudio_a2dp_hw: add device lock am: 2328b5754d am: db5123ef19
Andy Hung [Mon, 3 Apr 2017 19:02:00 +0000 (19:02 +0000)]
audio_a2dp_hw: add device lock am: 2328b5754d am: db5123ef19
am: 09ed061cf7

Change-Id: I553b414782eeb80e5278b7b694245b02c0dfd16d

7 years agoaudio_a2dp_hw: add device lock am: b1a900fcc9
Andy Hung [Mon, 3 Apr 2017 18:58:41 +0000 (18:58 +0000)]
audio_a2dp_hw: add device lock am: b1a900fcc9
am: b26e5b3204

Change-Id: I293a6f89204936c0e545a6417cfafdf11303727c

7 years agoaudio_a2dp_hw: add device lock am: 2328b5754d
Andy Hung [Mon, 3 Apr 2017 18:58:30 +0000 (18:58 +0000)]
audio_a2dp_hw: add device lock am: 2328b5754d
am: db5123ef19

Change-Id: I60942da4c1cd6f4c031aeae8052518c2f0577a5e

7 years agoaudio_a2dp_hw: add device lock
Andy Hung [Mon, 3 Apr 2017 18:55:30 +0000 (18:55 +0000)]
audio_a2dp_hw: add device lock
am: 2328b5754d

Change-Id: Ia27886aed87b2e7076d92f68b303d34cfd22df66

7 years agoaudio_a2dp_hw: add device lock
Andy Hung [Mon, 3 Apr 2017 18:55:30 +0000 (18:55 +0000)]
audio_a2dp_hw: add device lock
am: b1a900fcc9

Change-Id: Ia00bdd5a2e6f05652d797cc2f143fb8511669f57

7 years agoaudio_a2dp_hw: add device lock
Andy Hung [Thu, 30 Mar 2017 23:28:46 +0000 (16:28 -0700)]
audio_a2dp_hw: add device lock

Prevent conflict between closing a stream (adev_close_output_stream)
and setting parameters (adev_set_parameters).

Test: Manual - Bluetooth A2DP streaming and changing codec parameters
Bug: 36723276
Change-Id: Id8b9fcdf594e3d5fde139719d324420468c4c0aa
(cherry picked from commit b1a900fcc9903f0988b6f8c1a470b9c718aedf1f)

7 years agoaudio_a2dp_hw: add device lock
Andy Hung [Thu, 30 Mar 2017 23:28:46 +0000 (16:28 -0700)]
audio_a2dp_hw: add device lock

Prevent conflict between closing a stream (adev_close_output_stream)
and setting parameters (adev_set_parameters).

Test: Manual - Bluetooth A2DP streaming and changing codec parameters
Bug: 36723276
Change-Id: Id8b9fcdf594e3d5fde139719d324420468c4c0aa

7 years agoMerge "Add test config to bluetoothtbd_test" am: 615b7cdd98 am: 68b9d94a70 am: 3fcbcf01cd
Dan Shi [Sun, 2 Apr 2017 06:02:56 +0000 (06:02 +0000)]
Merge "Add test config to bluetoothtbd_test" am: 615b7cdd98 am: 68b9d94a70 am: 3fcbcf01cd
am: c8dc61584f

Change-Id: I863352ddc0d57ceb138f081a9be3ae24e466b563

7 years agoMerge "Add test config to bluetoothtbd_test" am: 615b7cdd98 am: 68b9d94a70
Dan Shi [Sun, 2 Apr 2017 05:58:55 +0000 (05:58 +0000)]
Merge "Add test config to bluetoothtbd_test" am: 615b7cdd98 am: 68b9d94a70
am: 3fcbcf01cd

Change-Id: I6ec4fff5012018e4c60495a277bd46b827078962

7 years agoMerge "Add test config to net_test_osi" am: 4f9e3c6376 am: df9ba4ba20 am: 617932a003
Dan Shi [Sun, 2 Apr 2017 05:58:55 +0000 (05:58 +0000)]
Merge "Add test config to net_test_osi" am: 4f9e3c6376 am: df9ba4ba20 am: 617932a003
am: e1b1439204

Change-Id: Iac8cc81a4f80cb4951aea1e9a9b8842826420f60

7 years agoMerge "Add test config to bluetoothtbd_test" am: 615b7cdd98
Dan Shi [Sun, 2 Apr 2017 05:55:55 +0000 (05:55 +0000)]
Merge "Add test config to bluetoothtbd_test" am: 615b7cdd98
am: 68b9d94a70

Change-Id: I66f7d68b0200fe8931ee51a59137dd3e34c1e51b

7 years agoMerge "Add test config to net_test_osi" am: 4f9e3c6376 am: df9ba4ba20
Dan Shi [Sun, 2 Apr 2017 05:55:55 +0000 (05:55 +0000)]
Merge "Add test config to net_test_osi" am: 4f9e3c6376 am: df9ba4ba20
am: 617932a003

Change-Id: Ic60e534f3c81bdf056e9fa77e34071c986593961

7 years agoMerge "Add test config to bluetoothtbd_test"
Dan Shi [Sun, 2 Apr 2017 05:52:24 +0000 (05:52 +0000)]
Merge "Add test config to bluetoothtbd_test"
am: 615b7cdd98

Change-Id: If1f5c7a9aee317a14d26d2f3d384d0336aee6b97

7 years agoMerge "Add test config to net_test_osi" am: 4f9e3c6376
Dan Shi [Sun, 2 Apr 2017 05:52:24 +0000 (05:52 +0000)]
Merge "Add test config to net_test_osi" am: 4f9e3c6376
am: df9ba4ba20

Change-Id: I2dd7109d432ec3af46fccf8c6a1519c1090aee42

7 years agoMerge "Add test config to net_test_osi"
Dan Shi [Sun, 2 Apr 2017 05:49:24 +0000 (05:49 +0000)]
Merge "Add test config to net_test_osi"
am: 4f9e3c6376

Change-Id: Iffa7f3862d25d09735cd69bd891554efc85f5dc4

7 years agoMerge "Add test config to bluetoothtbd_test"
Treehugger Robot [Sun, 2 Apr 2017 05:48:36 +0000 (05:48 +0000)]
Merge "Add test config to bluetoothtbd_test"

7 years agoMerge "Add test config to net_test_osi"
Treehugger Robot [Sun, 2 Apr 2017 05:46:57 +0000 (05:46 +0000)]
Merge "Add test config to net_test_osi"

7 years agoBluetooth 5 advertising duration refactoring (1/4) am: a3129f158e
Jakub Pawlowski [Sat, 1 Apr 2017 16:03:27 +0000 (16:03 +0000)]
Bluetooth 5 advertising duration refactoring (1/4) am: a3129f158e
am: 9f2107a217

Change-Id: Ia35938411528aef4789c03851eb24d3634efd466

7 years agoInclude flags in all connectable packets am: c4232a76ac
Jakub Pawlowski [Sat, 1 Apr 2017 16:03:22 +0000 (16:03 +0000)]
Include flags in all connectable packets am: c4232a76ac
am: 44fed6b7e9

Change-Id: I90099b6178fe35b9ac3de664156dc770746a2398

7 years agoBluetooth 5 periodic scan (2/3) am: f786f00560
Jakub Pawlowski [Sat, 1 Apr 2017 16:03:18 +0000 (16:03 +0000)]
Bluetooth 5 periodic scan (2/3) am: f786f00560
am: d856e889bb

Change-Id: If44f307708eeac3d42d444e8d3941d122a3910ab

7 years agoBluetooth 5 advertising duration refactoring (1/4)
Jakub Pawlowski [Sat, 1 Apr 2017 15:58:15 +0000 (15:58 +0000)]
Bluetooth 5 advertising duration refactoring (1/4)
am: a3129f158e

Change-Id: Ib4c2a9cb116d17847c3c2671e5e75b3a21096225

7 years agoInclude flags in all connectable packets
Jakub Pawlowski [Sat, 1 Apr 2017 15:58:10 +0000 (15:58 +0000)]
Include flags in all connectable packets
am: c4232a76ac

Change-Id: I80624abdd48ac6d2b88f4182e333d1a9d67b5b7b

7 years agoBluetooth 5 periodic scan (2/3)
Jakub Pawlowski [Sat, 1 Apr 2017 15:58:04 +0000 (15:58 +0000)]
Bluetooth 5 periodic scan (2/3)
am: f786f00560

Change-Id: I9dd110ba2f8ab344f60e7b8b85b230c6ee67c701

7 years agoBluetooth 5 advertising duration refactoring (1/4)
Jakub Pawlowski [Fri, 31 Mar 2017 03:41:02 +0000 (20:41 -0700)]
Bluetooth 5 advertising duration refactoring (1/4)

Expose both duration and maximum extended advertising events to limit
advertising time.

Test: manual
Bug: 30622771
Change-Id: I4475c322347899946b39e65026d8009e02c93759
(cherry picked from commit 5204c62f137de9b6c2834391fd329457d3fdbc84)

7 years agoInclude flags in all connectable packets
Jakub Pawlowski [Thu, 30 Mar 2017 18:52:53 +0000 (11:52 -0700)]
Include flags in all connectable packets

According to Bluetooth CSSv7, the flags field shall be included in all
connectable packets, not only legacy packets.

Test: manal
Bug: 30622771
Change-Id: I006f9bd6d31ca0673d78405f320b18623e6e5b16
(cherry picked from commit 9389b64629776238e6ee69b1f37bdec97187e75e)

7 years agoBluetooth 5 periodic scan (2/3)
Jakub Pawlowski [Wed, 29 Mar 2017 21:28:43 +0000 (14:28 -0700)]
Bluetooth 5 periodic scan (2/3)

This patch wires calls/callbacks through stack to prepare for actual
implementation.

Test: manual
Bug: 30622771
Change-Id: Iac8c74a228f34f5ea4231a76848e22ea64f11d06
(cherry picked from commit f685bfb7b1f6da17165a33590b18f559476e670f)

7 years agoBluetooth 5 advertising duration refactoring (1/4) am: 5204c62f13 am: 04f1daed8b...
Jakub Pawlowski [Sat, 1 Apr 2017 05:00:06 +0000 (05:00 +0000)]
Bluetooth 5 advertising duration refactoring (1/4) am: 5204c62f13 am: 04f1daed8b am: 68ffda69a7
am: 34d2179738

Change-Id: I76f039ffe5ba4e6451d71958a34ebec7d01e5f73

7 years agoBluetooth 5 advertising duration refactoring (1/4) am: 5204c62f13 am: 04f1daed8b
Jakub Pawlowski [Sat, 1 Apr 2017 04:55:10 +0000 (04:55 +0000)]
Bluetooth 5 advertising duration refactoring (1/4) am: 5204c62f13 am: 04f1daed8b
am: 68ffda69a7

Change-Id: I3674268f6e14e85adb161b49eba2c4585b8cf3e6

7 years agoBluetooth 5 advertising duration refactoring (1/4) am: 5204c62f13
Jakub Pawlowski [Sat, 1 Apr 2017 04:49:40 +0000 (04:49 +0000)]
Bluetooth 5 advertising duration refactoring (1/4) am: 5204c62f13
am: 04f1daed8b

Change-Id: Id5518559e89db5bcbf3129740c3489220ac42067

7 years agoBluetooth 5 advertising duration refactoring (1/4)
Jakub Pawlowski [Sat, 1 Apr 2017 04:42:53 +0000 (04:42 +0000)]
Bluetooth 5 advertising duration refactoring (1/4)
am: 5204c62f13

Change-Id: I5aa32aae1934ef4116f2bcf6160a075252aa335d

7 years agoBluetooth 5 advertising duration refactoring (1/4)
Jakub Pawlowski [Fri, 31 Mar 2017 03:41:02 +0000 (20:41 -0700)]
Bluetooth 5 advertising duration refactoring (1/4)

Expose both duration and maximum extended advertising events to limit
advertising time.

Test: manual
Bug: 30622771
Change-Id: I4475c322347899946b39e65026d8009e02c93759

7 years agoAVRCP CT: Only call handle_rc_features if target registered am: 7745e29576 am: dbb89b...
Bailey Forrest [Sat, 1 Apr 2017 00:42:06 +0000 (00:42 +0000)]
AVRCP CT: Only call handle_rc_features if target registered am: 7745e29576 am: dbb89ba44a am: dc0ad14ec1
am: 65f1f32f5d

Change-Id: I465c669575f724cf7f4fc55fa8a14a04bd533001

7 years agoAVRCP CT: Only call handle_rc_features if target registered am: 7745e29576 am: dbb89ba44a
Bailey Forrest [Sat, 1 Apr 2017 00:37:47 +0000 (00:37 +0000)]
AVRCP CT: Only call handle_rc_features if target registered am: 7745e29576 am: dbb89ba44a
am: dc0ad14ec1

Change-Id: I0a7b426ed5ff23d12e2b61088c4872900faf518b

7 years agoAVRCP CT: Only call handle_rc_features if target registered am: 7745e29576
Bailey Forrest [Sat, 1 Apr 2017 00:35:16 +0000 (00:35 +0000)]
AVRCP CT: Only call handle_rc_features if target registered am: 7745e29576
am: dbb89ba44a

Change-Id: Idb1d5354a3d645d83f0afeefe2007f1e427748ab

7 years agoAVRCP CT: Only call handle_rc_features if target registered
Bailey Forrest [Sat, 1 Apr 2017 00:32:46 +0000 (00:32 +0000)]
AVRCP CT: Only call handle_rc_features if target registered
am: 7745e29576

Change-Id: I68e25e8a3bc03fe3b739e9ca62df82655a2cf1e0

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

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=bluetoothtbd_test

Change-Id: I6a243fc0245e4c3aa0fc51f3ded40c63492e31e8

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

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_btcore

Change-Id: I336af9f5360540cec5fb406d38c90706891af5be

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

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_osi

Change-Id: I5e26b7a9047e44aeeed12c4bcfce1f998183b597

7 years agoAVRCP CT: Only call handle_rc_features if target registered
Bailey Forrest [Fri, 31 Mar 2017 04:43:28 +0000 (21:43 -0700)]
AVRCP CT: Only call handle_rc_features if target registered

If target is not registered, handle_rc_features would clear feature
flags before handle_rc_ctrl_features can use them.

Bug: b/35807779
Test: AVRCP controller track info works on iOS.
Change-Id: Iee781f2fc926a053ba9cf30089d3a49e56b94539

7 years agoMerge "Include flags in all connectable packets" am: b4bed63632 am: fec98481af am...
Jakub Pawlowski [Thu, 30 Mar 2017 21:03:52 +0000 (21:03 +0000)]
Merge "Include flags in all connectable packets" am: b4bed63632 am: fec98481af am: 5f98be6d53
am: e6db8cc81a

Change-Id: I8e98fc13623a9ac28eed2d4043dad2dd6143a933

7 years agoMerge "Include flags in all connectable packets" am: b4bed63632 am: fec98481af
Jakub Pawlowski [Thu, 30 Mar 2017 20:59:05 +0000 (20:59 +0000)]
Merge "Include flags in all connectable packets" am: b4bed63632 am: fec98481af
am: 5f98be6d53

Change-Id: Ie041b4dec7c6e0acfa04a633ee4401e1f659020a

7 years agoMerge "Include flags in all connectable packets" am: b4bed63632
Jakub Pawlowski [Thu, 30 Mar 2017 20:56:32 +0000 (20:56 +0000)]
Merge "Include flags in all connectable packets" am: b4bed63632
am: fec98481af

Change-Id: I7dd95fd854fb4a649d717b4456517bab5bb4911b

7 years agoMerge "Include flags in all connectable packets"
Jakub Pawlowski [Thu, 30 Mar 2017 20:55:04 +0000 (20:55 +0000)]
Merge "Include flags in all connectable packets"
am: b4bed63632

Change-Id: Id710017c3e63d45ee1b09c82a7f507ef4b3e189e

7 years agoMerge "Include flags in all connectable packets"
Treehugger Robot [Thu, 30 Mar 2017 20:53:10 +0000 (20:53 +0000)]
Merge "Include flags in all connectable packets"

7 years agoDelete bt_snoop.log when snoop logging is disabled am: f8360e4c14
Ajay Panicker [Thu, 30 Mar 2017 20:26:01 +0000 (20:26 +0000)]
Delete bt_snoop.log when snoop logging is disabled am: f8360e4c14
am: 5082b765b2

Change-Id: Ie01f90e7790f279af4208d2c30aa4c933de7b7d2

7 years agoDelete bt_snoop.log when snoop logging is disabled
Ajay Panicker [Thu, 30 Mar 2017 20:21:01 +0000 (20:21 +0000)]
Delete bt_snoop.log when snoop logging is disabled
am: f8360e4c14

Change-Id: Ib0933bf9444d7d4c23b21ea2e7bc31d1291f4159

7 years agoDelete bt_snoop.log when snoop logging is disabled am: f786aac482 am: 502cf8bd64...
Ajay Panicker [Thu, 30 Mar 2017 19:57:39 +0000 (19:57 +0000)]
Delete bt_snoop.log when snoop logging is disabled am: f786aac482 am: 502cf8bd64 am: 6b463b3e88
am: bce84df931

Change-Id: I3cb461fa84edae1f3bf6640bc8daba19c34e687a

7 years agoDelete bt_snoop.log when snoop logging is disabled am: f786aac482 am: 502cf8bd64
Ajay Panicker [Thu, 30 Mar 2017 19:54:30 +0000 (19:54 +0000)]
Delete bt_snoop.log when snoop logging is disabled am: f786aac482 am: 502cf8bd64
am: 6b463b3e88

Change-Id: I829d55d628614061a97952608aaa87c781239e1b

7 years agoDelete bt_snoop.log when snoop logging is disabled am: f786aac482
Ajay Panicker [Thu, 30 Mar 2017 19:52:30 +0000 (19:52 +0000)]
Delete bt_snoop.log when snoop logging is disabled am: f786aac482
am: 502cf8bd64

Change-Id: If308fd2c4e1d155679370f9fd03959486389223c

7 years agoDelete bt_snoop.log when snoop logging is disabled
Ajay Panicker [Thu, 30 Mar 2017 19:49:58 +0000 (19:49 +0000)]
Delete bt_snoop.log when snoop logging is disabled
am: f786aac482

Change-Id: I3359087dc96042e914ef8bcfcff3a735140c2751

7 years agoInclude flags in all connectable packets
Jakub Pawlowski [Thu, 30 Mar 2017 18:52:53 +0000 (11:52 -0700)]
Include flags in all connectable packets

According to Bluetooth CSSv7, the flags field shall be included in all
connectable packets, not only legacy packets.

Test: manal
Bug: 30622771
Change-Id: I006f9bd6d31ca0673d78405f320b18623e6e5b16

7 years agoDelete bt_snoop.log when snoop logging is disabled
Ajay Panicker [Thu, 30 Mar 2017 17:33:19 +0000 (10:33 -0700)]
Delete bt_snoop.log when snoop logging is disabled

This patch will immediatly delete the snoop log if Bluetooth is on. If Bluetooth
is off it will delete the log as soon as Bluetooth starts again.

Test: Turn off logging while Bluetooth is on and off
Bug: 36718948
Change-Id: Ib660cd442c93f1a34c948d51c5cffc38695558d5

7 years agoDelete bt_snoop.log when snoop logging is disabled
Ajay Panicker [Thu, 30 Mar 2017 17:33:19 +0000 (10:33 -0700)]
Delete bt_snoop.log when snoop logging is disabled

This patch will immediatly delete the snoop log if Bluetooth is on. If Bluetooth
is off it will delete the log as soon as Bluetooth starts again.

Test: Turn off logging while Bluetooth is on and off
Bug: 36718948
Change-Id: Ib660cd442c93f1a34c948d51c5cffc38695558d5

7 years agoBluetooth 5 periodic scan (2/3) am: f685bfb7b1 am: 60c19a4310 am: fde133bbe5
Jakub Pawlowski [Thu, 30 Mar 2017 03:41:29 +0000 (03:41 +0000)]
Bluetooth 5 periodic scan (2/3) am: f685bfb7b1 am: 60c19a4310 am: fde133bbe5
am: e05bd8bec4

Change-Id: I12343792926d7394e6a517e10f382d209188fdf3

7 years agoBluetooth 5 periodic scan (2/3) am: f685bfb7b1 am: 60c19a4310
Jakub Pawlowski [Thu, 30 Mar 2017 03:38:00 +0000 (03:38 +0000)]
Bluetooth 5 periodic scan (2/3) am: f685bfb7b1 am: 60c19a4310
am: fde133bbe5

Change-Id: I467cc25e9f709fc70fb60977a6d79050648dce15

7 years agoBluetooth 5 periodic scan (2/3) am: f685bfb7b1
Jakub Pawlowski [Thu, 30 Mar 2017 03:33:09 +0000 (03:33 +0000)]
Bluetooth 5 periodic scan (2/3) am: f685bfb7b1
am: 60c19a4310

Change-Id: Ia20d4fb380534d7dda4f821c30c5307ef4ef8c3c

7 years agoBluetooth 5 periodic scan (2/3)
Jakub Pawlowski [Thu, 30 Mar 2017 03:30:10 +0000 (03:30 +0000)]
Bluetooth 5 periodic scan (2/3)
am: f685bfb7b1

Change-Id: I36365df844aa015b9481c0f1fbfb6e8b5450e321

7 years agoMerge "l2cap: Use CHECK for memory allocation errors" into oc-dev am: 52e33dfa24
Myles Watson [Thu, 30 Mar 2017 02:51:50 +0000 (02:51 +0000)]
Merge "l2cap: Use CHECK for memory allocation errors" into oc-dev am: 52e33dfa24
am: 0f2d248bc1

Change-Id: I99468383ca5442dab1b769cc3fb7498565cc1b92

7 years agoMerge "l2cap: Use CHECK for memory allocation errors" into oc-dev
Myles Watson [Thu, 30 Mar 2017 02:49:52 +0000 (02:49 +0000)]
Merge "l2cap: Use CHECK for memory allocation errors" into oc-dev
am: 52e33dfa24

Change-Id: Iadf8792d5074b8f7130d2192d3eb16b6f1a5e4e8

7 years agoMerge "l2cap: Use CHECK for memory allocation errors" into oc-dev
TreeHugger Robot [Thu, 30 Mar 2017 02:40:54 +0000 (02:40 +0000)]
Merge "l2cap: Use CHECK for memory allocation errors" into oc-dev

7 years agoMerge "osi: Update error messages" into oc-dev am: a86f559968
Myles Watson [Thu, 30 Mar 2017 02:01:52 +0000 (02:01 +0000)]
Merge "osi: Update error messages" into oc-dev am: a86f559968
am: 3082180cef

Change-Id: I9b0adc959160b342ac79b9f977b415418735e462

7 years agoMerge "hci: Update error messages" into oc-dev am: 9b0dab91b0
Myles Watson [Thu, 30 Mar 2017 02:01:42 +0000 (02:01 +0000)]
Merge "hci: Update error messages" into oc-dev am: 9b0dab91b0
am: 31b1051981

Change-Id: Iab3a69f0b33548764699c5a99e48405b0f34bf8d

7 years agoMerge "osi: Update error messages" into oc-dev
Myles Watson [Thu, 30 Mar 2017 01:53:13 +0000 (01:53 +0000)]
Merge "osi: Update error messages" into oc-dev
am: a86f559968

Change-Id: Ib49745d7050e1cecffa8e510559f39ddacdefc0b

7 years agoMerge "hci: Update error messages" into oc-dev
Myles Watson [Thu, 30 Mar 2017 01:53:02 +0000 (01:53 +0000)]
Merge "hci: Update error messages" into oc-dev
am: 9b0dab91b0

Change-Id: I18ce3541212afe0d9a44b72e8219bd920f1a739c

7 years agoMerge "osi: Update error messages" into oc-dev
TreeHugger Robot [Thu, 30 Mar 2017 01:39:52 +0000 (01:39 +0000)]
Merge "osi: Update error messages" into oc-dev

7 years agoMerge "hci: Update error messages" into oc-dev
TreeHugger Robot [Thu, 30 Mar 2017 01:36:05 +0000 (01:36 +0000)]
Merge "hci: Update error messages" into oc-dev