[Nearby Connections] Rename async scanning flag

Renames the enable_ble_v2_async_scanning_advertising flag to just
enable_ble_v2_async_scanning, reflecting that scanning/advertising
can be enabled independently. Work required to add async
advertising is tracked in b/333408829.

PiperOrigin-RevId: 624254277
This commit is contained in:
Daniel Classon
2024-04-12 12:15:21 -07:00
committed by Copybara-Service
parent 535538d5d1
commit 05dac6b184
4 changed files with 21 additions and 32 deletions
+4 -3
View File
@@ -62,9 +62,10 @@ class FeatureFlags {
// requested service id before attempting to connect over rfcomm. SDP fails
// on Windows when connecting to FP service id but the rfcomm is successful.
bool skip_service_discovery_before_connecting_to_rfcomm = false;
// Controls enable or disable the use of async methods for StartScanning,
// StopScanning, StartAdvertising, and StopAdvertising for BLE V2.
bool enable_ble_v2_async_scanning_advertising = false;
// Controls enable or disable the use of async methods for StartScanning
// and StopScanning for BLE V2.
// TODO(b/333408829): Add flag to control async advertising.
bool enable_ble_v2_async_scanning = false;
// Enable legacy device discovered callback being used inside ble v2
// DiscoverPeripheralTracker flow.
bool enable_invoking_legacy_device_discovered_cb = false;