OSDN Git Service

android-x86/system-bt.git
8 years agoReplace hash_map in data_dispatcher with C++ unordered_map am: 2b56e01a2d
Jakub Pawlowski [Thu, 26 May 2016 22:04:46 +0000 (22:04 +0000)]
Replace hash_map in data_dispatcher with C++ unordered_map am: 2b56e01a2d
am: 1a7aba1f8b

* commit '1a7aba1f8bf9c5cd3a7b14ca307e686e06caf6a6':
  Replace hash_map in data_dispatcher with C++ unordered_map

Change-Id: I9ad44acba2487093e2257bb72eac8ef978699bfe

8 years agoReplace hash_map in audio_a2dp_hw with C++ unordered_map am: 6a059517c7
Jakub Pawlowski [Thu, 26 May 2016 22:04:46 +0000 (22:04 +0000)]
Replace hash_map in audio_a2dp_hw with C++ unordered_map am: 6a059517c7
am: a1908496cd

* commit 'a1908496cdb95aa82c5ebd9e33abab8673515cbe':
  Replace hash_map in audio_a2dp_hw with C++ unordered_map

Change-Id: Id5cb4315b01c38750d0a90c24a5254d0770e9b27

8 years agoReplace hash_map in btm_ble_bgconn with C++ unordered_map am: 488005b16b
Jakub Pawlowski [Thu, 26 May 2016 22:04:45 +0000 (22:04 +0000)]
Replace hash_map in btm_ble_bgconn with C++ unordered_map am: 488005b16b
am: d0b8153e52

* commit 'd0b8153e52a0d60c379b3c6e877b52dcff9b6e94':
  Replace hash_map in btm_ble_bgconn with C++ unordered_map

Change-Id: I64414d016242998985159379b2ef4a17e76cc2fc

8 years agoReplace hash_map in peer with C++ unordered_map am: 0cafedaffc
Jakub Pawlowski [Thu, 26 May 2016 22:04:12 +0000 (22:04 +0000)]
Replace hash_map in peer with C++ unordered_map am: 0cafedaffc
am: bdafde7d57

* commit 'bdafde7d57824b1918c8d5f1f482bbdd41d7aa2a':
  Replace hash_map in peer with C++ unordered_map

Change-Id: Iaa39ba205f28c1058a801ad918ef7ef4fc2938f9

8 years agoReplace hash_map in module_manager with C++ unordered_map am: 5c2c303953
Jakub Pawlowski [Thu, 26 May 2016 22:04:11 +0000 (22:04 +0000)]
Replace hash_map in module_manager with C++ unordered_map am: 5c2c303953
am: c4ddede45f

* commit 'c4ddede45ff4411ff5dc95bfc0e9c3c191d8b511':
  Replace hash_map in module_manager with C++ unordered_map

Change-Id: I376ba5b659385caf4d2f7ed3b8cea207e5f41002

8 years agoReplace hash_map in packet_fragmenter with C++ unordered_map am: dd5e3e9e3f
Jakub Pawlowski [Thu, 26 May 2016 22:04:10 +0000 (22:04 +0000)]
Replace hash_map in packet_fragmenter with C++ unordered_map am: dd5e3e9e3f
am: 97899dbe86

* commit '97899dbe863621ffd4492dbb67cab401e9ec5f82':
  Replace hash_map in packet_fragmenter with C++ unordered_map

Change-Id: I3fbf72fc883bf65d4d7cfabe589d48d7edc5ed98

8 years agoRemove unnecesarry hash_map includes am: 9b99e998a1
Jakub Pawlowski [Thu, 26 May 2016 22:04:09 +0000 (22:04 +0000)]
Remove unnecesarry hash_map includes am: 9b99e998a1
am: 080b0ace98

* commit '080b0ace986966ced9dc7a96b8cd066b10ea5d90':
  Remove unnecesarry hash_map includes

Change-Id: I783dd9d036bafe2433f6e8ada3f5d98ed2e7929b

8 years agoFix allocation_tracker crashes am: 0d55d66da2
Jakub Pawlowski [Thu, 26 May 2016 22:04:08 +0000 (22:04 +0000)]
Fix allocation_tracker crashes am: 0d55d66da2
am: 18970ae4b4

* commit '18970ae4b4f773d5955e34a88011e57f5766c1da':
  Fix allocation_tracker crashes

Change-Id: Ic16da3157e9d2a9467125edd6b7e593c22c13570

8 years agoReplace hash_map in data_dispatcher with C++ unordered_map
Jakub Pawlowski [Thu, 26 May 2016 22:01:44 +0000 (22:01 +0000)]
Replace hash_map in data_dispatcher with C++ unordered_map
am: 2b56e01a2d

* commit '2b56e01a2d0ccf9eff58b24fb66c18280f95a680':
  Replace hash_map in data_dispatcher with C++ unordered_map

Change-Id: Ifb681cc337b80b805d3c73878184e4eb5b0224f1

8 years agoReplace hash_map in audio_a2dp_hw with C++ unordered_map
Jakub Pawlowski [Thu, 26 May 2016 22:01:42 +0000 (22:01 +0000)]
Replace hash_map in audio_a2dp_hw with C++ unordered_map
am: 6a059517c7

* commit '6a059517c75400615dd26268d9bf81024091a85d':
  Replace hash_map in audio_a2dp_hw with C++ unordered_map

Change-Id: I40b3928ad16f4107c05ada971561dfcc594afaf4

8 years agoReplace hash_map in btm_ble_bgconn with C++ unordered_map
Jakub Pawlowski [Thu, 26 May 2016 22:01:41 +0000 (22:01 +0000)]
Replace hash_map in btm_ble_bgconn with C++ unordered_map
am: 488005b16b

* commit '488005b16bd2552ce7e5f9c1e1b3d4072397fc26':
  Replace hash_map in btm_ble_bgconn with C++ unordered_map

Change-Id: I1fc198dc6bcfe238d61b0eb30376459110b74b79

