Anthony Rueda
41de6e4450
Remove nested callback function logic from CredentialStorage g3 implementation. Change instances of passing callback by value to moving callback.
...
PiperOrigin-RevId: 474157705
2022-09-13 16:52:19 -07:00
John Carroll
fa062b70c9
The order of includes was messed up in bluetooth_adapter.cc
...
PiperOrigin-RevId: 473854940
2022-09-12 15:07:54 -07:00
Janusz Sobczak
5871209f44
Convert from public to internal broadcast request
...
Add conversion from public BroadcastRequest to internal BLE 4.2 broadcast request.
PiperOrigin-RevId: 473338534
2022-09-09 14:09:09 -07:00
Janusz Sobczak
560253baa9
Clean up build file
...
Each source file should be compiled into just one target.
PiperOrigin-RevId: 473084337
2022-09-08 14:26:10 -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
Xin He
4f599a0d3e
Save generated credentials and make the callback
...
PiperOrigin-RevId: 472776321
2022-09-07 11:50:30 -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
d10a04df5f
Updated the third_party/nearby/proto/connections_enums.proto file and created a cl to address the Presubmit:CheckPresubmitService:Copybara error
...
PiperOrigin-RevId: 472649958
2022-09-07 00:12:06 -07:00
Hai Shang
da54ba3422
Add async operations to ble_v2
...
PiperOrigin-RevId: 472611661
2022-09-06 19:08:22 -07:00
Guogang Li
851f5ec0dd
Fixed the crash when connecting a remote target from Win to Phone
...
PiperOrigin-RevId: 472502070
2022-09-06 10:50:21 -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
Janusz Sobczak
d7889420c4
Add tests for Future::AddListener
...
PiperOrigin-RevId: 470814362
2022-08-29 14:25:33 -07:00
hai007
a7c967a034
Add null check before passing a char* to std::string::string()
...
PiperOrigin-RevId: 470812873
2022-08-29 14:19:12 -07:00
Janusz Sobczak
408900e702
Define StartBroadcast API.
...
Changed StartBroadcast() API to be more generic - the client app can use the
same call to start presence, fast pair or eddystone advertisement.
PiperOrigin-RevId: 470066137
2022-08-25 13:16:17 -07:00
Hai Shang
40a9f13938
Internal change
...
PiperOrigin-RevId: 470043028
2022-08-25 11:43:00 -07:00
Anthony Rueda
1c15361a98
Adding g3 implementation of CredentialStorage virtual methods along with unit test coverage.
...
PiperOrigin-RevId: 470013245
2022-08-25 09:53:25 -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
hai007
01a4daffd2
Check the WiFiDirect support with Win32 API
...
Close the WiFi Handle after open it
PiperOrigin-RevId: 469602395
2022-08-23 18:02:15 -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
Nick Bourdakos
bbd6986f06
Merge pull request #871 from bourdakos1/add-proto
...
Compile protobufs
2022-08-23 18:53:58 -04:00
Nick Bourdakos
730e6d2858
Add protos
2022-08-23 18:39:58 -04:00
Anay Wadhera
9dc4b83ca0
Nearby internal: fix for Android compile
...
PiperOrigin-RevId: 469337263
2022-08-22 18:35:56 -07:00
Anay Wadhera
5b7bb37d41
Nearby Presence/Implementation: Fix for Android compile
...
PiperOrigin-RevId: 468735587
2022-08-19 10:43:41 -07:00
Adam Cozzette
d92f1d4757
Internal change.
...
PiperOrigin-RevId: 468293287
2022-08-17 14:27:18 -07:00
Anthony Rueda
4d2ff863f9
Add platform agnostic implementation of Credential_Storage class.
...
PiperOrigin-RevId: 468251604
2022-08-17 11:36:58 -07:00
Xin He
b57d03425f
Upgrade protobuf from version 2 to 3
...
PiperOrigin-RevId: 468078014
2022-08-16 18:39:12 -07:00
Xin He
f166f1e22c
Remove presence_identity struct.
...
PiperOrigin-RevId: 468032143
2022-08-16 14:56:38 -07:00
Hai Shang
0849bc7598
Use absl::variant for PresenceScanFilter and legacy.
...
PiperOrigin-RevId: 467982930
2022-08-16 11:44:49 -07:00
Xin He
e5c24b8b8a
Add manager app ID into the APIs
...
PiperOrigin-RevId: 467757514
2022-08-15 14:11:15 -07:00
Xin He
123a2cfd18
Move credentials related proto from Prensence to internal
...
Replace PresenceIdentityType with proto
PiperOrigin-RevId: 467294239
2022-08-12 14:18:34 -07:00
Suet-Fei Li
2327ab219c
Fix Internal Flow.
...
PiperOrigin-RevId: 467102941
2022-08-11 19:10:48 -07:00
Nick Bourdakos
5cef41ec65
Ignore all proto directories in Swift build to avoid compilation errors.
...
PiperOrigin-RevId: 467102329
2022-08-11 19:05:51 -07:00
Anay Wadhera
e1f8cf40ba
Switch to absl::variant for Chrome compatibility
...
PiperOrigin-RevId: 467033120
2022-08-11 13:21:52 -07:00
Hai Shang
754b1ad349
Check in sensor fusion interface
...
PiperOrigin-RevId: 467029545
2022-08-11 13:07:26 -07:00
hai007
fa92234b7c
Restore the previous WIFI connection for client after disconnect from Hotspot.
...
PiperOrigin-RevId: 467009808
2022-08-11 11:42:28 -07:00
Janusz Sobczak
8446944697
Hide internal code in implementation/
...
Refactoring change.
action_factory* -> implementation/action_factory*
broadcast_request* -> implementation/base_broadcast_request*
encryption* -> implementation/encryption*
Clean up build targets.
PiperOrigin-RevId: 466992367
2022-08-11 10:37:56 -07:00
Xin He
76d45f20db
Replace encrypting metadata with CBC to AES.
...
Provide a new API to decrypt the device metadata inside a public credential
PiperOrigin-RevId: 466936093
2022-08-11 06:23:49 -07:00
Nick Bourdakos
30a82350cd
Update GitHub Actions
...
PiperOrigin-RevId: 466852802
2022-08-10 20:33:01 -07:00
Nick Bourdakos
c48e27d754
Add GitHub Action for testing Linux build.
...
PiperOrigin-RevId: 466797648
2022-08-10 15:18:44 -07:00
Janusz Sobczak
07119e80de
Merge CertificateManager and CredentialManager
...
Refactoring change.
Merge CertificateManager and CredentialManager into a single interface.
Hide AdvertisementFactory in implementation/. The client app will not be using
that class directly.
Clean up build targets.
PiperOrigin-RevId: 466748133
2022-08-10 11:46:16 -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
Suet-Fei Li
55f20775d2
Fix internal flow
...
PiperOrigin-RevId: 466426960
2022-08-09 12:02:16 -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
hai007
2d979fd86c
Create a Device Object for Hotspot Client to avoid being disconnected by Hotspot.
...
Without creating a Device Object for the connection from a Hotspot Client, [Microsoft-Windows-WLAN-AutoConfig] may think it is a malign device and will disconnect it after 2 minutes, which will also causes Hotspot being deleted eventually.
PiperOrigin-RevId: 466395817
2022-08-09 10:18:50 -07:00
hai007
0a8f1f1c39
Implement Credentials Generation APIs
...
PiperOrigin-RevId: 466389238
2022-08-09 09:56:54 -07:00
Nick Bourdakos
c495cf830f
Internal change
...
PiperOrigin-RevId: 466220975
2022-08-08 19:40:14 -07:00