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
Anay Wadhera
c5c65714a0
Implement updateAdvertisingOptions
...
PiperOrigin-RevId: 543502031
2023-06-26 11:55:11 -07:00
Anay Wadhera
7f1d6a4bba
Check listening options as well when we want to enforce topology constraints
...
PiperOrigin-RevId: 543497497
2023-06-26 11:40:17 -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
1e868a1a65
Fix a crash problem related to OnEndpointFound
...
PiperOrigin-RevId: 536541918
2023-05-30 16:35:11 -07:00
hai007
1b59c39c02
Fix OnEndpointLost behavior error
...
PiperOrigin-RevId: 533488774
2023-05-19 10:23:41 -07:00
Anay Wadhera
f2cadc2815
move payload listeners to absl::AnyInvocable
...
PiperOrigin-RevId: 533365325
2023-05-18 23:30:01 -07:00
Edwin Wu
94ff506d1e
Fixes HelloConnections that can't discover Pixel device from iPhone for Ble_v2 medium.
...
PiperOrigin-RevId: 517318035
2023-03-16 22:25:21 -07:00
hai007
e2fa1d0409
Fix the supported mediums error
...
PiperOrigin-RevId: 509999913
2023-02-15 19:54:05 -08:00
Edwin Wu
1e229e31c5
[Nearby Connections] Add OS_INFO for NC C++.
...
PiperOrigin-RevId: 509443158
2023-02-14 00:05:17 -08:00
hai007
be32b7d2d9
Indicate "Their supported medium" is not real if the other device is host
...
PiperOrigin-RevId: 508426593
2023-02-09 11:20:39 -08:00
Suet-Fei Li
084f7ebd88
Remove location namespace in third_party/nearby.
...
PiperOrigin-RevId: 500023196
2023-01-06 02:53:57 -08:00
hai007
499b2691f4
WIFI Direct implementation (3)
...
Part 3: BWU and client interface part
PiperOrigin-RevId: 498218241
2022-12-28 11:22:48 -08:00
Guogang Li
1c32c738fb
Call BWU callback after medium connection initiated
...
PiperOrigin-RevId: 491949519
2022-11-30 10:06:19 -08:00
hai007
2012acdbcc
Change BWU priority from Hotspot to WifiLan
...
PiperOrigin-RevId: 491388299
2022-11-28 10:55:28 -08:00
hai007
5066b189f9
Pass over MediumMetadata to client_proxy for incoming connection
...
PiperOrigin-RevId: 489597576
2022-11-18 17:41:42 -08:00
Janusz Sobczak
743e9b4a69
Do not use an iterator after modifying a collection
...
Iterators returned by equals_range() are no longer valid when collection is modified.
PiperOrigin-RevId: 488728730
2022-11-15 12:31:07 -08:00
Eiden Kim
7350643c36
Update Prng usage so that it can generate random values on different threads.
...
PiperOrigin-RevId: 478025630
2022-09-30 10:31:27 -07:00
hai007
8f681dece0
Throughput profiling
...
PiperOrigin-RevId: 477752265
2022-09-29 10:02:11 -07:00
hai007
a9d7061794
Group Connection Info into structure
...
PiperOrigin-RevId: 454663252
2022-06-13 11:49:53 -07:00
crisrael
89462d1d45
[NC] Fix nullptr crashes in BasePcpHandler
...
PiperOrigin-RevId: 453967262
2022-06-09 11:10:49 -07:00
hai007
500f67c85e
Add Wifi Medium to query WIFI interface capability and information
...
PiperOrigin-RevId: 451233512
2022-05-26 13:40:14 -07:00
edwinwu
771ce23fa3
[BLE Refactor] Implements advertisement tracking in Ble medium with DiscoveredPeripheralTracker class.
...
PiperOrigin-RevId: 447397658
2022-05-09 00:36:33 -07:00
hai007
ec2d3ae1aa
WIFI Hotspot implementation (4)
...
Part 4: BWU and client interface part
PiperOrigin-RevId: 443700883
2022-04-22 10:32:12 -07:00
jfcarroll
6fc5b64605
Flattening payload and listeners
...
PiperOrigin-RevId: 443168939
2022-04-20 12:55:23 -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
bourdakos
a4feafd4f8
Fix a few struct initializers that are not compatible with c++14
...
PiperOrigin-RevId: 438565404
2022-03-31 07:44:24 -07:00
hai007
1f00687330
Make IsPreferred() comparator irreflexive.
...
PiperOrigin-RevId: 429993786
2022-02-21 02:02:10 -08:00
hais
f5fcd35ced
nearby sdk refactor
...
PiperOrigin-RevId: 425434260
2022-02-02 11:56:39 -08:00