8 years agoReplace hash_map in peer with C++ unordered_map
Jakub Pawlowski [Thu, 26 May 2016 22:01:12 +0000 (22:01 +0000)]
Replace hash_map in peer with C++ unordered_map
am: 0cafedaffc

* commit '0cafedaffc0a189877b64d065571bec4ac6d804a':
  Replace hash_map in peer with C++ unordered_map

Change-Id: Id2145094e305843420775202e3d9bb6ecf448dd1

8 years agoReplace hash_map in module_manager with C++ unordered_map
Jakub Pawlowski [Thu, 26 May 2016 22:01:10 +0000 (22:01 +0000)]
Replace hash_map in module_manager with C++ unordered_map
am: 5c2c303953

* commit '5c2c3039539023d7946021d49a985f6655a1aeda':
  Replace hash_map in module_manager with C++ unordered_map

Change-Id: I9d2b7503af5991daaa0af2bbc362cc2f82bb088b

8 years agoReplace hash_map in packet_fragmenter with C++ unordered_map
Jakub Pawlowski [Thu, 26 May 2016 22:01:09 +0000 (22:01 +0000)]
Replace hash_map in packet_fragmenter with C++ unordered_map
am: dd5e3e9e3f

* commit 'dd5e3e9e3ffd2fe2b7d520c09acd98f79c3d9a38':
  Replace hash_map in packet_fragmenter with C++ unordered_map

Change-Id: I7173996eb57753ceed8b0f334d2a1c8c9620f41c

8 years agoRemove unnecesarry hash_map includes
Jakub Pawlowski [Thu, 26 May 2016 22:01:07 +0000 (22:01 +0000)]
Remove unnecesarry hash_map includes
am: 9b99e998a1

* commit '9b99e998a112a447144fec13387003598220602b':
  Remove unnecesarry hash_map includes

Change-Id: I561827d7942e0b7848edf60a1add0cc45e7a2b1c

8 years agoFix allocation_tracker crashes
Jakub Pawlowski [Thu, 26 May 2016 22:01:06 +0000 (22:01 +0000)]
Fix allocation_tracker crashes
am: 0d55d66da2

* commit '0d55d66da26c079669975becfc29675f6492a155':
  Fix allocation_tracker crashes

Change-Id: Ia6e0256f83f82ed49620030ef8955ccb3fd3bde8

8 years agoReplace hash_map in data_dispatcher with C++ unordered_map
Jakub Pawlowski [Thu, 26 May 2016 17:13:40 +0000 (10:13 -0700)]
Replace hash_map in data_dispatcher with C++ unordered_map

Change-Id: Ic8d99108fd557a1d994dcea5a2bf92aef98a0cac

8 years agoReplace hash_map in audio_a2dp_hw with C++ unordered_map
Jakub Pawlowski [Thu, 26 May 2016 00:49:32 +0000 (17:49 -0700)]
Replace hash_map in audio_a2dp_hw with C++ unordered_map

Change-Id: I64c7f72c91558bbbd2e31967d10733e0b98faa7e

8 years agoReplace hash_map in btm_ble_bgconn with C++ unordered_map
Jakub Pawlowski [Thu, 26 May 2016 00:10:56 +0000 (17:10 -0700)]
Replace hash_map in btm_ble_bgconn with C++ unordered_map

Change-Id: I19b99b88d6dbcf6d6425d102bf908038c09325cb

8 years agoReplace hash_map in peer with C++ unordered_map
Jakub Pawlowski [Wed, 25 May 2016 23:15:22 +0000 (16:15 -0700)]
Replace hash_map in peer with C++ unordered_map

Change-Id: Iae48d18cc370221c425b337fefb3a8255cda759a

8 years agoReplace hash_map in module_manager with C++ unordered_map
Jakub Pawlowski [Wed, 25 May 2016 22:53:45 +0000 (15:53 -0700)]
Replace hash_map in module_manager with C++ unordered_map

Change-Id: I9ee3c9349a5ea80f17f65a137d7fe7be5dc63e70

8 years agoReplace hash_map in packet_fragmenter with C++ unordered_map
Jakub Pawlowski [Wed, 25 May 2016 22:33:41 +0000 (15:33 -0700)]
Replace hash_map in packet_fragmenter with C++ unordered_map

Change-Id: I7707d21c44a5b8a18c925892d950155e3be72c30

8 years agoRemove unnecesarry hash_map includes
Jakub Pawlowski [Wed, 25 May 2016 21:46:19 +0000 (14:46 -0700)]
Remove unnecesarry hash_map includes

Change-Id: I929b2ec88e33643f128a3a72130bdb091e0b2143

8 years agoFix allocation_tracker crashes
Jakub Pawlowski [Wed, 25 May 2016 17:37:17 +0000 (10:37 -0700)]
Fix allocation_tracker crashes

Use C++ unordered_map in allocation_tracker.

Bug: 28888632
Change-Id: I15204b0bede5686af25fc6cdd05ce3097b436dd6

8 years agoRemove the RFComm MCB from the ports when releasing it
Pavlin Radoslavov [Thu, 26 May 2016 03:20:42 +0000 (03:20 +0000)]
Remove the RFComm MCB from the ports when releasing it
am: 77c3905fe7

* commit '77c3905fe7907bd10b0d24dbe469ba74f546e00e':
  Remove the RFComm MCB from the ports when releasing it

Change-Id: I1ebc0f1865be84fc800042a12a43253d13146757

8 years agoRemove the RFComm MCB from the ports when releasing it am: 1f9eb3d62c
Pavlin Radoslavov [Thu, 26 May 2016 02:42:57 +0000 (02:42 +0000)]
Remove the RFComm MCB from the ports when releasing it am: 1f9eb3d62c
am: d03733b5eb

* commit 'd03733b5eb0c441170981861fe6de122d58c6736':
  Remove the RFComm MCB from the ports when releasing it

Change-Id: I2f99d8206101542bdc4754ac16d77161c90c20b3

