Nick Bourdakos
9d2cfc19c9
Add Objective-C++ GATT server wrapper
...
PiperOrigin-RevId: 552636264
2023-07-31 17:20:14 -07:00
Richard Levasseur
0d58ead61c
Internal change
...
PiperOrigin-RevId: 552574409
2023-07-31 13:22:20 -07:00
hai007
4a100435f7
Apply result code to BLE L2CAP mediums
...
PiperOrigin-RevId: 552347968
2023-07-30 20:31:54 -07:00
Qin Wang
e36b26184a
Retroactive pairing detector: check login status and if device has already been saved to the user's account
...
PiperOrigin-RevId: 551985769
2023-07-28 17:04:46 -07:00
Janusz Sobczak
749d528206
Add FinishRetroactivePairing
...
Add the second step of retroactive pairing.
The client should:
* start retroactive pairing
* get user consent
* finish retroactive pairing
PiperOrigin-RevId: 551934024
2023-07-28 13:20:56 -07:00
Nick Bourdakos
c1d74120a0
Add initial BLEv2 Bluetooth Adapter
...
PiperOrigin-RevId: 551922301
2023-07-28 12:32:27 -07:00
Janusz Sobczak
5acf702660
Use endpoint lost alarms on PCP handler thread only
...
endpoint_lost_by_medium_alarms_ should be accessed only
on PCP handler thread to avoid race conditions.
Added thread annotations to protect against accidental use on a different thread.
Test only change.
PiperOrigin-RevId: 551919704
2023-07-28 12:21:32 -07:00
Guogang Li
6d886e3fc8
Fixed some issues in analytics data
...
PiperOrigin-RevId: 551900985
2023-07-28 11:13:07 -07:00
Guogang Li
eb5f8aed10
Fixed WI-FI hotspot stuck issue during close
...
PiperOrigin-RevId: 551703821
2023-07-27 18:57:27 -07:00
Nick Bourdakos
0a13ce51f4
Make GNCBLEGATTServer thread safe
...
Fixes an issue where if a characteristic is created and then updated with a non-nil value, and a new characteristic under the same service is added, then when the service is re-added the old characteristic will be permanently cached and the dynamic reads will stop working.
This also eliminates the issue when characteristics are created concurrently, since service additions are batched, if the service addition fails then only one of the characteristics will know that it failed to get added.
This change also introduces the nuance of "success" does not mean the CoreBluetooth method has completed successfully, but instead means that the intended state has been recorded and the class will do its best to maintain that state. For example, a successful "start advertising" call means that we have the advertisement cached and we will start advertising as soon as we can (like BT transitions from off to on) and will do our best to keep advertising (like BT transitions from on to off to on again).
PiperOrigin-RevId: 551660634
2023-07-27 15:40:30 -07:00
Janusz Sobczak
974d4b357c
Skip SDP check for FP rfcomm connection on Windows
...
The SDP checks fails but rfcomm connection works.
Skipping the SDP check does not seem to have any ill side effects.
PiperOrigin-RevId: 551370531
2023-07-26 18:15:44 -07:00
Janusz Sobczak
f3bbb8caeb
Fix race condition in ThroughputRecorder
...
PiperOrigin-RevId: 551361687
2023-07-26 17:28:45 -07:00
Janusz Sobczak
2c1ed158bc
Add StopDiscovery call
...
Test only change.
PiperOrigin-RevId: 551358525
2023-07-26 17:14:08 -07:00
Janusz Sobczak
35acd3d849
Destroy ThroughputRecorder when PendingPayload is destroyed
...
This fixes a race condition where a Tp Recorder was used after being destroyed.
PiperOrigin-RevId: 551350023
2023-07-26 16:36:25 -07:00
Janusz Sobczak
cae06bd15d
Close executors in BasePcpHandler::Shutdown
...
The client can call DisconnectFromEndpointManager() explicitly before
BasePcpHandler is shut down. In this case, th executors were not terminated
inside BasePcpHandler::Shutdown()
This caused use-after-free errors in BasePcpHandlerTest.IoError_RequestConnectionFails
PiperOrigin-RevId: 551340708
2023-07-26 16:00:08 -07:00
Nick Bourdakos
a42cdc7346
Move Server Socket and its dependencies to their own files
...
PiperOrigin-RevId: 551330682
2023-07-26 15:21:46 -07:00
Qin Wang
2145ccce69
Fix flaky test:scanner_broker_impl_test
...
PiperOrigin-RevId: 551329018
2023-07-26 15:16:58 -07:00
Qin Wang
040ed31341
Integrate Dart UX with windows_admin_plugin
...
PiperOrigin-RevId: 551316220
2023-07-26 14:30:04 -07:00
Thomas Van Lenten
7e1f286d93
Don't compile utils.mm twice.
...
PiperOrigin-RevId: 551315072
2023-07-26 14:25:24 -07:00
Hai Shang
0e7a8181b0
internal clean up
...
PiperOrigin-RevId: 551292810
2023-07-26 13:06:09 -07:00
Hai Shang
562483cb44
update sensor fusion api to favor std::optional over absl::optional
...
PiperOrigin-RevId: 551257674
2023-07-26 11:02:06 -07:00
Anay Wadhera
4958a32c35
make ResultCallback a bare function type and convert to AnyInvocable
...
PiperOrigin-RevId: 551081080
2023-07-25 21:07:48 -07:00
Nick Bourdakos
de3f638129
Extract BLE code into its own target
...
PiperOrigin-RevId: 551074383
2023-07-25 20:23:59 -07:00
Anay Wadhera
8cfbc884d7
introduce v3 discovery options
...
PiperOrigin-RevId: 551053578
2023-07-25 18:15:16 -07:00
Anay Wadhera
9c6b60df3f
introduce v3 advertising options
...
PiperOrigin-RevId: 551051166
2023-07-25 18:05:08 -07:00
Janusz Sobczak
c9d1b69d41
Set expected latch before sending messages
...
This closes a time window where the sent message was received before the latch was
configured.
PiperOrigin-RevId: 551050923
2023-07-25 18:01:49 -07:00
Qin Wang
bccdf6543e
Checks if a device is already saved before writing accountkey
...
PiperOrigin-RevId: 551045458
2023-07-25 17:33:45 -07:00
Janusz Sobczak
c6d96b5971
Fix minor defects
...
Fixes use-after-free and NPE errors.
PiperOrigin-RevId: 551042892
2023-07-25 17:20:31 -07:00
Qin Wang
3456c419c8
Check account log in status before attempt to write account key
...
PiperOrigin-RevId: 551032914
2023-07-25 16:39:02 -07:00
Qin Wang
2bdafe926c
Add UX to show pairing result
...
PiperOrigin-RevId: 551027791
2023-07-25 16:18:35 -07:00
Janusz Sobczak
dfdb5a6405
Fix crash in BleV2MediumTest::StartScanningTmp
...
This fixes flakiness in the tests.
PiperOrigin-RevId: 551009093
2023-07-25 15:09:47 -07:00
Janusz Sobczak
ae69b8ff4e
Protect PendingPayload from use-after-free errors.
...
Protects against race conditions where a PendingPayload is destroyed when
another thread is still accessing it.
PiperOrigin-RevId: 550990038
2023-07-25 14:04:11 -07:00
Joy Babafemi
5b605b2426
Refactor std::function usage to absl::AnyInvocable for ZoneTransitionCallback
...
PiperOrigin-RevId: 550959839
2023-07-25 12:16:20 -07:00
Guogang Li
99c5e19f3f
internal update
...
PiperOrigin-RevId: 550729573
2023-07-24 18:15:44 -07:00
Anthony Rueda
37b9119615
[Presence] Extend shared credential proto with int64 secret id field
...
PiperOrigin-RevId: 550661806
2023-07-24 13:48:54 -07:00
hai007
15d24c08a5
Add sequence number for keep alive packet
...
PiperOrigin-RevId: 550613263
2023-07-24 10:59:52 -07:00
Janusz Sobczak
225eab6505
Fix race condition in BluetoothSocket
...
The change is for tests only.
PiperOrigin-RevId: 550023162
2023-07-21 12:42:59 -07:00
Janusz Sobczak
2c08cfc9e8
Close BaseEndpointChannel once
...
Closing the bluetoth socket and streams more than once is wasteful and error prone.
PiperOrigin-RevId: 549964135
2023-07-21 09:12:05 -07:00
hai007
e0b9ad2c2d
Make sharing_enums_cc_proto publicly visible
...
PiperOrigin-RevId: 549761350
2023-07-20 15:42:30 -07:00
Anay Wadhera
33faa84aca
add shared credential to PresenceDevice.
...
This field stores the shared credential that this PresenceDevice was decrypted with (if applicable).
PiperOrigin-RevId: 549720833
2023-07-20 13:20:21 -07:00
Qin Wang
be688441aa
Implemet save_device UX for fast pair windwos
...
PiperOrigin-RevId: 549693338
2023-07-20 11:42:21 -07:00
Qin Wang
0cd8aaab25
Write account association to footprints
...
PiperOrigin-RevId: 549693215
2023-07-20 11:39:06 -07:00
Janusz Sobczak
2e1ed2b465
Fix wifi test flakiness
...
PiperOrigin-RevId: 549683201
2023-07-20 11:06:44 -07:00
Crisrael Lucero
0e44ed626d
Refactor crypto/ directory into crypto_cros/ and crypto/
...
PiperOrigin-RevId: 549467911
2023-07-19 17:12:52 -07:00
Guogang Li
e5fdddec6d
internal update
...
PiperOrigin-RevId: 549461047
2023-07-19 16:43:10 -07:00
Anay Wadhera
d6d5310389
Weave port [8/n]: Introduce server socket implementation
...
PiperOrigin-RevId: 549446494
2023-07-19 15:43:57 -07:00
Anay Wadhera
8450f2b607
add ConnectionsDevice/PresenceDevice to offline frames builders.
...
PiperOrigin-RevId: 549380626
2023-07-19 11:46:30 -07:00
Guogang Li
c6566b00c7
internal update
...
PiperOrigin-RevId: 549351164
2023-07-19 10:15:19 -07:00
hai007
be5c5b77bd
Fix typo in parsing failed event type.
...
PiperOrigin-RevId: 549344443
2023-07-19 09:50:29 -07:00
Janusz Sobczak
6d5eab04d3
Work around race condition during encryption setup
...
The sending party may finish setting up encryption and start
sending encrypted packets while the receiving party is still configuring
encryption and expecting unencrypted packets
PiperOrigin-RevId: 549267838
2023-07-19 03:47:10 -07:00