• Home
  • History
  • Annotate
  • only in /system/bt/service/common/bluetooth/
History log of /system/bt/service/common/bluetooth/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
110a4dc0739b7ecedd25b52530de581d59eedea7 19-Mar-2017 Pavlin Radoslavov <pavlin@google.com> Base classes should have virtual destructors

Each base class in service/common/bluetooth now has a virtual
destructor. This fixes memory delete issues that were exposed
when running the unit tests with ASAN enabled.

Test: Running unit tests with ASAN enabled
Change-Id: Ie944eb80784de4ebac3c7276fabed6acb5fec6c0
dvertise_data.h
dvertise_settings.h
haracteristic.h
escriptor.h
can_filter.h
can_result.h
can_settings.h
ervice.h
uid.h
2a2583bdd3069d7d0bd2a70fe9ab8b523b30f97a 10-Feb-2017 Bailey Forrest <bcf@google.com> Add Service Data GAP EIR data type

Test: Build
Change-Id: I378883fdeb09fadaac04ace2dc499abd27b7d3ab
ow_energy_constants.h
35675d0e738750ea348a0e593c72908bae1bacd7 09-Jan-2017 Jakub Pawlowski <jpawlowski@google.com> Fix bad connectable advertising constant

Test: start connectable advertising using bluetoothtbd
Change-Id: Ie7e42570748d43a27bc7691378aee85ab1565a05
ow_energy_constants.h
e0750ca056c8561d4a5b7ea14430049bf1d82fc1 05-Dec-2016 Jakub Pawlowski <jpawlowski@google.com> Expose Bluetooth 5.0 properties to JNI

Bug: 30622771
Test: sl4a ConcurrentBleAdvertisingTest
Change-Id: I6185e6926e7363824aa573c7d65f7ab66f954e52
ow_energy_constants.h
911d1ae03efec2d54c3b1b605589d790d1745488 29-Nov-2016 Myles Watson <mylesgw@google.com> Apply clang-format to the rest of the tree

find * | grep "\.[ch]" | xargs clang-format --style=file -i

Test: mma -j32
Change-Id: I6fcc9862bb7bc07c2a367ca58fef2b3cd27a6f05
dapter_state.cc
dvertise_settings.cc
dvertise_settings.h
haracteristic.cc
haracteristic.h
escriptor.h
ow_energy_constants.h
can_filter.cc
can_result.cc
can_result.h
can_settings.cc
can_settings.h
ervice.cc
ervice.h
til/address_helper.cc
til/atomic_string.cc
uid.cc
uid.h
0ecddf398c92324e15a53c9d410646fd7a494b96 19-Oct-2016 Jakub Pawlowski <jpawlowski@google.com> Change how Advertise Data is passed to BTIF (2/3)

The way that AD data is passed right now put some additional
limitations, i.e. only one manufacturer specific data can be set, or
only one service UUID. By moving AD generation to upper layers, aother
set of limitations is removed.

Test: Covered by BleAdvertiseApiTest sl4a test
Bug: 30622771
Change-Id: Iee48ea30ec4c055eaa1ad0b1678686d261106e76
dvertise_data.cc
dvertise_data.h
ow_energy_constants.h
5dc0d15e7865104d13be75c06de4b9158ce7dff4 17-Aug-2016 Chih-Hung Hsieh <chh@google.com> Fix clang-tidy warnings in bt.

* Add explicit keyword to conversion constructors,
or add NOLINT to implicit conversion constructors.
Bug: 28341362
* Use const reference type for read-only parameters,
or add NOLINT to keep same callback function signature.
Bug: 30407689
* Use const reference type for loop index variables to avoid unnecessary copy.
Bug: 30413223
* Use const reference type to avoid unnecessary copy.
Bug: 30413862
Test: build with WITH_TIDY=1

Change-Id: I8237d332f32d7be09ab72a8de82160fdb776dcd1
can_result.cc
can_result.h
d19e0785e662e640191a075eda07acce61c2aeda 15-Jul-2016 Marie Janssen <jamuraa@google.com> Use standard types, consistent ifdef style everywhere

Remove the typedefs in stack/include/bt_types.h