8 years agoRemove the RFComm MCB from the ports when releasing it
Pavlin Radoslavov [Thu, 26 May 2016 02:30:32 +0000 (02:30 +0000)]
Remove the RFComm MCB from the ports when releasing it
am: 1f9eb3d62c

* commit '1f9eb3d62c78bae8b429a48f71629d6e53f9fc87':
  Remove the RFComm MCB from the ports when releasing it

Change-Id: Ibffff4e80a8eb190e43426273927f1391f5a2c9a

8 years agoRemove the RFComm MCB from the ports when releasing it
Pavlin Radoslavov [Thu, 26 May 2016 01:08:29 +0000 (18:08 -0700)]
Remove the RFComm MCB from the ports when releasing it

Bug: 28849621
Change-Id: I3ce1c857d0d0a2c00c59d8f71b40685ae602dc29
(cherry picked from commit 1f9eb3d62c78bae8b429a48f71629d6e53f9fc87)

8 years agoRemove the RFComm MCB from the ports when releasing it
Pavlin Radoslavov [Thu, 26 May 2016 01:08:29 +0000 (18:08 -0700)]
Remove the RFComm MCB from the ports when releasing it

Bug: 28849621
Change-Id: I3ce1c857d0d0a2c00c59d8f71b40685ae602dc29

8 years agoMerge "Remove unused profile manager" am: 48f8113216
Jakub Pawlowski [Thu, 26 May 2016 01:25:34 +0000 (01:25 +0000)]
Merge "Remove unused profile manager" am: 48f8113216
am: 933c55539f

* commit '933c55539fa08ffbdd523ba7cc332889a3040119':
  Remove unused profile manager

Change-Id: Icc33fc6d75be4e3d697003ba640adbb6d0dffb94

8 years agoMerge "Remove unused profile manager"
Jakub Pawlowski [Thu, 26 May 2016 01:14:26 +0000 (01:14 +0000)]
Merge "Remove unused profile manager"
am: 48f8113216

* commit '48f8113216935eed9374d50ab3ccc6704065e409':
  Remove unused profile manager

Change-Id: I1a7ac124f5204aa78d4e885707d4bbe62ad8d0cd

8 years agoMerge "Remove unused profile manager"
Jakub Pawlowski [Thu, 26 May 2016 01:03:33 +0000 (01:03 +0000)]
Merge "Remove unused profile manager"

8 years agoRemove unused profile manager
Jakub Pawlowski [Wed, 25 May 2016 23:30:29 +0000 (16:30 -0700)]
Remove unused profile manager

Change-Id: Ib718117b523030a4cf5a33672d5523c19fe79431

8 years agotest_vendor_lib: run clang-format with brillo opts am: e49120d722
Myles Watson [Thu, 26 May 2016 00:12:03 +0000 (00:12 +0000)]
test_vendor_lib: run clang-format with brillo opts am: e49120d722
am: e398349913

* commit 'e3983499135327b083a67d3d3437158c1970ab42':
  test_vendor_lib: run clang-format with brillo opts

Change-Id: Ib42c33c42c9c8722938e0b62250ab1002ec8ffd6

8 years agotest_vendor_lib: run clang-format with brillo opts
Myles Watson [Thu, 26 May 2016 00:04:09 +0000 (00:04 +0000)]
test_vendor_lib: run clang-format with brillo opts
am: e49120d722

* commit 'e49120d722142f593687856a71cbffadc3caa530':
  test_vendor_lib: run clang-format with brillo opts

Change-Id: I01dc545ca725404b5660ddf74b22d42ee9f7f87d

8 years agoImprove config file sync during configuration save.
Jacky Cheung [Wed, 25 May 2016 23:05:57 +0000 (23:05 +0000)]
Improve config file sync during configuration save.
am: 3114ad623c

* commit '3114ad623ca39bf6cbcee7f4841c00077faafcba':
  Improve config file sync during configuration save.

Change-Id: If282bf987e823fe4a6548ea9addcad295751ac00

8 years agotest_vendor_lib: run clang-format with brillo opts
Myles Watson [Wed, 25 May 2016 21:44:57 +0000 (14:44 -0700)]
test_vendor_lib: run clang-format with brillo opts

Change-Id: Ie2ead0a020e2358696a2f0e26f3c76a9dd29e266
Signed-off-by: Myles Watson <mylesgw@google.com>
8 years agoImprove config file sync during configuration save.
Jacky Cheung [Wed, 18 May 2016 22:41:09 +0000 (15:41 -0700)]
Improve config file sync during configuration save.

Add fsync() calls to force sync to disk while saving configuration
file.  It is necessary to do a sync on the temp file before rename,
and to sync again on its parent directory to ensure both the
file content and the directory are up-to-date.

Bug: 27354612

Change-Id: I3a862ad59c8ae5beb8ea2c727eb5f275a2d5823e
(cherry picked from commit 95dbe03a693f4a920204b8c6acbba5269915a59f)

8 years agoresolve merge conflicts of 8bbbee1 to nyc-dev-plus-aosp
Pavlin Radoslavov [Wed, 25 May 2016 20:38:18 +0000 (13:38 -0700)]
resolve merge conflicts of 8bbbee1 to nyc-dev-plus-aosp

Change-Id: Iab6c8263aed7379ed81872a9299aff7e3fcaedbd

8 years agoLimit number of SBC frames to fit into single MTU
Ayan Ghosh [Mon, 11 Nov 2013 13:55:16 +0000 (19:25 +0530)]
Limit number of SBC frames to fit into single MTU

- Calculate number of SBC frames to fit into single MTU for EDR capable
  remote devices. This makes sure the maximum utilization of the
  available bandwidth, keeping the bitrate at high quality.
- This change helps to address the discrepancy seen with a few available
  2 Mbps headsets which set the AVDTP media MTU size greater than the
  2DH5 packet payload size which eventually forces AVDTP packets to get
  fragmented in the controller. This change ensures packing of the SBC
  frames in a way that AVDTP packet size fits within the 2DH5 payload
  size.
