Commit Graph
1305 Commits
Author SHA1 Message Date
Janusz Sobczak eb282a64da Set credential start&end times
PiperOrigin-RevId: 504880260
2023-01-26 10:33:22 -08:00
Qin Wang ed9890957f Upgrade minimum_os_version to 13.0
PiperOrigin-RevId: 504597125
2023-01-25 10:23:19 -08:00
Nick Bourdakos e2e702b68f Remove #ifdef __cplusplus guards
PiperOrigin-RevId: 504553878
2023-01-25 07:14:44 -08:00
hai007 361af2691d Automated visibility attribute cleanup.
PiperOrigin-RevId: 504426745
2023-01-24 18:17:50 -08:00
Copybara-Service 4ef4d05986 Merge pull request #1250 from anayw2001:main
PiperOrigin-RevId: 504360060
2023-01-24 13:28:03 -08:00
Anay Wadhera fa1d64ae32 Update compiled_proto for 6a13e9539272049d1b29ed8fdb80b1d3404f0bae
`Rename PublicCredential to SharedCredential and PrivateCredential to LocalCredential`
2023-01-24 15:43:17 -05:00
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
hai007 7f34968b78 Add Units Test for P2pPointToPointPcpHandler
PiperOrigin-RevId: 504064711
2023-01-23 13:20:11 -08:00
Will Harmon 98445bca0c Internal change
PiperOrigin-RevId: 504050448
2023-01-23 12:20:54 -08:00
hai007 7b14bc3b19 Automated visibility attribute cleanup.
PiperOrigin-RevId: 504016877
2023-01-23 10:12:40 -08:00
Anay Wadhera 43ec97b13b Add missing die_if_null.h include
PiperOrigin-RevId: 503504149
2023-01-20 12:55:38 -08:00
Nick Bourdakos f49fe2fb59 Internal change
PiperOrigin-RevId: 503320554
2023-01-19 18:45:56 -08:00
Guogang Li d3eaae1015 list IP addresses in priority
PiperOrigin-RevId: 503310798
2023-01-19 17:47:27 -08:00
Nick Bourdakos 819f816600 Refactor nearby connections clients to be organized by languages.
PiperOrigin-RevId: 503308736
2023-01-19 17:36:07 -08:00
Eiden Kim 26c752dac5 Fix folder transfer with non-English folders.
PiperOrigin-RevId: 503235989
2023-01-19 12:33:14 -08:00
hai007 6dc37d460f Adding Anti Spoofing Key Pair into Device in proto.
PiperOrigin-RevId: 503214302
2023-01-19 11:12:17 -08:00
Guogang Li 70412b8e3c Fixed the crash when checking IP addresses
PiperOrigin-RevId: 503048520
2023-01-18 20:14:45 -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 9a22f71a54 Remove PayLoad::AsBytes()&& to fix -Wreturn-stack-address error
With never versions of libc++, Chromium builds would fail with:

  ../../third_party/nearby/src/connections/payload.cc:105:50:
  error: returning reference to local temporary object [-Werror,-Wreturn-stack-address]
      return result ? std::move(*result) : std::move(ByteArray());
                                                     ^~~~~~~~~~~

Before this libc++ version, the error was masked by the std::move.

If I understand correctly, the only user of this function was
BytesInternalPayload::DetachNextChunk() which was going to make a copy of the
ByteArray annyways, so it might as well use the AsBytes() overload that returns
a const ref.

See also https://crbug.com/1407615#c2

PiperOrigin-RevId: 502946204
2023-01-18 12:21:22 -08:00
Qin Wang afb76ee45c Refactor Crypto Library
PiperOrigin-RevId: 502942033
2023-01-18 12:05:01 -08:00
Eiden Kim df6e8d951f Update custom path log to show correct path
PiperOrigin-RevId: 502765322
2023-01-17 21:01:51 -08:00
Eiden Kim d9b4985c76 Update custom path log to show correct path
PiperOrigin-RevId: 502735941
2023-01-17 17:55:26 -08:00
Qin Wang 2330739b90 Migrate TaskRunner from location/nearby to third_party/nearby
PiperOrigin-RevId: 502733409
2023-01-17 17:40:55 -08:00
Guogang Li cec229c2f3 Enable connection timeout feature
PiperOrigin-RevId: 502701814
2023-01-17 15:16:54 -08:00
Janusz Sobczak ca547df4d7 Subscribe for public credentials update
Nearby Presence scanning sessions may be very long. We need a way to notify the scanner that new credentials were added during scanning.
`SubscribeForPublicCredentials()` allows us to subscribe for such updates.

