Anay Wadhera
507935f506
Implement NearbyDevice::ToProto() for Connections device
...
PiperOrigin-RevId: 546376155
2023-07-07 13:55:31 -07:00
Anay Wadhera
6624dd003e
Implement NearbyDevice::ToProto() for PresenceDevice
...
PiperOrigin-RevId: 546372521
2023-07-07 13:40:13 -07:00
Qin Wang
5bab62fbb1
Get/Write/Delete account associated device from/to footprints
...
PiperOrigin-RevId: 546342820
2023-07-07 11:57:29 -07:00
Janusz Sobczak
ca9bbd3a9c
Fix several race conditions
...
The fixes are specific to unit test environment.
PiperOrigin-RevId: 546342096
2023-07-07 11:53:50 -07:00
Qin Wang
61820e49fb
BugFix //third_party/nearby/fastpair/scanning/fastpair:fast_pair_discoverable_scanner_impl_test
...
PiperOrigin-RevId: 546253578
2023-07-07 05:38:00 -07:00
Qin Wang
d7be85607f
BugFix - //third_party/nearby/fastpair/handshake:fast_pair_handshake_impl_test
...
PiperOrigin-RevId: 546253109
2023-07-07 05:34:34 -07:00
Anay Wadhera
f830eaddf0
disable rust ldt by default
...
PiperOrigin-RevId: 546127141
2023-07-06 16:52:17 -07:00
Anay Wadhera
4ecbd3bca1
Filter devices based on type when listening for incoming connections.
...
PiperOrigin-RevId: 546124493
2023-07-06 16:40:00 -07:00
Hai Shang
e949d922de
Refill creds if needed in getting shared & local creds.
...
PiperOrigin-RevId: 546093134
2023-07-06 14:28:58 -07:00
Anay Wadhera
5369c33112
fix tsan error in NC when accessing discovered_endpoints
...
PiperOrigin-RevId: 546060069
2023-07-06 12:22:55 -07:00
Qin Wang
5bce94d8ee
Move fast_pair_repository to third_party/nearby/fastpair/repository and remove all deprecated files
...
PiperOrigin-RevId: 546057062
2023-07-06 12:10:57 -07:00
Anay Wadhera
4a185d0317
Add NearbyDevice::ToProto() API
...
PiperOrigin-RevId: 546055852
2023-07-06 12:07:01 -07:00
Janusz Sobczak
d516e52204
Add FastPairService adapter.
...
Add an adapter and windows plugin for scalable seeker,
PiperOrigin-RevId: 545920541
2023-07-06 02:18:02 -07:00
Janusz Sobczak
08d157399c
Fix TaskRunnerImpl::PostDelayedTask
...
The timers were destroyed from timer's callbacks. Moving the destruction
to a separate callback fixes the issue.
PiperOrigin-RevId: 545916450
2023-07-06 02:01:03 -07:00
Qin Wang
5b6ba679c7
Download device's metadata using FastPairClient::GetObservedDevice to call fast pair backend API
...
PiperOrigin-RevId: 545809920
2023-07-05 16:01:20 -07:00
hai007
4f6adb3771
Fix typo
...
PiperOrigin-RevId: 545787602
2023-07-05 14:31:49 -07:00
Anay Wadhera
0bf74cb376
fix asan error in connection authenticator
...
PiperOrigin-RevId: 545783166
2023-07-05 14:15:37 -07:00
Anay Wadhera
04936e0aba
slight cleanup of Weave TryWriteControl()
...
PiperOrigin-RevId: 545755012
2023-07-05 12:32:07 -07:00
hai007
0b3e42a511
Change PresenceAuthenticationFrame to differentiate two types of credential ID hash.
...
PiperOrigin-RevId: 544803920
2023-06-30 20:05:33 -07:00
Guogang Li
92a1510158
Fixed an upgrade issue
...
PiperOrigin-RevId: 544778015
2023-06-30 16:44:04 -07:00
Janusz Sobczak
7a99b5e0a3
Specialize ExceptionOr<bool>
...
ExceptionOr<T>::ok() returns true if the value is set. This can be misleading
for boolean types.
ExceptionOr<bool> result = SomeFunction();
if (result.ok()) {
if (result.result() {
// Case 1: SomeFunction returned true
} else {
// Case 2: SomeFunction returned false
} else {
// Case 3: SomeFunction returned an exception
}
It's easy to overlook case 2.
The specialized ExceptionOr<bool>::ok() returns false in Case 2, which allows
us to write:
if (result) {
// SomeFunction returned true
} else {
// SomeFunction returned false or an exception
// result.GetException() can be used if we need to handle different exceptions
// differenty
}
PiperOrigin-RevId: 544715641
2023-06-30 11:59:43 -07:00
hai007
036d4ee490
Exchange ClientIntroductionFrame/ClientIntroductionAckFrame after reconnected successfully
...
PiperOrigin-RevId: 544683178
2023-06-30 09:58:09 -07:00
Edwin Wu
49965a6cf1
Add salt for hashing service_id in generic MultiplexScoket.
...
PiperOrigin-RevId: 544634139
2023-06-30 05:57:35 -07:00
Janusz Sobczak
e00bdfb3e3
Add retro pairing in scalable seeker
...
Listen for manual pairing events and notify plugins.
Add retroactive pairing flow in the scalable seeker.
Actually upload the account key to the provider.
Missing bits:
- Notify the user and get their permission,
- Upload the new Account Key to user's account.
PiperOrigin-RevId: 544616348
2023-06-30 04:06:43 -07:00
Qin Wang
a8b6fdee59
Implement fake GetResponse and migrate fake_http_client to third_party/nearby/internal/test
...
PiperOrigin-RevId: 544518775
2023-06-29 18:39:50 -07:00
Guogang Li
a7ad6303ec
internal bug fix
...
PiperOrigin-RevId: 544477173
2023-06-29 15:21:11 -07:00
Anay Wadhera
f05e24f7ea
Plumb updateDiscoveryOptions into pcp handler.
...
PiperOrigin-RevId: 544431325
2023-06-29 12:33:16 -07:00
Qin Wang
22c3a07677
Migrate DataManager to third_party/nearby/internal
...
PiperOrigin-RevId: 544395891
2023-06-29 10:31:07 -07:00
hai007
aca7ebf6a9
Clarify a log message
...
PiperOrigin-RevId: 544225952
2023-06-28 19:33:26 -07:00
hai007
6823b7105d
Remove dead code.
...
PiperOrigin-RevId: 544209534
2023-06-28 17:51:06 -07:00
Joy Babafemi
f0f0643754
FPPRust - Implement FPP Manager class in C++
...
PiperOrigin-RevId: 544182126
2023-06-28 15:48:35 -07:00
Qin Wang
d55caf0c4b
Enable ble_medium scanning for advertisement with Fast Pair Service UUID
...
PiperOrigin-RevId: 544158039
2023-06-28 14:17:36 -07:00
Anay Wadhera
b350d3f980
Drop unused presence_service.cc
...
PiperOrigin-RevId: 544113075
2023-06-28 11:30:24 -07:00
Juliet Levesque
34128a35de
[Nearby Connections] Enable Cancellation Flags
...
Re-enables Cancellation Flags once fixes for crashes caused by destroying the cancellation flags that are being consumed by other classes have landed.
PiperOrigin-RevId: 543857192
2023-06-27 14:46:19 -07:00
hai007
a35b3c1bf1
Creating UI binding platform as dart interface.
...
PiperOrigin-RevId: 543851724
2023-06-27 14:26:15 -07:00
Anay Wadhera
95f070796f
Add identity type field to PresenceDevice
...
PiperOrigin-RevId: 543824854
2023-06-27 12:49:28 -07:00
Qin Wang
259350e343
Implement FastPairClient to provides APIs to the FastPair backend OAuth/un-OAuth API
...
PiperOrigin-RevId: 543807725
2023-06-27 11:42:27 -07:00
Janusz Sobczak
b89eeb1ac1
Pass screen locked event to plugins
...
PiperOrigin-RevId: 543512467
2023-06-26 12:37:45 -07:00
Anay Wadhera
1ddd4d91ea
Check listening options when checking for bwu possibility
...
PiperOrigin-RevId: 543509150
2023-06-26 12:22:49 -07:00
Janusz Sobczak
cabad16421
Register BluetoothClassicMedium::Observer
...
PiperOrigin-RevId: 543506617
2023-06-26 12:12:28 -07:00
Janusz Sobczak
33abd7d879
Increase plugin life time
...
A plugin is created when it is first needed and destroyed when the FP device
is destroyed. This allows the plugins to keep state during long running
operations such as presenting a UI query.
PiperOrigin-RevId: 543502491
2023-06-26 11:58:56 -07:00
Anay Wadhera
c5c65714a0
Implement updateAdvertisingOptions
...
PiperOrigin-RevId: 543502031
2023-06-26 11:55:11 -07:00
Anay Wadhera
7f1d6a4bba
Check listening options as well when we want to enforce topology constraints
...
PiperOrigin-RevId: 543497497
2023-06-26 11:40:17 -07:00
Qin Wang
7a25b33603
Builds FastPairInfo proto to upload device to footprints
...
PiperOrigin-RevId: 543496714
2023-06-26 11:36:38 -07:00
Eiden Kim
baaf6b2a3b
Change TransferUIEvent name to DesktopTransferEvent.
...
PiperOrigin-RevId: 543473454
2023-06-26 10:19:32 -07:00
hai007
ac0af7b048
Fix g3 platform timer implementation.
...
PiperOrigin-RevId: 542931629
2023-06-23 12:41:41 -07:00
Janusz Sobczak
36132890cd
Initialize metadata repository
...
Make sure that FastPairRepository is initalized.
FastPairRepository is required to fetch metadata information
PiperOrigin-RevId: 542906473
2023-06-23 11:06:20 -07:00
hai007
d91f7e6f44
Automated visibility attribute cleanup.
...
PiperOrigin-RevId: 542896809
2023-06-23 10:34:27 -07:00
hai007
80ddcbe0fc
Fix a crash when reading file on Windows platform.
...
Suspect the file was corrupted when sending to receiver side. Check if it is good first, then peek. By this way, the crash maybe avoid. For further protection, add exception protection here.
PiperOrigin-RevId: 542884209
2023-06-23 09:46:59 -07:00
Anay Wadhera
bb3de11104
Weave port [6/n]: Introduce Base socket implementation and connection interface.
...
PiperOrigin-RevId: 542872801
2023-06-23 09:00:39 -07:00