BufferPoolClient: Increase kReceiveTimeoutUs to 2000000
Increase BufferPoolClient's kReceiveTimeoutUs to 2000000 because
in some cts tests, such as
android.video.cts.VideoEncoderDecoderTest#testAvcGoog0Qual1920x1080
it has many CPU read with hardware's non-cacheable framebuffer,
this CPU read operation cost too much time and will lead to buffer
timeout in BufferPoolClient. BufferPoolClient shlould take it into
consideration and increase kReceiveTimeoutUs.
Bug: 153613044
Signed-off-by: xiahong.bao <xiahong.bao@nxp.com>
Change-Id: I79d4deafbd7c8af246a03a197e3215e4308a9453
diff --git a/media/bufferpool/2.0/BufferPoolClient.cpp b/media/bufferpool/2.0/BufferPoolClient.cpp
index 9308b81..cda23ff 100644
--- a/media/bufferpool/2.0/BufferPoolClient.cpp
+++ b/media/bufferpool/2.0/BufferPoolClient.cpp
@@ -29,7 +29,7 @@
namespace V2_0 {
namespace implementation {
-static constexpr int64_t kReceiveTimeoutUs = 1000000; // 100ms
+static constexpr int64_t kReceiveTimeoutUs = 2000000; // 2s
static constexpr int kPostMaxRetry = 3;
static constexpr int kCacheTtlUs = 1000000; // TODO: tune
static constexpr size_t kMaxCachedBufferCount = 64;