• Home
  • History
  • Annotate
  • only in /system/bt/service/client/
History log of /system/bt/service/client/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c7087d2466a291185853a6b2a16f789233e3420f 18-Mar-2016 Ajay Panicker <apanicke@google.com> Add guest mode functionality (2/5)

Add a flag to enable() to start Bluetooth in restricted
mode. In restricted mode, all devices that are paired during
restricted mode are deleted upon leaving restricted mode.
Right now restricted mode is only entered while a guest
user is active.

Bug: 27410683
Change-Id: I8f23d28ef0aa3a8df13d469c73005c8e1b894d19
ain.cpp
20af7c3cc040e82124184ad869d840ad6fa1eacf 28-Mar-2016 Ajay Panicker <apanicke@google.com> Revert "Add guest mode functionality (2/5)"

This reverts commit 45ee419b233480060548f19b09de6726d28a06ea.

Change-Id: I7d24acbe09305611c4e0bbfe7d40348d0fd1c365
ain.cpp
45ee419b233480060548f19b09de6726d28a06ea 18-Mar-2016 Ajay Panicker <apanicke@google.com> Add guest mode functionality (2/5)

Add a flag to enable() to start Bluetooth in restricted
mode. In restricted mode, all devices that are paired during
restricted mode are deleted upon leaving restricted mode.
Right now restricted mode is only entered while a guest
user is active.

Bug: 27410683
Change-Id: I19ff91d1d7fb8c60230fee7a05d32574b5b2aeda
ain.cpp
2292fb228f35722802bb04658836786c210ab344 22-Jan-2016 Marie Janssen <jamuraa@google.com> bluetooth-cli: add support for --exec

Adds the --exec and -e arguments, which execute commands when the
cli starts.

This also adds support for chaining commands at the command line by
separating them with ';' characters.

Change-Id: Ic2bf8a908fbb7fb4cf775810754571fa96d75e87
ain.cpp
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
ain.cpp
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
ain.cpp
64401bf539bdef652ddcfc25138ad5e353aea1c3 29-Jan-2016 Jakub Pawlowski <jpawlowski@google.com> service/client: command line made nicer

Currently we print many unnecessary newlines and redisplay prompt too
often. This patch makes the bluetooth-cli output look much nicer.

Change-Id: I5b9d4844488d188e086f12d94e11c4b3e8bf1ddb
ain.cpp
756cc4bdedca24e4ba157902a3d0b411cfa109be 26-Jan-2016 Jakub Pawlowski <jpawlowski@google.com> service/client: add command to change MTU

Change-Id: I096760759991b855efd897adbd6c5aa4e18b26bb
ain.cpp
a6551079fe71b1c76505ada0e4f758f6faf651e0 26-Jan-2016 Jakub Pawlowski <jpawlowski@google.com> service: add SetMtu and OnMtuChanged

Change-Id: I7a6c6cb46f4710b5d2c57b9d0e9cfac166d7cd62
ain.cpp
608762d5769b948387c8d76e7f1d5a60db1850ae 20-Jan-2016 Jakub Pawlowski <jpawlowski@google.com> service/client: implement connect and disconnect methods

Change-Id: I141e8a1a917adfe7a2eb1c8adaf5e09fad9df5ac
ain.cpp
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
ain.cpp
455dc8f535a719af6a65a7512d90f9db878f5a58 20-Jan-2016 Jakub Pawlowski <jpawlowski@google.com> service: Expose Connect and Disconnect through IBluetothLowEnergy

Change-Id: Idcfd3fac263e61bc1bb2be97017554d552511765
ain.cpp
ba197a21d810b0ef814ed9c23dd3b290613751c7 13-Jan-2016 Jakub Pawlowski <jpawlowski@google.com> service: add scan support to bluetooth-cli

Adde the start-le-scan and stop-le-scan commands to
bluetooth-cli for testing.

Bug: 25744656
Change-Id: I02d42fcca071eebefd82f027cd9b89af27116a00
ain.cpp
4fbbf6047f182b9dfbf11d5d8da7281845fce99e 11-Nov-2015 Arman Uguray <armansito@google.com> service/client: Add register|unregister-gatt

Added the register-gatt and unregister-gatt commands to bluetooth-cli.

Bug: 25128256
Change-Id: Ic2521a6297d277de6feb4cb22dbc8bb60794da5f
ain.cpp
87222e0e826216c69f6a9a5bfe77689561067474 09-Oct-2015 Arman Uguray <armansito@google.com> service/client: Add start-adv -u flag

Added the -u flag that allows passing a UUID in string representation
(16-bit, 32-bit, and 128-bit) to be advertised as long as all fields
fit inside the data.

Bug: 24247700

