Commit Graph
400 Commits
Author SHA1 Message Date
hai007 c5cb0e1d39 Insert placeholder declarations into winrt/base.h.
PiperOrigin-RevId: 495104919
2022-12-13 13:09:29 -08:00
Janusz Sobczak d1ddee09f0 Include header files
PiperOrigin-RevId: 494314809
2022-12-09 19:24:43 -08:00
Janusz Sobczak 337e1f41b0 Clarify CredentialStorage interface.
SaveCredentials does not to return the credentials that it has just saved. Returning a status will do.
Improved documentation.

PiperOrigin-RevId: 494280108
2022-12-09 15:41:12 -08:00
Anay Wadhera c50cdc5671 Move back to internal logging library
PiperOrigin-RevId: 494274640
2022-12-09 15:16:19 -08:00
Guogang Li 9c9439f4b1 Refactor the implementation of scheduled executor on Windows
PiperOrigin-RevId: 494261976
2022-12-09 14:20:53 -08:00
Suet-Fei Li 32163382b9 Internal fix
PiperOrigin-RevId: 494245945
2022-12-09 13:10:37 -08:00
Anay Wadhera 2706d66519 Include chromium logging header when building with chromium
PiperOrigin-RevId: 494244433
2022-12-09 13:04:03 -08:00
Nick Bourdakos ff5fb4a8f3 Replace absl/log/check.h with internal/platform/logging.h for SPM.
PiperOrigin-RevId: 494192824
2022-12-09 09:34:24 -08:00
Qin Wang cdd65616fc Implement Ble GATT Client for Windows
PiperOrigin-RevId: 494033195
2022-12-08 17:06:52 -08:00
Anay Wadhera 82b2c63a7c Implement BleConnectionInfo as a container for BLE mac address.
Move PresenceDevice to use BleConnectionInfo.

PiperOrigin-RevId: 494023973
2022-12-08 16:24:00 -08:00
Suet-Fei Li c5bb844509 Internal bug fix.
PiperOrigin-RevId: 494020404
2022-12-08 16:08:26 -08:00
Janusz Sobczak 5ce2485694 Replace .proto.h with .pb.h
We should be using public .pb.h files

PiperOrigin-RevId: 494011872
2022-12-08 15:32:02 -08:00
Janusz Sobczak a92abac83a Update advertisement encoder/decoder
1. Update the API to accept the credentials on input instead of credential manager.
2. Update the test with values using the LDT encryption.

These changes allow us to have a more asynchronous implementaion.
When broadcasting we can:
1. Fetch the private credentials asynchronously.
2. Create the advertisement and start broadcasting when the credentials have been fetched.

When scanning we can:
1. Fetch public credentials asynchronously.
2. Start scanning for advertisements.
3. Update the decoder when new credentials are fetched.

PiperOrigin-RevId: 493998041
2022-12-08 14:36:44 -08:00
Suet-Fei Li a8ca18f477 Internal refactor.
PiperOrigin-RevId: 493970269
2022-12-08 12:47:57 -08:00
Suet-Fei Li 9f9bd40ada Internal flow.
PiperOrigin-RevId: 493719005
2022-12-07 15:05:45 -08:00
Anay Wadhera 43b099a5d2 Include missing mutex.h for Android
PiperOrigin-RevId: 493676427
2022-12-07 12:27:40 -08:00
Anay Wadhera db4d0744a3 Drop base/check.h include for chrome
PiperOrigin-RevId: 493432083
2022-12-06 15:43:45 -08:00
Guogang Li 43fab95a3a Refactor Wi-Fi discovery
PiperOrigin-RevId: 493417873
2022-12-06 14:47:34 -08:00
Anay Wadhera 87c57534a4 Include check.h header to fix Github presence build
PiperOrigin-RevId: 493067786
2022-12-05 11:43:05 -08:00
Qin Wang ba1578777d Implement Bluetooth Pairing for Fast Pair Windows
PiperOrigin-RevId: 492902580
2022-12-04 21:05:47 -08:00
Guogang Li da4ac95e82 Check connectivity before report Wi-Fi discovery
PiperOrigin-RevId: 492570605
2022-12-02 15:10:31 -08:00
Aaron Yu 49af1a96b6 Add SetCustomSavePath API to Nearby Connections
PiperOrigin-RevId: 492563503
2022-12-02 14:38:55 -08:00
Anay Wadhera 2273c87b57 Implement WifiLanConnectionInfo for mDNS IPV4/IPV6 discovery.
PiperOrigin-RevId: 492320076
2022-12-01 15:51:24 -08:00
Anay Wadhera 50de23b42c Force bluetooth connection info mac address to be 6 bytes.
PiperOrigin-RevId: 491977342
2022-11-30 11:48:12 -08:00
Hai Shang 6871b9d5a6 Add initial impl for UpdateRemotePublicCredentials in CredentialManager.
PiperOrigin-RevId: 491458184
2022-11-28 15:24:26 -08:00
hai007 2012acdbcc Change BWU priority from Hotspot to WifiLan
PiperOrigin-RevId: 491388299
2022-11-28 10:55:28 -08:00
hai007 88d5cb9fdd Support multiple simultaneous server sockets for WLAN
PiperOrigin-RevId: 490596563
2022-11-23 15:31:38 -08:00
hai007 9425ba7fd6 Add Try/Catch for Hotspot methods
PiperOrigin-RevId: 490397928
2022-11-22 20:14:19 -08:00
Anay Wadhera 52d81710a2 Add fields to PresenceDevice
PiperOrigin-RevId: 490345719
2022-11-22 15:03:09 -08:00
Guogang Li c499d18af6 Parse remote device IP address from text attributes first
PiperOrigin-RevId: 490324278
2022-11-22 13:37:21 -08:00
Janusz Sobczak a3b6058753 Fully qualify ::location::nearby imports.
Find and replace exercise.
Replace
`using location::nearby`
with
`using ::location::nearby`
and
`using <Name> = location::nearby`
with
`using <Name> = ::location::nearby`

PiperOrigin-RevId: 490087051
2022-11-21 15:33:21 -08:00
Anay Wadhera 8679d3a370 Move CancellationFlag to absl::AnyInvocable
PiperOrigin-RevId: 490078293
2022-11-21 14:56:55 -08:00
hai007 5066b189f9 Pass over MediumMetadata to client_proxy for incoming connection
PiperOrigin-RevId: 489597576
2022-11-18 17:41:42 -08:00
Janusz Sobczak a11733988f Implement start advertising in service controller.
PiperOrigin-RevId: 489584407
2022-11-18 16:17:55 -08:00
Janusz Sobczak 141f021140 Add Borrowable class.
Define Lender/Borrowable/Borrowed classes for sharing resources safely between threads.

PiperOrigin-RevId: 489361079
2022-11-17 18:56:41 -08:00
hai007 3c78cb30b7 When calling GetIpAddress() before GetInformation(), it will fail to get right IP Address.
PiperOrigin-RevId: 489261279
2022-11-17 11:23:06 -08:00
Qin Wang a9062b958d Implement Ble for Fast Pair Windows
PiperOrigin-RevId: 489254207
2022-11-17 10:58:34 -08:00
Guogang Li 656f888e5a Fixed the crash to get network information
PiperOrigin-RevId: 488995745
2022-11-16 11:40:44 -08:00
Janusz Sobczak 384d144d6e Do not use absl::string_view as keys.
absl::string_view usually is not suitable type for a member variable nor a map key.
The string referenced by string_view may run out of scope.
PiperOrigin-RevId: 488743930
2022-11-15 13:30:47 -08:00
Aaron Yu 7a918e8310 Fix WiFi medium crash
PiperOrigin-RevId: 488453105
2022-11-14 13:28:41 -08:00
Guogang Li 0a88efb1de Fixed the logic issue to handle Bluetooth device discovery
PiperOrigin-RevId: 487955459
2022-11-11 17:34:51 -08:00
Guogang Li 8c8e5d7e6f Updated the read method for Bluetooth classic
PiperOrigin-RevId: 487595432
2022-11-10 11:37:22 -08:00
hai007 dba1deab3c Check if the stored WIFI network is exist before restore WIFI connection
PiperOrigin-RevId: 487585021
2022-11-10 10:59:13 -08:00
Guogang Li 23a27d9384 Catch all socket exceptions
PiperOrigin-RevId: 487316606
2022-11-09 12:29:43 -08:00
Guogang Li c9429fcb46 Fixed the bug of Laptop unable to detect another Laptop after first attempt
PiperOrigin-RevId: 487130249
2022-11-08 21:08:43 -08:00
hai007 219f9b75e1 Restore the WIFI connection when connecting to Hotspot fails.
PiperOrigin-RevId: 486809154
2022-11-07 17:44:06 -08:00
Guogang Li 59d172fe64 Recovered the codes of BLE medium
PiperOrigin-RevId: 486803584
2022-11-07 17:11:17 -08:00
Nick Bourdakos 4fb6ba318c Internal change
PiperOrigin-RevId: 486691317
2022-11-07 09:59:14 -08:00
Janusz Sobczak a90b7f85fc Disable medium env by default.
MediumEnvironment's initial state will now match the state after calling `Stop()`.

Cleaned up tests that were calling Stop() before test start.

PiperOrigin-RevId: 486277290
2022-11-04 18:56:30 -07:00
Janusz Sobczak 5faa395f24 Change enum PublicCredentialType to enum class.
PiperOrigin-RevId: 486243753
2022-11-04 15:26:34 -07:00