hai007
c1ffccfacf
Create FakeFastPairRepository for test support
...
PiperOrigin-RevId: 506720516
2023-02-02 14:17:58 -08:00
Eiden Kim
3d9ce368ff
Fixed crashpad db creation failure and changed root to CommonAppData. Changed captured Nearby Share Info to save to CommonAppData. Changed Clearcut root to CommonAppData.
...
PiperOrigin-RevId: 506528040
2023-02-01 23:15:22 -08:00
Janusz Sobczak
270aad8ca8
Fix use-after-free defect
...
PiperOrigin-RevId: 506477039
2023-02-01 18:15:38 -08:00
Anay Wadhera
16af6a7e6b
Allow tests to be runnable on Windows
...
PiperOrigin-RevId: 506364864
2023-02-01 10:59:01 -08:00
Eiden Kim
db6300fcc7
Add winrt visibility to Nearby Share app.
...
PiperOrigin-RevId: 506232180
2023-02-01 00:23:32 -08:00
hai007
72f0b1d323
Create Fast Pair repository to manage server access API.
...
PiperOrigin-RevId: 506162700
2023-01-31 17:32:21 -08:00
Nick Bourdakos
9fef440925
Update Dart payload callbacks to better support file and byte payloads
...
PiperOrigin-RevId: 506006910
2023-01-31 08:15:55 -08:00
Guogang Li
0c336e12b9
Log more information for connection error in Wi-Fi hotspot
...
PiperOrigin-RevId: 505840790
2023-01-30 17:18:18 -08:00
Qin Wang
295564bd3a
Implement Fast Pair Data Parser
...
PiperOrigin-RevId: 505800235
2023-01-30 14:35:10 -08:00
Guogang Li
d7d6646b5b
Report device lost when advertising data changed in BLE
...
PiperOrigin-RevId: 505768728
2023-01-30 12:36:56 -08:00
hai007
3f135b2d0f
Add Ethernet information into connection_info if Wifi is not connected
...
PiperOrigin-RevId: 505766130
2023-01-30 12:26:08 -08:00
hai007
3cbbecd53a
Change log and crash dump locations from a per user data location to a per machine common data location.
...
PiperOrigin-RevId: 505711827
2023-01-30 09:14:00 -08:00
hai007
d1fe2bfe51
Create device metadata to store the server access response for further use.
...
PiperOrigin-RevId: 505217480
2023-01-27 15:02:08 -08:00
Janusz Sobczak
2746a4aa2f
Fix field sizes in credentials
...
authenticity_key must be 32 bytes. metadata_encryption_key must be 14 bytes.
PiperOrigin-RevId: 505183908
2023-01-27 12:34:51 -08:00
Janusz Sobczak
94e70d0ddd
Store consumed salts in private credentials
...
PiperOrigin-RevId: 505167378
2023-01-27 11:30:54 -08:00
Nick Bourdakos
20989c5167
Internal change
...
PiperOrigin-RevId: 504972306
2023-01-26 16:36:14 -08:00
Qin Wang
a0692e6306
Migrate device_info from location/nearby to third_party/nearby
...
PiperOrigin-RevId: 504935151
2023-01-26 14:01:11 -08:00
hai007
54fec27c00
Adding the warning log to point out the os type is hardcoded to kWindows. To avoid future misunderstands when implement in different platform.
...
PiperOrigin-RevId: 504899629
2023-01-26 11:41:30 -08:00
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