Use standard types everywhere.
Use standard style for #if statements:
- #if (VAR_NAME == TRUE)
- #if (VAR_NAME1 == TRUE && VAR_NAME2 == TRUE)
Use __func__ instead of __FUNCTION__
Fix some debug statements to use __func__

Update script to be less disruptive to aligned assignment blocks.

Change-Id: I8f8f068e6c26ce74fd3b3707e1e31fd0b919cdd0
haracteristic.cc
haracteristic.h
escriptor.cc
escriptor.h
ervice.cc
ervice.h
a641b6fa2a25e1b5382945d13c4fa49d36084a78 26-Mar-2016 Jakub Pawlowski <jpawlowski@google.com> GATT Server refactoring (4/4)

Right now in order to add gatt service, we need to add it piece by
piece - each characteristic and descriptor separately. This causes lots
of concurrency errors in higher layers. Instead accept whole service
definition and start whole service at once.

Also, use handles to identify GATT server attributes. It's already done
on clinet side.

Bug: 27999121
Change-Id: I42c796809423d116fe6755ef8b1c40da270427a5
att_identifier.cc
att_identifier.h
e39e5ae5527fcee25cb17cea70c8ebf9d331678e 24-May-2016 Jakub Pawlowski <jpawlowski@google.com> Add C++ Parcelable types for Service, Characteristic, Descriptor

This types will be used in upcoming GATT Client/Server code. They will
match ones you can found in frameworks/base.

Change-Id: I6080310a726bcbcd0cd36970712928b188f7bd24
haracteristic.cc
haracteristic.h
escriptor.cc
escriptor.h
ervice.cc
ervice.h
3398730eac95049f01da0da53629ae77d212857a 01-Jul-2016 Chih-Hung Hsieh <chh@google.com> Fix google-explicit-constructor warnings in system/bt.

* Declare conversion constructors as 'explicit'.
* Add NOLINT to implicit converters.

Bug: 28341362
Change-Id: I81fecf19c0ee2e64dd6778b3dea78e04f111bfb4
Test: build with clang-tidy
til/atomic_string.h
e6d1202990e0ede65db4470b4eaa20fc4b1f791e 12-May-2016 Jakub Pawlowski <jpawlowski@google.com> Rename all *.cpp files to *.cc to follow new style

Change-Id: Ia79ee09348e67ff4a1712ee11a1e8480180a2623
dapter_state.cc
dapter_state.cpp
dvertise_data.cc
dvertise_data.cpp
dvertise_settings.cc
dvertise_settings.cpp
att_identifier.cc
att_identifier.cpp
can_filter.cc
can_filter.cpp
can_result.cc
can_result.cpp
can_settings.cc
can_settings.cpp
til/address_helper.cc
til/address_helper.cpp
til/atomic_string.cc
til/atomic_string.cpp
uid.cc
uid.cpp
a4bd0d2370bd469942e92e724cfc9c7c01d3da74 16-Feb-2016 Jakub Pawlowski <jpawlowski@google.com> service: use AIDL

Change-Id: Ic6261a9bafc65a5534f4e580ef9cae1fa82b4086
inder/IBluetooth.cpp
inder/IBluetooth.h
inder/IBluetoothCallback.cpp
inder/IBluetoothCallback.h
inder/IBluetoothGattClient.cpp
inder/IBluetoothGattClient.h
inder/IBluetoothGattClientCallback.cpp
inder/IBluetoothGattClientCallback.h
inder/IBluetoothGattServer.cpp
inder/IBluetoothGattServer.h
inder/IBluetoothGattServerCallback.cpp
inder/IBluetoothGattServerCallback.h
inder/IBluetoothLowEnergy.cpp
inder/IBluetoothLowEnergy.h
inder/IBluetoothLowEnergyCallback.cpp
inder/IBluetoothLowEnergyCallback.h
9bceebb4a441ef7f3c5d9ad2e9b84ec7e1974007 16-Feb-2016 Jakub Pawlowski <jpawlowski@google.com> service: use Parcelable instead of helpers

In order to user .aidl in the future, all types will have to be
parcelable. We don't add Parcelable to base types, as they might
be also used with other transports than binder in future.

