hai007
91721c3dbb
Automated Code Change
...
PiperOrigin-RevId: 801577756
2025-08-31 14:38:48 -07:00
Mingshiou Wu
fcd3cb0fc3
feat: add ble_v2 test in g3 platform
...
PiperOrigin-RevId: 786993987
2025-07-25 00:07:27 -07:00
Francis Tsui
959322177f
Remove BlePeripheral usage from framework.
...
PiperOrigin-RevId: 759337592
2025-05-15 15:59:33 -07:00
Francis Tsui
b48b943275
Remove reference to BlePeripheral.
...
PiperOrigin-RevId: 757830081
2025-05-12 10:55:38 -07:00
Francis Tsui
acc5f1b0d8
Remove BlePeripheral reference from BleSocket.
...
PiperOrigin-RevId: 757797557
2025-05-12 09:38:22 -07:00
Francis Tsui
16839afa18
Switch Connect() to use BlePeripheral::UniqueId.
...
PiperOrigin-RevId: 756821680
2025-05-09 10:36:24 -07:00
Francis Tsui
99458be820
Change ConnectToGattServer to take BlePeripheral::UniqueId.
...
PiperOrigin-RevId: 756498100
2025-05-08 16:10:04 -07:00
Francis Tsui
59e527dbe3
Remove unused methods.
...
PiperOrigin-RevId: 756053350
2025-05-07 16:36:04 -07:00
Francis Tsui
bda5444fcd
Remove g3 BlePeripheral subclass.
...
PiperOrigin-RevId: 754087426
2025-05-02 12:06:07 -07:00
Mingshiou Wu
04b2f9cfc6
Interface definition for Ble L2CAP Medium in Nearby Connections layer
...
PiperOrigin-RevId: 741054574
2025-03-27 01:04:16 -07:00
Guogang Li
b6dc3348a4
remove callback for multiple services scan
...
PiperOrigin-RevId: 733518623
2025-03-04 17:12:25 -08:00
Guogang Li
dec2ff910a
Multiple Service scanning implementation for G3.
...
PiperOrigin-RevId: 733458126
2025-03-04 14:05:10 -08:00
Guogang Li
32cee3439b
Pause Bluetooth classic discovery
...
PiperOrigin-RevId: 647333108
2024-06-27 08:52:58 -07:00
Guogang Li
0640832025
Allowed G3 to simulated BLE device supported extended advertisement
...
PiperOrigin-RevId: 646503301
2024-06-25 09:20:58 -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
Janusz Sobczak
522ac8c13e
Fix threading issues in tests
...
The changes make thread sanitizer happy.
PiperOrigin-RevId: 546960147
2023-07-10 13:17:12 -07:00
Janusz Sobczak
ca9bbd3a9c
Fix several race conditions
...
The fixes are specific to unit test environment.
PiperOrigin-RevId: 546342096
2023-07-07 11:53:50 -07:00
Janusz Sobczak
ca60afa007
Add robust gatt client
...
PiperOrigin-RevId: 539817203
2023-06-12 18:29:59 -07:00
Janusz Sobczak
7c9b517d76
Implement G3 GattServer::Stop
...
PiperOrigin-RevId: 537149080
2023-06-01 15:45:21 -07:00
Janusz Sobczak
a5060a3c18
Call gatt disconnect callback in tests
...
PiperOrigin-RevId: 536737632
2023-05-31 09:33:52 -07:00
Janusz Sobczak
1c9dd093f1
Fix retroactive pairing test
...
PiperOrigin-RevId: 532853830
2023-05-17 11:35:48 -07:00
Crisrael Lucero
01c8e1ed05
Convert absl::string_view to const std::string&
...
PiperOrigin-RevId: 531634295
2023-05-12 16:40:50 -07:00
Janusz Sobczak
b5938c0d17
Add G3 gatt server
...
PiperOrigin-RevId: 531287485
2023-05-11 13:15:40 -07:00
Janusz Sobczak
0901aec6e2
Add BleMedium::GetRemotePeripheral
...
Added:
nearby::api::ble_v2::BlePeripheral::GetUniqueId()
nearby::api::ble_v2::BleMedium::GetRemotePeripheral(...)
Moved BlePeripheral implementation from bluetooth_adapter_* to ble_v2.*
Added G3 (test) implementation for the new methods.
PiperOrigin-RevId: 531023568
2023-05-10 15:40:38 -07:00
Qin Wang
a62000d3a8
Add g3 platform/medium_Environment for GattConnection
...
PiperOrigin-RevId: 520387265
2023-03-29 11:10:07 -07:00
Qin Wang
1e4497d59c
Add Write Type enum to specify what type of GATT write should be performed
...
PiperOrigin-RevId: 515487102
2023-03-09 17:28:09 -08:00
Qin Wang
0c078b3528
Convet ByteArray to std::string in ble_gatt_client
...
PiperOrigin-RevId: 514786088
2023-03-07 11:10:34 -08:00
Qin Wang
ba8d60b8a9
Implement subscription for a GATT characteristic value changed
...
PiperOrigin-RevId: 513960871
2023-03-06 07:08:08 -08:00
Qin Wang
4727861f5d
Refactor GattCharactristic to support bitwise combination of Permission and Property
...
PiperOrigin-RevId: 513339751
2023-03-01 14:21:04 -08:00
Anay Wadhera
abe68db97d
Add GattServer#NotifyCharacteristicChanged to ble_v2
...
PiperOrigin-RevId: 512124578
2023-02-24 11:46:33 -08:00
Anay Wadhera
f3ebf77ed2
Add GattClient#SetCharacteristicNotification for subscribing to a GATT characteristic
...
PiperOrigin-RevId: 511862183
2023-02-23 12:54:41 -08:00
Janusz Sobczak
f4d85f9b90
Migrate to AnyInvocable in platform code
...
PiperOrigin-RevId: 504104740
2023-01-23 16:04:21 -08:00
Janusz Sobczak
a29be214a3
Migrate to absl::AnyInvocable in NP.
...
Replaces a bunch of std::function uses with absl::AnyInvocable.
PiperOrigin-RevId: 502960326
2023-01-18 13:16:29 -08:00
hai007
868e42f5f2
Fix a bug in which an iterator is compared to an end iterator from a different hashtable.
...
PiperOrigin-RevId: 501928248
2023-01-13 13:40:47 -08:00
Suet-Fei Li
084f7ebd88
Remove location namespace in third_party/nearby.
...
PiperOrigin-RevId: 500023196
2023-01-06 02:53:57 -08:00
Janusz Sobczak
e64f9859e1
Replace BleOperationStatus with absl::Status
...
PiperOrigin-RevId: 497191477
2022-12-22 10:20:15 -08:00
Janusz Sobczak
81f6b547bb
Add StartAdvertising to BLE medium.
...
StartAdvertising allows us to broadcast Nearby Presence advertisements.
We can now test scanning and advertising with the MediumEnvironment rather than mocking platform code.
PiperOrigin-RevId: 484662211
2022-10-28 18:23:30 -07:00
Eiden Kim
7350643c36
Update Prng usage so that it can generate random values on different threads.
...
PiperOrigin-RevId: 478025630
2022-09-30 10:31:27 -07:00
Hai Shang
bbe77d8397
internal change
...
PiperOrigin-RevId: 474390888
2022-09-14 14:28:10 -07:00
Hai Shang
da54ba3422
Add async operations to ble_v2
...
PiperOrigin-RevId: 472611661
2022-09-06 19:08:22 -07:00
edwinwu
67b318fa6f
[BLE Refactor] Refactor GATTClient implementation.
...
PiperOrigin-RevId: 454290863
2022-06-10 20:20:40 -07:00
edwinwu
8e048f7be0
[BLE Refactor] Uses Uuid class for those used in Uuid string-form in /medium layer.
...
PiperOrigin-RevId: 450910238
2022-05-25 06:36:55 -07:00
edwinwu
a1e84f0597
[BLE Refactor] Implements BleV2Socket and BleV2ServerSocket.
...
PiperOrigin-RevId: 450586535
2022-05-23 20:22:10 -07:00
edwinwu
01f439b9ad
[BLE Refactor] Add Extended advertisement support.
...
PiperOrigin-RevId: 449619994
2022-05-18 17:45:04 -07:00
edwinwu
eddf53ec29
[BLE Refactor] Removes fast advertisement uuid in StartAdvertising and StartScanning.
...
PiperOrigin-RevId: 448426759
2022-05-13 00:19:16 -07:00
edwinwu
080e964a4c
[BLE Refactor] Implements GattClient for sender's device to fetch Gatt advertisement.
...
PiperOrigin-RevId: 448400837
2022-05-12 20:29:30 -07:00
edwinwu
771ce23fa3
[BLE Refactor] Implements advertisement tracking in Ble medium with DiscoveredPeripheralTracker class.
...
PiperOrigin-RevId: 447397658
2022-05-09 00:36:33 -07:00
edwinwu
190d3ebafc
[BLE Refactor] Impl Start/Stop Scanning and DiscoveredPeripheral callback function in medium layer and ScanCallback in platform layer.
...
PiperOrigin-RevId: 438293171
2022-03-30 07:08:05 -07:00
edwinwu
66b425dc4e
[BLE Refactor] Impl Start/Stop AdvertisementGattServer
...
PiperOrigin-RevId: 432657453
2022-03-05 08:33:01 -08:00