commit | 7fcb357811d4dc1f44624e30ad924e9e580d4cbf | [log] [tgz] |
---|---|---|
author | Eino-Ville Talvala <etalvala@google.com> | Tue Jun 03 18:30:27 2014 -0700 |
committer | Eino-Ville Talvala <etalvala@google.com> | Wed Jun 04 16:52:00 2014 -0700 |
tree | 051da2eb2fe60abe6de4adcdefe6aa944c479094 | |
parent | 648a309d9badc405bc969bcb4461369bf89fe7ef [diff] |
Camera2: Invoke onError callbacks for failure to open When the initial attempt to connect to the remote camera device fails, fire the onError callback as documented, instead of throwing an exception from open(). Also ensure the correct exception is sent when methods are called while in the error state, and make sure onClosed() is called correctly if closing the device after an initial startup error. Bug: 14413756 Bug: 14413363 Change-Id: I0822261dad52bcd428a0c4556202f00032499990