- As packet size is restricted to meet the required bit rate more than
  one AVDTP packet can be sent to the controller in a given iteration
  based on the bit rate requirement.

Bug: 24875861
Change-Id: Icae7656ad563bbbdef65ecbfa15a89b26cf9edb2

8 years agoMerge "Fix crashes in btif_sendmsg when worqueue not initialized" into nyc-dev
Jakub Pawlowski [Tue, 24 May 2016 22:56:06 +0000 (22:56 +0000)]
Merge "Fix crashes in btif_sendmsg when worqueue not initialized" into nyc-dev
am: d30b50a79b  -s ours

* commit 'd30b50a79b0e9c2893da56a305f1c2e7803ff370':
  Fix crashes in btif_sendmsg when worqueue not initialized

Change-Id: Icbc9002e51b4b02cd2d361d45df04566e542780e

8 years agoMerge "Add guest mode functionality (2/3)" into mnc-dev am: 4439d380e5 am: 99bbe2fffe...
Ajay Panicker [Tue, 24 May 2016 22:18:27 +0000 (22:18 +0000)]
Merge "Add guest mode functionality (2/3)" into mnc-dev am: 4439d380e5 am: 99bbe2fffe  -s ours am: 34619f8e30 am: 84970d1300
am: 9a26927387

* commit '9a26927387eb13c2310e6a2e462f567f9c24d4b7':
  Add guest mode functionality (2/3)

Change-Id: I990682f99d647f1db63e99584627632a5b7a4b81

8 years agoMerge "Fix crashes in btif_sendmsg when worqueue not initialized" into nyc-dev
Jakub Pawlowski [Tue, 24 May 2016 22:16:05 +0000 (22:16 +0000)]
Merge "Fix crashes in btif_sendmsg when worqueue not initialized" into nyc-dev

8 years agoMerge "Add guest mode functionality (2/3)" into mnc-dev am: 4439d380e5 am: 99bbe2fffe...
Ajay Panicker [Tue, 24 May 2016 22:15:52 +0000 (22:15 +0000)]
Merge "Add guest mode functionality (2/3)" into mnc-dev am: 4439d380e5 am: 99bbe2fffe  -s ours am: 34619f8e30
am: 84970d1300

* commit '84970d13000623b266a72433474c4c2ae6abd3c6':
  Add guest mode functionality (2/3)

Change-Id: I8e26f8bb0fa6898427507dfc888dfb6fd743fcac

8 years agoMerge "Add guest mode functionality (2/3)" into mnc-dev am: 4439d380e5 am: 99bbe2fffe...
Ajay Panicker [Tue, 24 May 2016 22:13:00 +0000 (22:13 +0000)]
Merge "Add guest mode functionality (2/3)" into mnc-dev am: 4439d380e5 am: 99bbe2fffe  -s ours
am: 34619f8e30

* commit '34619f8e30adb98a2a605665b02df16a9fda6032':
  Add guest mode functionality (2/3)

Change-Id: I00a7ad9675ba8e3f68e2066aca2fd1a5baaf06db

8 years agoMerge "Add guest mode functionality (2/3)" into mnc-dev am: 4439d380e5
Ajay Panicker [Tue, 24 May 2016 22:10:22 +0000 (22:10 +0000)]
Merge "Add guest mode functionality (2/3)" into mnc-dev am: 4439d380e5
am: 99bbe2fffe  -s ours

* commit '99bbe2fffe98c57295a26d35b30e15c432d6a1e3':
  Add guest mode functionality (2/3)

Change-Id: Ie493166a8d452f2892bb96323b23527efe053dd7

8 years agoMerge "Add guest mode functionality (2/3)" into mnc-dev
Ajay Panicker [Tue, 24 May 2016 22:02:04 +0000 (22:02 +0000)]
Merge "Add guest mode functionality (2/3)" into mnc-dev
am: 4439d380e5

* commit '4439d380e5e2ec3c24b04f7eba1bcbceae78191a':
  Add guest mode functionality (2/3)

Change-Id: Ia13560babbc18e2ee290e16f9b03fb5202894c23

8 years agoMerge "Add guest mode functionality (2/3)" into mnc-dev
Ajay Panicker [Tue, 24 May 2016 21:53:32 +0000 (21:53 +0000)]
Merge "Add guest mode functionality (2/3)" into mnc-dev

8 years agoImprove config file sync during configuration save. am: 95dbe03a69
Jacky Cheung [Tue, 24 May 2016 20:17:38 +0000 (20:17 +0000)]
Improve config file sync during configuration save. am: 95dbe03a69
am: 912d2c4bfc

* commit '912d2c4bfcedc7c3e46aa2eea3b6c01c35d533d9':
  Improve config file sync during configuration save.

Change-Id: I4b61d30a175ac4da6796b7034f5b299d51738062

8 years agoImprove config file sync during configuration save.
Jacky Cheung [Tue, 24 May 2016 19:51:50 +0000 (19:51 +0000)]
Improve config file sync during configuration save.
am: 95dbe03a69

* commit '95dbe03a693f4a920204b8c6acbba5269915a59f':
  Improve config file sync during configuration save.

Change-Id: Ib337392e2bb6d0ee28c2400c92d62590faebeceb

8 years agoFix crashes in btif_sendmsg when worqueue not initialized
Jakub Pawlowski [Tue, 24 May 2016 16:15:50 +0000 (09:15 -0700)]
Fix crashes in btif_sendmsg when worqueue not initialized

Instead of crashing whole stack when trying to post task to
uninitialized queue, log error message. This can happen in two cases:
stack is not initialized yet, or we're shutting down and already cleaned
up the workqueue thread.

Bug: 28889608
Change-Id: I9b8652d27abc2489b2489997c928634b68433a3e

