Commit Graph
162 Commits
Author SHA1 Message Date
Nick Bourdakos fcacb61b7c Add internal delegates to Swift layer
PiperOrigin-RevId: 489473346
2022-11-18 07:50:38 -08:00
Nick Bourdakos e58dd0a597 Add parentFolder, fileName and totalSize to GNCFilePayload.
PiperOrigin-RevId: 489303089
2022-11-17 14:08:40 -08:00
Nick Bourdakos 8e84347b99 Make all enums closed for nicer swift support.
PiperOrigin-RevId: 489217550
2022-11-17 08:30:08 -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
hai007 1b140a4bd9 Fix internal target visibility.
PiperOrigin-RevId: 481799728
2022-10-17 19:35:57 -07:00
Hai Shang 4157b1f70b Add unit test for PayloadListner
PiperOrigin-RevId: 481773299
2022-10-17 16:53:52 -07:00
Johnson Lu cf26a98379 Add gateway field in WifiDirectCredentials
PiperOrigin-RevId: 481066785
2022-10-13 23:15:51 -07:00
Pu Shi ab80dbc2a3 [Nearby Connections] Extend timeout waiting for StopAllEndpoints to finish.
PiperOrigin-RevId: 479608809
2022-10-07 10:04:54 -07:00
hai007 ff5f4d8ccc Use strongified advertiser inside block
Fixes unused-variable warning and a possible memory leak

PiperOrigin-RevId: 479430565
2022-10-06 15:43:30 -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
hai007 f1a6cdc988 Fix link error by exporting DLL_API.
PiperOrigin-RevId: 477086755
2022-09-26 23:36:28 -07:00
hai007 1cf7978096 Internal change.
PiperOrigin-RevId: 476901929
2022-09-26 08:25:20 -07:00
Eiden Kim 028d2ae96a Fix to generate endpoint_id randomly.
PiperOrigin-RevId: 476421714
2022-09-23 11:37:47 -07:00
John Carroll 43da74bb7c Export InputStream class.
PiperOrigin-RevId: 476215485
2022-09-22 15:46:44 -07:00
Anay Wadhera aaea08204d Introduce Device Provider interface
PiperOrigin-RevId: 472964206
2022-09-08 05:41:40 -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
hai007 525283a166 Add LOG_SEVERITY_VERBOSE definition to enable VERBOSE log mode.
PiperOrigin-RevId: 471023073
2022-08-30 10:10:31 -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
John Carroll f3c1a76723 this change adds RejectConnectionDart and supports cl/467032081.
PiperOrigin-RevId: 469757197
2022-08-24 10:07:33 -07:00
John Carroll 3e78cef57f Flattening of Input/OutputFile.
PiperOrigin-RevId: 469595318
2022-08-23 17:19:08 -07:00
hai007 337c1547c8 Dart Corresponding Status Enum index start from 0, but Windows start from 1. So adjust it.
PiperOrigin-RevId: 469594137
2022-08-23 17:13:33 -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
Nick Bourdakos 63b4f0760c Start initial Swift SDK by creating a lightweight Objective-C wrapper
PiperOrigin-RevId: 466681084
2022-08-10 07:44:26 -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 73264d8feb Change package default visibility.
PiperOrigin-RevId: 460384422
2022-07-11 23:26:57 -07:00
jfcarroll 1a9e4a2aff Added test for BluetoothClassicServerSocket.
PiperOrigin-RevId: 459776171
2022-07-08 09:46:29 -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
hai007 c27ac64bb9 Rename core_adapter to nearby_connections and version the dlls
PiperOrigin-RevId: 459543362
2022-07-07 10:21:06 -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
bourdakos 9edad3a803 Update NearbyConnections library to be compatible with Swift
PiperOrigin-RevId: 458014424
2022-06-29 10:56:40 -07:00
jfcarroll bd9d01ec29 Fix for outgoing file names being truncated, and renaming input files should not occur, only output files.
PiperOrigin-RevId: 457857046
2022-06-28 17:41:29 -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