Merge Android 13 QPR2

Bug: 273316506
Merged-In: I5fb5b9ff37a6f8a245678c87ee82e2032dc845f2
Change-Id: Id186d8c8323c8783c479ce1c16941a674824cff4
This commit is contained in:
Xin Li 2023-03-13 23:11:17 -07:00
commit 90d5444233

View file

@ -125,10 +125,11 @@ private:
// daemons
std::vector<sp<BaseDynamicSensorDaemon>> mDaemonVector;
// Sensor operation queue. Calls to the sensor HAL must complete within 1
// second.
// Sensor operation queue. Calls to the sensor HAL should complete within ~1
// second, but to permit delayed replies due to sniff mode, etc., we use a
// slightly longer timeout here.
static constexpr std::chrono::milliseconds
kSensorOpTimeout = std::chrono::milliseconds(900);
kSensorOpTimeout = std::chrono::milliseconds(1600);
std::mutex mSensorOpQueueLock;
std::queue<std::pair<uint64_t, std::shared_future<int>>> mSensorOpQueue;
uint64_t mNextSensorOpIndex = 0;