hai007
c3c9a7ffc9
Extend endpoint disconnection timeout.
...
This extends the endpoint disconnection timeout to be slightly longer than the WebRTC connection attempt timeout. This allows an in-progress bandwidth upgrade to resolve before we clean up the endpoint.
Failing to properly clean up the bandwidth upgrade can lead to a delay when shutting down Nearby Connections and can crash the process instead of allowing a clean shutdown.
PiperOrigin-RevId: 496750001
2022-12-20 14:18:59 -08:00
Nick Bourdakos
682813388f
Disable WebRTC for ARM based CPUs
...
PiperOrigin-RevId: 495707681
2022-12-15 15:15:00 -08:00
hai007
255c2672ea
Internal cleanup.
...
PiperOrigin-RevId: 495138142
2022-12-13 15:11:48 -08:00
hai007
fcfec33a7c
Clarify BWU retry method name and fix a small logic error
...
PiperOrigin-RevId: 493936270
2022-12-08 10:45:08 -08:00
Aaron Yu
4762d1e3ee
Add parent_folder support for custom save path
...
PiperOrigin-RevId: 493415518
2022-12-06 14:39:07 -08:00
hai007
fa7c8a2ec8
WIFI Direct implementation (2)
...
Part 2: Connection common code for WIFI Direct
PiperOrigin-RevId: 493153750
2022-12-05 17:14:26 -08:00
Aaron Yu
49af1a96b6
Add SetCustomSavePath API to Nearby Connections
...
PiperOrigin-RevId: 492563503
2022-12-02 14:38:55 -08:00
Guogang Li
1c32c738fb
Call BWU callback after medium connection initiated
...
PiperOrigin-RevId: 491949519
2022-11-30 10:06:19 -08:00
hai007
82f35a1401
Add "PayloadDirection" as an extra index for a payload's ThroughputRecorder
...
PiperOrigin-RevId: 491516038
2022-11-28 20:48:52 -08:00
hai007
2012acdbcc
Change BWU priority from Hotspot to WifiLan
...
PiperOrigin-RevId: 491388299
2022-11-28 10:55:28 -08:00
Janusz Sobczak
a3b6058753
Fully qualify ::location::nearby imports.
...
Find and replace exercise.
Replace
`using location::nearby`
with
`using ::location::nearby`
and
`using <Name> = location::nearby`
with
`using <Name> = ::location::nearby`
PiperOrigin-RevId: 490087051
2022-11-21 15:33:21 -08:00
Adam Cozzette
b1d1019541
Internal change
...
PiperOrigin-RevId: 489671461
2022-11-19 05:04:29 -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
Nick Bourdakos
4fb6ba318c
Internal change
...
PiperOrigin-RevId: 486691317
2022-11-07 09:59:14 -08:00
Janusz Sobczak
a90b7f85fc
Disable medium env by default.
...
MediumEnvironment's initial state will now match the state after calling `Stop()`.
Cleaned up tests that were calling Stop() before test start.
PiperOrigin-RevId: 486277290
2022-11-04 18:56:30 -07:00
Anay Wadhera
74f7f5ec5c
Fix visibility rules
...
PiperOrigin-RevId: 485897261
2022-11-03 09:44:47 -07:00
John Carroll
180b76cf84
Split file path processing off into it's own static class and implement validation.
...
PiperOrigin-RevId: 485890871
2022-11-03 09:18:34 -07:00
Johnson Lu
cf26a98379
Add gateway field in WifiDirectCredentials
...
PiperOrigin-RevId: 481066785
2022-10-13 23:15:51 -07:00
hai007
8ef1a5f3a9
Fix Throughput Profiling Nightly Sanitizer Analysis test case error
...
PiperOrigin-RevId: 478878990
2022-10-04 14:08:31 -07: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
Eiden Kim
028d2ae96a
Fix to generate endpoint_id randomly.
...
PiperOrigin-RevId: 476421714
2022-09-23 11:37:47 -07:00
Guogang Li
397964b5da
Fixed the crash after sending a file from windows device
...
PiperOrigin-RevId: 472782884
2022-09-07 12:15:32 -07:00
John Carroll
55c4714b99
Cleanup the code. Change inputs on ImplementationPlatform::GetDownloadPath from std::string& to absl::string_view.
...
PiperOrigin-RevId: 472770249
2022-09-07 11:22:24 -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
Adam Cozzette
d92f1d4757
Internal change.
...
PiperOrigin-RevId: 468293287
2022-08-17 14:27:18 -07:00
Nick Bourdakos
c48e27d754
Add GitHub Action for testing Linux build.
...
PiperOrigin-RevId: 466797648
2022-08-10 15:18:44 -07:00
Pu Shi
643c0efdde
[Nearby Connections] Add methods to shutdown executors in bwu_manager
...
Adding methods that allow us to shutdown executors in bwu_manager
during Nearby Connections shutdown process to prevent potential crashes.
PiperOrigin-RevId: 466425604
2022-08-09 11:57:38 -07:00
guogang
9b12bdde8d
Fixed the crash in connection close event
...
PiperOrigin-RevId: 465657456
2022-08-05 15:14:13 -07:00
jfcarroll
5b3d443815
Remove the call to Toggle from the BluetoothRadio destructor. https://buganizer.corp.google.com/issues/237492358
...
PiperOrigin-RevId: 465451962
2022-08-04 18:22:51 -07:00
jfcarroll
778c77eacd
Persist the original radio name, and restore it on app start if the radio name is our radio name.
...
PiperOrigin-RevId: 464148898
2022-07-29 13:43:35 -07:00
hai007
ef014d47b8
Disable encryption for HOTSPOT
...
PiperOrigin-RevId: 463773343
2022-07-28 00:51:47 -07:00
hai007
d41cd674c8
Add onSessionComplete method in ClientProxy to log session
...
PiperOrigin-RevId: 461772377
2022-07-18 19:17:19 -07:00
xlythe
859a0ecb27
Add USB enum
...
PiperOrigin-RevId: 461149613
2022-07-15 01:49:46 -07:00
hai007
e4a0f280e2
BWU Hotspot Responder(client) need to disconnect Hotspot when the session is done
...
PiperOrigin-RevId: 460577462
2022-07-12 16:23:48 -07:00
hai007
0a7f68f382
Cap the output stream package size to kMaxAllowedReadBytes, which is 1048576
...
PiperOrigin-RevId: 459622727
2022-07-07 16:00:19 -07:00
edwinwu
12dcd319e0
[BLE Refactor] Implement iOS BLE outgoing(request) connection.
...
PiperOrigin-RevId: 459381179
2022-07-06 17:13:14 -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
407222b104
Fix a BWU revert logic error for BWU initiator
...
PiperOrigin-RevId: 457799119
2022-06-28 12:58:33 -07:00
edwinwu
9ce81d8534
[BLE Refactor] Implement iOS BLE incoming connection.
...
PiperOrigin-RevId: 457110588
2022-06-24 15:58:47 -07:00
johnsonlu
ce80804639
Modify the comment of MediumMetaData.ap_frequency
...
PiperOrigin-RevId: 455297318
2022-06-15 22:19:39 -07:00
hai007
a9d7061794
Group Connection Info into structure
...
PiperOrigin-RevId: 454663252
2022-06-13 11:49:53 -07:00
hai007
2d4cc75dfa
Fix miscellaneous typos in the comments or logging.
...
PiperOrigin-RevId: 454649199
2022-06-13 10:55:57 -07:00
edwinwu
67b318fa6f
[BLE Refactor] Refactor GATTClient implementation.
...
PiperOrigin-RevId: 454290863
2022-06-10 20:20:40 -07:00
edwinwu
c96875f310
Fixes A go/asan error (heap_use_after_free) found while running //third_party/nearby/connections/implementation:core_internal_test
...
PiperOrigin-RevId: 454288190
2022-06-10 20:00:03 -07:00
jfcarroll
88ee3ba338
This needs to be declared in order to build on windows (and since it's declared that way in the header)
...
PiperOrigin-RevId: 454077812
2022-06-09 21:09:31 -07:00
crisrael
89462d1d45
[NC] Fix nullptr crashes in BasePcpHandler
...
PiperOrigin-RevId: 453967262
2022-06-09 11:10:49 -07:00
edwinwu
9069451c08
[BLE Refactor] Add Base64 encoder to BleAdvertisementHeader
...
PiperOrigin-RevId: 453567012
2022-06-07 17:59:33 -07:00