Commit Graph
41 Commits
Author SHA1 Message Date
Guogang Li b45077eedb Add RetrieveBlePeripheralFromNativeId to BleMedium.
PiperOrigin-RevId: 835253368
2025-11-21 09:33:14 -08:00
hai007 ea2a651911 Wi-Fi Direct Service Implementation(7)
PiperOrigin-RevId: 834584965
2025-11-19 21:45:43 -08:00
Francis Tsui 1210969d04 Cleanup use of HotspotCredentials.
PiperOrigin-RevId: 824262890
2025-10-26 15:17:16 -07:00
Guogang Li 4c37f90965 Persist advertising endpoint ID.
PiperOrigin-RevId: 820267327
2025-10-16 09:25:06 -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
Francis Tsui 959322177f Remove BlePeripheral usage from framework.
PiperOrigin-RevId: 759337592
2025-05-15 15:59:33 -07:00
Francis Tsui 99458be820 Change ConnectToGattServer to take BlePeripheral::UniqueId.
PiperOrigin-RevId: 756498100
2025-05-08 16:10:04 -07:00
hai007 190bb141cc Implement AWDL in connection layer (part 1)
PiperOrigin-RevId: 742925127
2025-04-01 19:11:20 -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 ca9bbd3a9c Fix several race conditions
The fixes are specific to unit test environment.

PiperOrigin-RevId: 546342096
2023-07-07 11:53:50 -07:00
Qin Wang ba740c9a5c Implement RetroactivePairingDetector
PiperOrigin-RevId: 538319791
2023-06-06 16:18:38 -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 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 32ace29ccf Change wifi_hotspot_credential.h to wifi_credential.h
PiperOrigin-RevId: 500223301
2023-01-06 15:05:22 -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 a90b7f85fc Disable medium env by default.
MediumEnvironment's initial state will now match the state after calling `Stop()`.

Cleaned up tests that were calling Stop() before test start.

PiperOrigin-RevId: 486277290
2022-11-04 18:56:30 -07: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
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
hai007 2d4cc75dfa Fix miscellaneous typos in the comments or logging.
PiperOrigin-RevId: 454649199
2022-06-13 10:55:57 -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 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
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
edwinwu 91dfdefb9f [BLE Refactor] Impl Start/Stop Advertising function in medium layer.
PiperOrigin-RevId: 432185275
2022-03-03 07:04:32 -08:00
suetfei bdce5dd2be Support NO_WEBRTC in platform/* except WINDOWS.
PiperOrigin-RevId: 427067819
2022-02-07 18:01:36 -08:00
hais f5fcd35ced nearby sdk refactor
PiperOrigin-RevId: 425434260
2022-02-02 11:56:39 -08:00