Change-Id: I3e572db31b84f1e010ba19ab5a51d00c563bb3b7
ain.cpp
91c59c9febbf4a49664b8a06620d4a4882605131 13-Oct-2015 Arman Uguray <armansito@google.com> service/client: Handle EOF

Added handling for EOF to the REPL so we gracefully exit if
Ctrl+D is pressed.

Change-Id: I706f3f46a7092a30b1e9d83c32805dbefc5180c9
ain.cpp
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
ain.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
ain.cpp
d19bc0457a9b6519acd6a79c3ac7de653894f5ec 17-Sep-2015 Arman Uguray <armansito@google.com> service/client: Add start-adv and stop-adv

Added the start-adv and stop-adv commands to FCLI for testing
the IBluetoothLowEnergy advertising APIs.

Bug: 23793954
Change-Id: I023441e4db4a50608b4f9a90bf3365c1dab8d0d1
ain.cpp
52bfc6060cec652a67c8989e0548225af0008be1 10-Sep-2015 Arman Uguray <armansito@google.com> service: Add binder stubs for advertising API

Added native binder proxy stubs for IBluetoothLowEnergy interface
startMultiAdvertising and stopMultiAdvertising methods and
IBluetoothLowEnergyCallback.onMultiAdvertiseCallback.

Bug: 23793954
Change-Id: I0577619502042f612bf17f2a0affb2a9a1eaed38
ain.cpp
2e4341488064be7e8f4d575c8de0a1670ddc81a0 04-Sep-2015 Arman Uguray <armansito@google.com> service/client: Add first BLE interface commands

Added the register-ble, unregister-ble, and unregister-all-ble
commands to FCLI. Also added a DeathListener for the IBluetooth
interface to handle the case when bluetoothtbd dies.

Bug: 23793954
Change-Id: I3c549ea59665cf174fb47114b879f679c0aafcb4
ain.cpp
10b54c4b7f1a863a27eca4158f256062ec9c3770 21-Aug-2015 Arman Uguray <armansito@google.com> service: Implement IBluetooth.isMultiAdvertisementSupported()

Added the Binder bindings, bluetoothtbd implementation, and new
bluetooth-cli command for testing it.

Bug: 23227962
Change-Id: I2de62e49e5d8b0bcc118ccb654d72fdd9f11f748
ain.cpp
39a66bed960d96eca900e7e002e0d7bef0e0e151 20-Aug-2015 Arman Uguray <armansito@google.com> service/client: Register IBluetoothCallback

bluetooth-cli now registers an IBluetoothCallback to receive adapter
state updates, which gets automatically unregistered when bluetooth-cli
exits.

Bug: 23328384
Change-Id: I4f190e91ecd8401b9f5eb1cffdfb26cd9d5cecb0
ain.cpp
5192309af14408c3f170f15c1282ae5c1eb5abff 18-Aug-2015 Arman Uguray <armansito@google.com> service/client: Add support for the latest methods

Added support for calling the IBluetooth getAddress, setName,
and getName methods.

Bug: 23227962
Change-Id: Ib8c3f609b02e953a2989c18d614b5f52a56421c2
ain.cpp
2117e520c9f5b105ade7e92c4ab4928ea905f176 15-Aug-2015 Arman Uguray <armansito@google.com> service: Implement IBluetooth::GetState

This CL implements the GetState method of the IBluetooth interface:

1. A new file, adapter_state.h has been added, which defines the
STATE_* values from BluetoothAdapter.java in the framework layer.
This is done this way so that a client library can be built with
minimal dependency on core service code (e.g. Adapter).

2. Implemented the GetState method.

3. Refactored the fake BluetoothInterface such that multiple unit
test modules can make use of it by centralizing fake behavior
to hal/.

4. Added new commands to client/.

Bug: 23227962
Change-Id: Id403094f6fe34cd5cef0577f319309169f74ddf3
ain.cpp
fcf2e0391950a8b140082fbe78688fa89471fbed 14-Aug-2015 Arman Uguray <armansito@google.com> service: Implement IBluetooth IsEnabled, Enable, and Disable

Implemented the IsEnabled, Enable, and Disable methods of the IBluetooth
interface. Added a simple REPL logic to client/main.cpp so that these commands
can be tested real-time via command-line.

Bug: 23169366
Change-Id: Id27a82e5cdadc5ea0b6f88d3ab3a6b7882f6212a
ain.cpp
f52095257e36b887d7ddfd1f00871b9311dbfa1b 06-Aug-2015 Arman Uguray <armansito@google.com> service: Introduce a command-line client

This CL introduces a CLI for the Bluetooth daemon. The code currently
doesn't do much, other than demonstrate how a native Binder client code
can be placed to the Bluetooth daemon. This objective here is to
extend this with a REPL and send commands to the daemon based on user
input.

Bug: 22743129
Change-Id: I41015e4b639e7099dd9f7086dbe86b01f3a61786
ain.cpp