Francis Tsui
b8dd6b3e27
Remove unused code.
...
PiperOrigin-RevId: 928758355
2026-06-08 14:04:45 -07:00
Francis Tsui
736cbb280e
Internal
...
PiperOrigin-RevId: 924405158
2026-05-31 18:52:58 -07:00
Francis Tsui
6f52ec53dd
Remove unnecessary code.
...
PiperOrigin-RevId: 908359047
2026-04-30 13:55:42 -07:00
Edwin Wu
4ae41f4cdf
Refactor EndpointChannel ownership to use shared_ptr.
...
PiperOrigin-RevId: 907278448
2026-04-28 18:15:46 -07:00
Francis Tsui
dacbd03aa1
Replace ByteArray with std::string.
...
PiperOrigin-RevId: 900893850
2026-04-16 13:52:02 -07:00
Francis Tsui
9a586a8482
Deprecate EnableInstantOnLost flag.
...
PiperOrigin-RevId: 859246006
2026-01-21 13:45:14 -08:00
Francis Tsui
e2714e1685
Deprecate UseStableEndpointId flag.
...
PiperOrigin-RevId: 856873445
2026-01-15 16:44:47 -08:00
Francis Tsui
931624a621
Prevent logging connection failure when mDNS client connects to test the connection.
...
PiperOrigin-RevId: 850545490
2025-12-30 16:54:14 -08: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
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
hai007
1d2e43e931
Automated Code Change
...
PiperOrigin-RevId: 675305801
2024-09-16 15:10:32 -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
c4812a2082
Optimized instant on lost
...
PiperOrigin-RevId: 659567920
2024-08-05 08:49:36 -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
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
Janusz Sobczak
2c55c0cdbd
Refactor Pipe implementation
...
* Remove Pipe classes
* Rename BasePipe to Pipe
* Hide Pipe class in anonymous namespace in pipe.cc
* Add CreatePipe static method
* Replace Payload(std::function<InputStream&()>) with Payload(std::unique_ptr<InputStream>)
* Find&Replace Pipe usages
PiperOrigin-RevId: 557276980
2023-08-15 15:53:58 -07:00
Janusz Sobczak
5acf702660
Use endpoint lost alarms on PCP handler thread only
...
endpoint_lost_by_medium_alarms_ should be accessed only
on PCP handler thread to avoid race conditions.
Added thread annotations to protect against accidental use on a different thread.
Test only change.
PiperOrigin-RevId: 551919704
2023-07-28 12:21:32 -07:00
Anay Wadhera
8450f2b607
add ConnectionsDevice/PresenceDevice to offline frames builders.
...
PiperOrigin-RevId: 549380626
2023-07-19 11:46:30 -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
c5c65714a0
Implement updateAdvertisingOptions
...
PiperOrigin-RevId: 543502031
2023-06-26 11:55:11 -07:00
Anay Wadhera
5da4b33824
Revert "Revert incoming connections listener changes for internal breakages."
...
PiperOrigin-RevId: 542381558
2023-06-21 15:36:44 -07:00
Anay Wadhera
1973b09849
Revert incoming connections listener changes for internal breakages.
...
PiperOrigin-RevId: 542010849
2023-06-20 12:16:10 -07:00
Anay Wadhera
44fb9b4fa2
implement stoplisteningforincomingconnections
...
PiperOrigin-RevId: 540724954
2023-06-15 16:43:56 -07:00
Anay Wadhera
5737b867ed
implement startlisteningforincomingconnections
...
PiperOrigin-RevId: 540707703
2023-06-15 15:31:08 -07:00
hai007
1e34f097aa
Add test case to verify Connection can fall back to BT if WIFI_LAN fails
...
PiperOrigin-RevId: 539877670
2023-06-13 00:32:07 -07:00
Anay Wadhera
0ab31f6312
Implement device loss alarms
...
PiperOrigin-RevId: 538822094
2023-06-08 10:19:44 -07:00
hai007
1b59c39c02
Fix OnEndpointLost behavior error
...
PiperOrigin-RevId: 533488774
2023-05-19 10:23:41 -07:00
Anay Wadhera
4375f988d7
Remove irrelevant timeout fields from discovery_options
...
PiperOrigin-RevId: 515106695
2023-03-08 12:17:43 -08:00
Edwin Wu
1e229e31c5
[Nearby Connections] Add OS_INFO for NC C++.
...
PiperOrigin-RevId: 509443158
2023-02-14 00:05:17 -08:00
Suet-Fei Li
084f7ebd88
Remove location namespace in third_party/nearby.
...
PiperOrigin-RevId: 500023196
2023-01-06 02:53:57 -08:00
Guogang Li
1c32c738fb
Call BWU callback after medium connection initiated
...
PiperOrigin-RevId: 491949519
2022-11-30 10:06:19 -08:00
hai007
8f681dece0
Throughput profiling
...
PiperOrigin-RevId: 477752265
2022-09-29 10:02:11 -07:00
edwinwu
a1e84f0597
[BLE Refactor] Implements BleV2Socket and BleV2ServerSocket.
...
PiperOrigin-RevId: 450586535
2022-05-23 20:22:10 -07:00
nohle
463d391fcd
[Nearby Connections][C++] Track bandwidth upgrade mediums for each endpoint (1/4)
...
This CL should be a no-op.
Provide better access to the service ID during bandwidth upgrade handling. Notably, 1) have the endpoint channel store its associated service ID, and 2) send the service ID on a connect/disconnect.
The service ID identifies the application, for example, "NearbySharing". In future CLs, we will use the service IDs to better handle bandwidth-upgrade bookkeeping when multiple services are running simultaneously. Specifically, we will better handle reverting a bandwidth-upgrade medium without interfering with other services.
PiperOrigin-RevId: 442019209
2022-04-15 08:15:53 -07:00
hais
f5fcd35ced
nearby sdk refactor
...
PiperOrigin-RevId: 425434260
2022-02-02 11:56:39 -08:00