History log of /system/bt/service/low_energy_client.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
12265e39b511f28425236b0dc97c78e7d837304b 13-Feb-2016 Pavlin Radoslavov <pavlin@google.com> Fix C/C++ compiler generated warnings

* Remove unused functions: -Wno-unused-function
* Fix logical operations that are missing parentheses:
-Wno-logical-not-parentheses, -Wno-parentheses
* Add missing braces in initializers: -Wno-missing-braces
* Remove unused variables: -Wno-unused-variable
* Fix printf()-like formatting issues: -Wno-format
* Avoid using unitialized variables:
-Wno-maybe-uninitialized, -Wno-uninitialized
* Fix a bug inside bta_gattc_get_gatt_db_impl()
when the processed GATT DB attribute type is unknown.
* Fix warnings about missing field initializers:
-Wno-missing-field-initializers
* Re-implement macro COMPILE_ASSERT(COND) to fix a compilation warning:
-Wno-non-literal-null-conversion
* Fix sign mismatch comparison warnings:
-Wno-sign-compare
* Fix warnings related to enum conversion:
-Wno-enum-conversion
* Fix warnings related to incompatible pointer types:
-Wno-incompatible-pointer-types
* Fix warnings related to enum conversion:
-Wno-enum-conversion

Bug: 26879229
Change-Id: I522931fe156aeab23ae841051a9e25ceab00b1c2
/system/bt/service/low_energy_client.cpp
a6551079fe71b1c76505ada0e4f758f6faf651e0 26-Jan-2016 Jakub Pawlowski <jpawlowski@google.com> service: add SetMtu and OnMtuChanged

Change-Id: I7a6c6cb46f4710b5d2c57b9d0e9cfac166d7cd62
/system/bt/service/low_energy_client.cpp
25689c1676ab911fa7887ec87b730b00325e4b90 21-Jan-2016 Jakub Pawlowski <jpawlowski@google.com> service: Solve locking issues inside GATT interface

ObserverList class handles adding/removing elements during iteration
by itself, therefore we don't need to do any locking.
Additionally, change lock type to shared for better performance, and
to avoid possible deadlocks that might be caused by calling HAL from
observers.

Change-Id: I4c372f1e03bd27a96bc6c036ab8ce34f5501c0a7
/system/bt/service/low_energy_client.cpp
a6372e984aea35ffb451fca378046efbf280291c 20-Jan-2016 Jakub Pawlowski <jpawlowski@google.com> Add Connect and Disconnect methods to LowEnergyClient

Change-Id: Ibabfd44575b7ab1c8fc7a57b844956038dd571c4
/system/bt/service/low_energy_client.cpp
82ea72f905565f83116f74d5ccbacea5d710a853 03-Dec-2015 Arman Uguray <armansito@google.com> service: Add OnScanResult Delegate event.

Added the LowEnergyClient::Delegate class and implemented scan result
reporting via the OnScanResult Delegate event.

Bug: 25744656
Change-Id: I050118c4f6761a7a32fa3ec8d9a1b41126a4c3ae
/system/bt/service/low_energy_client.cpp
480174f874a664affda33831c904eb3574ae9389 01-Dec-2015 Arman Uguray <armansito@google.com> service: Add Start|StopScan API to LowEnergyClient

Added the StartScan and StopScan methods to LowEnergyClient and basic unit
tests. This currently only supports regular scans with no batch scan or
hw/sw filters.

Bug: 25744656
Change-Id: Iddf6e897377f90a5eef81ef36696b1d7074a7dab
/system/bt/service/low_energy_client.cpp
60b0e8f7ef14b1c0bd0e6d86656cd912dd4c4221 12-Jan-2016 Jakub Pawlowski <jpawlowski@google.com> service: Parametrize LowEnergyClient with Adapter for tests

Bug: 25744656
Change-Id: I4eee8098c264c2135c2bb4f02a2319ba0dfec978
/system/bt/service/low_energy_client.cpp
d748ef2bcc24747659dadec242fd5a7a0c8ba3c4 12-Jan-2016 Jakub Pawlowski <jpawlowski@google.com> service: Rename variable holding advertisement settings

