Commit Graph
304 Commits
Author SHA1 Message Date
Edwin Wu 8eedf05f2c Fix NSRangeException crash in GNCBLEGATTServer
PiperOrigin-RevId: 943785961
2026-07-07 03:21:54 -07:00
Edwin Wu 618e5bd5d5 Validate DCT advertisements and filter BLE scan results on Apple.
PiperOrigin-RevId: 943784982
2026-07-07 03:15:15 -07:00
Francis Tsui 4181803eb6 Create platform independent WebRtcMedium impl.
PiperOrigin-RevId: 919894367
2026-05-22 15:45:18 -07:00
Francis Tsui 4e387e7ea7 Move platform dependent part of WebRtcMedium into WebRtcPlatform.
PiperOrigin-RevId: 919888693
2026-05-22 15:32:44 -07:00
Francis Tsui b536c8da3a Move TachyonExpressSignallingMessenger into mediums/webrtc.
PiperOrigin-RevId: 919882997
2026-05-22 15:19:17 -07:00
Nick Bourdakos e4f25b54c6 Internal
PiperOrigin-RevId: 919352057
2026-05-21 18:01:33 -07:00
Francis Tsui 5df1af7c61 Create separate WebRtc Platform.
PiperOrigin-RevId: 919283950
2026-05-21 15:26:28 -07:00
Francis Tsui 765bd555e4 Create separate WebRtc Platform.
PiperOrigin-RevId: 919274513
2026-05-21 15:06:58 -07:00
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
Francis Tsui 7d84d08619 Remove unused code.
PiperOrigin-RevId: 915643059
2026-05-14 15:21:21 -07:00
hai007 d41eff045c Automated Code Change
PiperOrigin-RevId: 912819296
2026-05-08 20:24:31 -07:00
Edwin Wu bd66643160 Implement single-copy optimizations for BLE/L2CAP sockets.
PiperOrigin-RevId: 897745906
2026-04-10 09:58:48 -07:00
Edwin Wu 26efd91ff4 Introduce factory patterns for BLE managers in BleMedium.
PiperOrigin-RevId: 897492346
2026-04-09 22:53:52 -07:00
hai007 db72ebcaa4 Automated Code Change
PiperOrigin-RevId: 896829185
2026-04-08 19:52:40 -07:00
Edwin Wu 4b5e42ad71 Fix potential deadlock and use-after-free in BleServerSocket on Apple.
PiperOrigin-RevId: 895638821
2026-04-06 20:50:33 -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 a570c9df8f [Nearby] Optimize NWFramework socket reads and writes for performance and memory. IV
PiperOrigin-RevId: 894952159
2026-04-05 09:18:32 -07:00
Edwin Wu b382cdb022 [Nearby] Optimize NWFramework socket reads and writes for performance and memory. III
PiperOrigin-RevId: 894930585
2026-04-05 07:51:18 -07:00
Edwin Wu 1bc6346601 [Nearby] Optimize NWFramework socket reads and writes for performance and memory. II
PiperOrigin-RevId: 894923575
2026-04-05 07:19:18 -07:00
Edwin Wu a405436f44 [Nearby] Optimize NWFramework socket reads and writes for performance and memory. I
PiperOrigin-RevId: 893210612
2026-04-01 18:27:47 -07:00
Edwin Wu c7a8361639 Continue scanning even when peripherals are connected.
PiperOrigin-RevId: 892142072
2026-03-31 00:00:59 -07:00
Francis Tsui 90028655d2 Cleanup DeviceInfo
PiperOrigin-RevId: 891750619
2026-03-30 09:11:37 -07:00
hai007 2d13fb2750 Replace libjingle_peerconnection_api with the proper dependencies.
PiperOrigin-RevId: 884814527
2026-03-16 22:44:48 -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
Francis Tsui 7381c589c3 internal
PiperOrigin-RevId: 881087668
2026-03-09 16:17:49 -07:00
Francis Tsui 79f9436ed0 Remove ununsed dependencies.
PiperOrigin-RevId: 879192569
2026-03-05 12:26:42 -08:00
Francis Tsui 574808daa6 Fix use of deprecated MutexLock.
PiperOrigin-RevId: 877419825
2026-03-02 08:49:07 -08:00
Francis Tsui e5046f6b55 Add support for storing proto messages in preferences.
PiperOrigin-RevId: 875747055
2026-02-26 08:58:54 -08:00
Francis Tsui 44679a49e1 Add support for removing preferences using key prefix.
PiperOrigin-RevId: 875366484
2026-02-25 15:32:04 -08:00
hai007 a824f0fd11 Automated Code Change
PiperOrigin-RevId: 865782783
2026-02-05 00:04:42 -08:00
hai007 a353c3f851 Automated Code Change
PiperOrigin-RevId: 864793757
2026-02-03 03:28:10 -08:00
hai007 3991d6ed70 Automated Code Change
PiperOrigin-RevId: 862218218
2026-01-28 07:02:42 -08:00
Guogang Li 7e28c16a7e Fix iOS build with macro NO_WEBRTC
PiperOrigin-RevId: 855849684
2026-01-13 13:09:24 -08:00
Francis Tsui c2c54a3ca0 Remove deprecated OutputStream::Write method.
PiperOrigin-RevId: 854235255
2026-01-09 10:04:02 -08:00
Francis Tsui fbf66ad7e3 Switch OutputStream::Write to use string_view.
PiperOrigin-RevId: 854225267
2026-01-09 09:37:00 -08:00
Francis Tsui ad6267d236 Remove unused code
PiperOrigin-RevId: 853316103
2026-01-07 10:20:46 -08:00
Francis Tsui 1b557236f7 Log interface count and IPv6 only interface count during wifi upgrade.
PiperOrigin-RevId: 852845375
2026-01-06 10:45:13 -08:00
hai007 46ad9a75ef Fix out-of-bounds string access in GNCIPv4AddressTest found by LibC++ hardening
LibC++ hardening detected an out-of-bounds write in `testInitFromDataWithLeadingEmptyBytes`. The `std::string` initialized with "\0\0\0\0" was empty, making the access `addressString[3]` invalid.

Updated the `std::string` constructor to specify the size, so it correctly includes the null bytes, preventing the crash.

PiperOrigin-RevId: 846853226
2025-12-19 13:48:53 -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
Francis Tsui b88fbc6636 Stop passing file size into InputFile c'tor.
PiperOrigin-RevId: 845989622
2025-12-17 18:01:07 -08:00
Francis Tsui 03ae6b1be1 Switch various WifiLanMedium connect methods to use ServiceAddress.
PiperOrigin-RevId: 843241925
2025-12-11 08:52:53 -08:00
Francis Tsui 4652aef48c WifiLan::Change GetUpgradeAddressCandidates to use ServiceAddress.
PiperOrigin-RevId: 842257461
2025-12-09 08:48:31 -08:00
Edwin Wu d48cdd18a2 Fix the Hotspot upgrade failed.
PiperOrigin-RevId: 836521706
2025-11-24 23:24:53 -08:00
Guogang Li 49b2e371ab Expand visibility for Apple platform to XR.
PiperOrigin-RevId: 835283706
2025-11-21 10:55:31 -08:00
Crisrael Lucero dd943af8e9 Change GetAddress() to GetMacAddress() in BluetoothAdapter
PiperOrigin-RevId: 834896610
2025-11-20 13:49:49 -08:00
Guogang Li 919d279695 Update the logic to retrieve BLE peripheral.
PiperOrigin-RevId: 834816089
2025-11-20 10:27:57 -08:00
Edwin Wu 7bf001a8c9 [BLEREFACTOR]: Add Mutex::AssertHeld.
PiperOrigin-RevId: 834563947
2025-11-19 20:35:47 -08:00