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

Skip to content
Commit 976bb4d5 authored by Avichal Rakesh's avatar Avichal Rakesh
Browse files

camera: make waiting for state more accurate

The current implementation of Camera3Device doesn't account for spurious
thread wakeups when waiting for a specific device state in
`waitUntilStateThenRelock`. This is usually not an issue but in the
worst case can double or triple the time a thread waits for the device
to reach the desired state.

This CL reduces the timeout every time the thread wakes up to ensure
that a thread waits only as long as specified by the passed parameter.

Bug: 223736973
Test: Existing camera CTS tests pass
Change-Id: Ie25c9c8e48f7cd369a089803774d62f6ba566c88
parent ce01b72e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment