0b60bb04b966030fd1dfdffe68099da8f280ade0 |
|
12-Feb-2016 |
Pavlin Radoslavov <pavlin@google.com> |
Cleanup C and C++ compiler flags Cleanup the setting of C and C++ compiler flags: * (Almost) all compiler flags are set uniformly in the system/bt/Android.mk file. * Enable by default breaking the compilation if there is a compilation warning: -Werror * Enable most compilation warnings: -Wall -Wextra * Renamed Android.mk related flags: - bdroid_C_INCLUDES -> bluetooth_C_INCLUDES - bdroid_CFLAGS -> bluetooth_CFLAGS * Introduce variables for C-only and C++ only compiler: - bluetooth_CFLAGS: common C and C++ compiler flags - bluetooth_CONLYFLAGS: C only compiler flags - bluetooth_CPPFLAGS: C++ only compiler flags * Disable warnings for existing issues - to be removed as issues are resolved * Add a workaround for libchrome and -DNDEBUG usage. Bug: 26879229 Change-Id: Ie7595965ca0c8ead0e95e983e76c327e7891b2c3
/system/bt/service/main.cpp
|
ae43de627b9c91e54215d439149c0e01599249c0 |
|
25-Sep-2015 |
Arman Uguray <armansito@google.com> |
service: Fix IBluetoothLowEnergy signatures to return bool Changed the IBluetoothLowEnergy API signatures that can synchronously fail to return bool to report synchronous errors. Also fixed a bug with lambda capture by value in advertising API implementation. Bug: 24245347 Change-Id: I9ce4bb44d155d74ba38916e2834d7e93bf49301c
/system/bt/service/main.cpp
|
503baaae63d798a5f25a7faa9206cd72f87927be |
|
20-Aug-2015 |
Arman Uguray <armansito@google.com> |
service: Support base switches::kV This is a libbase built-in command-line flag to set log verbosity, so that the VLOG macro does the right thing. This CL enables that for the daemon. To enable VLOGs with a given verbosity level and below, do bluetoothtbd --v=<level> Change-Id: I128a42c52425c37640c016c3c6158419cc1c0f66
/system/bt/service/main.cpp
|
49a86709488e5cfd5e23759da18bf9613e15b04d |
|
08-Jul-2015 |
Marie Janssen <jamuraa@google.com> |
build: LOG_TAG consistency, include order, build fixes Fix the order of includes across a bunch of files, and declare LOG_TAG at the top of every file in which it is used. Consistently use bt_ as a LOG_TAG prefix. Fix issues with LOG macro usage. Remove unused includes and double-includes (when in related .h) Add includes as necessary to compile cleanly (problems surfaced by reordering includes) Change-Id: Ic55520c8302b06bbc1942c10c448b20844669da6
/system/bt/service/main.cpp
|
fe65fb7978bc9257a36d1e5eae59c5f412dbdb49 |
|
25-Jul-2015 |
Arman Uguray <armansito@google.com> |
service: Refactor IPC and singletons This CL makes the following major refactors to the system service code: 1. A new global Daemon object is introduced, which manages the main event loop and all other subsystems of the Bluetooth daemon. This object is the only singleton class and initializes and owns everything else. 2. Everything that was a singleton and/or was initialized directly in main.cpp is now a) no longer a singleton; b) now initialized and owned by the global Daemon instance. 3. All of the Chromecast specific IPC code has been moved into the ipc/ subdirectory. This directory is meant for everything that is IPC related, paving the way for enabling multiple IPC systems (domain-socket based, Binder based, etc) simultaneously in the future. Main changes to the Chromecast IPC code are: a. All files and classes have been renamed to reflect the UNIX-domain-socket-specific nature of the IPC mechanism. b. The code no longer hogs up the main thread while listening for connections. All of this logic has been moved to a dedicated thread with its own MessageLoopForIO, so that it can use the built-in mechanisms for polling on client sockets in the future. Bug: 22532180 Change-Id: I42db06dba6cff3bc8f8101a1ea2b6787a69409fd
/system/bt/service/main.cpp
|
065d0f709343129f82ff3d072dcb36f612038598 |
|
17-Jul-2015 |
Arman Uguray <armansito@google.com> |
service: Introduce a global Settings object Introduced a global Settings object that will store all runtime properties that would be associated with a config file, Android system properties, etc. Added a mechanism to parse command-line options which can be used to pass paths to configuration files, file path for UNIX domain socket based IPC mechanism, and any other property that is dynamic in nature. This will help us remove hardcoded paths, strings, and other such values in the future. Bug: 22532366 Change-Id: I8e790363ed31d44369f7991a8ea7132d1cace70b
/system/bt/service/main.cpp
|
f2d6434a6b7ad98e20c7a601d2a0950237514837 |
|
09-Jul-2015 |
Arman Uguray <armansito@google.com> |
gn-build: Add bluetooth-service target This patch makes the Bluetooth system service (service/) buildable using GN: 1. Added new BUILD.gn file for service/ 2. Added conditional compilation for global config paths, with TODOs for generalizing them later. 3. Added a shim for loading the Bluetooth library that calls hw_get_module on Android and explicitly calls dlopen on OS_GENERIC. 4. Fixed compile warnings and errors. 5. Did some minor clean up in gatt_server.cpp for better readability. Bug: 22124644 Change-Id: I3226537a3a5211a6762651a35707638df29956b0
/system/bt/service/main.cpp
|
49120dc867c7818511b5afec461dfc97d17eef58 |
|
08-Jul-2015 |
Marie Janssen <jamuraa@google.com> |
build: Fix LOG_TAG define breakage, macro usage Fixes build breakages related to r.android.com/156982 Change-Id: Ib1143c41fe05a17c296226998afdb41a8cb6294a
/system/bt/service/main.cpp
|
db554581079863974af8e1289646f5deea6fc044 |
|
26-Jun-2015 |
Marie Janssen <jamuraa@google.com> |
build: Update osi log functions, use consistently Update the LOG_* functions to take a tag argument which makes them more consistent with the Android Log.*(TAG, s) common syntax and removes some #define-dependency with osi/include/log.h. Also update to never use Android log functions directly. Also contains minor cleanup of some header includes. Bug: 21569831 Change-Id: If07385cafbea062232ecdbc7c673f908d5ef8921
/system/bt/service/main.cpp
|
109691281c0135fd4298debcdec37fdc5855261e |
|
10-Jun-2015 |
Miao Chou <mcchou@google.com> |
build: Eliminate cutils/sockets dependencies from system/bt Eliminate cutils/sockets dependencies by pulling sources files from core/libcutils into osi/. - Pulled source files from cutils/ into osi/ and modified GN files and Android.mk - Updated includes to use the headers in osi/ and removed unused/duplicated headers. - Renamed the functions of osi/sockets and updated wherever they are called to avoid usign symbols from cutils/sockets, since other cutils dependencies have not been eliminated yet. Bug: 21667795 Change-Id: I3dd4371d585f120d97ac0433ab1f35edb820dbb9
/system/bt/service/main.cpp
|
611fcf98316e28425abe28dbcc07b8d037653cee |
|
04-Jun-2015 |
Ian Coolidge <icoolidge@google.com> |
Add bthost, a simple BLE GATT server. This is accessible via Unix socket. It only has a couple of interesting features: * Built in support for large blob attributes (>512 octets) * Attribute caching (avoid frame-level IO for IPC clients) Some string utilies are taken from modp_b64 and Chromium base. Bug: 21076037 Change-Id: I6a29959159de76f8dd68d6bbaabe2100daabb6fa
/system/bt/service/main.cpp
|