Merge "Camera: support torch control on external camera" am: f8007c2000

am: 361f2f9a17

Change-Id: I982aa7e7acb3e85c247319757516e85bf7408f82
This commit is contained in:
Yin-Chia Yeh
2018-08-30 12:15:37 -07:00
committed by android-build-merger
2 changed files with 4 additions and 3 deletions

View File

@@ -90,7 +90,7 @@ Return<void> ExternalCameraDevice::getCameraCharacteristics(
}
Return<Status> ExternalCameraDevice::setTorchMode(TorchMode) {
return Status::METHOD_NOT_SUPPORTED;
return Status::OPERATION_NOT_SUPPORTED;
}
Return<void> ExternalCameraDevice::open(

View File

@@ -105,8 +105,9 @@ Return<void> ExternalCameraProvider::getCameraIdList(getCameraIdList_cb _hidl_cb
Return<void> ExternalCameraProvider::isSetTorchModeSupported(
isSetTorchModeSupported_cb _hidl_cb) {
// No torch mode support for USB camera
_hidl_cb (Status::OK, false);
// setTorchMode API is supported, though right now no external camera device
// has a flash unit.
_hidl_cb (Status::OK, true);
return Void();
}