8 years agoImprove config file sync during configuration save.
Jacky Cheung [Wed, 18 May 2016 22:41:09 +0000 (15:41 -0700)]
Improve config file sync during configuration save.

Add fsync() calls to force sync to disk while saving configuration
file.  It is necessary to do a sync on the temp file before rename,
and to sync again on its parent directory to ensure both the
file content and the directory are up-to-date.

Change-Id: I3a862ad59c8ae5beb8ea2c727eb5f275a2d5823e

8 years agoDon\'t disconnect on failure to register for service changed notification am: 634c2e6f23
Jakub Pawlowski [Tue, 24 May 2016 16:22:43 +0000 (16:22 +0000)]
Don\'t disconnect on failure to register for service changed notification am: 634c2e6f23
am: 927491ca41

* commit '927491ca41147e37b8ceff8ea91aff89865788d7':
  Don't disconnect on failure to register for service changed notification

Change-Id: I21f689f74a1178c5dfeacc79d57cf11dbfbc50df

8 years agoDon\'t disconnect on failure to register for service changed notification
Jakub Pawlowski [Tue, 24 May 2016 16:11:35 +0000 (16:11 +0000)]
Don\'t disconnect on failure to register for service changed notification
am: 268d8ca547

* commit '268d8ca5475b97de2b950bd29c7ac7b0e4427511':
  Don't disconnect on failure to register for service changed notification

Change-Id: I472ebd31177615ef19f0f9dc61058915487347d1

8 years agoDon\'t disconnect on failure to register for service changed notification
Jakub Pawlowski [Tue, 24 May 2016 16:11:34 +0000 (16:11 +0000)]
Don\'t disconnect on failure to register for service changed notification
am: 634c2e6f23

* commit '634c2e6f23ccb25696d814161e8a2db686b16728':
  Don't disconnect on failure to register for service changed notification

Change-Id: Iff7c70233be57c67565b2c6d5ef16b238c6b3ac0

8 years agoDon't disconnect on failure to register for service changed notification
Jakub Pawlowski [Mon, 23 May 2016 21:47:48 +0000 (14:47 -0700)]
Don't disconnect on failure to register for service changed notification

Bug: 28721625
Change-Id: I2214fb2576f0f0794922ed9b47d8805839d69bfd

8 years agoFix the timestamp in btsnoop format am: 7dc4051b58
Ben YoungTae Kim [Tue, 24 May 2016 02:57:33 +0000 (02:57 +0000)]
Fix the timestamp in btsnoop format am: 7dc4051b58
am: 36ccfcdfe6

* commit '36ccfcdfe6e2ce7986d39cadd2c6a59e7c3ec982':
  Fix the timestamp in btsnoop format

Change-Id: I0df61fc8dbba29643593c61d37e90e51fe5ff00b

8 years agoFix the timestamp in btsnoop format
Ben YoungTae Kim [Tue, 24 May 2016 02:55:09 +0000 (02:55 +0000)]
Fix the timestamp in btsnoop format
am: 7dc4051b58

* commit '7dc4051b584bb056940afebda9d8ad3a48c046c3':
  Fix the timestamp in btsnoop format

Change-Id: I138f704e1e6bc0df3eeb89a22f21d4623c848b4a

8 years agoDon't disconnect on failure to register for service changed notification
Jakub Pawlowski [Mon, 23 May 2016 21:47:48 +0000 (14:47 -0700)]
Don't disconnect on failure to register for service changed notification

Bug: 28721625
Change-Id: I2214fb2576f0f0794922ed9b47d8805839d69bfd

8 years agoFix the timestamp in btsnoop format
Ben YoungTae Kim [Mon, 23 May 2016 23:15:07 +0000 (16:15 -0700)]
Fix the timestamp in btsnoop format

Due to overflow, timestamp does not have correct value.
Make sure it should be saved in long long type as 64bit.

Change-Id: Iaf1b1dd746dd52ab7e50b870efacde2b8dd0bed6
Signed-off-by: Ben YoungTae Kim <ytkim@qca.qualcomm.com>
8 years agoAdd L2CAP signaling headers and more ACL data to btsnooz am: d4e1a93a6f
Andre Eisenbach [Mon, 23 May 2016 21:46:45 +0000 (21:46 +0000)]
Add L2CAP signaling headers and more ACL data to btsnooz am: d4e1a93a6f
am: fd68dc5e5e

* commit 'fd68dc5e5e77d39f22105e7701abbd643b4884bc':
  Add L2CAP signaling headers and more ACL data to btsnooz

Change-Id: I58bf9acdaeda91162dc67994c0bb8c4c271271d2

8 years agoAdd L2CAP signaling headers and more ACL data to btsnooz
Andre Eisenbach [Mon, 23 May 2016 21:42:28 +0000 (21:42 +0000)]
Add L2CAP signaling headers and more ACL data to btsnooz
am: d4e1a93a6f

* commit 'd4e1a93a6f5ba7bdba7948363ce08e3af70e47d2':
  Add L2CAP signaling headers and more ACL data to btsnooz

Change-Id: I8a4f7cb866457a900f31a3777c017f69fdf2ee7a

8 years agoAdd L2CAP signaling headers and more ACL data to btsnooz
Andre Eisenbach [Tue, 17 May 2016 04:49:23 +0000 (21:49 -0700)]
Add L2CAP signaling headers and more ACL data to btsnooz

Increase the BTSNOOZ log buffer to 256kb and adds complete L2CAP
signaling headers as well as more data per ACL data packet. This will
allow additional RFCOMM debugging.

Fixes: 28845518
Change-Id: I19e1a4a40bb1c8d332a25283fb50635d791bc275

8 years agoMerge "Improve poll(2) handling and log messages" into nyc-dev
Pavlin Radoslavov [Thu, 19 May 2016 22:49:23 +0000 (22:49 +0000)]
Merge "Improve poll(2) handling and log messages" into nyc-dev
am: 0821bffadc

* commit '0821bffadc77a3fd0a9a191dc23ffd2c4c9c81c1':
  Improve poll(2) handling and log messages

