Chrome Release Bot (LUCI) 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
..
android 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_strings_grd 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluez 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
cast 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
chromeos 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
dbus 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
floss 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
public 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
strings 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
test 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
BUILD.gn 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
DEPS 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
DIR_METADATA 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
OWNERS 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
README.md 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
adapter.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
adapter.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
adapter_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
advertisement.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
advertisement.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
advertisement_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_adapter.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_adapter.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_adapter_android.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_adapter_android.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_adapter_android_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_adapter_chromeos.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_adapter_factory.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_adapter_factory.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_adapter_mac.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_adapter_mac.mm 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_adapter_mac_metrics.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_adapter_mac_metrics.mm 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_adapter_mac_metrics_unittest.mm 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_adapter_mac_unittest.mm 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_adapter_stub.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_adapter_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_adapter_win.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_adapter_win.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_adapter_win_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_adapter_winrt.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_adapter_winrt.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_advertisement.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_advertisement.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_advertisement_mac.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_advertisement_mac.mm 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_advertisement_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_advertisement_winrt.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_advertisement_winrt.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_channel_mac.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_channel_mac.mm 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_classic_device_mac.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_classic_device_mac.mm 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_classic_win.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_classic_win.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_classic_win_fake.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_classic_win_fake.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_common.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_device.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_device.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_device_android.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_device_android.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_device_mac.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_device_mac.mm 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_device_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_device_win.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_device_win.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_device_win_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_device_winrt.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_device_winrt.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_discovery_filter.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_discovery_filter.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_discovery_filter_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_discovery_manager_mac.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_discovery_manager_mac.mm 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_discovery_session.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_discovery_session.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_discovery_session_outcome.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_export.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_gatt_characteristic.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_gatt_characteristic.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_gatt_connection.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_gatt_connection.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_gatt_descriptor.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_gatt_descriptor.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_gatt_discoverer_winrt.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_gatt_discoverer_winrt.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_gatt_notify_session.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_gatt_notify_session.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_gatt_service.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_gatt_service.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_init_win.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_init_win.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_l2cap_channel_mac.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_l2cap_channel_mac.mm 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_local_gatt_characteristic.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_local_gatt_characteristic.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_local_gatt_characteristic_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_local_gatt_descriptor.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_local_gatt_descriptor.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_local_gatt_descriptor_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_local_gatt_service.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_local_gatt_service.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_local_gatt_service_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_advertisement_manager_mac.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_advertisement_manager_mac.mm 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_advertisement_manager_mac_unittest.mm 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_central_manager_delegate.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_central_manager_delegate.mm 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_defs_win.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_defs_win.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_device_mac.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_device_mac.mm 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_device_watcher_mac.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_device_watcher_mac.mm 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_discovery_manager_mac.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_discovery_manager_mac.mm 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_peripheral_delegate.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_peripheral_delegate.mm 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_peripheral_manager_delegate.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_peripheral_manager_delegate.mm 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_scan_filter.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_scan_filter.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_scan_filter_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_scan_session.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_scan_session.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_win.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_win.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_win_fake.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_win_fake.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_low_energy_win_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_pairing_winrt.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_pairing_winrt.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_characteristic.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_characteristic.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_characteristic_android.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_characteristic_android.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_characteristic_mac.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_characteristic_mac.mm 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_characteristic_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_characteristic_win.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_characteristic_win.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_characteristic_winrt.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_characteristic_winrt.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_descriptor.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_descriptor.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_descriptor_android.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_descriptor_android.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_descriptor_mac.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_descriptor_mac.mm 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_descriptor_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_descriptor_win.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_descriptor_win.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_descriptor_winrt.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_descriptor_winrt.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_service.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_service.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_service_android.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_service_android.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_service_mac.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_service_mac.mm 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_service_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_service_win.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_service_win.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_service_winrt.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_remote_gatt_service_winrt.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_rfcomm_channel_mac.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_rfcomm_channel_mac.mm 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_service_record_win.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_service_record_win.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_service_record_win_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_socket.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_socket.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_socket_mac.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_socket_mac.mm 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_socket_net.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_socket_net.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_socket_thread.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_socket_thread.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_socket_win.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_socket_win.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_strings.grd 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_task_manager_win.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_task_manager_win.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
bluetooth_task_manager_win_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
cast_bluetooth.gni 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
chromeos_platform_features.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
chromeos_platform_features.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
device.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
device.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
device_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
discovery_session.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
discovery_session.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
event_utils_winrt.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
server_socket.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
server_socket.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
server_socket_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
socket.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
socket.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
socket_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
string_util_icu.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
string_util_icu.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
string_util_icu_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago

README.md

Bluetooth

device/bluetooth abstracts Bluetooth Classic and Low Energy features across multiple platforms.

Classic and Low Energy based profiles differ substantially. Platform implementations may support only one or the other, even though several classes have interfaces for both, e.g. BluetoothAdapter & BluetoothDevice.

Classic Low Energy
Android no yes
Chrome OS yes yes
Linux yes yes
Mac yes yes
Windows some nearly

Chrome OS and Linux are supported via BlueZ, see *_bluez files.

Mojo interfaces in public/mojom have been started but are not ready for production use.

Maintainer History

Initial implementation OWNERS were youngki@chromium.org, keybuk@chromium.org, armansito@chromium.org, and rpaquay@chromium.org. They no longer contribute to chromium fulltime. They were responsible for support for Chrome OS Bluetooth features and the Chrome Apps APIs:

Active development in 2015 & 2016 focused on enabling GATT features for:

Future Work

The API and implementation have many known issues.

The initial API was heavily influenced by BlueZ. Low Energy GATT APIs are not consistent across platforms. Some of the high level abstractions built into device/bluetooth are difficult for clients. Several TODOs exist in the C++ header files, e.g. BluetoothAdapter::Observer.

Primarily, the API should be split into fundamental Bluetooth concepts and seperate, optional, high level utility classes.

E.g. receiving advertising packets should be routed directly to clients allowing contents of the individual packet to be inspected. Caching of known devices should not exist in the fundamental API, but be offered as utility classes.

See also the Refactoring meta issue.

Android

The android implementation requires crossing from C++ to Java using JNI.

Object ownership is rooted in the C++ classes, starting with the Adapter, which owns Devices, Services, etc. Java counter parts interface with the Android Bluetooth objects. E.g.

For testing, the Android objects are wrapped in: android/java/src/org/chromium/device/bluetooth/Wrappers.java.
and fakes implemented in: test/android/java/src/org/chromium/device/bluetooth/Fakes.java.

Thus:

  • bluetooth_adapter_android.h owns:
    • android/.../ChromeBluetoothAdapter.java uses:
      • android/.../Wrappers.java: BluetoothAdapterWrapper
        • Which under test is a FakeBluetoothAdapter
    • bluetooth_device_android.h owns:
      • android/.../ChromeBluetoothDevice.java uses:
        • android/.../Wrappers.java: BluetoothDeviceWrapper
          • Which under test is a FakeBluetoothDevice
      • bluetooth_gatt_service_android.h owns:
        • android/.../ChromeBluetoothService.java uses:
          • android/.../Wrappers.java: BluetoothServiceWrapper
            • Which under test is a FakeBluetoothService
        • … and so on for characteristics and descriptors.

Fake objects are controlled by bluetooth_test_android.cc.

See also: Class Diagram of Web Bluetooth through Bluetooth Android

Testing

See test/README.md

Design Documents

  • Bluetooth Notifications 2016-08-26
    • Web Bluetooth through Android implementation details, class diagram and call flow.