OSDN Git Service
Jakub Pawlowski [Tue, 31 Oct 2017 00:48:44 +0000 (00:48 +0000)]
Use Bind in BTA_JvL2capStartServerLE am:
792ab6f8a8
am:
c7be156cf0
Change-Id: Ie673daea1ddebf12d04ec8a778c5f8294d2aa0b5
Jakub Pawlowski [Tue, 31 Oct 2017 00:45:08 +0000 (00:45 +0000)]
Use Bind in BTA_JvL2capStartServer am:
6a10ea2cb7
am:
953c1bbd11
Change-Id: If885c4b41b3811f8a72298dace4c79e45f53c325
Jakub Pawlowski [Tue, 31 Oct 2017 00:45:00 +0000 (00:45 +0000)]
Use Bind in BTA_JvL2capCloseLE am:
a034a03229
am:
b7c6155be0
Change-Id: Ib7ed6201076b7cfb41dcdd88b5bd398dcaecb3ca
Jakub Pawlowski [Tue, 31 Oct 2017 00:44:54 +0000 (00:44 +0000)]
Use Bind in BTA_JvL2capClose am:
6ccc6f4954
am:
07a54415a5
Change-Id: Iefa0a8353ab4d9504a77511cef3c60964d22f759
Jakub Pawlowski [Tue, 31 Oct 2017 00:44:48 +0000 (00:44 +0000)]
Use Bind in BTA_JvL2capConnect am:
b48986cfc2
am:
b8daf711b3
Change-Id: I32f7e2d81670a12c31ddcb589fe8509bb9968ef2
Jakub Pawlowski [Tue, 31 Oct 2017 00:44:41 +0000 (00:44 +0000)]
Use Bind in BTA_JvL2capConnectLE am:
5458047d4e
am:
29c262fa7d
Change-Id: Ia8d54d3533ab36d9f2a8b3589e0e82258a2ef5ca
Jakub Pawlowski [Tue, 31 Oct 2017 00:41:05 +0000 (00:41 +0000)]
Use Bind in BTA_JvL2capStartServerLE
am:
792ab6f8a8
Change-Id: I61adae0ae5916ffd4441748f4897b60831a3333d
Jakub Pawlowski [Tue, 31 Oct 2017 00:39:56 +0000 (00:39 +0000)]
Use Bind in BTA_JvL2capStartServer
am:
6a10ea2cb7
Change-Id: I1c4faa15f4ed980b02dbe46944c503e6a8e3e946
Jakub Pawlowski [Tue, 31 Oct 2017 00:39:52 +0000 (00:39 +0000)]
Use Bind in BTA_JvL2capCloseLE
am:
a034a03229
Change-Id: I201e09a52d7381fb29672c813efceb4b65f4f5f4
Jakub Pawlowski [Tue, 31 Oct 2017 00:39:47 +0000 (00:39 +0000)]
Use Bind in BTA_JvL2capClose
am:
6ccc6f4954
Change-Id: I8285a8952cbca55c3953e1d706f94f456d314d1c
Jakub Pawlowski [Tue, 31 Oct 2017 00:39:43 +0000 (00:39 +0000)]
Use Bind in BTA_JvL2capConnect
am:
b48986cfc2
Change-Id: Ib684ba9db9099ab24526cb89acbf5f4efd3ae698
Jakub Pawlowski [Tue, 31 Oct 2017 00:39:38 +0000 (00:39 +0000)]
Use Bind in BTA_JvL2capConnectLE
am:
5458047d4e
Change-Id: I18bbdeb92816088d8e5f15f43cb8a69f89a9cfae
Jakub Pawlowski [Sat, 28 Oct 2017 03:24:24 +0000 (03:24 +0000)]
Use Bind in BTA_JvDeleteRecord am:
a567799194
am:
b114f83992
Change-Id: I9235a9d7d83ebc03bd08cb5359ff524c87dde6d9
Jakub Pawlowski [Sat, 28 Oct 2017 03:23:11 +0000 (03:23 +0000)]
Use Bind in BTA_JvCreateRecordByUser am:
60596e700a
am:
4918422c65
Change-Id: I9c6ace224b68b9fe17b8bcdf4717330a5d437d40
Jakub Pawlowski [Sat, 28 Oct 2017 03:23:02 +0000 (03:23 +0000)]
Use Bind in BTA_JvFreeChannel am:
cdd9dac140
am:
3a968c7262
Change-Id: I2da2d9bdb5a4d85ba61b3356fb71c9554607f167
Jakub Pawlowski [Sat, 28 Oct 2017 03:22:54 +0000 (03:22 +0000)]
Use Bind in BTA_JvGetChannelId am:
a2394f273a
am:
a58336ae8e
Change-Id: Iace630b6570def578eb56aa117674117247ad288
Jakub Pawlowski [Sat, 28 Oct 2017 03:22:45 +0000 (03:22 +0000)]
Use Bind in BTA_JvDisable am:
e72240defc
am:
8bc9c1eb3e
Change-Id: Ibfc4c4a5934d7f14b137582893bd88545ac635aa
Jakub Pawlowski [Sat, 28 Oct 2017 03:22:35 +0000 (03:22 +0000)]
Use Bind in BTA_JvEnable am:
d3c1f2e43a
am:
07ca84900c
Change-Id: I140c47825641f0b55a9f46a66766f42a39198610
Jakub Pawlowski [Sat, 28 Oct 2017 03:15:38 +0000 (03:15 +0000)]
Use Bind in BTA_JvDeleteRecord
am:
a567799194
Change-Id: Ibd2aa662bcc23798b8095f9e84dff4e1094ebc30
Jakub Pawlowski [Sat, 28 Oct 2017 03:14:24 +0000 (03:14 +0000)]
Use Bind in BTA_JvCreateRecordByUser
am:
60596e700a
Change-Id: Ida5dd09e400e927987c98fcbc41bdadad56a05e4
Jakub Pawlowski [Sat, 28 Oct 2017 03:14:18 +0000 (03:14 +0000)]
Use Bind in BTA_JvFreeChannel
am:
cdd9dac140
Change-Id: I84b978fa9735d9a10d7dc2fb1b61029204db726c
Jakub Pawlowski [Sat, 28 Oct 2017 03:14:13 +0000 (03:14 +0000)]
Use Bind in BTA_JvGetChannelId
am:
a2394f273a
Change-Id: I878ec0ccfd784791deaaab876785ef5afb830ed2
Jakub Pawlowski [Sat, 28 Oct 2017 03:14:08 +0000 (03:14 +0000)]
Use Bind in BTA_JvDisable
am:
e72240defc
Change-Id: Iee4008e67e8f6bd6b166ba351e0a31b97ca8ad32
Jakub Pawlowski [Sat, 28 Oct 2017 03:14:02 +0000 (03:14 +0000)]
Use Bind in BTA_JvEnable
am:
d3c1f2e43a
Change-Id: I3e8ed1b1d8a030d3078bfcc03207b65e2685e06b
Jakub Pawlowski [Fri, 27 Oct 2017 23:45:13 +0000 (16:45 -0700)]
Use Bind in BTA_JvL2capStartServerLE
Bug:
68359837
Test: compilation test
Change-Id: I56717075758bc3f0fab5b092bd5fbc60b78a9a83
Jakub Pawlowski [Fri, 27 Oct 2017 23:29:45 +0000 (16:29 -0700)]
Use Bind in BTA_JvL2capStartServer
Bug:
68359837
Test: compilation test
Change-Id: I0fb574e25c11f46a6fa68bef830a2e9fbcbd2d42
Jakub Pawlowski [Fri, 27 Oct 2017 23:09:20 +0000 (16:09 -0700)]
Use Bind in BTA_JvL2capCloseLE
Bug:
68359837
Test: compilation test
Change-Id: Ia9349c4f62fc515864518af3fd05e3f3af611cbf
Jakub Pawlowski [Fri, 27 Oct 2017 20:28:23 +0000 (13:28 -0700)]
Use Bind in BTA_JvL2capClose
Bug:
68359837
Test: compilation test
Change-Id: Ia153dab61cb593b4319ffa718c691d5985e529e6
Jakub Pawlowski [Fri, 27 Oct 2017 20:15:47 +0000 (13:15 -0700)]
Use Bind in BTA_JvL2capConnect
Bug:
68359837
Test: compilation test
Change-Id: I0d6efdfefa12551c615bee5dd43a3101a5cac3d2
Jakub Pawlowski [Fri, 27 Oct 2017 19:33:58 +0000 (12:33 -0700)]
Use Bind in BTA_JvL2capConnectLE
Bug:
68359837
Test: compilation test
Change-Id: Iaef4695db6b46af59641d5af508b87f20bcf5232
Jakub Pawlowski [Fri, 27 Oct 2017 18:57:24 +0000 (11:57 -0700)]
Use Bind in BTA_JvDeleteRecord
Bug:
68359837
Test: compilation test
Change-Id: I23236fecf21ffb7808cfabef1570add2e07b0920
Jakub Pawlowski [Fri, 27 Oct 2017 07:09:17 +0000 (00:09 -0700)]
Use Bind in BTA_JvCreateRecordByUser
Bug:
68359837
Test: compilation test
Change-Id: I889467b07694b16485a7541c4d9fdfa38a47e0be
Jakub Pawlowski [Fri, 27 Oct 2017 07:03:12 +0000 (00:03 -0700)]
Use Bind in BTA_JvFreeChannel
Bug:
68359837
Test: compilation test
Change-Id: I69fdbc9ea8510060736ae522baf865aa2d0c55f2
Jakub Pawlowski [Fri, 27 Oct 2017 06:53:42 +0000 (23:53 -0700)]
Use Bind in BTA_JvGetChannelId
Bug:
68359837
Test: compilation test
Change-Id: I9da50222561da8410cdffa2e8b4c695cd2488841
Jakub Pawlowski [Fri, 27 Oct 2017 06:45:27 +0000 (23:45 -0700)]
Use Bind in BTA_JvDisable
Bug:
68359837
Test: compilation test
Change-Id: I73470c7a98a36a57d5f44decbbf388f02c6caddd
Jakub Pawlowski [Fri, 27 Oct 2017 06:32:49 +0000 (23:32 -0700)]
Use Bind in BTA_JvEnable
Bug:
68359837
Test: compilation test
Change-Id: I1913b7763c93932c59fe94c3a40293e02335afa2
Tiansong Cui [Sat, 28 Oct 2017 00:22:23 +0000 (00:22 +0000)]
Correct rssi size am:
1dee3a50ea
am:
6da7197a74
Change-Id: Ib7d76928b6b130f91a6e8e5588e1f1fed0b76ed9
Tiansong Cui [Sat, 28 Oct 2017 00:17:20 +0000 (00:17 +0000)]
Correct rssi size
am:
1dee3a50ea
Change-Id: I8b830f00a93b2a743d26c43c1ae3cbd567f8a0df
Tiansong Cui [Fri, 27 Oct 2017 21:24:15 +0000 (14:24 -0700)]
Correct rssi size
Bug: None
Test: print rssi, size of rssi equals sizeof(int8_t).
Change-Id: I40edb63257618c48b0ab2d0181105c5a2c473ea6
Myles Watson [Fri, 27 Oct 2017 16:46:25 +0000 (16:46 +0000)]
Merge "test_vendor: Extract DeviceProperties" am:
6cfa155015
am:
058c29dcd5
Change-Id: I46f7706148fccbe4d27d2a081757db6226f3977d
Myles Watson [Fri, 27 Oct 2017 16:40:50 +0000 (16:40 +0000)]
Merge "test_vendor: Extract DeviceProperties"
am:
6cfa155015
Change-Id: I9051b2f44e41f944b8754e30abc487ce1c92b9aa
Treehugger Robot [Fri, 27 Oct 2017 16:30:20 +0000 (16:30 +0000)]
Merge "test_vendor: Extract DeviceProperties"
Jacky Cheung [Fri, 27 Oct 2017 03:08:28 +0000 (03:08 +0000)]
Fix addr_type overriding by btm_ble_process_adv_addr(). am:
78008b961e
am:
9fbd47a7a0
Change-Id: I9960b7b3640377308ae4fffede79606be8df543c
Jacky Cheung [Fri, 27 Oct 2017 03:03:22 +0000 (03:03 +0000)]
Fix addr_type overriding by btm_ble_process_adv_addr().
am:
78008b961e
Change-Id: I85dd292a4f3f52fb26c66155030581d7da3e8d37
Jacky Cheung [Thu, 26 Oct 2017 23:07:36 +0000 (16:07 -0700)]
Fix addr_type overriding by btm_ble_process_adv_addr().
Bug:
67042709
Test: manual
Change-Id: Iedffe2fa3dcb3f4e600626490b95c27d1535a737
Pavlin Radoslavov [Fri, 27 Oct 2017 01:36:20 +0000 (01:36 +0000)]
Merge "Revert "Build only for current architecture by default"" am:
9b4d4ff353
am:
74d1585778
Change-Id: I4aafd23563f8b1c862e4eae7ccecfb0aa7d52003
Pavlin Radoslavov [Fri, 27 Oct 2017 01:29:21 +0000 (01:29 +0000)]
Merge "Revert "Build only for current architecture by default""
am:
9b4d4ff353
Change-Id: I1400da14ee348b5fe17bf0f566a7b2572e44d3ba
Treehugger Robot [Fri, 27 Oct 2017 01:12:39 +0000 (01:12 +0000)]
Merge "Revert "Build only for current architecture by default""
Zach Johnson [Fri, 27 Oct 2017 00:25:08 +0000 (00:25 +0000)]
Merge "Respect AVRCP versions in SDP records" am:
e714a318ee
am:
d02c20c265
Change-Id: Ie22369e7c2a578bfd004c4b9ec7e7ee7ad3422aa
Jakub Pawlowski [Fri, 27 Oct 2017 00:24:43 +0000 (00:24 +0000)]
Types should always be a static library am:
d59bdf57e3
am:
e3c83ff97b
Change-Id: I9534cf8e325cf35b08a51509b7bebc8d9cd3bcb1
Zach Johnson [Fri, 27 Oct 2017 00:16:11 +0000 (00:16 +0000)]
Merge "Respect AVRCP versions in SDP records"
am:
e714a318ee
Change-Id: I6a55139ef350f3dcb63a8e492537af5ff9118880
Jakub Pawlowski [Fri, 27 Oct 2017 00:15:48 +0000 (00:15 +0000)]
Types should always be a static library
am:
d59bdf57e3
Change-Id: Ibfcd9189d9fa8d22b8c2ed32977cb075af3724c6
Treehugger Robot [Fri, 27 Oct 2017 00:08:34 +0000 (00:08 +0000)]
Merge "Respect AVRCP versions in SDP records"
Pavlin Radoslavov [Thu, 26 Oct 2017 23:36:30 +0000 (23:36 +0000)]
Revert "Build only for current architecture by default"
This reverts commit
862095819ffac9e5e543c114b6f0d4a7d89f6938.
The result audio.a2dp.default.so shared library is only 64-bit,
and it can't be used by the audioserver which is still 32-bit only
Bug:
68127690
Change-Id: I60b15c32425db3b2ada687fa8d0dcb728cf1812f
Test: A2DP streaming
Zach Johnson [Wed, 18 Oct 2017 22:39:51 +0000 (15:39 -0700)]
Respect AVRCP versions in SDP records
It's all wrong. All wrong.
In the protocol descriptor list in SDP:
1.3 reports 1.2
1.4 reports 1.3
1.5 reports 1.4
1.6 reports 1.4
1.6.1 reports 1.4
wtf
Simplify as:
1.3 to 1.5 report (version - 1),
everything else reports 1.4
Bug:
66842069
Test: inspect SDP records with tool
Change-Id: I8c3912281a7c01b9f43be1a2c2cc59263e98a0a6
Jakub Pawlowski [Wed, 25 Oct 2017 22:30:54 +0000 (15:30 -0700)]
Types should always be a static library
Test: compilation
Change-Id: I524ef23963f68573352fc5ae8c610a12fc65c822
Bailey Forrest [Thu, 26 Oct 2017 06:30:29 +0000 (06:30 +0000)]
Merge "AAC support for A2DP sink" am:
c6258565db
am:
62ed20e28f
Change-Id: Id07c80963d0fa7b44a9634aea5572d2b8fad5997
Bailey Forrest [Thu, 26 Oct 2017 06:20:51 +0000 (06:20 +0000)]
Merge "AAC support for A2DP sink"
am:
c6258565db
Change-Id: Ie337e89291fb0895d5e99b2d01d5d924c201eab9
Treehugger Robot [Thu, 26 Oct 2017 06:05:23 +0000 (06:05 +0000)]
Merge "AAC support for A2DP sink"
Jack He [Thu, 26 Oct 2017 05:59:48 +0000 (05:59 +0000)]
Merge "Use C++11 static assert instead of macro" am:
edffc8c908
am:
4fd8ac410a
Change-Id: I103d3b30f2efec10ea9064721ec8eec658372bf8
Jack He [Thu, 26 Oct 2017 05:57:44 +0000 (05:57 +0000)]
Merge "Use C++11 static assert instead of macro"
am:
edffc8c908
Change-Id: I7c2c2127d82b9756ade5f7d46368877b3baf1f90
Treehugger Robot [Thu, 26 Oct 2017 05:52:41 +0000 (05:52 +0000)]
Merge "Use C++11 static assert instead of macro"
Tobias Melin [Thu, 26 Oct 2017 04:18:37 +0000 (04:18 +0000)]
Don't print error message when rename operation is successful am:
6d6f34ccf3
am:
0b330f1bd3
Change-Id: I7f23a864469f1d8d7e5233859ca33b4fcad25cdf
Tobias Melin [Thu, 26 Oct 2017 04:16:08 +0000 (04:16 +0000)]
Don't print error message when rename operation is successful
am:
6d6f34ccf3
Change-Id: I63ae2e6f1a0213dd68247e12c72042c409e5f960
Bailey Forrest [Fri, 16 Jun 2017 22:38:03 +0000 (15:38 -0700)]
AAC support for A2DP sink
Bug:
37562860
Test: Test on device.
Change-Id: Ic8699e5ffa5f97e102ec4b9fc63ce5afd3382c5d
Tobias Melin [Fri, 18 Aug 2017 11:18:54 +0000 (13:18 +0200)]
Don't print error message when rename operation is successful
Bug:
65355196
Change-Id: I34504175a58d93f0dd71a8a51275818ebace4b6a
Jack He [Wed, 25 Oct 2017 23:46:42 +0000 (16:46 -0700)]
Use C++11 static assert instead of macro
Test: host and device unit tests
Change-Id: Iab56242aff6e427124c1ce3f6218ba81c2f95f7c
Pavlin Radoslavov [Wed, 25 Oct 2017 21:09:52 +0000 (21:09 +0000)]
Merge "Don't use a pointer for the A2DP Sink static mutex" am:
42f2975d87
am:
23731b1f25
Change-Id: I9e951cec7dfafc7dc15d29356a34ebcb8662cfbe
Pavlin Radoslavov [Wed, 25 Oct 2017 21:04:46 +0000 (21:04 +0000)]
Merge "Don't use a pointer for the A2DP Sink static mutex"
am:
42f2975d87
Change-Id: Ic7d2c17e565b2522754458844edfe865b278104f
Treehugger Robot [Wed, 25 Oct 2017 21:00:48 +0000 (21:00 +0000)]
Merge "Don't use a pointer for the A2DP Sink static mutex"
Jack He [Wed, 25 Oct 2017 19:30:04 +0000 (19:30 +0000)]
Host test script should return 1 when build fails or test is missing am:
b738576806
am:
164350746c
Change-Id: Ib2f0139e03688c23f63aafa1d79469b140b5f1a9
Jack He [Wed, 25 Oct 2017 19:25:07 +0000 (19:25 +0000)]
Host test script should return 1 when build fails or test is missing
am:
b738576806
Change-Id: Ie1f154ebe42b06aec18f2e354df08887b5f6f9b2
Pavlin Radoslavov [Wed, 25 Oct 2017 18:40:27 +0000 (11:40 -0700)]
Don't use a pointer for the A2DP Sink static mutex
The A2DP Sink cleanup might be called even if A2DP Sink init wasn't called
before, hence the g_mutex local pointer might be null.
We cannot check whether the pointer is null, because the A2DP Sink init
and cleanup operations are not executed on the same thread.
Bug:
68255348
Test: Manual
Change-Id: I9881ada0c4d01192352621ca5fe024f0e8b0ef76
Jack He [Wed, 25 Oct 2017 17:14:53 +0000 (10:14 -0700)]
Host test script should return 1 when build fails or test is missing
* test/run_host_unit_tests.py returns 1 when
- Build environement could not be setup
- Build fails
- Test could not be found
* It returns 0 when
- Test exists, but failed
- All tests pass
Bug:
64687730
Test: ./test/run_host_unit_tests.py -j40
Change-Id: Idbff0c73a219b5ce7b640f44f41caf43030e2b51
Bailey Forrest [Wed, 25 Oct 2017 03:20:42 +0000 (03:20 +0000)]
Fix race conditions in a2dp sink am:
1a886d4d0b
am:
5a469d5120
Change-Id: Ia24d800850f65552b5fe2b719557de4dc7a17698
Bailey Forrest [Wed, 25 Oct 2017 03:14:06 +0000 (03:14 +0000)]
Fix race conditions in a2dp sink
am:
1a886d4d0b
Change-Id: Iadc5e6f404e1fb90d81529cce5eb3b0f7bad37fc
Bailey Forrest [Wed, 7 Jun 2017 21:55:37 +0000 (14:55 -0700)]
Fix race conditions in a2dp sink
- Use std::atomic for btif_a2dp_sink_state variable
- Add a lock for other static members
Explanation:
- There's the main thread that things on this file should run on:
btif_a2dp_sink_cb.worker_thread
- External callers may call from any thread.
- fixed_queue_t is a thread safe queue which uses locking.
Many of the functions just append commands to cmd_msg_queue which are
commands which are processed by btif_a2dp_sink_command_ready. Operations
on this queue can be done without locking.
The main bug is a TOCTOU bug on 'rx_audio_queue'.
btif_a2dp_sink_avk_handle_timer preforms a fixed_queue_try_peek_first
operation and modifies the pointer without dequing it. This causes a
race when other operations cause a dequeue on rx_audio_queue.
I have added locks on all functions which modify the static data except:
- Helpers which are only called while locked
- Functions which only modify cmd_msg_queue or access
btif_a2dp_sink_state
Bug:
35807779
Test: Test on device.
Change-Id: I289e23213426dbc182ca4a3fca26bc5658299381
Myles Watson [Fri, 20 Oct 2017 16:46:59 +0000 (09:46 -0700)]
test_vendor: Extract DeviceProperties
Test: start/stop Bluetooth with rootcanal loaded
Change-Id: Ic3dd1c87df9583c4b5957592bca3332f2daaa3da
liuchao [Tue, 24 Oct 2017 17:54:04 +0000 (17:54 +0000)]
Remove aliase name while removing bonded device am:
ce7c3c045f
am:
2eb03c2bdb
Change-Id: I6dcd46df280e4e575d872fb946d4df870756ae0b
liuchao [Tue, 24 Oct 2017 17:51:31 +0000 (17:51 +0000)]
Remove aliase name while removing bonded device
am:
ce7c3c045f
Change-Id: I705eaaed0caaa82671c57d624932110eb4262cc0
liuchao [Wed, 12 Apr 2017 02:23:00 +0000 (10:23 +0800)]
Remove aliase name while removing bonded device
when remove a bonded device, the date in bt_config.conf
is deleted but only removed linkey in the global cache.
The user set alise name is left there
When comes to next time search ,the linkey is set to
config and write to bt_config.conf, before OFF/ON BT
operation, the cached alse name is reported unexceptedly
After remove,the remote device is expected to be brand
new to the phone in the 2nd time they see each other.
Test: mm -j8
Change-Id: I005a6487c546e2639e3180e8a6e181c4d3c1d4ac
Pulkit Bhuwalka [Tue, 24 Oct 2017 06:37:17 +0000 (06:37 +0000)]
Get Bluetooth Class of Device am:
c5ed99ea41
am:
358d444925
Change-Id: I3b253ede8898ee546b2c454a4b8f4cabb596af28
Pulkit Bhuwalka [Tue, 24 Oct 2017 06:27:46 +0000 (06:27 +0000)]
Get Bluetooth Class of Device
am:
c5ed99ea41
Change-Id: I116fd9e1e74f10d8b51d41a058982add301c289e
Pulkit Bhuwalka [Wed, 20 Sep 2017 22:11:01 +0000 (15:11 -0700)]
Get Bluetooth Class of Device
Modifies the native Bluetooth stack to
1) return default value from BTA_DM_COD configuration when not set, and
2) return adapter COD value even before stack start for Java Android
stack.
Bug:
36015415
Test: Verified fetching of COD both before and after modification of
CoD value and restart of machine.
Change-Id: Ibcf726dcd7bea5d7e27c7a775f8cf7ea3f9e4107
Jack He [Tue, 24 Oct 2017 03:31:43 +0000 (03:31 +0000)]
TEST: Fix host native test script am:
39555a3f0a
am:
44e8ccefc2
Change-Id: I66d621c9215a1a138faa26cfaaa455ab955cf7b1
Jack He [Tue, 24 Oct 2017 03:29:10 +0000 (03:29 +0000)]
TEST: Fix host native test script
am:
39555a3f0a
Change-Id: I71ad38d426e69e6ff7edead0ea9f08db9d2da8fe
Jack He [Mon, 23 Oct 2017 20:28:59 +0000 (13:28 -0700)]
TEST: Fix host native test script
* Use build/soong/soong_ui.bash to get needed environment variables
instead of getting them directly from the parent shell
* Simplify the build command use to 'soong_ui.bash' directly so that
we can remove the call to envsetup
* When ANDROID_BUILD_TOP is not set, try finding it by looking for
build/soong/soong_ui.bash in all parent directories until found,
and get TOP variable from it
* Similarly, for ANDROID_HOST_OUT, use the same soong_ui.bash script to
get it, instead of relying on the environment variable
* Also fixed a bug in test log output by prepending DIST_DIR to the
output file path so that it can be grabbed by the server
Bug:
64687730
Test: run run_host_unit_tests script in both
1) vanilla environment without envsetup and lunch
2) fulled setup and lunched environemt
to verify
1) If nothing is setup, the script picks a default environment
2) If envirnoment is already setup, use existing environment
instead of creating new one
Change-Id: Ife28db509fe9af55cef26c7b480196efae39d3aa
Jakub Pawlowski [Tue, 24 Oct 2017 00:49:00 +0000 (00:49 +0000)]
Make copyright headers consistent with Google template; remove "(C)" am:
5b790feeeb
am:
6542d34e04
Change-Id: I6c1f1304657180708e24db24569d60aae09d18f0
Jakub Pawlowski [Tue, 24 Oct 2017 00:47:17 +0000 (00:47 +0000)]
Make copyright headers consistent with Google template; remove "(C)"
am:
5b790feeeb
Change-Id: I2caaf1d1455140ff0e2439584f2275c5ad0bb6e3
Jakub Pawlowski [Mon, 23 Oct 2017 22:53:09 +0000 (22:53 +0000)]
Merge "GATT discovery refactor" am:
ac1f273024
am:
54e0f2a591
Change-Id: I6a1da110cdc7afdac9908ba66f4ed86111f62914
Jakub Pawlowski [Mon, 18 Sep 2017 16:00:20 +0000 (09:00 -0700)]
Make copyright headers consistent with Google template; remove "(C)"
Test: Comment changes only; still compiles...
Change-Id: Id699a8170112f06e4a2c9f2e0f0834d1817ace4e
Hansong Zhang [Mon, 23 Oct 2017 22:47:19 +0000 (22:47 +0000)]
Change Bluetooth HID Profile Name (3/6) am:
bb3d9f7e92
am:
1445c4e365
Change-Id: Ife5831eb65e4d2b8253973c053b0275cea8de6d5
Jakub Pawlowski [Mon, 23 Oct 2017 22:43:21 +0000 (22:43 +0000)]
Merge "GATT discovery refactor"
am:
ac1f273024
Change-Id: Idbf9d442d70b5a4676a9bdc313b1c48ba5d0d648
Treehugger Robot [Mon, 23 Oct 2017 22:36:34 +0000 (22:36 +0000)]
Merge "GATT discovery refactor"
Hansong Zhang [Mon, 23 Oct 2017 22:35:06 +0000 (22:35 +0000)]
Change Bluetooth HID Profile Name (3/6)
am:
bb3d9f7e92
Change-Id: I51e348da5f5aa2beb8be001c39c52c3b9f5eae0a
Jakub Pawlowski [Tue, 10 Oct 2017 19:45:14 +0000 (12:45 -0700)]
GATT discovery refactor
Currently, when doing service discovery, we store pending discovery
content into tBTA_GATTC_ATTR_REC structure, and rewrite it into cache,
service after service during discovery.
From now on, we save discovery result directly into pending_discovery,
and at end of discovery we swap it with cache. This remove unncecessary
intermidiate step, and simplify the discovery.
Bug:
67057055
Test: GattReadTest
Change-Id: Id09026b6fb6df04eaf0a0ebefeb6e35b3d175f62
Hansong Zhang [Fri, 20 Oct 2017 22:56:54 +0000 (15:56 -0700)]
Change Bluetooth HID Profile Name (3/6)
Make the Bluetooth HID profile name consistent with the Bluetooth HID
service name.
BluetoothInputHost → BluetoothHidDevice
BluetoothInputDevice → BluetoothHidHost
IBluetoothInputHost → IBluetoothHidDevice
IBluetoothInputDevice → IBluetoothHidHost
BluetoothProfile.INPUT_HOST → BluetoothProfile.HID_DEVICE
BluetoothProfile.INPUT_DEVICE → BluetoothProfile.HID_HOST
(Cherry-picked from commit
1878072a45cb748f396a7b97f3c14aa983d41333)
Merged-In: I6bb5ad307f8ffb78cf5972aad68665372b85f0fe
Bug:
68055651
Test: make
Change-Id: I6bb5ad307f8ffb78cf5972aad68665372b85f0fe
Jakub Pawlowski [Mon, 23 Oct 2017 19:14:41 +0000 (19:14 +0000)]
Merge "Use vector instead of list for keeping GATT database content" am:
fb23789ef4
am:
53d97ac31d
Change-Id: I0fc674d978a9ee1421f574b70a5372388102b1e0
Jakub Pawlowski [Mon, 23 Oct 2017 19:12:38 +0000 (19:12 +0000)]
Merge "Use vector instead of list for keeping GATT database content"
am:
fb23789ef4
Change-Id: Iffe7afeedcfc178442db4bfc16519bde8058dd31
Treehugger Robot [Mon, 23 Oct 2017 19:08:23 +0000 (19:08 +0000)]
Merge "Use vector instead of list for keeping GATT database content"