Change-Id: Ia9132a5241467add5f914e2adff9066782731b4a

8 years agoAdd error log messages for A2DP commands
Pavlin Radoslavov [Thu, 19 May 2016 22:49:22 +0000 (22:49 +0000)]
Add error log messages for A2DP commands
am: aee67ece72

* commit 'aee67ece726e9b5d0e2e02562fe013ae85c46d63':
  Add error log messages for A2DP commands

Change-Id: I369d590ab3ec2cd6cc80efce02e5346efd56c2d1

8 years agoMerge "Improve poll(2) handling and log messages" into nyc-dev
TreeHugger Robot [Thu, 19 May 2016 22:39:37 +0000 (22:39 +0000)]
Merge "Improve poll(2) handling and log messages" into nyc-dev

8 years agoImprove poll(2) handling and log messages
Pavlin Radoslavov [Wed, 18 May 2016 21:34:31 +0000 (14:34 -0700)]
Improve poll(2) handling and log messages

 * Better error handling and log messages inside
   uipc_flush_ch_locked()
 * Add missing error check inside UIPC_Read()
 * Add missing OSI_NO_INTR() wrapper around poll()
   inside function btu_exec_tap_fd_read()

Bug: 28823662
Change-Id: I5f1c720861bea594d53ed6465a5ff327ba352598

8 years agoAdd error log messages for A2DP commands
Pavlin Radoslavov [Wed, 18 May 2016 21:30:53 +0000 (14:30 -0700)]
Add error log messages for A2DP commands

Bug: 28823662
Change-Id: Ifa9950dd2277b444bedd5108beff2db029a5ed93

8 years agoAdd a missing OSI_NO_INTR() wrapper around socket read() am: a5c0f15960
Pavlin Radoslavov [Thu, 19 May 2016 21:04:33 +0000 (21:04 +0000)]
Add a missing OSI_NO_INTR() wrapper around socket read() am: a5c0f15960
am: e3d023e6c5

* commit 'e3d023e6c529a37d3911770470d12faf8f74ed88':
  Add a missing OSI_NO_INTR() wrapper around socket read()

Change-Id: I74d94c06af0dc8cc24ecf3f762889b0cef8a12ff

8 years agoImprove poll(2) handling and log messages am: 9f20f3cff9
Pavlin Radoslavov [Thu, 19 May 2016 21:04:32 +0000 (21:04 +0000)]
Improve poll(2) handling and log messages am: 9f20f3cff9
am: f77a5fc75a

* commit 'f77a5fc75a4f9ababc34a6772a31c8338385bb3c':
  Improve poll(2) handling and log messages

Change-Id: Ib18e9c3aea2a4b115c23e1f3c36adb600f7cb0a3

8 years agoAdd error log messages for A2DP commands am: a7373c8f03
Pavlin Radoslavov [Thu, 19 May 2016 21:04:32 +0000 (21:04 +0000)]
Add error log messages for A2DP commands am: a7373c8f03
am: 05f9da246b

* commit '05f9da246b35355f183fd67c10361e821280b031':
  Add error log messages for A2DP commands

Change-Id: I38629ba0f75a11b673e9f80789bfd2efa00907c5

8 years agoAdd a missing OSI_NO_INTR() wrapper around socket read()
Pavlin Radoslavov [Thu, 19 May 2016 21:02:02 +0000 (21:02 +0000)]
Add a missing OSI_NO_INTR() wrapper around socket read()
am: a5c0f15960

* commit 'a5c0f1596095ec9017bb50c035f327f708a5d8e8':
  Add a missing OSI_NO_INTR() wrapper around socket read()

Change-Id: Id4a498a729436aa5432bd485ca9ff193edb08f54

8 years agoImprove poll(2) handling and log messages
Pavlin Radoslavov [Thu, 19 May 2016 21:02:01 +0000 (21:02 +0000)]
Improve poll(2) handling and log messages
am: 9f20f3cff9

* commit '9f20f3cff9ead8efbbcab19b2841362a0e3789ab':
  Improve poll(2) handling and log messages

Change-Id: Id7dc7f25c214fbcd61bac1d3647a85d5ae941b83

8 years agoAdd error log messages for A2DP commands
Pavlin Radoslavov [Thu, 19 May 2016 21:01:59 +0000 (21:01 +0000)]
Add error log messages for A2DP commands
am: a7373c8f03

* commit 'a7373c8f031a68a52ce1f876457d1c5c74aaa87f':
  Add error log messages for A2DP commands

Change-Id: Ia545e12e6ab63977916725ea7b5514c26c23254e

8 years agoAdd a missing OSI_NO_INTR() wrapper around socket read()
Pavlin Radoslavov [Wed, 18 May 2016 22:22:55 +0000 (15:22 -0700)]
Add a missing OSI_NO_INTR() wrapper around socket read()

Also, print a better error message.

Change-Id: I22da05fd5e9b10a5122705105ea7a45855eb144d

8 years agoImprove poll(2) handling and log messages
Pavlin Radoslavov [Wed, 18 May 2016 21:34:31 +0000 (14:34 -0700)]
Improve poll(2) handling and log messages

 * Better error handling and log messages inside
   uipc_flush_ch_locked()
 * Add missing error check inside UIPC_Read()
 * Add missing OSI_NO_INTR() wrapper around poll()
   inside function btu_exec_tap_fd_read()

Bug: 28823662
Change-Id: I5f1c720861bea594d53ed6465a5ff327ba352598

8 years agoMerge "Add L2CAP signaling headers and more ACL data to btsnooz" into nyc-dev
Andre Eisenbach [Wed, 18 May 2016 23:48:49 +0000 (23:48 +0000)]
Merge "Add L2CAP signaling headers and more ACL data to btsnooz" into nyc-dev
am: 6ea2168e8f

* commit '6ea2168e8f65b43431381ea364939ec5738258e0':
  Add L2CAP signaling headers and more ACL data to btsnooz

