Clean up format of V4L2Camera and V4L2CameraHAL.
BUG: 30224839
TEST: unit tests pass
Change-Id: I0d41927fb6e56cf32f5e04a3fe98be1139e6c4a8
diff --git a/modules/camera/3_4/v4l2_camera.h b/modules/camera/3_4/v4l2_camera.h
index d9af15d..804012b 100644
--- a/modules/camera/3_4/v4l2_camera.h
+++ b/modules/camera/3_4/v4l2_camera.h
@@ -35,16 +35,17 @@
// while a specific camera device (e.g. V4L2Camera) holds all specific
// metadata and logic about that device.
class V4L2Camera : public default_camera_hal::Camera {
-public:
+ public:
// Use this method to create V4L2Camera objects. Functionally equivalent
// to "new V4L2Camera", except that it may return nullptr in case of failure.
static V4L2Camera* NewV4L2Camera(int id, const std::string path);
~V4L2Camera();
-private:
+ private:
// Constructor private to allow failing on bad input.
// Use NewV4L2Camera instead.
- V4L2Camera(int id, std::shared_ptr<V4L2Wrapper> v4l2_wrapper,
+ V4L2Camera(int id,
+ std::shared_ptr<V4L2Wrapper> v4l2_wrapper,
std::unique_ptr<Metadata> metadata);
// default_camera_hal::Camera virtual methods.
@@ -63,7 +64,8 @@
int initDevice() override;
// Verify stream configuration is device-compatible.
bool isSupportedStreamSet(default_camera_hal::Stream** streams,
- int count, uint32_t mode) override;
+ int count,
+ uint32_t mode) override;
// Set up the device for a stream, and get the maximum number of
// buffers that stream can handle (max_buffers is an output parameter).
int setupStream(default_camera_hal::Stream* stream,
@@ -71,8 +73,7 @@
// Verify settings are valid for a capture with this device.
bool isValidCaptureSettings(const android::CameraMetadata& settings) override;
// Set settings for a capture.
- int setSettings(
- const android::CameraMetadata& new_settings) override;
+ int setSettings(const android::CameraMetadata& new_settings) override;
// Enqueue a buffer to receive data from the camera.
int enqueueBuffer(const camera3_stream_buffer_t* camera_buffer) override;
// Get the shutter time and updated settings for the most recent frame.