summaryrefslogtreecommitdiff
path: root/android/bluetooth.h
Commit message (Collapse)AuthorAgeFilesLines
* android: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-211-14/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds SPDX License Identifier and removes the license text. ------------------------------------- License COUNT ------------------------------------- Apache-2.0 : 80 LGPL-2.1-or-later : 42 GPL-2.0-or-later : 9 License: Apache-2.0 android/bluetoothd-wrapper.c android/tester-hidhost.c android/tester-map-client.c android/hal-audio-aptx.c android/hal-audio.c android/hal-handsfree-client.c android/tester-gatt.c android/hal-pan.c android/hal-socket.c android/tester-hdp.c android/tester-pan.c android/tester-avrcp.c android/hal-a2dp-sink.c android/hal-gatt.c android/hal-avrcp.c android/tester-a2dp.c android/hal-audio.h android/hal-bluetooth.c android/tester-socket.c android/hal-health.c android/hal-a2dp.c android/hal-ipc.c android/hal-avrcp-ctrl.c android/hal-sco.c android/hal-ipc.h android/tester-main.c android/hal-audio-sbc.c android/hal-utils.c android/hal-map-client.c android/hal-handsfree.c android/hal-log.h android/hal.h android/hal-utils.h android/tester-bluetooth.c android/hal-hidhost.c android/audio_utils/resampler.h android/audio_utils/resampler.c android/system/audio.h android/hardware/bt_sock.h android/hardware/bt_gatt_client.h android/hardware/bt_hh.h android/hardware/bluetooth.h android/hardware/hardware.h android/hardware/bt_hf_client.h android/hardware/bt_rc.h android/hardware/bt_hf.h android/hardware/bt_pan.h android/hardware/bt_gatt_types.h android/hardware/hardware.c android/hardware/audio_effect.h android/hardware/audio.h android/hardware/bt_gatt_server.h android/hardware/bt_gatt.h android/hardware/bt_hl.h android/hardware/bt_mce.h android/hardware/bt_av.h android/client/if-hh.c android/client/if-sco.c android/client/pollhandler.h android/client/haltest.c android/client/tabcompletion.c android/client/if-hf-client.c android/client/history.h android/client/if-audio.c android/client/terminal.h android/client/if-av.c android/client/if-main.h android/client/if-av-sink.c android/client/terminal.c android/client/if-mce.c android/client/if-hf.c android/client/pollhandler.c android/client/if-sock.c android/client/if-rc-ctrl.c android/client/if-rc.c android/client/history.c android/client/if-pan.c android/client/if-gatt.c android/client/if-bt.c android/client/if-hl.c License: LGPL-2.1-or-later android/sco.h android/socket.c android/tester-main.h android/hidhost.h android/map-client.h android/utils.h android/hal-msg.h android/health.h android/avrcp-lib.c android/bluetoothd-snoop.c android/a2dp.c android/bluetooth.h android/a2dp-sink.c android/handsfree-client.c android/audio-msg.h android/main.c android/pan.c android/ipc-tester.c android/health.c android/socket.h android/handsfree.h android/avrcp-lib.h android/a2dp-sink.h android/system-emulator.c android/gatt.c android/avrcp.h android/pan.h android/test-ipc.c android/hidhost.c android/a2dp.h android/avrcp.c android/sco-msg.h android/bluetooth.c android/map-client.c android/handsfree-client.h android/ipc.c android/handsfree.c android/gatt.h android/ipc.h android/ipc-common.h android/compat/wordexp.h android/cutils/properties.h License: GPL-2.0-or-later android/avdtp.h android/avctp.c android/avdtptest.c android/sco.c android/log.c android/avdtp.c android/avctp.h android/compat/readline/history.h android/compat/readline/readline.h
* android: Enable multiadvertisingMartin Fuzzey2017-11-061-0/+25
| | | | | | | This is required for custom advertising data. The HAL entry points related to multiadvertising are now implemented and map to the mgmnt "add advertising" operation.
* android/bluetooth: Remove address type from BT callbacksSzymon Janc2015-03-051-6/+5
| | | | | | GATT code should always use bt_get_id_addr() when directly dealing with remote address. This is to make sure that proper address and type is used.
* android/bluetooth: Add support for CSRK authetication levelSzymon Janc2015-02-271-9/+3
| | | | | This allows to get information if CSRK is authenticated or not. For client it is don't care if CSRK is authenticated or not.
* android/bluetooth: Add API to check if device is bondingLukasz Rymanowski2014-12-191-0/+1
| | | | | | Some modules like GATT might be interested in information about ongoing bonding on device. It can be useful e.g. to take decision if GATT can do service search or should wait until bonding is done.
* android/bluetooth: Add possibility to register for bonded eventLukasz Rymanowski2014-12-191-0/+4
| | | | | | | Some modules might be interested in fact that device has been bonded. This patch allows to register for that event Note that callback is called only on success bonding.
* android/gatt: Add connectable flag to device found callbackLukasz Rymanowski2014-12-181-1/+2
| | | | | | GATT is interested in advertising event type i.e if it is connectable or not. It is because GATT does not want to trigger connection to devices doing non-connectable advertising. This patch add such support.
* android/gatt: Remove discoverable flag from device found callbackLukasz Rymanowski2014-12-181-2/+1
| | | | | | | Android is interested in all of the Scan Responses. Also the ones which are set as non discoverable. It is in order to support Observer\Broadcaster mode. Therefore discoverable flag can be removed from the device found callback. This patch does it.
* android/bluetooth: Extend bt_update_sign_counter function with valueLukasz Rymanowski2014-10-031-1/+2
| | | | | With this patch, gatt can set any value to each local/remote signed counter. It is need by next patch.
* android/bluetooth: Add unpaired device callbackLukasz Rymanowski2014-08-291-0/+4
| | | | | | GATT, HID, HOG, might be interested in the fact that some device has been unpaired in order to clear cache or similar. This patch adds means to register and unregister callback for unpaired event.
* android/bluetooth: Add API to remove device from auto connect listLukasz Rymanowski2014-08-041-0/+2
|
* android/bluetooth: Add API to add device to auto connect listLukasz Rymanowski2014-08-041-0/+2
|
* android/bluetooth: Add flag for kernel connection controlLukasz Rymanowski2014-08-041-0/+2
| | | | | | | This patch set option kernel connection control to TRUE if mgmt interface is 1.7 or higier. Kernel connect control means that things like background scan, auto connect or white list are supported by kernel and can be used by daemon.
* android/bluetooth: Add function for checking last seen bearerSzymon Janc2014-07-111-0/+1
|
* android/gatt: Use proper address when connectingSzymon Janc2014-06-241-0/+2
| | | | If device was using RPA but address was resolved IDA must be used.
* android/bluetooth: Add bt_device_set_uuidsLuiz Augusto von Dentz2014-06-131-0/+1
|
* android/gatt: Fix not detecting device found by Bluetooth HALLuiz Augusto von Dentz2014-06-131-1/+4
| | | | | This is necessary so that devices found during regular discovery can be handled by gatt HAL.
* android/bluetooth: Add bt_is_device_le functionLuiz Augusto von Dentz2014-06-131-0/+2
|
* android: Add gatt CCC value storageJakub Tyszkowski2014-06-061-0/+4
| | | | | | Client Characteristic Configuration for Service Changed Characteristic should be stored for every bonded device, so we know if we should be sending value (range affected by changes) indication.
* android/bluetooth: Expose API to update sign counterLukasz Rymanowski2014-05-261-0/+2
| | | | | This is needed so GATT can notify GAP that write sign has been done and sign counter shall be increased as per spec.
* android/bluetooth: Expose API to get CSRK for deviceLukasz Rymanowski2014-05-261-0/+8
| | | | | GATT will take CSRK key and sign counter each time it needs it to sign att package or to verify att package
* android/bluetooth: Add bonded information to found device callbackLukasz Rymanowski2014-05-221-1/+2
| | | | | | If device is bonded then discoverable flag is not set. This cause that gatt application will not get scan callback with advertising bonded device.
* android/bluetooth: Add support to read connection RSSIAndrzej Kaczmarek2014-05-191-0/+5
|
* android/bluetooth: Add function for checking device bond stateGrzegorz Kolodziejczyk2014-05-141-0/+1
| | | | This will be used by GATT HAL.
* android/bluetooth: Add function for getting device Android nameLukasz Rymanowski2014-04-301-0/+1
| | | | This will be used by GATT HAL
* android/bluetooth: Add function for getting device Android typeSzymon Janc2014-04-281-0/+2
| | | | This will be used by GATT HAL.
* android/bluetooth: Make possible to start BlueZ in a single modeLukasz Rymanowski2014-04-241-1/+1
| | | | | This patch adds possibility to start BlueZ in LE or BR/EDR mode when having dual mode chip below.
* android/bluetooth: Expose API to set advertisingLukasz Rymanowski2014-04-161-0/+4
| | | | With this patch android GAP expose start/stop advertising API
* android/gatt: Fix for scan non discoverable devicesLukasz Rymanowski2014-04-111-1/+1
| | | | | With this patch Android framework will not be notified with non-discoverable LE devices.
* android/bluetooth: Constify bdaddr parameter in bt_le_device_foundSzymon Janc2014-03-221-2/+3
|
* android/bluetooth: Add GATT notifications on LE discoveryJakub Tyszkowski2014-03-171-0/+7
| | | | | | | | | | | | | | | | | | | This patch introduce API which GATT can use to start/stop discovery and register for required events. This is because GATT needs to get from GAP notifications about founded devices and also notification when discovery has been stopped. GATT will need it explicity when GATT client calls scan, and also in case of connect device, as before le connect is sent we do scan first to make sure that device is available. For now on adapter have two variables tracing discovery. 1. cur_discovery_type which show type of ongoing discovery type. 2. exp_discovery_type which shows type of next discovery session. We need this because of scenarion when GATT is interesting in scan and in the same time HAL wants to do scanning.
* android: Enable mgmt debug logsLukasz Rymanowski2014-03-101-1/+1
| | | | | | | This patch introduce possibility to enable mgmt interface logs. In order to enable it is required to set property: persist.sys.bluetooth.mgmtdbg to 1 or literaly "true". More info in README
* android: Pass mode parameter to registered servicesSzymon Janc2014-03-041-1/+1
|
* android/bluetooth: Remove leftover function declarationSzymon Janc2014-03-031-2/+0
|
* android: Refactor IPC initSzymon Janc2014-02-281-1/+1
| | | | | This allows to pass socket path and max service ID while initializaing IPC. This is first step to allow use it both for BT and Audio HALs.
* android: Update copyright and license detailsMarcel Holtmann2014-02-111-10/+10
|
* android: Don't pass notification socket on services registerSzymon Janc2013-11-281-1/+1
| | | | It is no longer needed as proper socket is use by IPC helpers.
* android: Rename bluetooth service functions to match service nameSzymon Janc2013-11-141-8/+8
| | | | Make public functions match service name.
* android: Rename adapter.c to bluetooth.cSzymon Janc2013-11-141-0/+38
Match service name that is implemened in that file. This will also keep convention of foo.c and hal-foo.c implementing remote parts of same service.