Nick Bourdakos
96348b6ba7
Add BLE conversion utils
...
PiperOrigin-RevId: 547958170
2023-07-13 16:20:04 -07:00
Qin Wang
47de9bdfaa
Implementation account management for fast pair windows
...
PiperOrigin-RevId: 547955144
2023-07-13 16:08:39 -07:00
Nick Bourdakos
e0b2e176c8
Add Objective-C GATT characteristic container.
...
PiperOrigin-RevId: 547954006
2023-07-13 16:05:18 -07:00
hai007
48184e6b4d
Add IfChange annotation to ensure the proto sync between 3rd party and the server copy.
...
PiperOrigin-RevId: 547953571
2023-07-13 16:01:55 -07:00
Janusz Sobczak
9f42452386
Fix PCP handler cleanup
...
All tasks in base_pcp_handler must complete before
p2p_cluster_pcp_handler is destroyed to prevent use-after-free errors.
Added a couple of missing StopDiscovery calls.
PiperOrigin-RevId: 547931350
2023-07-13 14:56:14 -07:00
Janusz Sobczak
31e4b45dd4
Sync before checking logs
...
The events are logged on a different threads. We should wait until all logs
are processed before verifying expectations.
PiperOrigin-RevId: 547926810
2023-07-13 14:41:36 -07:00
Anay Wadhera
41f0b3d330
Fix use of uninitialized value error in Weave.
...
PiperOrigin-RevId: 547902671
2023-07-13 13:28:54 -07:00
Guogang Li
33e2fdddf4
internal cleanup
...
PiperOrigin-RevId: 547888600
2023-07-13 12:45:54 -07:00
Anay Wadhera
770f59b748
Update connection authenticator to account for multi-identity support.
...
PiperOrigin-RevId: 547880233
2023-07-13 12:18:05 -07:00
Hai Shang
66d101926a
internal clean up
...
PiperOrigin-RevId: 547874111
2023-07-13 11:56:55 -07:00
Janusz Sobczak
11ed2cec74
Improve timing in OfflineServiceControllerTest
...
Some of the tests are flaky.
Significantly increased timeouts will give us confidence that
tests are failing due to a defect and not due to a test taking a little
bit more time than usual.
PiperOrigin-RevId: 547819011
2023-07-13 09:10:35 -07:00
Anay Wadhera
f95a875cde
Weave port [7/n]: Introduce Weave client socket implementation
...
PiperOrigin-RevId: 547812816
2023-07-13 08:45:16 -07:00
Janusz Sobczak
02e37e8a0c
Fix flakiness in analytics
...
`session_was_logged_` could be set out of order if a new session started
immediately after terminating the previous. Fixing that.
Check the logged messages rather then the voltile analytics recorder state
in the tests.
PiperOrigin-RevId: 547732773
2023-07-13 02:35:21 -07:00
Fan Di
ddaf447212
Add salt for hashing service_id in generic MultiplexScoket.
...
PiperOrigin-RevId: 547667469
2023-07-12 19:58:53 -07:00
Guogang Li
b113f5550d
Workaround for "backward reference detected" issue
...
PiperOrigin-RevId: 547646854
2023-07-12 17:34:04 -07:00
Guogang Li
85a01e9636
internal refactor
...
PiperOrigin-RevId: 547586065
2023-07-12 13:31:57 -07:00
Janusz Sobczak
0d2e75f2a2
Call pairing result in background
...
This prevents calling the callback twice and out of order.
PiperOrigin-RevId: 547562324
2023-07-12 12:02:28 -07:00
Qin Wang
ffdd25a194
Checks if a found device is associated with current account
...
PiperOrigin-RevId: 547549817
2023-07-12 11:18:34 -07:00
Janusz Sobczak
d559a4a435
Fix tsan errors
...
Improve clean up order to prevent use-after-free errors.
PiperOrigin-RevId: 547313964
2023-07-11 15:26:43 -07:00
Hai Shang
2420c083b8
Add more test coverage for credential manager
...
PiperOrigin-RevId: 547245712
2023-07-11 11:22:29 -07:00
Crisrael Lucero
001069faa1
Convert std::variant usage to absl::variant
...
PiperOrigin-RevId: 546987633
2023-07-10 14:43:27 -07:00
hai007
07384669f2
Fix use-after-scope in test
...
As-is FastPairDeviceRepository is destroyed before SingleThreadExecutor which
can run tasks depending on FastPairDeviceRepository.
This CL makes sure there is no users of FastPairDeviceRepository when
it's deleted.
PiperOrigin-RevId: 546977517
2023-07-10 14:04:53 -07:00
Guogang Li
4a71c4d2d0
Move NS implementation to third party folder
...
PiperOrigin-RevId: 546966492
2023-07-10 13:39:42 -07:00
Janusz Sobczak
522ac8c13e
Fix threading issues in tests
...
The changes make thread sanitizer happy.
PiperOrigin-RevId: 546960147
2023-07-10 13:17:12 -07:00
Anay Wadhera
eff0e2d3c6
Commonize callback construction for discovery.
...
PiperOrigin-RevId: 546934102
2023-07-10 11:35:34 -07:00
hai007
3726589865
internal change
...
PiperOrigin-RevId: 546900740
2023-07-10 09:51:07 -07:00
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