Commit Graph
48 Commits
Author SHA1 Message Date
Francis Tsui a7f6ed3fa7 Remove unused BluetoothClassicMedium::Observer.
PiperOrigin-RevId: 953415728
2026-07-24 09:50:15 -07:00
Francis Tsui d1d15d266d Fix UAF in WinRT event callback.
PiperOrigin-RevId: 949729415
2026-07-17 13:21:00 -07:00
Francis Tsui ac46c3670c Remove obsolete code.
PiperOrigin-RevId: 892563700
2026-03-31 15:16:54 -07:00
Crisrael Lucero dd943af8e9 Change GetAddress() to GetMacAddress() in BluetoothAdapter
PiperOrigin-RevId: 834896610
2025-11-20 13:49:49 -08:00
Francis Tsui 48ddaf0a95 Remove deprecated methods.
PiperOrigin-RevId: 829640164
2025-11-07 17:54:11 -08:00
Francis Tsui 782464c674 Remove deprecated usage of MutexLock.
PiperOrigin-RevId: 829582162
2025-11-07 14:41:27 -08:00
Francis Tsui 000e12da8e Migrate platform to use MacAddress class.
PiperOrigin-RevId: 800631540
2025-08-28 15:14:16 -07:00
Francis Tsui ab94af291f Create compatibility for moving platform API to use MacAddress class.
PiperOrigin-RevId: 800533547
2025-08-28 10:58:22 -07:00
Francis Tsui 3f93c0ee87 Remove more unnecessary INFO logs.
PiperOrigin-RevId: 797859361
2025-08-21 12:04:13 -07:00
Guogang Li 380154d0ba Properly release objects when stopping BTC advertising.
PiperOrigin-RevId: 746593323
2025-04-11 14:35:04 -07:00
Guogang Li 7a6e0b325f Internal bug fix
PiperOrigin-RevId: 706787229
2024-12-16 12:06:14 -08:00
Guogang Li 0d05883b76 Internal refactor
PiperOrigin-RevId: 705210963
2024-12-11 13:08:18 -08:00
Guogang Li 8979083e31 internal bug fix
PiperOrigin-RevId: 704819636
2024-12-10 13:16:13 -08:00
Guogang Li f391af8e47 Enhance on Bluetooth discovery check
PiperOrigin-RevId: 691947459
2024-10-31 15:05:16 -07:00
Guogang Li 1255f6a800 Internal fix
PiperOrigin-RevId: 684640919
2024-10-10 18:04:17 -07:00
Guogang Li 47f2dfec28 Removed platform types dependency from windows platform codes
PiperOrigin-RevId: 676447748
2024-09-19 09:37:29 -07:00
Guogang Li d5b5d92f87 Internal logging update
PiperOrigin-RevId: 669420403
2024-08-30 13:08:35 -07:00
Guogang Li d095f505d3 Send payloads one by one
PiperOrigin-RevId: 568988147
2023-09-27 16:08:37 -07:00
Guogang Li fe9c9f90b6 Refactored Bluetooth classic medium
PiperOrigin-RevId: 564813626
2023-09-12 13:21:47 -07:00
Janusz Sobczak 974d4b357c Skip SDP check for FP rfcomm connection on Windows
The SDP checks fails but rfcomm connection works.
Skipping the SDP check does not seem to have any ill side effects.

