Commit Graph
1453 Commits
Author SHA1 Message Date
Nick Bourdakos 412548248c Update to c++17
PiperOrigin-RevId: 500830077
2023-01-09 16:02:02 -08:00
Guogang Li 350e76e690 Add flag to control connection timeout feature
PiperOrigin-RevId: 500822176
2023-01-09 15:26:59 -08:00
Qin Wang 0d58411896 Remove bluetooth_address from location/nearby/cpp/fastpair and third_party/nearby/fastpair
PiperOrigin-RevId: 500821521
2023-01-09 15:23:38 -08:00
Qin Wang e90fd77e47 Migrate bluetooth_address from location/nearby to third_party/nearby
PiperOrigin-RevId: 500784376
2023-01-09 12:49:52 -08:00
Eiden Kim 6ac239688f Rollback for cl/499340098 - remove DebugString() log
PiperOrigin-RevId: 500772955
2023-01-09 12:01:30 -08:00
Nick Bourdakos 73a4c4210d Internal change
PiperOrigin-RevId: 500765032
2023-01-09 11:28:50 -08:00
John Carroll a024710c58 Added an exported function to enable/disable ble v3 from the dart UI including updating the UI. This is expected to be used in test and does not affect interfaces that are unaware of it (IOW, it breaks nothing and NS will still use v2). Now we can just switch back and forth between v2 and v3 without recompilation, but, it needs to be done carefully, once it's toggled toggling back should only be done when not advertising, discovering, or connected/ing. At some point, I will work out the logic for disabling it, it's gonna take a little dart coding.
PiperOrigin-RevId: 500748215
2023-01-09 10:27:41 -08:00
hai007 e156d93f80 Add in an ultra_low_power
PiperOrigin-RevId: 500718740
2023-01-09 08:23:59 -08:00
Nick Bourdakos ceaf607264 Add test for ensuring no main symbols in SPM packages.
PiperOrigin-RevId: 500568078
2023-01-08 14:59:18 -08:00
Qin Wang d9b6897189 Remove observer_list.h from location/nearby/cpp/fastpair and third_party/nearby/fastpair
PiperOrigin-RevId: 500331550
2023-01-06 22:21:04 -08:00
hai007 22c6db1473 Adding the implementation of the windows controller and cross language interfaces. TODO: Unit test needs to be added after the prototyped finished (b/264707418)
PiperOrigin-RevId: 500274314
2023-01-06 22:19:46 -08:00
Qin Wang 05a6fbf20c Migrate observer_list.h from location/nearby to third_party/nearby
PiperOrigin-RevId: 500240685
2023-01-06 15:15:16 -08:00
hai007 4ac64743b9 Include background scan type and advertising mode
PiperOrigin-RevId: 500236240
2023-01-06 15:10:57 -08:00
Guogang Li 06713fe918 Log Bluetooth connection status change
PiperOrigin-RevId: 500228494
2023-01-06 15:09:34 -08:00
hai007 32ace29ccf Change wifi_hotspot_credential.h to wifi_credential.h
PiperOrigin-RevId: 500223301
2023-01-06 15:05:22 -08:00
hai007 3939ed4735 Automated visibility attribute cleanup.
PiperOrigin-RevId: 500193739
2023-01-06 15:01:48 -08:00
hai007 d347d0688b Create an interface to make API requests which pass Client ID, Released mode and Model ID to Nearby Devices.
PiperOrigin-RevId: 500053224
2023-01-06 03:03:31 -08:00
Suet-Fei Li 084f7ebd88 Remove location namespace in third_party/nearby.
PiperOrigin-RevId: 500023196
2023-01-06 02:53:57 -08:00
Anay Wadhera 7afea00649 Internal change
PiperOrigin-RevId: 499997190
2023-01-06 02:49:53 -08:00
hai007 f7f0a266fe WIFI Direct implementation (5)
Part 5: Add WifiDirect Server/Client Socket and Credential

PiperOrigin-RevId: 499401159
2023-01-03 23:10:15 -08:00
hai007 6edd1d11b0 Automated visibility attribute cleanup.
PiperOrigin-RevId: 499356727
2023-01-03 17:57:55 -08:00
Nick Bourdakos 4a8163ae20 Internal change.
PiperOrigin-RevId: 499340401
2023-01-03 16:22:56 -08:00
Eiden Kim 871e0d2e62 Add a debug log for payload processing error
PiperOrigin-RevId: 499340098
2023-01-03 16:19:37 -08:00
Guogang Li 2cee171493 Fixed random crashes during transfer
PiperOrigin-RevId: 499329220
2023-01-03 15:24:03 -08:00
hai007 7e82794d4d WIFI Direct implementation (4) - Fake Hotspot as WifiDirect GO
Part 4: WIFI Direct platform code for Windows

