37 Commits
Author SHA1 Message Date
Lasan Mahaliyana 37e916ecbd Merge remote-tracking branch 'nearby/main'
# Conflicts:
#	connections/implementation/bwu_manager_test.cc
#	sharing/BUILD
#	sharing/certificates/fake_nearby_share_certificate_manager.cc
#	sharing/certificates/fake_nearby_share_certificate_manager.h
#	sharing/internal/base/utf_string_conversions.h
2026-07-26 22:46:37 +05:30
Edwin Wu 6e092fdd53 Move BLE service manager cleanup to server socket close.
PiperOrigin-RevId: 951278945
2026-07-20 23:39:55 -07:00
Edwin Wu 73323692b9 Fix potential crash in BLE connection when receiving short data packets.
PiperOrigin-RevId: 946827334
2026-07-13 00:01:51 -07:00
Edwin Wu 2f3e7beb78 Limit maximum L2CAP frame size and move read buffer to instance variable.
PiperOrigin-RevId: 946782423
2026-07-12 21:46:20 -07:00
Edwin Wu 8eedf05f2c Fix NSRangeException crash in GNCBLEGATTServer
PiperOrigin-RevId: 943785961
2026-07-07 03:21:54 -07:00
Lasan Mahaliyana c34efc75f8 Merge remote-tracking branch 'nearby/main' into sync-upstream 2026-06-13 21:02:50 +05:30
Edwin Wu 2f6cff0f08 Refactor GATT/L2CAP servers to support shared peripheral manager
PiperOrigin-RevId: 882024313
2026-06-13 16:52:26 +05:30
Edwin Wu e234002750 Fixed a go/mobile_tsan error (data_race) found while running //third_party/nearby/internal/platform/implementation/apple/Tests:PlatformTest
PiperOrigin-RevId: 915715369
2026-05-14 18:17:28 -07:00
hai007 db72ebcaa4 Automated Code Change
PiperOrigin-RevId: 896829185
2026-04-08 19:52:40 -07:00
Edwin Wu cae29fe15a The GNCMWaitForConnection utility is updated to allow specifying a target dispatch queue.
PiperOrigin-RevId: 895632592
2026-04-06 20:34:41 -07:00
Edwin Wu c7a8361639 Continue scanning even when peripherals are connected.
PiperOrigin-RevId: 892142072
2026-03-31 00:00:59 -07:00
Edwin Wu 54ef43eb83 Refactor GNCBLEMedium to support shared PeripheralManager injection.
PiperOrigin-RevId: 882032712
2026-03-11 08:43:30 -07:00
Edwin Wu dcb6918889 Refactor GATT/L2CAP servers to support shared peripheral manager
PiperOrigin-RevId: 882024313
2026-03-11 08:23:16 -07:00
Edwin Wu c00d7ae485 Implement GNCPeripheralManagerMultiplexer.
PiperOrigin-RevId: 881707256
2026-03-10 18:01:39 -07:00
Edwin Wu a2249dc07a Unpublish existing L2CAP channel before starting a new server.
PiperOrigin-RevId: 881707142
2026-03-10 17:56:44 -07:00
Guogang Li 919d279695 Update the logic to retrieve BLE peripheral.
PiperOrigin-RevId: 834816089
2025-11-20 10:27:57 -08:00
Edwin Wu 8375b82a86 Make delegateDelay property atomic and access it via self.
PiperOrigin-RevId: 832080864
2025-11-13 18:00:52 -08:00
Edwin Wu f214179935 [NC Apple coverage] Refactor GNSCentralPeerManagerTest to use custom fakes and add more test cases.
PiperOrigin-RevId: 831283848
2025-11-12 01:59:05 -08:00
Edwin Wu 3b8ba4a452 [NC Apple coverage] Refactor GNSPeripheralServiceManager tests and improve peripheral socket handling.
PiperOrigin-RevId: 831267194
2025-11-12 01:09:14 -08:00
Edwin Wu d92eae1535 [NC Apple coverage] Refactor GNSPeripheralManager tests to use fake objects. III
PiperOrigin-RevId: 831259501
2025-11-12 00:45:50 -08:00
Edwin Wu 935096779d [NC Apple coverage] Refactor GNSPeripheralManager tests to use fake objects. II
PiperOrigin-RevId: 831246580
2025-11-12 00:04:37 -08:00
Edwin Wu d59408553d [NC Apple coverage] Refactor GNSPeripheralManager tests to use fake objects. I
PiperOrigin-RevId: 829457380
2025-11-07 08:55:55 -08:00
Edwin Wu d7a3d13fe2 [BLEREFACTOR]: Add refactor flow for Ble/L2CAP in Apple platform layer.
PiperOrigin-RevId: 829179079
2025-11-06 17:51:10 -08:00
Edwin Wu f353079f6f [NC Apple coverage] Add more comprehensive tests for BLE medium connections.
PiperOrigin-RevId: 826582061
2025-10-31 12:15:56 -07:00
Edwin Wu a8c3789711 [NC Apple coverage] Add BLE L2CAP socket tests.
PiperOrigin-RevId: 825809602
2025-10-29 19:28:29 -07:00
Edwin Wu 3878ce99c8 [NC Apple coverage]Add more comprehensive tests for BLE L2CAP components.
PiperOrigin-RevId: 821886071
2025-10-20 18:22:03 -07:00
Edwin Wu d08ca79b89 [NC Apple coverage] Add unit tests for Nearby Apple's BleMedium.
PiperOrigin-RevId: 820484319
2025-10-16 19:18:27 -07:00
Edwin Wu a211c5b527 [NC Apple coverage] Add tests for CBPeripheralManager category methods.
PiperOrigin-RevId: 814030295
2025-10-01 19:53:53 -07:00
Edwin Wu bbd6bbb9b9 [NC Apple coverage] Add tests for CBPeripheral category methods and update GNCFakePeripheral.
PiperOrigin-RevId: 814026340
2025-10-01 19:37:12 -07:00
Edwin Wu d429a8e42d [NC Apple coverage] Add unit tests for GNCMBleConnection.
PiperOrigin-RevId: 810761287
2025-09-24 00:53:29 -07:00
Edwin Wu 56148e3b86 [NC Apple coverage] Add tests for GNCMConnectionHandlers.
PiperOrigin-RevId: 810655020
2025-09-23 18:24:47 -07:00
Edwin Wu 8ded7ccfca [NC Apple coverage] Add unit tests for GNCMBleUtils.
PiperOrigin-RevId: 808614106
2025-09-18 09:26:32 -07:00
Edwin Wu 961e73d7c9 [NC Apple coverage] Add unit tests for BleSocket on Apple.
PiperOrigin-RevId: 808378919
2025-09-17 20:51:46 -07:00
Guogang Li 3c9f6ecdd3 Improve BLE Peripheral Management and Socket Closure on Apple.
PiperOrigin-RevId: 805438865
2025-09-10 11:14:14 -07:00
Guogang Li 6c80cc39e9 Adjust BLE advertisement length check for macOS.
PiperOrigin-RevId: 803170812
2025-09-04 14:15:55 -07:00
Edwin Wu 6e1fd931b7 [NC Apple coverage] Refactor CBManagerStateString and add tests for BLE
Sockets utilities and Weave packets.

PiperOrigin-RevId: 802825276
2025-09-03 20:23:01 -07:00
Edwin Wu eff9d2d50b [NC Apple coverage] Reorganize BLE medium and test files
PiperOrigin-RevId: 800719731
2025-08-28 20:26:08 -07:00