Change-Id: I88e6961e69ac0e5d04bd4b6fe3cd7d79bd6f73ba
dvertise_data.h
dvertise_settings.h
inder/IBluetoothGattServer.cpp
inder/IBluetoothGattServerCallback.cpp
inder/IBluetoothLowEnergy.cpp
inder/IBluetoothLowEnergyCallback.cpp
inder/parcel_helpers.cpp
inder/parcel_helpers.h
att_identifier.h
can_filter.h
can_result.h
can_settings.h
uid.h
5eedb96edd61f31294f5038adac22f4c76621028 11-Feb-2016 Jakub Pawlowski <jpawlowski@google.com> service: Use built-in byte vector parser

Change-Id: I72369c0b7678338fc8ccf520b59a95affdfd2994
inder/IBluetoothGattServer.cpp
inder/IBluetoothGattServerCallback.cpp
inder/parcel_helpers.cpp
inder/parcel_helpers.h
2fdc1a1f90d36cf7f421d5c2600d6596a0c4938d 03-Feb-2016 Marie Janssen <jamuraa@google.com> binder: fix possible stack corruption

The stack could be corrupted by crafting a IPC call in interesting ways
when a character buffer was passed.

This patch also removes code duplication where these would occur.

Bug: 26917241
Change-Id: Ib6c149a293abf01f31c69a94c8f6dd91d8a2fff2
inder/IBluetoothGattServer.cpp
inder/IBluetoothGattServerCallback.cpp
inder/parcel_helpers.cpp
inder/parcel_helpers.h
a6551079fe71b1c76505ada0e4f758f6faf651e0 26-Jan-2016 Jakub Pawlowski <jpawlowski@google.com> service: add SetMtu and OnMtuChanged

Change-Id: I7a6c6cb46f4710b5d2c57b9d0e9cfac166d7cd62
inder/IBluetoothLowEnergy.cpp
inder/IBluetoothLowEnergy.h
inder/IBluetoothLowEnergyCallback.cpp
inder/IBluetoothLowEnergyCallback.h
57d7bf98ea5f7a08c93c30f5d8a0e303d78ea432 20-Jan-2016 Alex Vakulenko <avakulenko@google.com> bt: Update libchrome APIs to r369476

The new libchrome has been ported from Chromium and some APIs have
changed. Make necessary changes at call sites.

Change-Id: I988157d3a6e36ede6561c0fa6919bb756e8ed3dd
til/address_helper.cpp
uid.cpp
455dc8f535a719af6a65a7512d90f9db878f5a58 20-Jan-2016 Jakub Pawlowski <jpawlowski@google.com> service: Expose Connect and Disconnect through IBluetothLowEnergy

Change-Id: Idcfd3fac263e61bc1bb2be97017554d552511765
inder/IBluetoothLowEnergy.cpp
inder/IBluetoothLowEnergy.h
inder/IBluetoothLowEnergyCallback.cpp
inder/IBluetoothLowEnergyCallback.h
dff1aa9fe7d305a94e0de0e9d70ca22504fabcf0 14-Dec-2015 Marie Janssen <jamuraa@google.com> service: Implement IBinder.dump()

Add dump() support to BluetoothBinderServer and change IBluetooth
implementation to allow the system to call it correctly.

Bug: 26095165
Change-Id: I32ca78e37484b5d748b8caf4c293aafcf01dfbff
inder/IBluetooth.cpp
inder/IBluetooth.h
45480a0c515da83d0b9d3488beea07a00b19aea1 03-Dec-2015 Arman Uguray <armansito@google.com> service: Add LE scan result support to Binder API

Added Binder API documentation, bindings, and logic for BLE device
scan result.

Bug: 25744656
Change-Id: I5130a6b47438e266fab4a7b52b5372909824bc81
inder/IBluetoothLowEnergyCallback.cpp
inder/IBluetoothLowEnergyCallback.h
6dc92022a02423778975e96363fcae787d47374a 03-Dec-2015 Arman Uguray <armansito@google.com> service: Add LE scan support to Binder API

Added Binder API documentation, bindings, and logic for BLE device
scans. Also added the start-le-scan and stop-le-scan commands to
bluetooth-cli for testing.

Bug: 25744656
Change-Id: I08c9d23ddd78cff1702495cf6d431cf5b9a7b894
inder/IBluetoothLowEnergy.cpp
inder/IBluetoothLowEnergy.h
6d596c072995a876414b55a0471ef13146053b9c 13-Jan-2016 Jakub Pawlowski <jpawlowski@google.com> service: use client_id instead of client_if