PiperOrigin-RevId: 498611340
2022-12-30 11:23:45 -08:00
hai007 0173ad3e1b Automated visibility attribute cleanup.
PiperOrigin-RevId: 498561519
2022-12-30 04:14:34 -08:00
hai007 1f2095a9be Add PreferencesUsage to SharingLog
PiperOrigin-RevId: 498434059
2022-12-29 12:48:37 -08:00
hai007 76a002f6e3 Migrate fastpair Unauth fetcher from location/nearby/cpp/fastpair/server_access to third_party/nearby/fastpair/repository
PiperOrigin-RevId: 498413189
2022-12-29 10:40:03 -08:00
hai007 f772614a46 Automated visibility attribute cleanup.
PiperOrigin-RevId: 498310370
2022-12-28 21:46:22 -08:00
hai007 499b2691f4 WIFI Direct implementation (3)
Part 3: BWU and client interface part

PiperOrigin-RevId: 498218241
2022-12-28 11:22:48 -08:00
hai007 88e350e5d2 Integrate network related part which both nearby sharing and fastpair are adopted.
Details can be seen in the `Integrate reusable internal components into third_party` part of `server access design doc` (go/fast_pair_server_data_access)

PiperOrigin-RevId: 498208011
2022-12-28 10:28:32 -08:00
hai007 6ef8a4c00a 1. Log advertising power level (contains Low, High, Balance power levels).
2. Log discovering power level (only contained Low and unspecified power levels)

PiperOrigin-RevId: 497814014
2022-12-26 09:11:27 -08:00
hai007 e01b1ac779 [Analytics] logging for displaying phone consent banner.
PiperOrigin-RevId: 497632556
2022-12-25 03:47:01 -08:00
hai007 cacc7f83d1 Initial Check-in for FastPair Adapter. Details can be seen in go/fast_pair_ux_platform_c++_app_flow. ServerAccess is included for implementing the interface flow via hardcoded model ID because of the non-implemented callback in scanning.
PiperOrigin-RevId: 497281054
2022-12-22 19:10:15 -08:00
hai007 86f87ef88b [Analytics] logging for displaying Privacy notification.
PiperOrigin-RevId: 497273433
2022-12-22 18:07:38 -08:00
Janusz Sobczak e64f9859e1 Replace BleOperationStatus with absl::Status
PiperOrigin-RevId: 497191477
2022-12-22 10:20:15 -08:00
Janusz Sobczak 0d14b885ea Use absl::Status instead of custom status
PiperOrigin-RevId: 497054898
2022-12-21 19:11:55 -08:00
Nick Bourdakos 07998a05ed Change "ios" package name to "apple" since its usage isn't limited to iOS
PiperOrigin-RevId: 497046967
2022-12-21 18:09:42 -08:00
jgsobczak 504ab8aa82 Merge pull request #1160 from google/embedded
Merge embedded branch
2022-12-21 18:04:35 -08:00
jgsobczak d207756bd0 Update release_notes.md 2022-12-21 18:00:54 -08:00
hai007 f56e50f885 Automated visibility attribute cleanup.
PiperOrigin-RevId: 496854373
2022-12-21 00:54:13 -08:00
hai007 c3c9a7ffc9 Extend endpoint disconnection timeout.
This extends the endpoint disconnection timeout to be slightly longer than the WebRTC connection attempt timeout. This allows an in-progress bandwidth upgrade to resolve before we clean up the endpoint.

Failing to properly clean up the bandwidth upgrade can lead to a delay when shutting down Nearby Connections and can crash the process instead of allowing a clean shutdown.

PiperOrigin-RevId: 496750001
2022-12-20 14:18:59 -08:00
Janusz Sobczak 6d68c6c976 Add third_party/mbedtls 2022-12-20 11:42:49 -08:00
Janusz Sobczak f643f7a466 Update embedded SDK
New features:
* Smart Audio Source Switching.
* Fast Pair for BLE-only devices.
* Two byte salt size for improved security.

Other changes:
* Added optional encryption modules based on mbedtls.
* Fixed build issues.
* More verbose and readable logs.
2022-12-20 10:50:13 -08:00
jgsobczak 3dbf10eb66 Merge pull request #1153 from google/master
Merge main
2022-12-20 10:31:11 -08:00
Nick Bourdakos 6dbb9b10fd Only depend on UIKit for iOS builds
PiperOrigin-RevId: 496140561
2022-12-17 17:30:57 -08:00
hai007 7855176718 Fix a typo in base-no-coroutines.patch and re-apply the patch.
PiperOrigin-RevId: 495888291
2022-12-16 09:10:21 -08:00
Nick Bourdakos 4a8ff331a7 Switch platform WebRTC copts to defines so dependencies of it don't need to also specify the flag.
PiperOrigin-RevId: 495798557
2022-12-16 00:07:16 -08:00
Janusz Sobczak 3247eed795 Filter credentials based on identity type.
Filter the credentials in G3 implementation of CredentialStorage based on IdentityType.
Previously, IdentityType was ignored in GetPrivateCredentials() and GetPublicCredentials().

PiperOrigin-RevId: 495729148
2022-12-15 16:42:31 -08:00
Qin Wang fe26466278 Migrate fast pair from location/nearby/cpp/fastpair to third_party/nearby/fastpair
PiperOrigin-RevId: 495726740
2022-12-15 16:31:22 -08:00