Commit Graph
644 Commits
Author SHA1 Message Date
Edwin Wu 7f488271f1 Implement openL2CAPServerWithCompletionHandler in GNCBLEMedium class.
PiperOrigin-RevId: 745877478
2025-04-09 22:58:34 -07:00
Edwin Wu 675e4f738f Refactor the GNCBLEL2CAPServer.
PiperOrigin-RevId: 745855701
2025-04-09 21:48:02 -07:00
hai007 190bb141cc Implement AWDL in connection layer (part 1)
PiperOrigin-RevId: 742925127
2025-04-01 19:11:20 -07:00
Guogang Li a36f3dd52e Refactor thread pool
PiperOrigin-RevId: 742919232
2025-04-01 18:53:13 -07:00
hai007 8acf924934 Add AWDL as a new Medium type in Nearby platform
PiperOrigin-RevId: 741515012
2025-03-28 07:14:40 -07:00
Crisrael Lucero 62f9891e45 Remove extra semi-colons to pass -Wextra-semi option in Chromium builds
PiperOrigin-RevId: 741283141
2025-03-27 14:32:12 -07:00
Edwin Wu ea78dcf616 Implement L2CAP stream wrapper.
PiperOrigin-RevId: 741161066
2025-03-27 08:22:27 -07:00
Mingshiou Wu aefcc4a8b2 Add client-side connection APIs for ble l2cap
PiperOrigin-RevId: 741061740
2025-03-27 01:38:10 -07:00
Mingshiou Wu 04b2f9cfc6 Interface definition for Ble L2CAP Medium in Nearby Connections layer
PiperOrigin-RevId: 741054574
2025-03-27 01:04:16 -07:00
Guogang Li 9e23624fba Run scheduled executor callback on executor thread
PiperOrigin-RevId: 738998896
2025-03-20 17:51:16 -07:00
Guogang Li cc4a13ac26 Fix the bug to stop scanning when adapter is disabled
PiperOrigin-RevId: 738949740
2025-03-20 14:54:48 -07:00
Francis Tsui 1750168761 Cleanup enable_task_scheduler flag.
PiperOrigin-RevId: 738938572
2025-03-20 14:21:05 -07:00
Francis Tsui 528ae4c4e2 Fix infinite loop if GATT server fails to start initially.
PiperOrigin-RevId: 736972233
2025-03-14 13:43:45 -07:00
Guogang Li f168d0c91b Call deferal complete when characteristic_data
PiperOrigin-RevId: 736669127
2025-03-13 16:03:18 -07:00
hai007 ba24d92ca1 Add Hotspot Connector(STA) feature for IOS NC
PiperOrigin-RevId: 736593880
2025-03-13 12:11:37 -07:00
Guogang Li c20cb39f60 Implement API to scan multiple services in iOS
PiperOrigin-RevId: 736557350
2025-03-13 10:34:30 -07:00
Guogang Li e59e94655a Fixed a crash in blocking socket
PiperOrigin-RevId: 736274234
2025-03-12 14:49:44 -07:00
Francis Tsui b62b56c75e Move Bluetooth UUID16 conversion into Uuid class.
PiperOrigin-RevId: 735496175
2025-03-10 13:41:37 -07:00
Francis Tsui e3302b720b Improve Gatt advertising reliability.
PiperOrigin-RevId: 734925395
2025-03-08 11:03:31 -08:00
Crisrael Lucero c619a2b921 Remove extra semi-colon to pass -Wextra-semi option in Chromium builds
PiperOrigin-RevId: 734203138
2025-03-06 10:43:46 -08:00
Francis Tsui 7e758061ac Allow setting of alternate service UUID on StartDiscovery.
PiperOrigin-RevId: 733850300
2025-03-05 13:34:29 -08:00
Francis Tsui 5322b66b8e Add support for alternate BLE service uuid.
PiperOrigin-RevId: 733821780
2025-03-05 12:08:33 -08:00
Edwin Wu 18f52de400 Implement L2CAPServer
PiperOrigin-RevId: 733593766
2025-03-04 22:50:09 -08:00
Guogang Li b6dc3348a4 remove callback for multiple services scan
PiperOrigin-RevId: 733518623
2025-03-04 17:12:25 -08:00
Guogang Li dec2ff910a Multiple Service scanning implementation for G3.
PiperOrigin-RevId: 733458126
2025-03-04 14:05:10 -08:00
Guogang Li b814358f89 Add to allow scan multiple BLE services
PiperOrigin-RevId: 733445592
2025-03-04 13:32:37 -08:00
Francis Tsui 8d9d310a07 Refactor BleAdvertisementWatcher.
PiperOrigin-RevId: 732976572
2025-03-03 10:39:48 -08:00
Guogang Li fe6ad715ac Apply base85 encoding and decoding
PiperOrigin-RevId: 731877970
2025-02-27 14:58:15 -08:00
Guogang Li 528c71490c fix a base85 bug on iOS
PiperOrigin-RevId: 731849590
2025-02-27 13:44:15 -08:00
Anay Wadhera 29792c8938 Swap rules to OSS
PiperOrigin-RevId: 731795253
2025-02-27 11:16:31 -08:00
Edwin Wu 20462fafd9 Refactor GNCNWFramework to take an include_peer_to_peer option in the constructor instead of passing it to each function call.
PiperOrigin-RevId: 731583634
2025-02-26 22:25:06 -08:00
Guogang Li 5c3cc4eb71 Add base85 extension to NSData
PiperOrigin-RevId: 731381576
2025-02-26 11:02:30 -08:00
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
Edwin Wu 0c1b0ae1d9 Rename NWFramwork folder name to a more proper name WiFiCommon
PiperOrigin-RevId: 728865577
2025-02-19 16:43:32 -08:00
hai007 00e6b231f6 Automated Code Change
PiperOrigin-RevId: 726320513
2025-02-12 21:58:34 -08:00
Edwin Wu 74146df90a Rename WifiLan to NWFramework(Network.Framework) and put them as common codes.
PiperOrigin-RevId: 725486114
2025-02-10 22:47:21 -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
Guogang Li a51a93a6a1 Create xcframework for Nearby Connections
PiperOrigin-RevId: 721578171
2025-01-30 17:52:17 -08:00
Francis Tsui 79b99ae0a9 Fix build breakage from toolchain option changes.
PiperOrigin-RevId: 721433123
2025-01-30 10:15:29 -08:00
Guogang Li b0be56bec8 Support blocking socket in Wi-Fi hotspot medium
PiperOrigin-RevId: 718006644
2025-01-21 11:42:56 -08:00
Guogang Li 4b8ea5db74 Support blocking socket in Wi-Fi LAN medium
PiperOrigin-RevId: 717979860
2025-01-21 10:40:00 -08:00
Guogang Li 5bceb997c8 Fixed the transfer speed issue from Android to Windows
PiperOrigin-RevId: 716297509
2025-01-16 10:55:32 -08:00
Guogang Li 07db16d351 blocking socket implementation
PiperOrigin-RevId: 715617508
2025-01-14 19:40:36 -08:00
Francis Tsui 912d12b101 Remove file flush.
PiperOrigin-RevId: 715239362
2025-01-13 22:32:39 -08:00
Guogang Li 877a2d3e5b Register MDNS service using Win32 API
PiperOrigin-RevId: 714283635
2025-01-10 17:38:50 -08:00
Guogang Li 694a722d2c Keep existing Wi-Fi hotspot device when having new connection comes in
PiperOrigin-RevId: 714130787
2025-01-10 12:09:02 -08:00
hai007 f64004643f Automated Code Change
PiperOrigin-RevId: 713912995
2025-01-09 22:06:50 -08:00
Francis Tsui b7de2347b8 Prevent crash when failed to create output dir.
PiperOrigin-RevId: 712709379
2025-01-06 18:02:46 -08:00
Janusz Sobczak 949c035446 Clean up build rules
PiperOrigin-RevId: 712669082
2025-01-06 15:02:15 -08:00