Juliet Levesque
aee56f0729
[Nearby Connections] Add CancellationFlag::Uncancel
...
Add CancellationFlag::Uncancel and on calls to ClientProxy::AddCancellationFlag, if a flag is already in the map, uncancel it. This will address the case when users use NC to share/receive a file, then cancel in the middle because the wrong file was selected, and then re-do right after. Without this change, the second share/receive process will be seen as cancelled with cancellation flags enabled. However this change will uncancel the flag which is added in RequestConnection and OnConnectionInitiated in the NS flow.
PiperOrigin-RevId: 540633470
2023-06-15 11:07:44 -07:00
Eiden Kim
a547d47274
Add NewSendDesktopNotification to analytics recorder
...
PiperOrigin-RevId: 540626567
2023-06-15 10:44:58 -07:00
hai007
ebe02e1174
Allow auto-resume the payload transfer when disconnection
...
PiperOrigin-RevId: 540438831
2023-06-14 18:35:04 -07:00
Guogang Li
0c1d5e7e23
Applied flags to Wi-Fi Hotspot parameters
...
PiperOrigin-RevId: 540432082
2023-06-14 18:00:52 -07:00
Anay Wadhera
a25ef756e7
Isolate ble_v2/wifi_lan on incoming connection logic
...
PiperOrigin-RevId: 540420565
2023-06-14 17:02:25 -07:00
hai007
87fd2f130a
Remove redundant design of fast pair wrapper.
...
PiperOrigin-RevId: 540410011
2023-06-14 16:18:48 -07:00
Anay Wadhera
cf9170ba16
Isolate Ble accept handler logic
...
PiperOrigin-RevId: 540401997
2023-06-14 15:47:43 -07:00
Anay Wadhera
169087dc96
convert bluetooth connection handler to a front binder
...
PiperOrigin-RevId: 540355517
2023-06-14 13:00:33 -07:00
hai007
efb0fd9a0a
Update Tachyon protos to allow Messaging APIs to be callable.
...
PiperOrigin-RevId: 540336655
2023-06-14 11:49:13 -07:00
Guogang Li
f05bf7fc40
Fixed transfer sync issue in payload callback
...
PiperOrigin-RevId: 540333269
2023-06-14 11:37:45 -07:00
Anay Wadhera
cf8afb73aa
Use alphanumeric characters for PresenceDevice endpoint id generation
...
PiperOrigin-RevId: 540321021
2023-06-14 10:59:49 -07:00
Guogang Li
2c90a61fca
Fixed crash when flag update in peripheral tracker
...
PiperOrigin-RevId: 540294615
2023-06-14 09:35:47 -07:00
Guogang Li
5ae556499b
Fixed the deadlock issue in hotspot
...
PiperOrigin-RevId: 540283852
2023-06-14 08:52:59 -07:00
Janusz Sobczak
c4139c83b0
Use RobustGattClient
...
PiperOrigin-RevId: 540060033
2023-06-13 13:42:19 -07:00
Qin Wang
e20fb4f75d
Add screen locked listener for fast pair windows
...
PiperOrigin-RevId: 540038338
2023-06-13 12:26:20 -07:00
hai007
00ab9fef62
Load the AccountManager in the WebRTC code.
...
PiperOrigin-RevId: 540036925
2023-06-13 12:20:28 -07:00
Anay Wadhera
e0674d435e
Implement signing/verification of PresenceAuthenticationFrames
...
PiperOrigin-RevId: 540029386
2023-06-13 11:53:15 -07:00
hai007
5efbbe4a40
Connect UI related key services in mediator to flutter app. The whole fast pair libraries are in C++ language while flutter app is in dart language. That is, the purpose of adapter is connecting dart (flutter app) and c++ (Fast Pair libraries).
...
PiperOrigin-RevId: 540013256
2023-06-13 10:58:48 -07:00
hai007
1e34f097aa
Add test case to verify Connection can fall back to BT if WIFI_LAN fails
...
PiperOrigin-RevId: 539877670
2023-06-13 00:32:07 -07:00
Janusz Sobczak
ca60afa007
Add robust gatt client
...
PiperOrigin-RevId: 539817203
2023-06-12 18:29:59 -07:00
hai007
5aeceb2034
Update path to LDT dependency
...
PiperOrigin-RevId: 539811031
2023-06-12 17:58:12 -07:00
Janusz Sobczak
4f73e87a6f
Improve device lost handling
...
Handle the error case when the platform calls device_lost_cb without calling device_discovered_cb first.
PiperOrigin-RevId: 539791976
2023-06-12 16:28:01 -07:00
Juliet Levesque
6f69e97421
[Nearby Connections] Stop 3 AttemptsToConnect over BluetoothClassic for CancellationFlag
...
CancellationFlags will be used to prevent crashes during the shutdown of Nearby Connections from pending tasks taking too long during the shutdown period. By using CancellationFlags, we can prevent the retries occuring during the Shutdown by short-circuiting an in flight AttemptToConnect, and checking for Cancellation before retries.
Because BluetoothClassic does not use futures, the short circuit only requires a check after ConnectToService, and returning an empty
socket.
PiperOrigin-RevId: 539755631
2023-06-12 14:05:36 -07:00
Juliet Levesque
240159e872
[Nearby Connections] Stop 3 AttemptsToConnect over WebRTC for CancellationFlag
...
CancellationFlags will be used to prevent crashes during the shutdown of Nearby Connections from pending tasks taking too long during the shutdown period. WebRTC using 3 x 10s retries to connect, which means we are potentially waiting for 30 seconds of retries to execute during shutdown (which is longer than the 10s duration alloted for Core shutdown).
By using CancellationFlags, we can prevent the retries occuring during the Shutdown by short-circuiting an in flight AttemptToConnect, and checking for Cancellation before retries.
PiperOrigin-RevId: 539690403
2023-06-12 10:16:36 -07:00
hai007
39e54e8a0c
Automated visibility attribute cleanup.
...
PiperOrigin-RevId: 539527095
2023-06-11 20:09:41 -07:00
hai007
0dc5f85627
Add proto for authenticating Nearby Presence identities.
...
PiperOrigin-RevId: 539222890
2023-06-09 18:21:45 -07:00
Juliet Levesque
3a49499de4
[Nearby Presence] Refactor PresenceService to use Impl model
...
Refactors PresenceService to have a pure virtual base class and an
implemnetation.
PiperOrigin-RevId: 539125804
2023-06-09 10:59:40 -07:00
hai007
589c126725
Create dart proto for transferring the data from C++ to flutter app.
...
- callback: transfer device C++ proto to dart proto
- device: transfer metadata that get from the observer to dart proto
- enum: transfer Discovery Action class to dart proto
PiperOrigin-RevId: 538935072
2023-06-08 17:36:11 -07:00
Janusz Sobczak
0f59872587
Reset ble peripheral with gatt server
...
The ble_peripheral is invalid when gatt server is unregistered.
PiperOrigin-RevId: 538932998
2023-06-08 17:24:06 -07:00
Anay Wadhera
1c455e3488
introduce authentication transport function into DeviceProvider
...
PiperOrigin-RevId: 538909999
2023-06-08 15:41:54 -07:00
Janusz Sobczak
472fba64ae
Add const in ReadCharacteristic prototype
...
PiperOrigin-RevId: 538891905
2023-06-08 14:30:03 -07:00
Guogang Li
ae900f0baf
Added flag to enable GATT on non-extended device
...
PiperOrigin-RevId: 538851144
2023-06-08 11:56:24 -07:00
hai007
742f57423c
Enable WIFI_DIRECT in NC connection layer
...
PiperOrigin-RevId: 538827162
2023-06-08 10:36:32 -07:00
Anay Wadhera
0ab31f6312
Implement device loss alarms
...
PiperOrigin-RevId: 538822094
2023-06-08 10:19:44 -07:00
Guogang Li
dbd42b0de3
Handle GATT query in separate thread
...
PiperOrigin-RevId: 538819295
2023-06-08 10:10:00 -07:00
Joy Babafemi
46c9d17f95
Add BUILD files for FPP Rust crates.
...
PiperOrigin-RevId: 538815527
2023-06-08 09:59:01 -07:00
Guogang Li
df31f7810c
Added flag to control GATT enable/disable
...
PiperOrigin-RevId: 538631107
2023-06-07 17:05:16 -07:00
Anthony Rueda
72b249474d
Extend local and shared credential protos to included duplicated metadata_encryption_key and metadata_encryption_key_tag for all protocol version
...
PiperOrigin-RevId: 538612138
2023-06-07 15:43:30 -07:00
Chun Zhang
e101795cac
Add Fast Pair Switches.
...
PiperOrigin-RevId: 538605609
2023-06-07 15:17:00 -07:00
hai007
4095b7978d
Add Mediator Factory to avoid creating variables other than mediator in further adapter. The main purpose of the adapter is connecting dart (flutter app) and c++ (Fast Pair libraries).
...
PiperOrigin-RevId: 538604362
2023-06-07 15:12:21 -07:00
Chun Zhang
2027fed32f
Add Fast Pair Preferences.
...
PiperOrigin-RevId: 538597935
2023-06-07 14:48:06 -07:00
Qin Wang
c786b07fcf
Add pair_broker to FastPairMediator/FastPairSeeker
...
PiperOrigin-RevId: 538592398
2023-06-07 14:27:29 -07:00
suetfei
f5e67ed034
Merge pull request #1783 from suetfei/validate_rust
...
add rust validate
2023-06-07 14:09:19 -07:00
Suet-fei Li
4616bd60b5
.
2023-06-07 20:40:42 +00:00
suetfei
326495bc89
Merge branch 'google:main' into validate_rust
2023-06-07 12:27:23 -07:00
Suet-fei Li
03733f21f9
.
2023-06-07 19:16:08 +00:00
hai007
49fb175f34
Add instance type to metadata to differentiate personal or managed profiles.
...
PiperOrigin-RevId: 538524943
2023-06-07 19:16:08 +00:00
Anthony Rueda
f1a22c4366
[Presence] Data Structure modification for NP Multiple Account Phase One Implementation: b/285573323
...
PiperOrigin-RevId: 538508248
2023-06-07 19:16:08 +00:00
Nick Bourdakos
8fc16247d3
Fix potential deadlock by running timer callback in another thread
...
PiperOrigin-RevId: 538469916
2023-06-07 19:16:08 +00:00
Guogang Li
ee262121c3
Added timeout to discover GATT and BT service
...
PiperOrigin-RevId: 538352588
2023-06-07 19:16:07 +00:00