Commit Graph
11 Commits
Author SHA1 Message Date
aaronyujiaze 75aa59d57e Fix BluetoothAdapter bug to enable Bluetooth Classic Advertising
PiperOrigin-RevId: 456609115
2022-06-22 14:28:52 -07:00
aaronyujiaze 064a482e7d Add unit tests for BluetoothAdapter
PiperOrigin-RevId: 455673471
2022-06-17 12:36:02 -07:00
aaronyujiaze 6bd1a78eeb Add size limit check for Bluetooth Classic SetName
PiperOrigin-RevId: 455442872
2022-06-16 12:34:35 -07:00
aaronyujiaze bc6c726970 Fix bugs in Windows' BluetoothAdapter
PiperOrigin-RevId: 452808916
2022-06-03 11:38:33 -07:00
aaronyujiaze 4045af569f Add Extended Advertising support for BlePeripheral discovery
PiperOrigin-RevId: 452801874
2022-06-03 11:06:43 -07:00
jfcarroll 6d8d04a9f7 Fix for memory leaks, buffer overruns etc on the bluetooth adapter.
PiperOrigin-RevId: 452464213
2022-06-01 23:09:25 -07:00
jfcarroll b5a1359d1f Automated g4 rollback of changelist 451248048.
*** Reason for rollback ***

Although this fixes Bluetooth Classic, it appears to break Ble, will resubmit once Ble is fixed.

*** Original change description ***

BEGIN_PUBLIC
Bug fixes for 233012255 and 232995024
Refactor bluetooth_adapter setname and getname to remove logic errors, array overruns, and leaking memory.
Refactor bluetooth discovery callbacks to prevent getting updates before we have cached the device found.
Refactor the dart code interfaces to more closely align between the dll and the dart UI, and move from using the device name (which can be easily duplicated) as the primary key to using endpoint_id as the primary key for all calls into...

***

PiperOrigin-RevId: 452177878
2022-05-31 17:31:03 -07:00
jfcarroll 8765e5bc83 Bug fixes for 233012255 and 232995024
Refactor bluetooth_adapter setname and getname to remove logic errors, array overruns, and leaking memory.
Refactor bluetooth discovery callbacks to prevent getting updates before we have cached the device found.
Refactor the dart code interfaces to more closely align between the dll and the dart UI, and move from using the device name (which can be easily duplicated) as the primary key to using endpoint_id as the primary key for all calls into the dll.

PiperOrigin-RevId: 451248048
2022-05-26 14:46:08 -07:00
aaronyujiaze 8f1623d293 Fix minor bluetooth adapter crash bug
If bluetooth adapter is not present on the Windows device, Nearby Connection will crash. This change resolves the issue by adding null checkers.

PiperOrigin-RevId: 449578225
2022-05-18 14:32:47 -07:00
jfcarroll 2dca231337 This fixes the memory issues in bluetooth_adapter.cc
PiperOrigin-RevId: 441012332
2022-04-11 15:30:06 -07:00
hais f5fcd35ced nearby sdk refactor
PiperOrigin-RevId: 425434260
2022-02-02 11:56:39 -08:00