Guogang Li
5fbef9e11e
Remove BLE V1 codes
...
PiperOrigin-RevId: 811369802
2025-09-25 08:56:51 -07:00
Francis Tsui
5911d53352
Reset endpointUD after login and logout.
...
PiperOrigin-RevId: 810648551
2025-09-23 18:00:51 -07:00
hai007
579a01e26f
Refactor implementation:pcp_handler_test to improve test coverage.
...
PiperOrigin-RevId: 804491033
2025-09-08 10:32:06 -07:00
Francis Tsui
77ce859862
Switch ConnectionOptions to use MacAddress class.
...
PiperOrigin-RevId: 802210252
2025-09-02 10:56:48 -07:00
Francis Tsui
000e12da8e
Migrate platform to use MacAddress class.
...
PiperOrigin-RevId: 800631540
2025-08-28 15:14:16 -07:00
Francis Tsui
3f93c0ee87
Remove more unnecessary INFO logs.
...
PiperOrigin-RevId: 797859361
2025-08-21 12:04:13 -07:00
hai007
00a2999269
Format all the files in CL786733783
...
PiperOrigin-RevId: 786873870
2025-07-24 16:25:18 -07:00
hai007
71cdf84236
Replace NEARBY_LOGS with LOG for all coding under google3/third_party/nearby/
...
PiperOrigin-RevId: 786733783
2025-07-24 09:34:17 -07:00
Guogang Li
85f0a1c33f
Log medium for lost endpoint
...
PiperOrigin-RevId: 785911332
2025-07-22 10:41:00 -07:00
Guogang Li
7ea0e00333
Add AWDL upgrade logic
...
PiperOrigin-RevId: 756335927
2025-05-08 09:08:52 -07:00
Johnson Lu
ee9266b175
Implement Dynamic Role Switch
...
Implement dynamic role switch in bwu manager. When NC receive BWU request, it will check if it should switch role based on the device's capability.
PiperOrigin-RevId: 755703443
2025-05-06 23:38:16 -07:00
Guogang Li
7fc2066be0
Handle discovered endpoint when using DCT format
...
PiperOrigin-RevId: 745276198
2025-04-08 13:46:57 -07:00
hai007
cc2c6c527b
Implement AWDL in connection layer (part 2)
...
PiperOrigin-RevId: 744206141
2025-04-05 01:49:16 -07:00
Guogang Li
553f5dbf01
Add advertising logic for DCT
...
PiperOrigin-RevId: 733752366
2025-03-05 08:54:56 -08:00
Edwin Wu
0057b219d2
In windows, discovery phase and outgoing attempt won't be recorded due to pointer is reset to null.
...
PiperOrigin-RevId: 728907296
2025-02-19 19:15:40 -08:00
Edwin Wu
ed79ce5f03
[NearbyConnection] Change the parameter names from connection_info to pending_connection_info
...
PiperOrigin-RevId: 714284466
2025-01-10 17:43:45 -08:00
Edwin Wu
fb2e7e687b
analytics: Modify OperationResultCode in C++ implementation
...
PiperOrigin-RevId: 704951400
2024-12-10 20:57:25 -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
Edwin Wu
9a434f3ec3
analytics: Implement to pass values for OperatoinResultWithMedium.
...
PiperOrigin-RevId: 704304596
2024-12-09 09:02:05 -08:00
Edwin Wu
c3a479e526
analytics: Add OperationResultCode to ConnectionAttempt, II
...
PiperOrigin-RevId: 704166113
2024-12-09 00:03:41 -08:00
Anay Wadhera
291780f8d7
Fix a bad LOG
...
PiperOrigin-RevId: 693060226
2024-11-04 12:47:19 -08:00
Guogang Li
f391af8e47
Enhance on Bluetooth discovery check
...
PiperOrigin-RevId: 691947459
2024-10-31 15:05:16 -07:00
Edwin Wu
ccdcd15e83
Add WEB_RTC_NON_CELLULAR enum, V
...
PiperOrigin-RevId: 686470433
2024-10-16 05:24:59 -07:00
Francis Tsui
c613904a69
allow API to request to disable wifi hotspot
...
PiperOrigin-RevId: 682473971
2024-10-04 15:37:24 -07:00
Guogang Li
d5b5d92f87
Internal logging update
...
PiperOrigin-RevId: 669420403
2024-08-30 13:08:35 -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
ec0de73e8e
internal medium fix
...
PiperOrigin-RevId: 666509363
2024-08-22 15:22:04 -07:00
Guogang Li
4088e5904f
Control Wi-Fi hotspot as client by flag
...
PiperOrigin-RevId: 663862186
2024-08-16 14:17:40 -07:00
hai007
7c7aa58885
Check if both sides support MultiplexSocket before enabling it.
...
PiperOrigin-RevId: 660874323
2024-08-08 09:49:56 -07:00
Anay Wadhera
6a5626d057
Deprecate use_medium_in_connection_info flag.
...
PiperOrigin-RevId: 659623189
2024-08-05 11:33:34 -07:00
Guogang Li
c4812a2082
Optimized instant on lost
...
PiperOrigin-RevId: 659567920
2024-08-05 08:49:36 -07:00
hai007
25deb0962f
Implement Bluetooth Multiplex.
...
PiperOrigin-RevId: 651921709
2024-07-12 16:52:46 -07:00
Guogang Li
4f386b95db
Added logic to stabilize endpoint IDs
...
PiperOrigin-RevId: 644407047
2024-06-18 09:11:51 -07:00
Eiden Kim
51dcfe807d
Fix a crash in BasePcpHandler::BreakTie.
...
PiperOrigin-RevId: 638412219
2024-05-29 14:26:23 -07:00
hai007
7c72774167
Multiplex implementation - Create Multiplex Socket
...
PiperOrigin-RevId: 632628955
2024-05-10 16:11:26 -07:00
Anay Wadhera
85ebca532e
Fix not rejecting a frame with an empty endpoint ID.
...
PiperOrigin-RevId: 631563161
2024-05-07 15:12:09 -07:00
Juliet Levesque
f235957345
[Nearby Presence] Authenticate the connection using the DeviceProvider
...
Once the encryption protocol has been completed successfully, authentication the connection using the registered DeviceProvider from the ClientProxy. For the Nearby Presence MVP, this will be the PresenceDeviceProvider and will only support outgoing connections, which is why the responder role is not used. The result (success or failure) is passed back to callers via the EndpointManager. See go/cros-nearby-presence-np-nc-authentication for details.
PiperOrigin-RevId: 611255632
2024-02-28 15:51:37 -08:00
Juliet Levesque
5f616fa592
[Nearby Presence] Pass remote device and EndpointManager throughout connection flow
...
In order to construct the `ConnectionsAuthenticationTransport` and authentication the connection with the `DeviceProvider`, the remote NearbyDevice and EndpointManager used in RequestConnectionV3() must be passed through the encryption protocol as parameters. This CL accomplishes this; it passes the remote NearbyDevice and EndpointManager through a successful encryption flow by introducting new functions to support this V3 protocol. They will be used in a follow up CL to authenticate the connection. See go/cros-nearby-presence-np-nc-authentication for details.
PiperOrigin-RevId: 610810602
2024-02-27 11:05:52 -08:00
Guogang Li
60735e8e2e
Fixed the logic issue to handle discovered endpoint
...
PiperOrigin-RevId: 573350212
2023-10-13 16:51:36 -07:00
Janusz Sobczak
56acecdffa
Migrate to AnyInvocable in DiscoveryListener
...
PiperOrigin-RevId: 571077933
2023-10-05 11:20:17 -07:00
Juliet Levesque
8be118a3d0
[Nearby Connections] Plumb remote device information much deeper into the stack
...
This will be needed for the authentication transport as the verifier will need the information about the remote device. This CL is based on logic from
awadhera@ in cl/539175992 with additional unit test coverage.
PiperOrigin-RevId: 565037849
2023-09-13 06:59:50 -07:00
hai007
55aedfb235
Implement Safe to Disconnect feature
...
PiperOrigin-RevId: 560119556
2023-08-25 09:51:44 -07:00
Guogang Li
6d886e3fc8
Fixed some issues in analytics data
...
PiperOrigin-RevId: 551900985
2023-07-28 11:13:07 -07:00
Janusz Sobczak
cae06bd15d
Close executors in BasePcpHandler::Shutdown
...
The client can call DisconnectFromEndpointManager() explicitly before
BasePcpHandler is shut down. In this case, th executors were not terminated
inside BasePcpHandler::Shutdown()
This caused use-after-free errors in BasePcpHandlerTest.IoError_RequestConnectionFails
PiperOrigin-RevId: 551340708
2023-07-26 16:00:08 -07:00
Anay Wadhera
8450f2b607
add ConnectionsDevice/PresenceDevice to offline frames builders.
...
PiperOrigin-RevId: 549380626
2023-07-19 11:46:30 -07:00
Janusz Sobczak
9f42452386
Fix PCP handler cleanup
...
All tasks in base_pcp_handler must complete before
p2p_cluster_pcp_handler is destroyed to prevent use-after-free errors.
Added a couple of missing StopDiscovery calls.
PiperOrigin-RevId: 547931350
2023-07-13 14:56:14 -07:00
Anay Wadhera
4ecbd3bca1
Filter devices based on type when listening for incoming connections.
...
PiperOrigin-RevId: 546124493
2023-07-06 16:40:00 -07:00
Anay Wadhera
5369c33112
fix tsan error in NC when accessing discovered_endpoints
...
PiperOrigin-RevId: 546060069
2023-07-06 12:22:55 -07:00
Anay Wadhera
f05e24f7ea
Plumb updateDiscoveryOptions into pcp handler.
...
PiperOrigin-RevId: 544431325
2023-06-29 12:33:16 -07:00
Anay Wadhera
1ddd4d91ea
Check listening options when checking for bwu possibility
...
PiperOrigin-RevId: 543509150
2023-06-26 12:22:49 -07:00