Francis Tsui
a43adfb93c
Stop setting IPAddress field in NsdServiceInfo on advertising.
...
PiperOrigin-RevId: 810516970
2025-09-23 11:35:20 -07:00
Francis Tsui
ab94af291f
Create compatibility for moving platform API to use MacAddress class.
...
PiperOrigin-RevId: 800533547
2025-08-28 10:58:22 -07:00
hai007
00a2999269
Format all the files in CL786733783
...
PiperOrigin-RevId: 786873870
2025-07-24 16:25:18 -07:00
hai007
71cdf84236
Replace NEARBY_LOGS with LOG for all coding under google3/third_party/nearby/
...
PiperOrigin-RevId: 786733783
2025-07-24 09:34:17 -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
99458be820
Change ConnectToGattServer to take BlePeripheral::UniqueId.
...
PiperOrigin-RevId: 756498100
2025-05-08 16:10:04 -07:00
Francis Tsui
bda5444fcd
Remove g3 BlePeripheral subclass.
...
PiperOrigin-RevId: 754087426
2025-05-02 12:06:07 -07:00
hai007
190bb141cc
Implement AWDL in connection layer (part 1)
...
PiperOrigin-RevId: 742925127
2025-04-01 19:11:20 -07:00
hai007
97690c6996
[cpp23] Remove usage of std::aligned_storage in nearby
...
Deprecated in C++23. Details in https://crbug.com/388068052 .
PiperOrigin-RevId: 722745132
2025-02-03 12:02:21 -08:00
Guogang Li
d5b5d92f87
Internal logging update
...
PiperOrigin-RevId: 669420403
2024-08-30 13:08:35 -07:00
Guogang Li
f449b2199e
Improve mediums logging for medium environment
...
PiperOrigin-RevId: 648752034
2024-07-02 09:59:35 -07: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
Crisrael Lucero
acc38a809b
[Nearby Presence] Update ScanManager to trigger changed and lost events
...
PiperOrigin-RevId: 644072733
2024-06-17 11:17:00 -07:00
Janusz Sobczak
e38ce96964
Replace AcceptedConnectionCallback structs with absl::AnyInvocable
...
PiperOrigin-RevId: 557949490
2023-08-17 15:14:25 -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
2e1ed2b465
Fix wifi test flakiness
...
PiperOrigin-RevId: 549683201
2023-07-20 11:06:44 -07:00
Janusz Sobczak
d559a4a435
Fix tsan errors
...
Improve clean up order to prevent use-after-free errors.
PiperOrigin-RevId: 547313964
2023-07-11 15:26:43 -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
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
Qin Wang
ba740c9a5c
Implement RetroactivePairingDetector
...
PiperOrigin-RevId: 538319791
2023-06-06 16:18:38 -07:00
Janusz Sobczak
f1f15bd967
Use canonical MAC address in tests.
...
PiperOrigin-RevId: 531601021
2023-05-12 14:12:25 -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
69f4feaf55
Add g3 implementation for BluetoothPairing
...
PiperOrigin-RevId: 530965844
2023-05-10 11:47:00 -07:00
hai007
b80a710fb0
Fix data race problem caused by a simulated_clock
...
PiperOrigin-RevId: 525540869
2023-04-19 13:49:53 -07:00
Janusz Sobczak
c249c3079f
Support fake clock in test environment
...
A synthetic clock helps testing (long) timeouts by allowing us to move the time
forward by an arbitrary amount.
PiperOrigin-RevId: 520407442
2023-03-29 12:19:28 -07:00
Qin Wang
a62000d3a8
Add g3 platform/medium_Environment for GattConnection
...
PiperOrigin-RevId: 520387265
2023-03-29 11:10:07 -07:00
Janusz Sobczak
02ffb5d45e
Add Message Stream
...
Define MessageStream class for exchanging messages betweek the seeker and the
provider over rfcomm.
PiperOrigin-RevId: 516986541
2023-03-15 18:42:39 -07: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
Suet-Fei Li
084f7ebd88
Remove location namespace in third_party/nearby.
...
PiperOrigin-RevId: 500023196
2023-01-06 02:53:57 -08:00
hai007
f7f0a266fe
WIFI Direct implementation (5)
...
Part 5: Add WifiDirect Server/Client Socket and Credential
PiperOrigin-RevId: 499401159
2023-01-03 23:10:15 -08:00
Janusz Sobczak
e64f9859e1
Replace BleOperationStatus with absl::Status
...
PiperOrigin-RevId: 497191477
2022-12-22 10:20:15 -08:00
Janusz Sobczak
a11733988f
Implement start advertising in service controller.
...
PiperOrigin-RevId: 489584407
2022-11-18 16:17:55 -08:00
hai007
03b1c773fe
WIFI Direct implementation (2)
...
Part 2: Implementation g3 medium/Environment/platform layer unit test
PiperOrigin-RevId: 485417100
2022-11-01 14:23:14 -07:00
Guogang Li
a584dad4a9
Fixed the WiFi issue to handle service discovery
...
PiperOrigin-RevId: 477613253
2022-09-28 19:42:48 -07:00
Hai Shang
bbe77d8397
internal change
...
PiperOrigin-RevId: 474390888
2022-09-14 14:28:10 -07:00
Hai Shang
40a9f13938
Internal change
...
PiperOrigin-RevId: 470043028
2022-08-25 11:43:00 -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
01f439b9ad
[BLE Refactor] Add Extended advertisement support.
...
PiperOrigin-RevId: 449619994
2022-05-18 17:45:04 -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
hai007
cb2672de03
Fix go/tsan failure in:
...
https://critique.corp.google.com/cl/444788086
PiperOrigin-RevId: 447591426
2022-05-09 16:33:52 -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
hai007
8e80ee097a
Unit test for WIFI Hotspot in Connection Medium layer
...
Fix 230126796: go/tsan error (data_race) found while running //third_party/nearby/internal/platform:public_test
PiperOrigin-RevId: 444788086
2022-04-27 01:21:23 -07:00
hai007
60e896ad37
Implementation g3 medium/Environment/platform layer unit test for WIFI Hotspot
...
PiperOrigin-RevId: 443304661
2022-04-21 01:09:38 -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