commit | 1496191cf7c18bf2cc7997de06a154bf46a8dad1 | [log] [tgz] |
---|---|---|
author | Sai Kumar Sanagavarapu <ssanagav@codeaurora.org> | Mon Jun 08 17:40:04 2015 +0530 |
committer | gfxgitp4 <gfxgitp4@localhost> | Thu Jul 02 22:51:29 2015 -0600 |
tree | 055cdffcfa2577cd86743b4738e2ea9f19cc7893 | |
parent | d0ae101c3647d1ef72dd6efad5d335d76ec16b52 [diff] |
SnapdragonCamera: Synchronize shutter button click. In monkey usecases, shutter button can be clicked really fast even before app's state is set properly. This can lead to multiple takepicture calls to lower layers. Since HAL maintains state machine and doesnt allow such operations, error will be thrown. To avoid such situations, make onShutterButtonClick() a synchronized method so that only one thread can access it at a time. Change-Id: I19a2de7574452083d75204c84b89dac95d8b4f3e