PiperOrigin-RevId: 502699345
2023-01-17 15:07:14 -08:00
Guogang Li 79834a0ee0 Reduce IP check interval and put more logs for Wi-Fi hotspot
PiperOrigin-RevId: 502698293
2023-01-17 15:04:01 -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
hai007 589829f947 Create a downloader class to trigger downloading and deal with the success and failure status.
PiperOrigin-RevId: 501961621
2023-01-13 16:12:52 -08:00
Anay Wadhera 44fb63f498 Use CredentialSelector for GenerateCredentials()
PiperOrigin-RevId: 501951868
2023-01-13 15:23:35 -08:00
hai007 ac87d5cf50 Explicitly initialize atomic value.
PiperOrigin-RevId: 501936581
2023-01-13 14:16:03 -08:00
hai007 dab0ead924 Explicitly initialize atomic value; change its type to unsigned.
PiperOrigin-RevId: 501935970
2023-01-13 14:12:44 -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
hai007 454d22b19a Adding factory for creating FastPairMetadataRepository instances to increase the flexibility. The unit test for the FastPairMetadataRepositoryFactory will be involved when it is called.
PiperOrigin-RevId: 501682263
2023-01-12 15:28:42 -08:00
Qin Wang 7eeea7a283 Implement ECDH and AES Encryption/ Decryption for Fast Pair Windows
PiperOrigin-RevId: 501666600
2023-01-12 14:25:57 -08:00
Qin Wang bde4a780c6 DataParser advertisement for Model Id
PiperOrigin-RevId: 501643615
2023-01-12 13:00:10 -08:00
Anay Wadhera 7667420e2b Use CredentialSelector for GenerateCredentials()
PiperOrigin-RevId: 501622339
2023-01-12 11:36:37 -08:00
Janusz Sobczak 4fc1583b94 Migrate to absl::AnyInvocable
PiperOrigin-RevId: 501392167
2023-01-11 15:19:33 -08:00
John Carroll 3be5844fc3 Fixed the order of #include's fixes, a subtle but present bug.
PiperOrigin-RevId: 501360403
2023-01-11 13:16:19 -08:00
hai007 d9f113e6e1 Disable WEB_RTC for Windows Platform
PiperOrigin-RevId: 501346561
2023-01-11 12:19:53 -08:00
Guogang Li e261be1a16 Enable Bluetooth connection status track
PiperOrigin-RevId: 501334205
2023-01-11 11:31:27 -08:00
Guogang Li 5326cec7ab Fixed variable initialization issue in atomic_boolean
PiperOrigin-RevId: 501327583
2023-01-11 11:06:14 -08:00
hai007 7a9916f726 Fix WifiDirect small logic error
PiperOrigin-RevId: 501309880
2023-01-11 10:00:28 -08:00
Copybara-Service b246cb57a7 Merge pull request #1205 from bourdakos1:duplicate-proto
PiperOrigin-RevId: 501091027
2023-01-10 14:16:06 -08:00
Nick Bourdakos e5fce1e630 Remove .DS_Store 2023-01-10 16:49:36 -05:00
Nick Bourdakos d042055607 Update Package.swift 2023-01-10 16:48:24 -05:00
Nick Bourdakos ea8a1ed737 Copy implemenation protos into cpp folder so clients can be refactored 2023-01-10 16:48:24 -05:00
Guogang Li cf54a0fdb6 Set thread shutdown to false by default in Windows implementation
PiperOrigin-RevId: 501082672
2023-01-10 13:41:28 -08:00