Commit Graph
1889 Commits
Author SHA1 Message Date
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
Guogang Li 86e39b004c Fixed the crash when handling keep alive packet
PiperOrigin-RevId: 542870226
2023-06-23 08:48:57 -07:00
Guogang Li 72af220dae Wait for all tasks completed in thread pool
PiperOrigin-RevId: 542866176
2023-06-23 08:30:37 -07:00
hai007 1e43f4d83e Internal change
PiperOrigin-RevId: 542746712
2023-06-22 20:53:10 -07:00
hai007 df1831cfdf Add slot duration and ranging interval as new ranging capabilities and parameters.
PiperOrigin-RevId: 542637190
2023-06-22 12:38:27 -07:00
Anay Wadhera da678f5b55 Adjust device provider registration API to match NP expectations
PiperOrigin-RevId: 542634789
2023-06-22 12:29:47 -07:00
Guogang Li 4e5d91b970 Fixed the crash when handling keep alive packet
PiperOrigin-RevId: 542592058
2023-06-22 10:05:46 -07:00
Guogang Li bd30b11401 Fixed crash when stopping advertising
PiperOrigin-RevId: 542580849
2023-06-22 09:23:00 -07:00
Janusz Sobczak 3cf20ee3bc Store metadata in FastPairDevice
Add DeviceMetadata to FastPairDevice after downloading it.
It simplifies the code and prevents fetching the same metadata several times.
FastPairDataEncryptorImpl does not download the metadata anymore. Metadata
must have already been downloaded, otherwise we wouldn't know what FP protocol
to use.

PiperOrigin-RevId: 542490742
2023-06-22 01:48:56 -07:00
Eiden Kim f9123d544b Add send event to TransferUIEvent proto
PiperOrigin-RevId: 542466383
2023-06-21 23:26:48 -07:00
Qin Wang e4b12dbd80 Interface for passing HTTP Responses/Requests to observers
PiperOrigin-RevId: 542402792
2023-06-21 17:06:23 -07:00
Juliet Levesque 4d85bde8ce [Nearby Presence] Implement FakePresenceService::GetLocalPublicCredentials
Implements FakePresenceService::GetLocalPublicCredentials and exposes
FakePresenceService::SetLocalPublicCredentialsResult to configure results for
testing.
PiperOrigin-RevId: 542383663
2023-06-21 15:45:04 -07:00
Anay Wadhera 5da4b33824 Revert "Revert incoming connections listener changes for internal breakages."
PiperOrigin-RevId: 542381558
2023-06-21 15:36:44 -07:00
Eiden Kim 5a2c972707 Add TransferUIEvent proto and adapter APIs for receiving
PiperOrigin-RevId: 542301885
2023-06-21 10:48:12 -07:00
Edwin Wu 05c707dd78 Add salt for hashing service_id in BLE packets.
PiperOrigin-RevId: 542118349
2023-06-20 19:45:20 -07:00
Aaron Yu 7eca4d74c6 Fix __FrameHandler3::CxxCallCatchBlock crashes at Nearby Connections layer
PiperOrigin-RevId: 542085514
2023-06-20 16:43:14 -07:00
Anay Wadhera 1973b09849 Revert incoming connections listener changes for internal breakages.
PiperOrigin-RevId: 542010849
2023-06-20 12:16:10 -07:00
Anay Wadhera b6a8802cb9 remove shared_ptr hack for std::function Runnable.
PiperOrigin-RevId: 541063821
2023-06-16 18:29:44 -07:00
Anay Wadhera 2a9bf7c883 Introduce connections authentication transport
PiperOrigin-RevId: 541057398
2023-06-16 17:55:06 -07:00
Nick Bourdakos 12f9512a19 Use IOS_LATEST for the test runner to prevent Xcode 14.3 issues
PiperOrigin-RevId: 541053739
2023-06-16 17:37:39 -07:00
Janusz Sobczak 20acd4eeb9 Add initial pairing in scalable seeker
PiperOrigin-RevId: 541034178
2023-06-16 16:14:14 -07:00
Janusz Sobczak 4914cbc2f9 Set FastPairDevice version
PiperOrigin-RevId: 541030067
2023-06-16 16:00:31 -07:00
Janusz Sobczak e46b19c798 Use the MAC address as peripheral name
We use BlePeirpheral::GetName()` as a mac address.

PiperOrigin-RevId: 541010558
2023-06-16 14:54:42 -07:00
Qin Wang 4b13033389 Add fast pair proto to third_party/nearby/fastpair
PiperOrigin-RevId: 540977348
2023-06-16 13:09:38 -07:00
Anay Wadhera 44fb9b4fa2 implement stoplisteningforincomingconnections
PiperOrigin-RevId: 540724954
2023-06-15 16:43:56 -07:00
Anthony Rueda c829632879 [Presence] Pass DeviceIdentityMetadata materials to PresenceDevice during advertisement decryption
PiperOrigin-RevId: 540715111
2023-06-15 16:00:50 -07:00
Anay Wadhera 5737b867ed implement startlisteningforincomingconnections
PiperOrigin-RevId: 540707703
2023-06-15 15:31:08 -07:00