diff options
author | Eino-Ville Talvala <etalvala@google.com> | 2017-05-08 15:29:28 -0700 |
---|---|---|
committer | Eino-Ville Talvala <etalvala@google.com> | 2017-05-08 15:29:28 -0700 |
commit | e0a0a1c2391bbf97cd1c2cb39f82a16a11b70d16 (patch) | |
tree | 02472fd7f6a1178e3ab4e05fb6c1568fbe766495 /camera | |
parent | 79c636a4ff19cb9b369f7695bdbc72129b3ceeab (diff) | |
download | platform_hardware_interfaces-e0a0a1c2391bbf97cd1c2cb39f82a16a11b70d16.tar.gz platform_hardware_interfaces-e0a0a1c2391bbf97cd1c2cb39f82a16a11b70d16.tar.bz2 platform_hardware_interfaces-e0a0a1c2391bbf97cd1c2cb39f82a16a11b70d16.zip |
Camera: Clean up TODOs that aren't going to be addressed.
These TODOs aren't in scope for the wrapper libraries.
Leave the few TODOs that have bugs tracking them, and the ones that
are from autogenerated metadata.
Test: Builds
Bug: 34108979
Change-Id: Ib28467a4fbcfaab4a0809334bc62eabb9290797a
Diffstat (limited to 'camera')
-rw-r--r-- | camera/common/1.0/default/CameraMetadata.cpp | 2 | ||||
-rw-r--r-- | camera/device/1.0/default/CameraDevice.cpp | 3 | ||||
-rw-r--r-- | camera/provider/2.4/default/CameraProvider.cpp | 4 |
3 files changed, 0 insertions, 9 deletions
diff --git a/camera/common/1.0/default/CameraMetadata.cpp b/camera/common/1.0/default/CameraMetadata.cpp index 0e7ef6e1bb..4c54931a11 100644 --- a/camera/common/1.0/default/CameraMetadata.cpp +++ b/camera/common/1.0/default/CameraMetadata.cpp @@ -508,8 +508,6 @@ status_t CameraMetadata::getTagFromName(const char *name, } } - // TODO: Make above get_camera_metadata_section_from_name ? - if (section == NULL) { return NAME_NOT_FOUND; } else { diff --git a/camera/device/1.0/default/CameraDevice.cpp b/camera/device/1.0/default/CameraDevice.cpp index 4f26c54812..6f4e70f834 100644 --- a/camera/device/1.0/default/CameraDevice.cpp +++ b/camera/device/1.0/default/CameraDevice.cpp @@ -183,7 +183,6 @@ int CameraDevice::sDequeueBuffer(struct preview_stream_ops* w, } int CameraDevice::sLockBuffer(struct preview_stream_ops*, buffer_handle_t*) { - // TODO: make sure lock_buffer is indeed a no-op (and will always be) return 0; } @@ -585,8 +584,6 @@ Return<void> CameraDevice::getCameraInfo(getCameraInfo_cb _hidl_cb) { cameraInfo.facing = (CameraFacing) info.facing; // Device 1.0 does not support external camera facing. // The closest approximation would be front camera. - // TODO: figure out should we override here or let - // camera service handle it. if (cameraInfo.facing == CameraFacing::EXTERNAL) { cameraInfo.facing = CameraFacing::FRONT; } diff --git a/camera/provider/2.4/default/CameraProvider.cpp b/camera/provider/2.4/default/CameraProvider.cpp index 791b93c759..19f7bdd7b2 100644 --- a/camera/provider/2.4/default/CameraProvider.cpp +++ b/camera/provider/2.4/default/CameraProvider.cpp @@ -461,10 +461,6 @@ Return<void> CameraProvider::getCameraDeviceInterface_V3_x( return Void(); } - // TODO: we also need to keep a wp list of all generated devices to notify - // devices of device present status change, but then each device might - // need a sp<provider> to keep provider alive until all device closed? - // Problem: do we have external camera products to test this? sp<android::hardware::camera::device::V3_2::implementation::CameraDevice> device = new android::hardware::camera::device::V3_2::implementation::CameraDevice( mModule, cameraId, mCameraDeviceNames); |