Commit Graph
221 Commits
Author SHA1 Message Date
hai007 fb8bfe05b2 [NearbyConnections] Fix IOS incorrect endpoint info from GATT server
1. Put the entire regular advertisement onto the gatt server
2. Provide the gatt read characterestics with offset.

PiperOrigin-RevId: 731102862
2025-02-25 18:17:05 -08:00
hai007 9cd75f8e27 [NearbyConnections] Update ios BLE discovery related logs
PiperOrigin-RevId: 730693835
2025-02-24 19:54:06 -08:00
Guogang Li 202915c310 Add DCT advertising UUID
PiperOrigin-RevId: 730673334
2025-02-24 18:17:37 -08:00
Guogang Li eb914ecc59 A small refactor to start BLE V2 advertisement
PiperOrigin-RevId: 730619310
2025-02-24 15:32:04 -08:00
Guogang Li a7bb6673a6 internal update
PiperOrigin-RevId: 729773934
2025-02-21 22:24:57 -08:00
Guogang Li fdb0f0f351 read endpoint info
PiperOrigin-RevId: 729312008
2025-02-20 17:31:45 -08:00
Guogang Li c3467c0c2a handle new advertisement format
PiperOrigin-RevId: 729140392
2025-02-20 09:24:37 -08:00
Juliet Levesque e7f45020bb [BLE V2] Mark ChromeOS fast advertisements as non-connectable
PiperOrigin-RevId: 728862084
2025-02-19 16:33:41 -08:00
Guogang Li 46c0f153fe handle data element
PiperOrigin-RevId: 728727545
2025-02-19 10:38:28 -08:00
Guogang Li eea3441da9 Internal refactor
PiperOrigin-RevId: 727057179
2025-02-14 14:07:18 -08:00
Guogang Li 0ce08ab931 internal fix
PiperOrigin-RevId: 723992593
2025-02-06 10:43:23 -08:00
hai007 97690c6996 [cpp23] Remove usage of std::aligned_storage in nearby
Deprecated in C++23. Details in https://crbug.com/388068052.

PiperOrigin-RevId: 722745132
2025-02-03 12:02:21 -08:00
Guogang Li 0575cbd155 Make sure got IP from hotspot
PiperOrigin-RevId: 721907499
2025-01-31 14:39:59 -08:00
hai007 f976f7e05a Add Bluetooth Multiplex and WiFiLan Multiplex flags for better control.
PiperOrigin-RevId: 720337637
2025-01-27 15:57:52 -08:00
Edwin Wu fb2e7e687b analytics: Modify OperationResultCode in C++ implementation
PiperOrigin-RevId: 704951400
2024-12-10 20:57:25 -08:00
Edwin Wu d9b2f1aaa9 analytics: Add exact OperationResultCode for WebRtc - BwuHandler
PiperOrigin-RevId: 704943200
2024-12-10 20:20:39 -08:00
Edwin Wu 1cdef6c391 analytics: Add exact OperationResultCode for Wifi_Direct/Wifi_Hotspot - BwuHandler
PiperOrigin-RevId: 704937416
2024-12-10 19:58:46 -08:00
Edwin Wu 9ebf66aef3 analytics: Add exact OperationResultCode for Wifi_Lan - Connect/AttemptConnect
PiperOrigin-RevId: 704931772
2024-12-10 19:28:40 -08:00
Edwin Wu 65c2298f27 analytics: Add exact OperationResultCode for BLE/BLEV2 - Connect/AttemptConnect
PiperOrigin-RevId: 704926745
2024-12-10 18:58:35 -08:00
Edwin Wu 5ac9bb14f6 analytics: Add exact OperationResultCode for Bluetooth - Connect/AttemptConnect
PiperOrigin-RevId: 704918371
2024-12-10 18:29:24 -08:00
Edwin Wu 6f63efa8db analytics: Modify the returned code with a new OperationResultCodeWithMediums for Ble - advertising/discovery/acceptConnections
PiperOrigin-RevId: 704911325
2024-12-10 18:08:28 -08:00
Edwin Wu 1a35a5c890 analytics: Modify the returned code with a new OperationResultCodeWithMediums for Wifi_Lan - advertising/discovery/acceptConnections
PiperOrigin-RevId: 704905003
2024-12-10 17:40:03 -08:00
Edwin Wu d38bd381f0 analytics: Modify the returned code with a new OperationResultCodeWithMediums for Bluetooth - StartDiscovery/UpdateDiscovery, III
PiperOrigin-RevId: 704899575
2024-12-10 17:18:59 -08:00
Edwin Wu a08b420545 analytics: Modify the returned code with a new OperationResultCodeWithMediums for Bluetooth - StartAdvertising/UpdateAdvertisingOptions, I
PiperOrigin-RevId: 704310956
2024-12-09 09:22:18 -08:00
hai007 e342554dc2 Make sure interface is valid when checking for GC
PiperOrigin-RevId: 700764816
2024-11-27 11:48:46 -08:00
Crisrael Lucero 8e87a6e51c Remove unused private field variable in MultiplexSocket
PiperOrigin-RevId: 694313402
2024-11-07 18:17:52 -08:00
hai007 cb07eead88 Implement multiplex for WIFI_LAN
PiperOrigin-RevId: 694239460
2024-11-07 14:02:22 -08:00
Guogang Li f391af8e47 Enhance on Bluetooth discovery check
PiperOrigin-RevId: 691947459
2024-10-31 15:05:16 -07:00
Edwin Wu 7fca68d543 Add WEB_RTC_NON_CELLULAR enum, VI
PiperOrigin-RevId: 690941154
2024-10-29 02:56:40 -07:00
hai007 7c8071e847 Add begin()/end() to ByteArray.
This allows this type to meet the requirements of e.g.
std::ranges::range, which is necessary for it to work with the
std::span range constructor, or the "non-legacy" constructor for
Chromium's base::span.

Fixes a number of IWYU problems along the way, to silence checks.

Bug: chromium:364987728
PiperOrigin-RevId: 689841844
2024-10-25 10:50:00 -07:00
Guogang Li e875eeffde Log how many peripheral devices lost
PiperOrigin-RevId: 689141285
2024-10-23 16:18:55 -07:00
Edwin Wu ccdcd15e83 Add WEB_RTC_NON_CELLULAR enum, V
PiperOrigin-RevId: 686470433
2024-10-16 05:24:59 -07:00
Edwin Wu e5f80e9fdc Add WEB_RTC_NON_CELLULAR enum, IV
PiperOrigin-RevId: 686408097
2024-10-16 01:16:43 -07:00
Edwin Wu 77a75f4389 Add WEB_RTC_NON_CELLULAR enum, III
PiperOrigin-RevId: 686391802
2024-10-16 00:07:37 -07:00
Guogang Li 1255f6a800 Internal fix
PiperOrigin-RevId: 684640919
2024-10-10 18:04:17 -07:00
Guogang Li 45e297cc93 Reduce GATT read during discovery
PiperOrigin-RevId: 684175246
2024-10-09 14:36:44 -07:00
Guogang Li b3684f55c7 Improve logging in DiscoveredPeripheralTracker
PiperOrigin-RevId: 683831370
2024-10-08 18:13:59 -07:00
Crisrael Lucero 835e5d16c3 Minor comment cleanup
PiperOrigin-RevId: 683690113
2024-10-08 11:06:26 -07:00
Guogang Li a08e89f0f1 Decrease BLE header logging level
PiperOrigin-RevId: 670758902
2024-09-03 17:18:52 -07:00
Guogang Li d5b5d92f87 Internal logging update
PiperOrigin-RevId: 669420403
2024-08-30 13:08:35 -07:00
Francis Tsui 4bca950bc7 Rename NEARBY_LOG() to NEARBY_LOG_OBSOLETE()
PiperOrigin-RevId: 667785090
2024-08-26 18:20:49 -07:00
Francis Tsui b03a383f7a Trivial replacement of NEARBY_LOG with NEARBY_LOGS.
PiperOrigin-RevId: 667740113
2024-08-26 15:34:21 -07:00
Guogang Li 4e8111f303 Fixed test cases issue for BLE discovery
PiperOrigin-RevId: 667612285
2024-08-26 09:35:43 -07:00
Guogang Li 2c700115ef internal fix
PiperOrigin-RevId: 666482118
2024-08-22 14:08:02 -07:00
Guogang Li f1a1c39177 Fixed a potential crash in BLE scanning
PiperOrigin-RevId: 663900592
2024-08-16 15:59:28 -07:00
hai007 7e4be1131b [Multiplex] Create ShutdownAll() method to shutdown all the virtual sockets and streams.
PiperOrigin-RevId: 660875041
2024-08-08 09:55:12 -07:00
hai007 d730c6a437 [Multiplex] Fix the issue that the physical socket is not handled properly.
PiperOrigin-RevId: 660594414
2024-08-07 17:12:39 -07:00
Guogang Li c4812a2082 Optimized instant on lost
PiperOrigin-RevId: 659567920
2024-08-05 08:49:36 -07:00
hai007 673af15b5a The shutdown flag should be set to true when all virtual sockets are disconnected.
PiperOrigin-RevId: 658149636
2024-07-31 14:49:24 -07:00
hai007 1973a803a8 Fix the flaky test of multiplex_socket_test.
PiperOrigin-RevId: 657728480
2024-07-30 14:21:04 -07:00