Commit Graph
2101 Commits
Author SHA1 Message Date
Lucas Silva Shepard 02e9cda698 [fp-rs] Comment cleanup. 2023-08-18 19:56:55 -07:00
Lucas Silva Shepard 5f255f1ff5 [fp-rs] Fixing build warnings by removing or annotating unused imports. 2023-08-18 18:11:16 -07:00
Lucas Silva Shepard 90812bfe73 [fp-rs] Making some values const rather than static or inlined. 2023-08-18 17:49:34 -07:00
Lucas Silva Shepard d89d1af459 [fp-rs] Added custom FP error type to Rust code. 2023-08-18 17:49:31 -07:00
hai007 71c298f270 [Nearby Sharing] log connection lost for connection/transfer phase
PiperOrigin-RevId: 558083193
2023-08-18 02:11:19 -07:00
Janusz Sobczak e38ce96964 Replace AcceptedConnectionCallback structs with absl::AnyInvocable
PiperOrigin-RevId: 557949490
2023-08-17 15:14:25 -07:00
Janusz Sobczak 408344244f Set thread status
PiperOrigin-RevId: 557942242
2023-08-17 14:47:35 -07:00
Nick Bourdakos 7933842c29 Add BLE Medium
PiperOrigin-RevId: 557933813
2023-08-17 14:17:28 -07:00
Nick Bourdakos 07a94a950d Add Objective-C++ GATT client wrapper
PiperOrigin-RevId: 557925490
2023-08-17 13:48:48 -07:00
Nick Bourdakos 4aa52b45f9 Add GATT client
PiperOrigin-RevId: 557919250
2023-08-17 13:27:39 -07:00
hai007 78dd1bab2c [Nearby Sharing] 1. log as CONNECTION_STATUS_CANCELLATION status code if sender cancels receiver after connection setup.
2. add a new status(TIMED_OUT_READ_FRAME) when read frame time out.

PiperOrigin-RevId: 557666045
2023-08-16 18:46:44 -07:00
Janusz Sobczak 55194622a7 Migrate to AnyInvocable
PiperOrigin-RevId: 557660146
2023-08-16 18:13:11 -07:00
hai007 73635815ab [Analytics] Filter unparsed endpoint id.
PiperOrigin-RevId: 557503948
2023-08-16 09:04:38 -07:00
Copybara-Service 032a3d6bef Merge pull request #2070 from TheShepord:fpwinrs_tests
PiperOrigin-RevId: 557357785
2023-08-15 22:42:32 -07:00
Janusz Sobczak ec139d1e8b Replace std::function with AnyInvocable
Also refactored the callbacks to make sure that we call either on_success or on_failure callback, and only once.

PiperOrigin-RevId: 557299838
2023-08-15 17:20:30 -07:00
Lucas Silva Shepard fb95e26bf5 [fp-rs] Added FP Advertisement unit tests in Rust. 2023-08-15 16:44:48 -07:00
Lucas Silva Shepard 169c04c430 [fp-rs] Split fetcher.rs into directory module, added mock. 2023-08-15 16:44:46 -07:00
Lucas Silva Shepard b1fa76f560 [fp-rs] Wrote unit tests for Fast Pair Decoder in Rust. 2023-08-15 16:44:04 -07:00
Lucas Silva Shepard 748bf9fb18 [fp-rs] Added unit tests to cover common portion of Rust Bluetooth library. 2023-08-15 16:44:04 -07:00
Copybara-Service 59add37c96 Merge pull request #2027 from TheShepord:fpwinrs_flutter
PiperOrigin-RevId: 557279903
2023-08-15 16:03:40 -07:00
Janusz Sobczak 2c55c0cdbd Refactor Pipe implementation
* Remove Pipe classes
* Rename BasePipe to Pipe
* Hide Pipe class in anonymous namespace in pipe.cc
* Add CreatePipe static method
* Replace Payload(std::function<InputStream&()>) with Payload(std::unique_ptr<InputStream>)
* Find&Replace Pipe usages

PiperOrigin-RevId: 557276980
2023-08-15 15:53:58 -07:00
Lucas Silva Shepard bdc109324b [fp-rs] Fixing Presubmit Lint warnings for windows/ C++ files. 2023-08-15 15:24:33 -07:00
Janusz Sobczak 20db5da721 Extract SocketBase
Test only change.

Extracts a common base class for BluetoothSocket, BleSocket, BleV2Socket, WifiDirectSocket, WifiHotspotSocket and  WifiLanSocket to reduce code duplication.