Change-Id: Id045c81f748c99ab0525ce8869ef9cdd0207712e
inder/IBluetoothLowEnergy.cpp
a961da5e2e7aeef05c703e77a36e56afe4d454f7 19-Dec-2015 Christopher Wiley <wiley@google.com> Remove dependency on base::Hash

This function is changing to just use std::hash anyway. This is
slightly less efficient because of the copies, but doing it inline
makes the cost more explicit to bluetooth authors.

Bug: 26253162
Change-Id: I940ea8ce8aa27808cef8a8b9398a7756db3b5ca3
Test: Compiles
uid.h
57dcd7e47681d3f452ab0f2b34f413af9be51e9e 17-Nov-2015 Arman Uguray <armansito@google.com> service: Add scan structures

Added the ScanFilter, ScanSettings, ScanResult structures that are
used in the BLE scan API.

Bug: 25744656
Change-Id: Id1bb28e7ebe85fd40013876aa097e1d0f0a4e471
inder/parcel_helpers.cpp
inder/parcel_helpers.h
can_filter.cpp
can_filter.h
can_result.cpp
can_result.h
can_settings.cpp
can_settings.h
uid.cpp
uid.h
900c9dc00243990f96922dee904728be1732276f 11-Nov-2015 Arman Uguray <armansito@google.com> service: Add IBluetoothGattClient IPC bindings

Added the Binder IPC bindings for the IBluetoothGattClient API.

Bug: 25128256
Change-Id: Idc37ac7d85c0d3a2aa17e2b95ee588d590a8bb8f
inder/IBluetooth.cpp
inder/IBluetooth.h
inder/IBluetoothGattClient.cpp
inder/IBluetoothGattClient.h
inder/IBluetoothGattClientCallback.cpp
inder/IBluetoothGattClientCallback.h
inder/IBluetoothGattServer.cpp
inder/IBluetoothGattServer.h
de5cc7034275bf0dfc0124d07b28c70ec634aed7 08-Oct-2015 Arman Uguray <armansito@google.com> service: Improve creating UUIDs from string

- When UUIDs are initialized from a 128-bit UUID, they are now parsed
from the canonical UUID string representation.

- Invalid strings now cause the UUID to be marked as invalid, rather than
causing a crash.

- Input such as "0x180d" is now valid.

- Added the GetShortestRepresentationSize() method to use in determining whether
a UUID is within Base BT SIG UUID domain.

Bug: 24247700

Change-Id: Id28255ec963bc6da27a8e871598016d41920b688
uid.cpp
uid.h
234138e2606dd7a54fbcc540643511abc0a3598d 07-Oct-2015 Arman Uguray <armansito@google.com> service: Create a client library for applications

This CL creates the libbluetooth-client static library that external
code can link against to interact with the Bluetooth daemon using
Binder. To this end, all service/ code that is common to the client
library and the daemon itself have been moved to service/common/bluetooth
and service/common is exported in LOCAL_EXPORT_C_INCLUDE_DIRS.

bluetooth-cli and bt-example-hr-server have been update to demonstrate
how an app should use this library (using library includes).

Bug: 23169160
Change-Id: Ie6841bd6c48846eecec824ff1e80a9971385d1fc
dapter_state.cpp
dapter_state.h
dvertise_data.cpp
dvertise_data.h
dvertise_settings.cpp
dvertise_settings.h
inder/IBluetooth.cpp
inder/IBluetooth.h
inder/IBluetoothCallback.cpp
inder/IBluetoothCallback.h
inder/IBluetoothGattServer.cpp
inder/IBluetoothGattServer.h
inder/IBluetoothGattServerCallback.cpp
inder/IBluetoothGattServerCallback.h
inder/IBluetoothLowEnergy.cpp
inder/IBluetoothLowEnergy.h
inder/IBluetoothLowEnergyCallback.cpp
inder/IBluetoothLowEnergyCallback.h
inder/parcel_helpers.cpp
inder/parcel_helpers.h
att_identifier.cpp
att_identifier.h
ow_energy_constants.h
til/address_helper.cpp
til/address_helper.h
til/atomic_string.cpp
til/atomic_string.h
uid.cpp
uid.h