Camera: implement external camera dumpState/close

Also switch to v4l2 timestamp is it's MONOTONIC

Test: Cts CameraDeviceTest
Bug: 72261676
Change-Id: Iec82c254dcf16a56952ff8910d13c92782d48090
This commit is contained in:
Yin-Chia Yeh
2018-02-14 12:47:16 -08:00
parent 190e5601d6
commit 4a3393cd8a
3 changed files with 176 additions and 37 deletions

View File

@@ -131,7 +131,7 @@ Return<void> ExternalCameraDevice::open(
session = new ExternalCameraDeviceSession(
callback, mCfg, mSupportedFormats, mCroppingType,
mCameraCharacteristics, std::move(fd));
mCameraCharacteristics, mCameraId, std::move(fd));
if (session == nullptr) {
ALOGE("%s: camera device session allocation failed", __FUNCTION__);
mLock.unlock();