Commit Graph
1148 Commits
Author SHA1 Message Date
hai007 88d5cb9fdd Support multiple simultaneous server sockets for WLAN
PiperOrigin-RevId: 490596563
2022-11-23 15:31:38 -08:00
Janusz Sobczak 8bd3d34580 Link with Rust NP LDT
Add conditional dependency on Rust NP LDT.
By default, we will use an empty stub.

PiperOrigin-RevId: 490554102
2022-11-23 11:55:52 -08:00
hai007 9425ba7fd6 Add Try/Catch for Hotspot methods
PiperOrigin-RevId: 490397928
2022-11-22 20:14:19 -08:00
hai007 439c10ff01 Add clearcut logging for getReachablePhoneNumbers: track calling listReachablePhoneNumbers from clients.
PiperOrigin-RevId: 490395415
2022-11-22 19:58:47 -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
Nick Bourdakos defd5e03e7 Add Advertiser and Discoverer to the Swift layer
PiperOrigin-RevId: 490301361
2022-11-22 12:07:16 -08:00
Nick Bourdakos 808611f316 Add connection manager to Swift layer
PiperOrigin-RevId: 490288395
2022-11-22 11:20:27 -08:00
Janusz Sobczak 9e61866ee3 Sync with Rust LDT changes
PiperOrigin-RevId: 490288278
2022-11-22 11:16: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 39d3ef1a7c Move PresenceDevice to use DeviceMotion
DeviceMotion has the same attributes, let's use that instead.

PiperOrigin-RevId: 490084783
2022-11-21 15:25:37 -08:00
Anay Wadhera 8679d3a370 Move CancellationFlag to absl::AnyInvocable
PiperOrigin-RevId: 490078293
2022-11-21 14:56:55 -08:00
Adam Cozzette b1d1019541 Internal change
PiperOrigin-RevId: 489671461
2022-11-19 05:04:29 -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 49d47d8e16 Fix dependency between PresenceClient and PresenceService
Give PresenceClient a borrowable reference to PresenceService. Benefits:
1. PresenceClient can verify if PresenceService is alive before trying to access it.
2. The calls to PresenceService are serialized.
3. PresenceService will not be destroyed while a PresenceClient is using it.

PiperOrigin-RevId: 489590767
2022-11-18 16:52:35 -08:00
Janusz Sobczak a11733988f Implement start advertising in service controller.
PiperOrigin-RevId: 489584407
2022-11-18 16:17:55 -08:00
hai007 d4551b7187 Add MCC Mode
PiperOrigin-RevId: 489580605
2022-11-18 15:58:41 -08:00
Nick Bourdakos 9020f528ff Start adding basic types for the Swift layer
PiperOrigin-RevId: 489559926
2022-11-18 14:17:49 -08:00
Nick Bourdakos fcacb61b7c Add internal delegates to Swift layer
PiperOrigin-RevId: 489473346
2022-11-18 07:50:38 -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
Nick Bourdakos e58dd0a597 Add parentFolder, fileName and totalSize to GNCFilePayload.
PiperOrigin-RevId: 489303089
2022-11-17 14:08:40 -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
Nick Bourdakos 00fd273eff Set swift package platform versions
PiperOrigin-RevId: 489220091
2022-11-17 08:41:14 -08:00
Nick Bourdakos 8e84347b99 Make all enums closed for nicer swift support.
PiperOrigin-RevId: 489217550
2022-11-17 08:30:08 -08:00
Qin Wang 4a0242472a Initial Fast Pair Workspace in third_part/neabry
PiperOrigin-RevId: 489013088
2022-11-16 12:48:48 -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
Janusz Sobczak 743e9b4a69 Do not use an iterator after modifying a collection
Iterators returned by equals_range() are no longer valid when collection is modified.

PiperOrigin-RevId: 488728730
2022-11-15 12:31:07 -08:00
Anay Wadhera beb67fc02a Call StopScan() when ScanSession goes out of scope and make sure stop can only be called once.
PiperOrigin-RevId: 488717591
2022-11-15 11:46:34 -08:00
Aaron Yu 7a918e8310 Fix WiFi medium crash
PiperOrigin-RevId: 488453105
2022-11-14 13:28:41 -08:00
Anay Wadhera b7de5f4097 Resolve unique_ptr being thrown away and potential deadlock issue
PiperOrigin-RevId: 487979164
2022-11-11 20:30:27 -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
hai007 3d91433f3a Add AttachmentSourceType
PiperOrigin-RevId: 487258425
2022-11-09 08:58:12 -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
Anay Wadhera f0440e96a9 Revert "Allow tink to be fetched and compile presence in bazel builds."
PiperOrigin-RevId: 486238870
2022-11-04 15:03:56 -07:00
Janusz Sobczak 23c9b106b1 Remove dependency on tink.
PiperOrigin-RevId: 486232030
2022-11-04 14:32:56 -07:00
Janusz Sobczak 951945dd5c Add AdvertisementData struct.
Define and use an NP private AdvertisementData structure instead of the low level BleAdvertisementData,
The APIs look cleaner this way.

PiperOrigin-RevId: 486224840
2022-11-04 14:03:24 -07:00
Hai Shang de4e7a66dc Utilize ScanManager for scan operation in service controller.
PiperOrigin-RevId: 486208283
2022-11-04 12:50:19 -07:00
Copybara-Service 79ca955c6f Merge pull request #1013 from sourajitk:master
PiperOrigin-RevId: 486166518
2022-11-04 10:02:01 -07:00
Copybara-Service 0958553a66 Merge pull request #1017 from bourdakos1:bourdakos1-patch-1
PiperOrigin-RevId: 486037435
2022-11-03 19:58:02 -07:00
Anay Wadhera bc21803bee Include internal/platform/logging.h to pick the correct logging library
PiperOrigin-RevId: 486016407
2022-11-03 17:34:41 -07:00