PiperOrigin-RevId: 557267937
2023-08-15 15:22:06 -07:00
Lucas Silva Shepard 41be4cca57 [fp-rs] Adding copyright notice under windows/ and bindgen files. 2023-08-15 14:36:39 -07:00
Guogang Li c8230a7ec3 Optimize application startup time
PiperOrigin-RevId: 557248394
2023-08-15 14:19:11 -07:00
Joy Babafemi bf78f30792 Modify UwbControleeCapabilities to support multi-chip environment.
PiperOrigin-RevId: 557244065
2023-08-15 14:06:06 -07:00
Lucas Silva Shepard f2326f107e [fp-rs] Removing unused macOS, iOS, Android, web and Linux builds. These can be re-added in the future as needed. 2023-08-15 14:00:51 -07:00
hai007 eb4a37084b Support dynamic upgrade when the device is connected to Wifi AP after initial connection.
PiperOrigin-RevId: 556959762
2023-08-14 17:25:59 -07:00
Lucas Silva Shepard 3379d0ca3e [fp-rs] Providing second device JSON to test multi-device setup. 2023-08-14 13:36:24 -07:00
Lucas Silva Shepard b7328ddd2e [fp-rs] Adding Github actions buildrule for Rust Fast Pair and Bluetooth. 2023-08-14 13:36:21 -07:00
Lucas Silva Shepard a683ed6789 [fp-rs] Added device dismissing functionality. The Seeker will ignore a dismissed device's advertisements until a 10s timeout expires. 2023-08-14 13:33:46 -07:00
Lucas Silva Shepard 57373a80c3 [fp-rs] Displaying device image retrieved from model ID. 2023-08-14 13:33:44 -07:00
Lucas Silva Shepard 329e1b298e [fp-rs] Retrieving device information from model ID by parsing local file with serde. 2023-08-14 13:32:25 -07:00
Lucas Silva Shepard a57b55ad98 [fp-rs] Now using model ID instead of BLE address for keeping track of unique devices. 2023-08-14 13:32:22 -07:00
Guogang Li fabeff0d57 Added APIs to control device sleep
These APIs can be used to prevent device into sleep when sending supper big files.

PiperOrigin-RevId: 556809236
2023-08-14 09:05:11 -07:00
Lucas Silva Shepard f8fb8d4b52 [fp-rs] Flutter UI now only displays the closest discovered device. 2023-08-13 16:52:28 -07:00
Lucas Silva Shepard 0505a23b3f [fp-rs] Added bluetooth pairing button, result displayed in alert dialog. 2023-08-13 16:52:28 -07:00
Lucas Silva Shepard bf05ab5db4 [fp-rs] Invoking Rust code from Dart, retrieving stream of incoming bluetooth advertisements. 2023-08-13 16:52:26 -07:00
Lucas Silva Shepard 2c8809c1e1 [fp-rs] Converted bluetooth module into standalone crate, with fastpair UI provided as an example. 2023-08-13 16:51:16 -07:00
Lucas Silva Shepard 6074e1beba [fp-rs] Set up basic demo for calling Rust from Flutter 2023-08-13 16:51:13 -07:00
Anay Wadhera 06942caeb3 Merge pull request #2064 from anayw2001/main
Update compiled_proto
2023-08-13 10:37:49 -04:00
Anay Wadhera 021fe80f6f Update compiled_proto 2023-08-13 10:04:02 -04:00
Janusz Sobczak 8ccb9fcfec Replace std::function with AnyInvocable
PiperOrigin-RevId: 556090653
2023-08-11 14:27:08 -07:00
Joy Babafemi 85bf78ef70 Add sensor fusion implementation to presence C++
PiperOrigin-RevId: 555676715
2023-08-10 15:24:29 -07:00
Janusz Sobczak cce7cf59b9 Replace std::function with AnyInvocable
PiperOrigin-RevId: 555650115
2023-08-10 14:17:31 -07:00
Suet-Fei Li 5589166b3b Update copyright year.
PiperOrigin-RevId: 555341312
2023-08-09 19:14:36 -07:00
Janusz Sobczak e703b21cde Fix connections_test
PiperOrigin-RevId: 555282324
2023-08-09 19:13:52 -07:00
Janusz Sobczak 5393daf9f1 Merge logging and types build targets
Both "types" and "logging" build targets included "logging.h"
Merging them together avoids circular dependencies.

PiperOrigin-RevId: 555262816
2023-08-09 19:13:12 -07:00
hai007 d19f21ed71 [Sharing] Log Decrypt Certificate Failure Status.
PiperOrigin-RevId: 555186404
2023-08-09 19:12:30 -07:00
Guogang Li 5b155f9a4a Added data section filter in BLE scanning
PiperOrigin-RevId: 553660098
2023-08-09 19:11:48 -07:00