Commit Graph
62 Commits
Author SHA1 Message Date
Guogang Li b45077eedb Add RetrieveBlePeripheralFromNativeId to BleMedium.
PiperOrigin-RevId: 835253368
2025-11-21 09:33:14 -08:00
Crisrael Lucero dd943af8e9 Change GetAddress() to GetMacAddress() in BluetoothAdapter
PiperOrigin-RevId: 834896610
2025-11-20 13:49:49 -08:00
hai007 ea2a651911 Wi-Fi Direct Service Implementation(7)
PiperOrigin-RevId: 834584965
2025-11-19 21:45:43 -08:00
Francis Tsui e49fe76dc5 Make use of address candidates in Hotspot credentials.
PiperOrigin-RevId: 830572287
2025-11-10 13:17:43 -08:00
Francis Tsui 1210969d04 Cleanup use of HotspotCredentials.
PiperOrigin-RevId: 824262890
2025-10-26 15:17:16 -07:00
Francis Tsui e99faba5fc Remove unused field from HotspotCredentials.
PiperOrigin-RevId: 823606909
2025-10-24 11:38:45 -07:00
Edwin Wu 9baa10cff3 Add delays in MediumEnvironment::Stop() and test teardown to prevent use-after-free.
PiperOrigin-RevId: 819561773
2025-10-14 21:49:38 -07:00
Guogang Li cce45b745e Internal refactor
PiperOrigin-RevId: 815749899
2025-10-06 09:03:08 -07:00
Guogang Li 5fbef9e11e Remove BLE V1 codes
PiperOrigin-RevId: 811369802
2025-09-25 08:56:51 -07:00
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