From 19de94764d7de61b43913e4fb5ad54be24eb09f7 Mon Sep 17 00:00:00 2001 From: Mikhail Naganov Date: Mon, 29 Jan 2024 13:40:27 -0800 Subject: [PATCH] audio: Reduce the interval between BT proxy registration retries A follow-up for aosp/2929441. The interval between retries of connecting to BT proxy must be reduced significantly. Otherwise, in situations when the BT is not connected (that happens during tests), the resulting long delay causes failures at the frameowork level due to resulting long timeout. Bug: 322820830 Test: atest audiosystem_tests --iterations 100 Change-Id: Idd84cb22b28d109151f98bb5883dca18a9ae928d --- audio/aidl/default/include/core-impl/ModuleBluetooth.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/aidl/default/include/core-impl/ModuleBluetooth.h b/audio/aidl/default/include/core-impl/ModuleBluetooth.h index b95b52699b..4e68d72668 100644 --- a/audio/aidl/default/include/core-impl/ModuleBluetooth.h +++ b/audio/aidl/default/include/core-impl/ModuleBluetooth.h @@ -86,7 +86,7 @@ class ModuleBluetooth final : public Module { const ::aidl::android::media::audio::common::AudioPort& audioPort, CachedProxy& proxy); static constexpr int kCreateProxyRetries = 5; - static constexpr int kCreateProxyRetrySleepMs = 250; + static constexpr int kCreateProxyRetrySleepMs = 75; ChildInterface mBluetoothA2dp; ChildInterface mBluetoothLe; std::map mProxies;