There will be more variables with settings. Make sure they
all have unique meaningful names.

Change-Id: I4b23fd3fa5a16f9132801b9141e4f8ed0be33be7
/system/bt/service/low_energy_client.cpp
bb18c41ffa0370d4eb0c4a15904b114355606466 12-Nov-2015 Arman Uguray <armansito@google.com> service: Refactor Client/Instance naming

Refactored the internal interfaces so that data structures with
per-application instances such as GattClient, GattServer, and
LowEnergyClient, and all other related data structures use "instance"
to generically refer to these instances rather than "client", which
was the naming inherited from BTIF.

Bug: 25650633
Change-Id: I1bda387f5d8fdccebe5eae7f058d7f8defafe8cc
/system/bt/service/low_energy_client.cpp
9fc7d81c2dfa3f9b7c4381cd83e5e8f788e235f3 14-Oct-2015 Arman Uguray <armansito@google.com> service: Fix broken UUID advertising

The BTIF API expects a single 128-bit UUID in little-endian form to be
passed for its multi-adv service UUID field. The system service never
did this conversion so UUIDs were never properly advertised. This CL
fixes this.

Bug: 24247700
Change-Id: I541921da85bdabd907bfa9f75fbde7a3477ff593
/system/bt/service/low_energy_client.cpp
ff651b7fd11daaa29732cb8735d248910d9248f9 01-Oct-2015 Ajay Panicker <apanicke@google.com> Allow parsing of UUID and service data for advertising

Added code so that bluetooth advertisement packets will now
parse UUID data and service data. Also added unit tests to
confirm data is being parsed correctly. Also added constants for
the type fields for the different service UUID and service data
types.

Bug: 24247700

Change-Id: I53f5b639adb30e781ef155c8d55004547a26672d
/system/bt/service/low_energy_client.cpp
08f80ebd5c714364cb76cc4e4a93454b42ed5669 21-Sep-2015 Arman Uguray <armansito@google.com> service: Move client registration into base class

This CL introduces InterfaceWithClientsBase, which is an abstract class
that implements common client registration logic, which will be reused
for Binder interfaces such as IBluetoothGattClient and
IBluetoothGattServer. This also introduces BluetoothClientInstance, so
that per-application API client instances (and their factories) conform
to a common interface.

Bug: 24245347
Change-Id: Ia4b464fa85f7a33c631bf63342631fce8d155b4a
/system/bt/service/low_energy_client.cpp
12338405e0d8d70573e650560ccc8e1ce7d8e8cd 17-Sep-2015 Arman Uguray <armansito@google.com> service: Add advertising support to LowEnergyClient

This CL adds the StartAdvertising and StopAdvertising APIs to
LowEnergyClient. These internally call into the multi-advertising
APIs in HAL and report success or failure in an async callback.
The sequence of calls to enable advertising and setting advertising
and scan response data are serialized internally.

Bug: 23793954
Change-Id: Id093a98f3baca6328653b986857a064e8a722690
/system/bt/service/low_energy_client.cpp
27650cd8f2473356351f3279177486971a0f9054 20-Sep-2015 Arman Uguray <armansito@google.com> service: Fix build breakage.

Fixed build breakage due to missing changes.

Change-Id: Iac962fef2e9be979a2af90a43a66a5c66bbe4ad4
/system/bt/service/low_energy_client.cpp
c2fc0f287f4dfaf206a51856b8d5dfa923af3c05 04-Sep-2015 Arman Uguray <armansito@google.com> service: Introduce bluetooth::LowEnergyClient

Added the LowEnergyClient class which manages a per-application BLE
API client instance. This currently only supports getting registered
with the stack and obtaining a client_if handle but will expose APIs
in the future for various BLE operations.

Bug: 23793954
Change-Id: I423f6d12321877826525e5e52136682fa9d5a441
/system/bt/service/low_energy_client.cpp