History log of /system/bt/vendor_libs/test_vendor_lib/src/bt_vendor.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6f5f0540f1557c87349d9f3378a90979c175ed1d 21-Aug-2015 Dennis Cheng <dennischeng@google.com> test_vendor_lib: Clean up controller documentation and address style
issues

This upload cleans up the command documentation in the controller's
header file and also fixes a few logical errors related to command
status event packets. Some style fixes are also included, such as
removing braces for single line conditionals to conform to remain
consistent with the rest of the project.

Bug: 21586676
Change-Id: Ife5e608e43c3030e76eff8ea79ce6cad0b2c10a3
/system/bt/vendor_libs/test_vendor_lib/src/bt_vendor.cc
2fc0eba951081bddd15a3482f2189a9125dac48a 30-Jul-2015 Dennis Cheng <dennischeng@google.com> test_vendor_lib: Implement event loop with libbase

Adds event loop functionality by handling IO in the Watcher class,
HciTransport. Also fixes a bug where the vendor's file descriptor was
closed early and another where an object was mistakingly being passed
by value.

Bug: 21586676
Change-Id: I2ec30b68c0ede47bf1ad78ec13beee93d0f8ab9d
/system/bt/vendor_libs/test_vendor_lib/src/bt_vendor.cc
b2d45eb7cbd4f2de5f0101915981a87392ccf625 29-Jul-2015 Dennis Cheng <dennischeng@google.com> 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
/system/bt/vendor_libs/test_vendor_lib/src/bt_vendor.cc
a7077ee9b7482708fa7272837a527f64bb470988 28-Jul-2015 Dennis Cheng <dennischeng@google.com> test_vendor_lib: Use libbase's CHECK/DCHECK

This upload pulls in libchrome to the test vendor library and uses CHECK
and DCHECK from base/logging.h.

Bug: 21586676
Change-Id: Ia88b4aa3728493d798e8d36076a351a00fad7c6b
/system/bt/vendor_libs/test_vendor_lib/src/bt_vendor.cc
3c0ea3e5a5aca269283854d8f2f584ad0699c951 16-Jun-2015 Dennis Cheng <dennischeng@google.com> test_vendor_lib: Use EPOLLOUT

HciTransport checks for write-readiness before sending any packets
back to the HCI. Packets are maintained on a queue and only written
when the EPOLLOUT flag is set in the epoll_event.

Bug: 21586676
Change-Id: Iebd9599286b62746e2be7e424c522058ae978bb1
/system/bt/vendor_libs/test_vendor_lib/src/bt_vendor.cc
f3b1820e1676261886a6537e1f6abac6a35ed6d4 16-Jun-2015 Dennis Cheng <dennischeng@google.com> test_vendor_lib: Initial commit

Basic vendor library for a test Bluetooth controller. Currently consists
of mostly stub functions and objects and can only handle the reset
command (by immediately responding with a command complete event).
Implemented through a global EventDispatcher object which waits for data
from the HCI and directly returns the appropriate response.

Eventually, the dispatcher will manage a fake controller object that
will provide callbacks to be executed whenever events are processed by
the dispatcher. Unit tests are still in progress and will be in the next
upload.

Bug: 21586676
Change-Id: I1c6746f8b0f1732b89a1da13facecdd49b5ac1b6
/system/bt/vendor_libs/test_vendor_lib/src/bt_vendor.cc