Commit Graph
1959 Commits
Author SHA1 Message Date
Copybara-Service ecfd839ff5 Merge pull request #1951 from google:revert-1950-revert-1867-fpwinrs_seeker
PiperOrigin-RevId: 548204543
2023-07-14 13:13:04 -07:00
Anay Wadhera daed4f5f62 Revert "Revert "Fast Pair BLE Device Discovery for Windows in Rust"" 2023-07-14 15:53:52 -04:00
suetfei 6f302231c0 Merge pull request #1950 from google/revert-1867-fpwinrs_seeker
Revert "Fast Pair BLE Device Discovery for Windows in Rust"
2023-07-14 12:52:38 -07:00
suetfei 15d3341e34 Revert "Fast Pair BLE Device Discovery for Windows in Rust" 2023-07-14 12:50:20 -07:00
suetfei 71ce4bff1a Merge pull request #1867 from TheShepord/fpwinrs_seeker
Fast Pair BLE Device Discovery for Windows in Rust
2023-07-14 11:36:00 -07:00
Anay Wadhera bc68a6d71c Implement updateDiscoveryOptions in pcp handler.
PiperOrigin-RevId: 548177687
2023-07-14 11:30:08 -07:00
Anay Wadhera 1bcb70c8b9 fix data races in weave socket test
PiperOrigin-RevId: 548173466
2023-07-14 11:17:33 -07:00
Crisrael Lucero 8007e15d86 Use absl::variant in ConnectionAuthenticator
PiperOrigin-RevId: 548173211
2023-07-14 11:13:56 -07:00
Edwin Wu 7b50a09185 Add salt for hashing service_id in generic MultiplexScoket.
PiperOrigin-RevId: 548151953
2023-07-14 09:54:16 -07:00
Guogang Li a72be2bc8c internal update
PiperOrigin-RevId: 547982511
2023-07-13 18:21:18 -07:00
Nick Bourdakos 99de15aef5 Delete deprecated connections/clients/ios package
PiperOrigin-RevId: 547960446
2023-07-13 16:29:49 -07:00
Nick Bourdakos 96348b6ba7 Add BLE conversion utils
PiperOrigin-RevId: 547958170
2023-07-13 16:20:04 -07:00
Lucas Silva Shepard a855dd19e1 [fp-rs] Cross-platform Bluetooth now interfaces with impl trait rather than concrete per-platform type. 2023-07-13 16:09:37 -07:00
Lucas Silva Shepard aeed049d58 [fp-rs] Updating device scanning interface, split into start/stop/next. 2023-07-13 16:08:44 -07:00
Qin Wang 47de9bdfaa Implementation account management for fast pair windows
PiperOrigin-RevId: 547955144
2023-07-13 16:08:39 -07:00
Lucas Silva Shepard 1375066f74 [fp-rs] Adding line width formatting to Fast Pair Rust. 2023-07-13 16:08:23 -07:00
Lucas Silva Shepard 07b5750f07 [fp-rs] Implemented device discovery for FP Windows in Rust. 2023-07-13 16:08:22 -07:00
Lucas Silva Shepard 4e8c66e88b [fp-rs] Setting up boilerplate for multiplatform FP Rust. 2023-07-13 16:06:31 -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
Lucas Silva Shepard 5306df9251 [fp-rs] Adding Rust and IntelliJ to .gitignore 2023-07-12 12:42:45 -07:00
Lucas Silva Shepard c51f91f1e0 [fp-rs] Adding Windows build to Fast Pair Rust validator in Github Actions. 2023-07-12 12:42:32 -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