Nick Bourdakos
965cc0ecbc
Add implementation for async BLE start scan/advertise
...
PiperOrigin-RevId: 559863656
2023-08-24 14:07:46 -07:00
Nick Bourdakos
91fb4a9a3e
Add stop advertising and stop scanning BLE implementation for Apple platforms
...
PiperOrigin-RevId: 559838443
2023-08-24 12:45:23 -07:00
Nick Bourdakos
387393f1d6
Delete old BLE code for Apple platforms
...
PiperOrigin-RevId: 559515626
2023-08-23 12:54:15 -07:00
Nick Bourdakos
034865481a
Sanitize incoming file names
...
PiperOrigin-RevId: 559175545
2023-08-22 11:37:02 -07:00
Anthony Rueda
96750db706
[Presence] Renamemetadata_encryption_key_tag fields in shared credential proto to differentiate between V0/V1 unsigned adv key tags
...
PiperOrigin-RevId: 558919544
2023-08-21 15:39:35 -07:00
Guogang Li
71b5c1d591
Put some logs in session manager
...
PiperOrigin-RevId: 558896551
2023-08-21 14:12:01 -07:00
Nick Bourdakos
9998093366
Add Objective-C++ BLE Medium wrapper
...
PiperOrigin-RevId: 558278732
2023-08-18 16:37:09 -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
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
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
Guogang Li
c8230a7ec3
Optimize application startup time
...
PiperOrigin-RevId: 557248394
2023-08-15 14:19:11 -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
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
Guogang Li
5b155f9a4a
Added data section filter in BLE scanning
...
PiperOrigin-RevId: 553660098
2023-08-09 19:11:48 -07:00
Guogang Li
0282ba7700
Changed the hotspot connection interval
...
PiperOrigin-RevId: 553319367
2023-08-09 19:06:53 -07:00
hai007
347d10b74f
Automated visibility attribute cleanup.
...
PiperOrigin-RevId: 553138950
2023-08-02 07:30:35 -07:00
Guogang Li
20f2291476
Added APIs to allow/prevent sleep in session manager
...
PiperOrigin-RevId: 552958620
2023-08-01 16:26:47 -07:00
Guogang Li
868d3ce046
Resolved the issue to monitor lock/unlock in platform SDK
...
PiperOrigin-RevId: 552655345
2023-07-31 19:13:27 -07:00
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
Nick Bourdakos
c1d74120a0
Add initial BLEv2 Bluetooth Adapter
...
PiperOrigin-RevId: 551922301
2023-07-28 12:32:27 -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
Nick Bourdakos
a42cdc7346
Move Server Socket and its dependencies to their own files
...
PiperOrigin-RevId: 551330682
2023-07-26 15:21:46 -07:00
Thomas Van Lenten
7e1f286d93
Don't compile utils.mm twice.
...
PiperOrigin-RevId: 551315072
2023-07-26 14:25:24 -07:00
Nick Bourdakos
de3f638129
Extract BLE code into its own target
...
PiperOrigin-RevId: 551074383
2023-07-25 20:23:59 -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
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
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
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
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
Guogang Li
c6566b00c7
internal update
...
PiperOrigin-RevId: 549351164
2023-07-19 10:15:19 -07:00
Janusz Sobczak
281032ee78
Fix flakiness in TaskRunnerImpl
...
PiperOrigin-RevId: 549119512
2023-07-18 14:55:19 -07:00
Nick Bourdakos
0f8e5283a4
Add GATT server
...
PiperOrigin-RevId: 549080231
2023-07-18 12:37:23 -07:00
Anay Wadhera
2dcfe66f2e
update device provider api for multi-identity auth
...
PiperOrigin-RevId: 548767413
2023-07-17 12:30:34 -07:00
Anay Wadhera
484a740aec
fix data race in client socket test
...
PiperOrigin-RevId: 548761683
2023-07-17 12:08:27 -07:00
Anay Wadhera
1bcb70c8b9
fix data races in weave socket test
...
PiperOrigin-RevId: 548173466
2023-07-14 11:17:33 -07:00
Guogang Li
a72be2bc8c
internal update
...
PiperOrigin-RevId: 547982511
2023-07-13 18:21:18 -07:00
Nick Bourdakos
96348b6ba7
Add BLE conversion utils
...
PiperOrigin-RevId: 547958170
2023-07-13 16:20:04 -07:00
Nick Bourdakos
e0b2e176c8
Add Objective-C GATT characteristic container.
...
PiperOrigin-RevId: 547954006
2023-07-13 16:05:18 -07:00
hai007
48184e6b4d
Add IfChange annotation to ensure the proto sync between 3rd party and the server copy.
...
PiperOrigin-RevId: 547953571
2023-07-13 16:01:55 -07:00