Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55a32238 authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "AudioSystem: Reduce service timeout from 10s to 5s" into main

parents ca2abe33 a2fb29cb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -127,10 +127,10 @@ sp<CaptureStateListenerImpl> AudioSystem::gSoundTriggerCaptureStateListener;
// Such an audioserver failure is considered benign as the ground truth is stored in
// the Java AudioService and can be restored once audioserver has finished initialization.
//
// TODO(b/375691003) We use 10s as a conservative timeout value, and will tune closer to 3s.
// TODO(b/375691003) We use 5s as a conservative timeout value, and will tune closer to 3s.
// Too small a value (i.e. less than 1s would churn repeated calls to get the service).
// The value can be tuned by the property audio.service.client_wait_ms.
static constexpr int32_t kServiceClientWaitMs = 10'000;
static constexpr int32_t kServiceClientWaitMs = 5'000;

static constexpr const char kServiceWaitProperty[] = "audio.service.client_wait_ms";