Francis Tsui
5911d53352
Reset endpointUD after login and logout.
...
PiperOrigin-RevId: 810648551
2025-09-23 18:00:51 -07:00
Francis Tsui
000e12da8e
Migrate platform to use MacAddress class.
...
PiperOrigin-RevId: 800631540
2025-08-28 15:14:16 -07:00
Guogang Li
09ac8d8c58
Apply DCT flag in Nearby Connections
...
PiperOrigin-RevId: 756487383
2025-05-08 15:41:04 -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
553f5dbf01
Add advertising logic for DCT
...
PiperOrigin-RevId: 733752366
2025-03-05 08:54:56 -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
c60b6c46f6
analytics: Add operation result code for Payload analytics, III
...
PiperOrigin-RevId: 704259848
2024-12-09 06:20:21 -08:00
Edwin Wu
77a75f4389
Add WEB_RTC_NON_CELLULAR enum, III
...
PiperOrigin-RevId: 686391802
2024-10-16 00:07:37 -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
Guogang Li
bf5f843dfe
Added logic to stabilize endpoint IDs
...
PiperOrigin-RevId: 642774719
2024-06-12 16:23:34 -07:00
Guogang Li
b2f8233294
Added logic to stabilize endpoint IDs
...
PiperOrigin-RevId: 642624940
2024-06-12 08:36:57 -07:00
hai007
7c72774167
Multiplex implementation - Create Multiplex Socket
...
PiperOrigin-RevId: 632628955
2024-05-10 16:11:26 -07:00
hai007
16cb7f70b3
Implement Auto-reconnect after disconnection [1]
...
PiperOrigin-RevId: 592344338
2023-12-19 14:27:40 -08:00
Janusz Sobczak
56acecdffa
Migrate to AnyInvocable in DiscoveryListener
...
PiperOrigin-RevId: 571077933
2023-10-05 11:20:17 -07:00
hai007
55aedfb235
Implement Safe to Disconnect feature
...
PiperOrigin-RevId: 560119556
2023-08-25 09:51:44 -07:00
Janusz Sobczak
ec139d1e8b
Replace std::function with AnyInvocable
...
Also refactored the callbacks to make sure that we call either on_success or on_failure callback, and only once.
PiperOrigin-RevId: 557299838
2023-08-15 17:20:30 -07:00
Guogang Li
6d886e3fc8
Fixed some issues in analytics data
...
PiperOrigin-RevId: 551900985
2023-07-28 11:13:07 -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
da678f5b55
Adjust device provider registration API to match NP expectations
...
PiperOrigin-RevId: 542634789
2023-06-22 12:29:47 -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
Anay Wadhera
0ab31f6312
Implement device loss alarms
...
PiperOrigin-RevId: 538822094
2023-06-08 10:19:44 -07:00
Anay Wadhera
20622608b3
Plumb core into servicecontroller
...
PiperOrigin-RevId: 537480170
2023-06-02 21:21:57 -07:00
Juliet Levesque
f38728bb0b
[Nearby Connections] Do not erase CancellationFlag map entry in ClientProxy
...
To prevent invalid access of already destroyed CancellationFlag pointers, do not erase the map entry of a CancellationFlag in ClientProxy::CancelEndpoint. Crashes were caused by consumers accessing CancellationFlag::Cancelled to check if the flags were cancelled, however since the flags was destroyed by erasing the map entry in ClientProxy::CancelEndpoint, consumers are calling gabrage memory.
PiperOrigin-RevId: 536470187
2023-05-30 12:03:51 -07:00
Juliet Levesque
9c09f325e0
[Nearby Connections] Do not destroy CancellationFlag map in ClientProxy
...
To prevent invalid access of already destroyed CancellationFlag pointers, do not clear the map of CancellationFlags in ClientProxy::CancelAllEndpoints. Crashes
were caused by consumers accessing CancellationFlag::Cancelled to check if the flags were cancelled, however since the flags were destroyed by erasing the map in ClientProxy::CancelAllEndpoints, consumers are calling gabrage memory.
PiperOrigin-RevId: 535284214
2023-05-25 09:34:26 -07:00
Anay Wadhera
f2cadc2815
move payload listeners to absl::AnyInvocable
...
PiperOrigin-RevId: 533365325
2023-05-18 23:30:01 -07:00
Anay Wadhera
99e951dc53
ClientProxy: Wire in DeviceProvider
...
PiperOrigin-RevId: 532259220
2023-05-15 16:17:16 -07:00
Anay Wadhera
7caeb98443
Remove v2 callbacks from client_proxy
...
PiperOrigin-RevId: 529181183
2023-05-03 13:35:59 -07:00
Anay Wadhera
5edd8e25ca
Introduce v3 NC API callbacks
...
PiperOrigin-RevId: 527747390
2023-04-27 19:01:39 -07: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
hai007
5066b189f9
Pass over MediumMetadata to client_proxy for incoming connection
...
PiperOrigin-RevId: 489597576
2022-11-18 17:41:42 -08:00
Eiden Kim
028d2ae96a
Fix to generate endpoint_id randomly.
...
PiperOrigin-RevId: 476421714
2022-09-23 11:37:47 -07:00
Anay Wadhera
92bf3356ee
Reshuffle device.h to internal as both Connections and Presence will be utilizing it.
...
PiperOrigin-RevId: 472745171
2022-09-07 09:35:12 -07:00
Anay Wadhera
6b692c120d
Nearby Connections: Introduce Device wrapper class
...
We are implementing the Device wrapper for connections to interact with Nearby Presence.
PiperOrigin-RevId: 469796313
2022-08-24 12:34:02 -07:00
hai007
d41cd674c8
Add onSessionComplete method in ClientProxy to log session
...
PiperOrigin-RevId: 461772377
2022-07-18 19:17:19 -07:00
hai007
7e081c663a
Add dump function to nearby connections.
...
Sample output:
```
Time: 2022-06-23T17:24:14.3815934+00:00
Windows version: 10.0 build 19042
NearbyShare version: 1.2.3.4
Nearby Share Settings
Device name: Deling's PC
Visibility: 1
Enabled: 1
ShowNotification: 0
DataUsage: 0
Allowed contacts:
Nearby Sharing Service state
IsScanning: 0
IsConnecting: 0
IsTransferring: 0
IsSendingFile: 0
IsReceivingFile: 0
Nearby Connections State
Client ID: -5841239073452700193
Local Endpoint ID: IWV0
High Vis Mode: 0
Is Advertising: 0
Advertising Service ID:
Is Discovering: 0
Discovery Service ID:
Connections:
Discovered endpoint IDs:
```
PiperOrigin-RevId: 458066027
2022-06-29 14:33:41 -07:00
hai007
519144eb24
[Analytics] Reorganize code structure for Analytics
...
- move AnalyticsRecorder to Connections specific folder
- log generic proto type in EventLogger
PiperOrigin-RevId: 451265563
2022-05-26 16:14:51 -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
nohle
e5fb3a8f11
[Nearby Connections][C++] Track bandwidth upgrade mediums for each endpoint (3/4)
...
* Fix bandwidth upgrade service ID usage. For instance, no longer use the inaccurate service ID from ClientProxy.
* Add more fine-grained upgraded endpoint tracking using both service IDs and endpoint IDs
* Only "revert" bandwidth-upgrade mediums--for example, stop accepting connections on a server socket--for a service when the last endpoint for that service is finished.
These changes are necessary to support multiple services (e.g., Nearby Share and Phone Hub) and multiple mediums (e.g., WebRTC and WLAN).
PiperOrigin-RevId: 442021257
2022-04-15 08:29:41 -07:00
hais
f5fcd35ced
nearby sdk refactor
...
PiperOrigin-RevId: 425434260
2022-02-02 11:56:39 -08:00