Guogang Li
33c5f44ea1
Unified the exception handling in socket
...
PiperOrigin-RevId: 485457718
2022-11-01 17:15:51 -07:00
hai007
03b1c773fe
WIFI Direct implementation (2)
...
Part 2: Implementation g3 medium/Environment/platform layer unit test
PiperOrigin-RevId: 485417100
2022-11-01 14:23:14 -07:00
Suet-Fei Li
b6b692b0ea
WIFI Direct implementation (1)
...
Part 1: Implement internal common code
Add implementation/g3 skeleton code for testing coverage.
PiperOrigin-RevId: 485067018
2022-10-31 09:14:09 -07:00
Janusz Sobczak
81f6b547bb
Add StartAdvertising to BLE medium.
...
StartAdvertising allows us to broadcast Nearby Presence advertisements.
We can now test scanning and advertising with the MediumEnvironment rather than mocking platform code.
PiperOrigin-RevId: 484662211
2022-10-28 18:23:30 -07:00
hai007
dfdc3dd818
Include <crtdbg.h> in scheduled_executor.cc.
...
The source in `scheduled_executor.cc` refers to the macro, `_ASSERT`. This macro is defined in `crtdbg.h`.
PiperOrigin-RevId: 484319035
2022-10-27 12:21:34 -07:00
hai007
2206f21c3f
Enable TAP test for nearby.fastpair.windows
...
Enable some packages to visible to nearby fast pair
PiperOrigin-RevId: 483819412
2022-10-25 17:31:00 -07:00
hai007
41ba8c8a14
Convert #include <xstring> to #include <string> in nearby files.
...
`<xstring>` is the MSVC internal implementation file for string. This makes it contingent on the MSVC STL.
`<string>` provides the same declarations, but does not expose the MSVC-specific implementation details. This implementation is guaranteed to meet the C++ standard exactly.
This change updates includes of `<xstring>` to be includes of `<string>`.
PiperOrigin-RevId: 483696244
2022-10-25 09:30:40 -07:00
Guogang Li
d8f64233f5
Fixed the issue to handle file name in UTF8
...
PiperOrigin-RevId: 482535121
2022-10-20 10:47:04 -07:00
John Carroll
5cc1e369d2
Returns the correct object type for CreateInputFile and CreateOutputFile.
...
PiperOrigin-RevId: 482042035
2022-10-18 15:48:25 -07:00
hai007
a620d8eeb6
Remove unused variable
...
Fixes -Wunused-variable warning
PiperOrigin-RevId: 481744648
2022-10-17 14:46:46 -07:00
John Carroll
a3f5d108f5
Added a feature flag to control whether we are allowed to set the bluetooth adapter state or not on windows.
...
PiperOrigin-RevId: 479589889
2022-10-07 08:49:24 -07:00
Hai Shang
c4ad6de6f8
add scan function in presence BLE
...
PiperOrigin-RevId: 478666843
2022-10-03 19:35:23 -07:00
Guogang Li
2fff61b312
Separated BLE permission API into mediums manager
...
PiperOrigin-RevId: 478640491
2022-10-03 16:57:24 -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
John Carroll
646c3e5020
Move the increment rename tag (x) from before the first dot to before the last dot.
...
PiperOrigin-RevId: 477849732
2022-09-29 16:26:36 -07:00
hai007
ad93e1f47b
Retry the Hotspot IP address query procedure
...
PiperOrigin-RevId: 477592843
2022-09-28 17:26:17 -07:00
hai007
f65e32ad32
Catch exceptions when retrieve Hotspot IP address
...
PiperOrigin-RevId: 477363744
2022-09-27 23:11:03 -07:00
Guogang Li
d55d41e263
Fixed a crash in Bluetooth classic medium
...
PiperOrigin-RevId: 477027985
2022-09-26 17:12:12 -07:00
Guogang Li
086ad175a8
Fixed the issue to transfer file name in utf8
...
PiperOrigin-RevId: 476959117
2022-09-26 12:17:17 -07:00
Anthony Rueda
fd59e9aede
Consolidate credential_storage callback functions. Move all callback struct definitions in a central header file compiled as part of internal/platform/implementation:comm library.
...
PiperOrigin-RevId: 476186596
2022-09-22 13:46:47 -07:00
Janusz Sobczak
f1f8680034
Fix debug build
...
PiperOrigin-RevId: 475955358
2022-09-21 16:44:15 -07:00
Guogang Li
2ca7d43f1a
Fixed the BLE start/stop issues
...
PiperOrigin-RevId: 475915082
2022-09-21 13:53:37 -07:00
Guogang Li
9f9b3d26d1
Fixed the log issue for advertisement data
...
PiperOrigin-RevId: 474897767
2022-09-16 14:09:45 -07:00
Hai Shang
bbe77d8397
internal change
...
PiperOrigin-RevId: 474390888
2022-09-14 14:28:10 -07:00
John Carroll
0b57cd5c5f
Fixed unit tests. Unit tests were failing locally, mostly just type mismatches, but there was an error in the GetDownloadPath for the test utilities.
...
PiperOrigin-RevId: 474358069
2022-09-14 12:17:35 -07:00
hai007
6b5251f8d2
Don't add WIFI_LAN device if it's device info is incomplete or has error
...
PiperOrigin-RevId: 474162548
2022-09-13 17:16:53 -07:00
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
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
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
a7c967a034
Add null check before passing a char* to std::string::string()
...
PiperOrigin-RevId: 470812873
2022-08-29 14:19:12 -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
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
Anay Wadhera
5b7bb37d41
Nearby Presence/Implementation: Fix for Android compile
...
PiperOrigin-RevId: 468735587
2022-08-19 10:43:41 -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
f166f1e22c
Remove presence_identity struct.
...
PiperOrigin-RevId: 468032143
2022-08-16 14:56:38 -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
hai007
fa92234b7c
Restore the previous WIFI connection for client after disconnect from Hotspot.
...
PiperOrigin-RevId: 467009808
2022-08-11 11:42:28 -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
Suet-Fei Li
55f20775d2
Fix internal flow
...
PiperOrigin-RevId: 466426960
2022-08-09 12:02:16 -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
guogang
5df9ef5eca
Removed API mutex from platform implementation.
...
PiperOrigin-RevId: 465635705
2022-08-05 13:31:05 -07:00
suetfei
4bf31d18da
Internal Flow change
...
PiperOrigin-RevId: 465623255
2022-08-05 12:30:23 -07:00
jfcarroll
d09223d435
Prevent escaping the users Downloads folder by removing all occurances of /.. from the path passed in.
...
PiperOrigin-RevId: 465450615
2022-08-04 18:13:29 -07:00
suetfei
21c2c7c1ea
Port crypto from location/nearby/cpp/sharing/implementation/internal/crypto to third_party/nearby/internal/crypto.
...
BEGIN_PUBLIC
Add crypto library to Nearby.
END_PUBLIC
Remove the reference to absl::SourceLocation as it is not in OSS.
PiperOrigin-RevId: 465427879
2022-08-04 16:11:00 -07:00
hai007
a732616a97
Change private/public credentials from struct to proto.
...
PiperOrigin-RevId: 464678736
2022-08-01 19:16:05 -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