PiperOrigin-RevId: 551370531
2023-07-26 18:15:44 -07:00
Aaron Yu 7eca4d74c6 Fix __FrameHandler3::CxxCallCatchBlock crashes at Nearby Connections layer
PiperOrigin-RevId: 542085514
2023-06-20 16:43:14 -07:00
Guogang Li 839dd086fd Fixed crash when initializing Bluetooth watcher
PiperOrigin-RevId: 540650297
2023-06-15 12:02:49 -07:00
Qin Wang ba740c9a5c Implement RetroactivePairingDetector
PiperOrigin-RevId: 538319791
2023-06-06 16:18:38 -07:00
Qin Wang e46bfb52d0 Define BluetoothPairing API for Nearby Platform Library and add implementation on Windows platform
PiperOrigin-RevId: 528510444
2023-05-01 10:36:59 -07:00
Guogang Li 4b27e8c446 Fixed crash during BT connection
PiperOrigin-RevId: 527656444
2023-04-27 12:47:36 -07:00
Guogang Li 3432c829e1 Fixed crash during devices scanning
PiperOrigin-RevId: 522457603
2023-04-06 15:47:45 -07:00
Guogang Li 78145f4433 Fixed crash during devices scanning
PiperOrigin-RevId: 518127975
2023-03-20 18:03:49 -07:00
Guogang Li 12156937ee Check device name before calling update callback
PiperOrigin-RevId: 517851883
2023-03-19 20:26:56 -07:00
Janusz Sobczak f4d85f9b90 Migrate to AnyInvocable in platform code
PiperOrigin-RevId: 504104740
2023-01-23 16:04:21 -08:00
Suet-Fei Li 084f7ebd88 Remove location namespace in third_party/nearby.
PiperOrigin-RevId: 500023196
2023-01-06 02:53:57 -08:00
Guogang Li 0a88efb1de Fixed the logic issue to handle Bluetooth device discovery
PiperOrigin-RevId: 487955459
2022-11-11 17:34:51 -08:00
Guogang Li d55d41e263 Fixed a crash in Bluetooth classic medium
PiperOrigin-RevId: 477027985
2022-09-26 17:12:12 -07:00
Guogang Li 851f5ec0dd Fixed the crash when connecting a remote target from Win to Phone
PiperOrigin-RevId: 472502070
2022-09-06 10:50:21 -07:00
guogang 5df9ef5eca Removed API mutex from platform implementation.
PiperOrigin-RevId: 465635705
2022-08-05 13:31:05 -07:00
jfcarroll 778c77eacd Persist the original radio name, and restore it on app start if the radio name is our radio name.
PiperOrigin-RevId: 464148898
2022-07-29 13:43:35 -07:00
guogang bff4051015 Fixed the deadlock in BluetoothServerSocket
PiperOrigin-RevId: 460724338
2022-07-13 08:41:13 -07:00
guogang 698b04184a Fixed a few issues found during test
PiperOrigin-RevId: 457604581
2022-06-27 17:30:37 -07:00
aaronyujiaze 199bbc9cd1 Add null checkers to Bluetooth Classic medium ConnectToService
PiperOrigin-RevId: 453542256
2022-06-07 15:44:41 -07:00
aaronyujiaze 5566832a00 Enhance stability of bluetooth classic medium
PiperOrigin-RevId: 453239216
2022-06-06 11:09:57 -07:00
aaronyujiaze 45386948be Add dual-mode Bluetooth Classic Device to support RequestConnection over BLE Fast Advertisement
PiperOrigin-RevId: 452782174
2022-06-03 09:33:59 -07:00
jfcarroll 5e2b1e9c4c Fix for expanding the CriticalSection coverage to eliminate out of order callbacks from bluetooth
PiperOrigin-RevId: 452463213
2022-06-01 23:01:19 -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 0521012f83 Remove spurious log entries
PiperOrigin-RevId: 452106082
2022-05-31 12:02:33 -07:00
jfcarroll 10605d5534 Remove spurious log entries
PiperOrigin-RevId: 451426941
2022-05-27 10:37:09 -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
guogang 31b2aae6c5 Fixed crashes during bandwidth upgrade
PiperOrigin-RevId: 435192352
2022-03-16 16:36:09 -07:00
jfcarroll 9abc9a59b9 Combine InputFile and OutputFile into a single class.
PiperOrigin-RevId: 426172033
2022-02-03 09:57:50 -08:00
hais f5fcd35ced nearby sdk refactor
PiperOrigin-RevId: 425434260
2022-02-02 11:56:39 -08:00