OSDN Git Service

test_vendor_lib: Use base::Thread
authorDennis Cheng <dennischeng@google.com>
Wed, 29 Jul 2015 18:47:55 +0000 (11:47 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Thu, 6 Aug 2015 17:10:28 +0000 (17:10 +0000)
commitb2d45eb7cbd4f2de5f0101915981a87392ccf625
treed93af8cdbb2e7b6271238df02010362f31750e6b
parent66ba120cde2d9dc72bb8a014d52dcb20937a6816
test_vendor_lib: Use base::Thread

This upload starts the replacement of the event loop in HciTransport
with libbase's MessageLoopForIO. A global instance of the new
VendorManager class now manages the trio of previously global objects
(i.e. HciTransport, HciHandler, and BREDRController). Note that the new
libbase event loop structure doesn't actually handle anything right now
and the functionality will come in a future change.

Bug: 21586676
Change-Id: Id74392e2a566e06445eb65269f0142265087d47d
13 files changed:
vendor_libs/test_vendor_lib/Android.mk
vendor_libs/test_vendor_lib/BUILD.gn
vendor_libs/test_vendor_lib/include/command_packet.h
vendor_libs/test_vendor_lib/include/dual_mode_controller.h [moved from vendor_libs/test_vendor_lib/include/bredr_controller.h with 83% similarity]
vendor_libs/test_vendor_lib/include/event_packet.h
vendor_libs/test_vendor_lib/include/hci_handler.h
vendor_libs/test_vendor_lib/include/hci_transport.h
vendor_libs/test_vendor_lib/include/vendor_manager.h [new file with mode: 0644]
vendor_libs/test_vendor_lib/src/bt_vendor.cc
vendor_libs/test_vendor_lib/src/dual_mode_controller.cc [moved from vendor_libs/test_vendor_lib/src/bredr_controller.cc with 66% similarity]
vendor_libs/test_vendor_lib/src/hci_handler.cc
vendor_libs/test_vendor_lib/src/hci_transport.cc
vendor_libs/test_vendor_lib/src/vendor_manager.cc [new file with mode: 0644]