Change-Id: I950c7597c5c0d5f27735195cf9963d88bd8caf04

8 years agoMerge "Add L2CAP signaling headers and more ACL data to btsnooz" into nyc-dev
TreeHugger Robot [Wed, 18 May 2016 23:31:07 +0000 (23:31 +0000)]
Merge "Add L2CAP signaling headers and more ACL data to btsnooz" into nyc-dev

8 years agoAdd L2CAP signaling headers and more ACL data to btsnooz
Andre Eisenbach [Tue, 17 May 2016 04:49:23 +0000 (21:49 -0700)]
Add L2CAP signaling headers and more ACL data to btsnooz

Increase the BTSNOOZ log buffer to 256kb and adds complete L2CAP
signaling headers as well as more data per ACL data packet. This will
allow additional RFCOMM debugging.

Fixes: 28845518
Change-Id: I19e1a4a40bb1c8d332a25283fb50635d791bc275

8 years agoAdd error log messages for A2DP commands
Pavlin Radoslavov [Wed, 18 May 2016 21:30:53 +0000 (14:30 -0700)]
Add error log messages for A2DP commands

Bug: 28823662
Change-Id: Ifa9950dd2277b444bedd5108beff2db029a5ed93

8 years agoAdd a log message to capture NULL pointer in l2c_link_hci_disc_comp()
Pavlin Radoslavov [Wed, 18 May 2016 02:00:58 +0000 (02:00 +0000)]
Add a log message to capture NULL pointer in l2c_link_hci_disc_comp()
am: fce80bb003

* commit 'fce80bb003601cf576c62d3cb9a5499790841545':
  Add a log message to capture NULL pointer in l2c_link_hci_disc_comp()

Change-Id: I6dec54ce9adbb93c59b07521541c488cc255fd9d

8 years agoAdd a log message to capture NULL pointer in l2c_link_hci_disc_comp() am: e34b0eb111
Pavlin Radoslavov [Wed, 18 May 2016 00:29:51 +0000 (00:29 +0000)]
Add a log message to capture NULL pointer in l2c_link_hci_disc_comp() am: e34b0eb111
am: bb3768944b

* commit 'bb3768944b36b609c5386c858abcd4392fa59bdd':
  Add a log message to capture NULL pointer in l2c_link_hci_disc_comp()

Change-Id: I092bcf29cdf7bb1f36faed8b44b5ad57b073e282

8 years agoAdd a log message to capture NULL pointer in l2c_link_hci_disc_comp()
Pavlin Radoslavov [Wed, 18 May 2016 00:27:10 +0000 (00:27 +0000)]
Add a log message to capture NULL pointer in l2c_link_hci_disc_comp()
am: e34b0eb111

* commit 'e34b0eb1110d47832a38180c1b1f8c08205aa0e2':
  Add a log message to capture NULL pointer in l2c_link_hci_disc_comp()

Change-Id: I82b2aa69655d0b2bef076f270d284cc2dfe35dbd

8 years agoAdd a log message to capture NULL pointer in l2c_link_hci_disc_comp()
Pavlin Radoslavov [Tue, 17 May 2016 00:14:03 +0000 (17:14 -0700)]
Add a log message to capture NULL pointer in l2c_link_hci_disc_comp()

Added a log message inside l2c_link_hci_disc_comp() to help capture
a NULL pointer p_lcb->p_fixed_ccbs[xx] that triggers SIGSEGV crash.
Also, updated the typedef of bdstr_t and moved it to
file "btcore/include/bdaddr.h"

Bug: 28765514
Change-Id: Iacd9376cfb9e18b58e18865581da8edad9f68821

8 years agoDO NOT MERGE ANYWHERE Restart failed system calls interrupted with errno of EINTR...
Pavlin Radoslavov [Tue, 17 May 2016 23:53:41 +0000 (23:53 +0000)]
DO NOT MERGE ANYWHERE Restart failed system calls interrupted with errno of EINTR am: f9a4d9e8bf  -s ours am: 529f7e35ff  -s ours
am: 559d037985  -s ours

* commit '559d037985670d4436ba9f7314f8bd72ee944fc6':
  DO NOT MERGE ANYWHERE Restart failed system calls interrupted with errno of EINTR

Change-Id: I3f9d585126f335dc02531a441fa3edecc3db7f3b

8 years agoDO NOT MERGE ANYWHERE Restart failed system calls interrupted with errno of EINTR...
Pavlin Radoslavov [Tue, 17 May 2016 23:46:29 +0000 (23:46 +0000)]
DO NOT MERGE ANYWHERE Restart failed system calls interrupted with errno of EINTR am: f9a4d9e8bf  -s ours
am: 529f7e35ff  -s ours

* commit '529f7e35ff204c641f822e318770e8240d1ae570':
  DO NOT MERGE ANYWHERE Restart failed system calls interrupted with errno of EINTR

Change-Id: I79ab95e5cd139dc99183f398bec5fe5ca2fbd38c

8 years agoDO NOT MERGE ANYWHERE Restart failed system calls interrupted with errno of EINTR
Pavlin Radoslavov [Tue, 17 May 2016 23:42:42 +0000 (23:42 +0000)]
DO NOT MERGE ANYWHERE Restart failed system calls interrupted with errno of EINTR
am: f9a4d9e8bf  -s ours

* commit 'f9a4d9e8bf63b006bec9c30f6dc430ac5d30a85b':
  DO NOT MERGE ANYWHERE Restart failed system calls interrupted with errno of EINTR

Change-Id: I982345259966a2d7108a6a9699b3f71cb6d2e26f

8 years agoAdd a log message to capture NULL pointer in l2c_link_hci_disc_comp()
Pavlin Radoslavov [Tue, 17 May 2016 00:14:03 +0000 (17:14 -0700)]
Add a log message to capture NULL pointer in l2c_link_hci_disc_comp()

