commit | eecc904f13e7a105f5548c953e4caa306fe06f0d | [log] [tgz] |
---|---|---|
author | Eino-Ville Talvala <etalvala@google.com> | Tue Sep 23 16:37:31 2014 -0700 |
committer | Eino-Ville Talvala <etalvala@google.com> | Thu Sep 25 14:06:55 2014 -0700 |
tree | 6d0b4fe3e76c0ced68d45e4d49571435f867f727 | |
parent | 33ae07ab814df0242625bb1e1961f464b630a7fe [diff] |
Camera2 legacy: Improve robustness to camera service crashes When the camera service dies, the getParameters call is often the first to fail, and on legacy mode, this frequently happens in a background thread. Catch the runtime exceptions and convert to device errors, instead of killing the process. Bug: 17587496 Change-Id: I6757961e7c0387defd368a13cb7c343950602400