Commit Graph
37 Commits
Author SHA1 Message Date
Francis Tsui c2c54a3ca0 Remove deprecated OutputStream::Write method.
PiperOrigin-RevId: 854235255
2026-01-09 10:04:02 -08:00
Francis Tsui a590b2a3e2 Update platform to remove file size from CreateInputFile API.
PiperOrigin-RevId: 846311268
2025-12-18 09:52:50 -08: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 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
Francis Tsui 541bffc858 Cleanup BLEv2Medium
PiperOrigin-RevId: 753288576
2025-04-30 13:24:55 -07:00
Guogang Li 47f2dfec28 Removed platform types dependency from windows platform codes
PiperOrigin-RevId: 676447748
2024-09-19 09:37:29 -07:00
Martin Brænne 013213b4bd Automated Code Change
PiperOrigin-RevId: 672557543
2024-09-09 08:43:56 -07:00
Guogang Li d5b5d92f87 Internal logging update
PiperOrigin-RevId: 669420403
2024-08-30 13:08:35 -07:00
Aaron Yu 7bde3abf8b Harden ble v2 gatt server
PiperOrigin-RevId: 567069079
2023-09-20 13:48:56 -07:00
Guogang Li 9774b5f53c Fixed crash in Bluetooth Adapter
PiperOrigin-RevId: 566452194
2023-09-18 16:57:16 -07:00
Guogang Li d4169d0c94 Fixed an crash in Bluetooth adapter
PiperOrigin-RevId: 521164224
2023-04-01 11:32:39 -07:00
Aaron Yu e232149008 Add catch(...) exceptions to catch unknown exceptions in NC bluetooth adapter
PiperOrigin-RevId: 518902703
2023-03-23 10:43:07 -07:00
Aaron Yu 59fc030843 Harden NC bluetooth adapter with try catch exceptions
PiperOrigin-RevId: 518664644
2023-03-22 13:55:27 -07:00
Guogang Li 700d5c9dcc Fixed crash bug in BluetoothAdapter
PiperOrigin-RevId: 517556635
2023-03-17 18:44:51 -07:00
John Carroll 999a5e4681 Drop windows/json and use google3/third_party/json instead. Update the LICENSE file.
PiperOrigin-RevId: 516383763
2023-03-13 18:44:42 -07:00
John Carroll 3be5844fc3 Fixed the order of #include's fixes, a subtle but present bug.
PiperOrigin-RevId: 501360403
2023-01-11 13:16:19 -08:00
Suet-Fei Li 084f7ebd88 Remove location namespace in third_party/nearby.
PiperOrigin-RevId: 500023196
2023-01-06 02:53:57 -08:00
John Carroll a3f5d108f5 Added a feature flag to control whether we are allowed to set the bluetooth adapter state or not on windows.
PiperOrigin-RevId: 479589889
2022-10-07 08:49:24 -07:00
John Carroll fa062b70c9 The order of includes was messed up in bluetooth_adapter.cc
PiperOrigin-RevId: 473854940
2022-09-12 15:07:54 -07:00
hai007 a7c967a034 Add null check before passing a char* to std::string::string()
PiperOrigin-RevId: 470812873
2022-08-29 14:19:12 -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 dcbcbb53cc Avoided to set Bluetooth radio status when new state is same as old
PiperOrigin-RevId: 458545342
2022-07-01 14:37:27 -07:00
aaronyujiaze ff9a986595 Reduce the frequency of redundant Bluetooth Classic operations
PiperOrigin-RevId: 458057650
2022-06-29 14:05:41 -07:00
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