OSDN Git Service

Camera3Device: Don't time out on long exposures
authorEino-Ville Talvala <etalvala@google.com>
Fri, 23 Jun 2017 23:22:44 +0000 (16:22 -0700)
committerEino-Ville Talvala <etalvala@google.com>
Tue, 18 Jul 2017 20:57:40 +0000 (13:57 -0700)
commit10bd57e0112ca12155463d44ab327fbf11fde7bc
tree10f9e7fac4f86f0b6cf80eaffe137fc12d911f60
parent29204646b945adf58390b7d06f2cb223d6b2c4c0
Camera3Device: Don't time out on long exposures

 - Calculate expected duration based on request settings instead
   of using a fixed timeout for shutdown
 - Ensure the timeouts are always at least 5 seconds anyway

Test: Camera CTS passes with a long-exposure device
Bug: 38212789
Change-Id: I6b154710314cdc84b223f1a9f39fead9262ce27b
services/camera/libcameraservice/device3/Camera3Device.cpp
services/camera/libcameraservice/device3/Camera3Device.h