Commit Graph
1130 Commits
Author SHA1 Message Date
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
Anay Wadhera c0531d556c Explicitly convert absl::string_view to std::string for chromium
PiperOrigin-RevId: 485990008
2022-11-03 15:34:38 -07:00
Sourajit Karmakar 124ceb9f64 Remove the iOS sample app link since it no longer exists.
Change-Id: Ie237c17a4165f75d3b5a5ddfc8772cd8cd6de087
2022-11-03 18:21:14 -04:00
Nick Bourdakos f385ab8349 Update README.md 2022-11-03 18:09:29 -04:00
Anay Wadhera 8028821593 Switch to .pb.h and explicit conversions to std::string
PiperOrigin-RevId: 485942813
2022-11-03 12:31:18 -07:00
Anay Wadhera 373a694b32 Add missing die_if_null and flat_hash_map dependency to fix build error
PiperOrigin-RevId: 485938749
2022-11-03 12:14:16 -07:00
Anay Wadhera 4c2ba2e2b7 Add missing #include <array> to uuid.h to fix build error
PiperOrigin-RevId: 485932488
2022-11-03 11:51:06 -07:00
Anay Wadhera 2b3b810363 Remove visibility for non-existent dir
PiperOrigin-RevId: 485927350
2022-11-03 11:32:37 -07:00
Janusz Sobczak d268b077c9 Save scan callbacks before starting scan session.
This reduces flakiness. We can start receiving advertisements before StartScan() has finished.

PiperOrigin-RevId: 485904791
2022-11-03 10:13:02 -07:00
Anay Wadhera 74f7f5ec5c Fix visibility rules
PiperOrigin-RevId: 485897261
2022-11-03 09:44:47 -07:00
John Carroll 180b76cf84 Split file path processing off into it's own static class and implement validation.
PiperOrigin-RevId: 485890871
2022-11-03 09:18:34 -07:00
Anay Wadhera fa983e304a Allow tink to be fetched and compile presence in bazel builds.
PiperOrigin-RevId: 485876571
2022-11-03 08:15:15 -07:00
Hai Shang b056e6561a Add manager_app_id to scan and broadcast requests
PiperOrigin-RevId: 485745403
2022-11-02 18:14:27 -07:00
Anay Wadhera c4dc132f50 Add ScanManager class for bookkeeping BLE v2 scans
PiperOrigin-RevId: 485675999
2022-11-02 13:15:31 -07:00
hai007 4935a2ffdb Remove usage of deprecated WebRTC APIs
PiperOrigin-RevId: 485657180
2022-11-02 12:01:42 -07:00
Guogang Li 33c5f44ea1 Unified the exception handling in socket
PiperOrigin-RevId: 485457718
2022-11-01 17:15:51 -07:00
hai007 03b1c773fe WIFI Direct implementation (2)
Part 2: Implementation g3 medium/Environment/platform layer unit test

PiperOrigin-RevId: 485417100
2022-11-01 14:23:14 -07:00
hai007 5385dd4d6b Fix data race problem
PiperOrigin-RevId: 485414615
2022-11-01 14:13:24 -07:00
hai007 3d812bbf1c Add Timer implementation to Fast Pair Windows
PiperOrigin-RevId: 485215393
2022-10-31 20:28:53 -07:00