Added a log message inside l2c_link_hci_disc_comp() to help capture
a NULL pointer p_lcb->p_fixed_ccbs[xx] that triggers SIGSEGV crash.
Also, updated the typedef of bdstr_t and moved it to
file "btcore/include/bdaddr.h"

Bug: 28765514
Change-Id: Iacd9376cfb9e18b58e18865581da8edad9f68821

8 years agoMerge "HID: Prevent incoming and outgoing SDP collision" am: d1e432ee05
Hemant Gupta [Tue, 17 May 2016 19:31:33 +0000 (19:31 +0000)]
Merge "HID: Prevent incoming and outgoing SDP collision" am: d1e432ee05
am: d2f2134a0a

* commit 'd2f2134a0a26447ab93c04be669e6ae84d727c8f':
  HID: Prevent incoming and outgoing SDP collision

Change-Id: I59fc609acd5c1b70a3a3da7d59ef6c637d25de01

8 years agoMerge "HID: Prevent incoming and outgoing SDP collision"
Hemant Gupta [Tue, 17 May 2016 19:28:28 +0000 (19:28 +0000)]
Merge "HID: Prevent incoming and outgoing SDP collision"
am: d1e432ee05

* commit 'd1e432ee05d847f85380521a9d0a225c57fbc8f9':
  HID: Prevent incoming and outgoing SDP collision

Change-Id: Icb1c82876f4bf5f408b74e97ca5daf65c9e8651d

8 years agoMerge "HID: Prevent incoming and outgoing SDP collision"
Treehugger Robot [Tue, 17 May 2016 19:21:54 +0000 (19:21 +0000)]
Merge "HID: Prevent incoming and outgoing SDP collision"

8 years agoMerge "Fix pairing state change in collision scenario" am: 8fdbd954e0
venkata Jagadeesh [Tue, 17 May 2016 18:52:45 +0000 (18:52 +0000)]
Merge "Fix pairing state change in collision scenario" am: 8fdbd954e0
am: 73c827c963

* commit '73c827c9632bf38bf0c534c879b7ee4aeafb6e98':
  Fix pairing state change in collision scenario

Change-Id: Ib2e5d879214855bd2fc2a83ff976e17492223832

8 years agoMerge "Fix pairing state change in collision scenario"
venkata Jagadeesh [Tue, 17 May 2016 18:49:14 +0000 (18:49 +0000)]
Merge "Fix pairing state change in collision scenario"
am: 8fdbd954e0

* commit '8fdbd954e07f9ee9cf3b7cb3d9f8c9fee4adf1ca':
  Fix pairing state change in collision scenario

Change-Id: I5363494e95e9e37d4ee8caefa4ec11e103334e4c

8 years agoMerge "Fix pairing state change in collision scenario"
Treehugger Robot [Tue, 17 May 2016 18:38:56 +0000 (18:38 +0000)]
Merge "Fix pairing state change in collision scenario"

8 years agoHID: Prevent incoming and outgoing SDP collision
Hemant Gupta [Wed, 7 Oct 2015 06:38:10 +0000 (12:08 +0530)]
HID: Prevent incoming and outgoing SDP collision

SDP is performed 2 times as part of HID connection in BD stack,
one after successful authentication, and one in HID stack layer
as SDP data is not stored currently in stack. When there is outgoing and
incoming connections, SDP failed message was posted which was resulting
in SDP failure for HID host resulting in improper disconnection of
HID interrupt channel.

Change-Id: I5b4813dc916696e2c0f76be27a85c1a89c2d8be0

8 years agoMerge "Check CCB state before executing channel state machine events" am: 671e726537
Gurpreet Ghai [Tue, 17 May 2016 18:13:53 +0000 (18:13 +0000)]
Merge "Check CCB state before executing channel state machine events" am: 671e726537
am: 6de361066c

* commit '6de361066c4d982f059cd6b1e1f8752eb906d2ac':
  Check CCB state before executing channel state machine events

Change-Id: I137bf32cbd26e828364eaa612aca5bfdd02dc52a

8 years agoMerge "Check CCB state before executing channel state machine events"
Gurpreet Ghai [Tue, 17 May 2016 18:11:07 +0000 (18:11 +0000)]
Merge "Check CCB state before executing channel state machine events"
am: 671e726537

* commit '671e726537ed02791d4ae242e879c405a8ced165':
  Check CCB state before executing channel state machine events

Change-Id: Ie0a16cff81205346f08101b79866a71ac0e1fac2

8 years agoMerge "Check CCB state before executing channel state machine events"
Treehugger Robot [Tue, 17 May 2016 18:09:14 +0000 (18:09 +0000)]
Merge "Check CCB state before executing channel state machine events"

8 years agoFix pairing state change in collision scenario
venkata Jagadeesh [Thu, 1 Oct 2015 06:25:03 +0000 (11:55 +0530)]
Fix pairing state change in collision scenario

Symptom:
DUT Stuck in pairing state forever with selfy stick
during repair.

Steps:
1. Pair and connect remote devices with DUT.
2. Now un pair selfy stick from DUT.
3. Keep remote in discoverable mode.
4. Start inquiry and try to pair with device.

Failure:
Pairing with selfy stick always fails after collision.

Root Cause:
As we return from btm_sec_dd_create_conn with out
moving pairing state in connection collision scenario. Pairing
state will remains idle and pairing won't proceed further.

Fix:
Move the pairing state in collision scenario so that pairing
can proceed further.

Change-Id: Ic5c446ad3902b0ce16c7223ec2d8e4a625831446

8 years agoIncreasing LE Properties to broadcast. am: 234af83f69
Balraj Selvaraj [Tue, 17 May 2016 17:43:28 +0000 (17:43 +0000)]
Increasing LE Properties to broadcast. am: 234af83f69
am: de9c8d77a7

* commit 'de9c8d77a7f47891d3d1cd133dcef08c9fee3f45':
  Increasing LE Properties to broadcast.

Change-Id: I90f012ae95c522974aebc9d9b71b748a6d0d6e98