Anay Wadhera
c58b45eb50
Rename PublicCredential to SharedCredential and PrivateCredential to LocalCredential
...
PiperOrigin-RevId: 503221477
2023-01-24 12:09:21 -08:00
Janusz Sobczak
f4d85f9b90
Migrate to AnyInvocable in platform code
...
PiperOrigin-RevId: 504104740
2023-01-23 16:04:21 -08:00
Janusz Sobczak
a29be214a3
Migrate to absl::AnyInvocable in NP.
...
Replaces a bunch of std::function uses with absl::AnyInvocable.
PiperOrigin-RevId: 502960326
2023-01-18 13:16:29 -08:00
hai007
ea3fa0e392
Fix a bug in which an iterator is compared to an end iterator from a different hashtable.
...
PiperOrigin-RevId: 502652950
2023-01-17 12:10:15 -08:00
Qin Wang
f94aa7548b
Migrate Timer from location/nearby to third_party/nearby
...
PiperOrigin-RevId: 501928835
2023-01-13 13:44:17 -08:00
hai007
868e42f5f2
Fix a bug in which an iterator is compared to an end iterator from a different hashtable.
...
PiperOrigin-RevId: 501928248
2023-01-13 13:40:47 -08:00
Janusz Sobczak
0e2111afc2
Collapse success&failure callbacks into one
...
Instead of two callbacks:
- void on_success(Result result)
- void on_failure(Status status)
use just one callback:
void on_result(StatusOr<Result> result)
PiperOrigin-RevId: 501912034
2023-01-13 12:28:47 -08:00
Janusz Sobczak
4fc1583b94
Migrate to absl::AnyInvocable
...
PiperOrigin-RevId: 501392167
2023-01-11 15:19:33 -08:00
hai007
2f8ecbe610
Fix a bug in which an iterator is compared to an end iterator from a different hashtable.
...
PiperOrigin-RevId: 501007094
2023-01-10 08:54:57 -08:00
hai007
3939ed4735
Automated visibility attribute cleanup.
...
PiperOrigin-RevId: 500193739
2023-01-06 15:01:48 -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
f7f0a266fe
WIFI Direct implementation (5)
...
Part 5: Add WifiDirect Server/Client Socket and Credential
PiperOrigin-RevId: 499401159
2023-01-03 23:10:15 -08:00
hai007
88e350e5d2
Integrate network related part which both nearby sharing and fastpair are adopted.
...
Details can be seen in the `Integrate reusable internal components into third_party` part of `server access design doc` (go/fast_pair_server_data_access)
PiperOrigin-RevId: 498208011
2022-12-28 10:28:32 -08:00
Janusz Sobczak
e64f9859e1
Replace BleOperationStatus with absl::Status
...
PiperOrigin-RevId: 497191477
2022-12-22 10:20:15 -08:00
Janusz Sobczak
3247eed795
Filter credentials based on identity type.
...
Filter the credentials in G3 implementation of CredentialStorage based on IdentityType.
Previously, IdentityType was ignored in GetPrivateCredentials() and GetPublicCredentials().
PiperOrigin-RevId: 495729148
2022-12-15 16:42:31 -08:00
Janusz Sobczak
337e1f41b0
Clarify CredentialStorage interface.
...
SaveCredentials does not to return the credentials that it has just saved. Returning a status will do.
Improved documentation.
PiperOrigin-RevId: 494280108
2022-12-09 15:41:12 -08:00
Janusz Sobczak
5ce2485694
Replace .proto.h with .pb.h
...
We should be using public .pb.h files
PiperOrigin-RevId: 494011872
2022-12-08 15:32:02 -08:00
Janusz Sobczak
a92abac83a
Update advertisement encoder/decoder
...
1. Update the API to accept the credentials on input instead of credential manager.
2. Update the test with values using the LDT encryption.
These changes allow us to have a more asynchronous implementaion.
When broadcasting we can:
1. Fetch the private credentials asynchronously.
2. Create the advertisement and start broadcasting when the credentials have been fetched.
When scanning we can:
1. Fetch public credentials asynchronously.
2. Start scanning for advertisements.
3. Update the decoder when new credentials are fetched.
PiperOrigin-RevId: 493998041
2022-12-08 14:36:44 -08:00
Suet-Fei Li
a8ca18f477
Internal refactor.
...
PiperOrigin-RevId: 493970269
2022-12-08 12:47:57 -08:00
Suet-Fei Li
9f9bd40ada
Internal flow.
...
PiperOrigin-RevId: 493719005
2022-12-07 15:05:45 -08:00
Aaron Yu
49af1a96b6
Add SetCustomSavePath API to Nearby Connections
...
PiperOrigin-RevId: 492563503
2022-12-02 14:38:55 -08:00
Hai Shang
6871b9d5a6
Add initial impl for UpdateRemotePublicCredentials in CredentialManager.
...
PiperOrigin-RevId: 491458184
2022-11-28 15:24:26 -08:00
hai007
5066b189f9
Pass over MediumMetadata to client_proxy for incoming connection
...
PiperOrigin-RevId: 489597576
2022-11-18 17:41:42 -08:00
Qin Wang
a9062b958d
Implement Ble for Fast Pair Windows
...
PiperOrigin-RevId: 489254207
2022-11-17 10:58:34 -08:00
Janusz Sobczak
384d144d6e
Do not use absl::string_view as keys.
...
absl::string_view usually is not suitable type for a member variable nor a map key.
The string referenced by string_view may run out of scope.
PiperOrigin-RevId: 488743930
2022-11-15 13:30:47 -08:00
hai007
4935a2ffdb
Remove usage of deprecated WebRTC APIs
...
PiperOrigin-RevId: 485657180
2022-11-02 12:01:42 -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
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
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
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
Hai Shang
bbe77d8397
internal change
...
PiperOrigin-RevId: 474390888
2022-09-14 14:28:10 -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
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
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
5b7bb37d41
Nearby Presence/Implementation: Fix for Android compile
...
PiperOrigin-RevId: 468735587
2022-08-19 10:43:41 -07:00
Suet-Fei Li
55f20775d2
Fix internal flow
...
PiperOrigin-RevId: 466426960
2022-08-09 12:02:16 -07:00
suetfei
4bf31d18da
Internal Flow change
...
PiperOrigin-RevId: 465623255
2022-08-05 12:30:23 -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
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
jfcarroll
87c76ea235
The file was overwritten when transferring a file that already existed in the downloads folder. With this change we now add " (x)", where x is an incrementing number, starting at 1, using the next non-existing number, to the file name, just before the first dot, or at the end if no dot. This has been applied to the GetDownloadPath method in the platform api.
...
PiperOrigin-RevId: 457530287
2022-06-27 11:44:15 -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
jsobczak
09c04d4cc8
Build visibility changes
...
PiperOrigin-RevId: 452460772
2022-06-01 22:37:42 -07:00
hai007
6ebf3731c8
Add WifiLan validation check
...
PiperOrigin-RevId: 452402734
2022-06-01 15:51:06 -07:00
hai007
fe27ea822a
Change comment "WIFI" to "WiFi"
...
PiperOrigin-RevId: 451659534
2022-05-28 14:48:55 -07:00
hai007
37b0c31319
Add Wifi Hotspot AP and Client validation check
...
PiperOrigin-RevId: 451492039
2022-05-27 15:20:36 -07:00