Increase dynamic sensor op timeout to 1.6 sec am: 9a056455f2
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware/+/20333186 Change-Id: Ie65bd144da9d4fc20fc3ea799dc148419fda0484 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
2e6815d22a
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue