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
Janusz Sobczak
f18ab07873
Fix FastPairScannerImplTest
...
The scanner must not be destroyed while there are still scanner's tasks running on the background executor.
PiperOrigin-RevId: 553621813
2023-08-09 19:11:06 -07:00
Qin Wang
e8c0ce3d89
Deprecate Fast Pair Mediator
...
PiperOrigin-RevId: 553538010
2023-08-09 19:10:24 -07:00
Guogang Li
b798798f5f
Log medium type for discovered endpoint
...
PiperOrigin-RevId: 553510472
2023-08-09 19:09:42 -07:00
hai007
005f734d53
[Sharing] add metadata for FAST_SHARE_SERVER_RESPONSE event.
...
PiperOrigin-RevId: 553419234
2023-08-09 19:08:58 -07:00
hai007
903c8e07be
[Sharing Analytics]Correct AttachmentTransmissionStatus from FAILED_NULL_CONNECTION to FAILED_NULL_CONNECTION_DISCONNECTED if the transfer failure is caused by Wifi/Bluetooth setting off.
...
PiperOrigin-RevId: 553396704
2023-08-09 19:08:15 -07:00
hai007
859dd1d1bd
Add definition to Parsing Failed Type
...
PiperOrigin-RevId: 553382949
2023-08-09 19:07:35 -07:00
Guogang Li
0282ba7700
Changed the hotspot connection interval
...
PiperOrigin-RevId: 553319367
2023-08-09 19:06:53 -07:00
hai007
3a88f4e217
record connection layer status code
...
PiperOrigin-RevId: 553302833
2023-08-09 19:06:13 -07:00
hai007
9c6a11eff1
[NP] Remove metadata creation from FakePresenceClient
...
To make the nearby_presence_unittests.cc more percise, the test should create the metadata and pass it to the fake client instead of the client creating it. This change also allows for the unittests to use RunLoop instead of RunUntilIdeal in multiple places.
Bug: b/285015071
PiperOrigin-RevId: 553297388
2023-08-09 19:05:34 -07:00
Qin Wang
886ac8a2b9
Remove device from local repository when user forget a device
...
PiperOrigin-RevId: 553269983
2023-08-09 19:04:52 -07:00
hai007
b6459434a2
Update ranging interval from update rates.
...
PiperOrigin-RevId: 553250662
2023-08-10 00:37:35 +00:00
Lucas Silva Shepard
80a3b508fa
[fp-rs] Providing constructs for generating Rust-side bridge code
2023-08-02 12:25:49 -07:00
Lucas Silva Shepard
d7aedea815
[fp-rs] Initial Rust dummy commit for Flutter UI demo
2023-08-02 12:25:48 -07:00