universal7885: run clang-format based on system-clang-format

* On every *.cpp *.h files

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
roynatech2544 2021-12-12 20:37:53 +09:00
commit 098179eabb
No known key found for this signature in database
GPG key ID: 9675C32163D88D30
47 changed files with 1545 additions and 1709 deletions

View file

@ -39,15 +39,15 @@ class CameraMetadata {
~CameraMetadata();
/** Takes ownership of passed-in buffer */
CameraMetadata(camera_metadata_t *buffer);
CameraMetadata(camera_metadata_t* buffer);
/** Clones the metadata */
CameraMetadata(const CameraMetadata &other);
CameraMetadata(const CameraMetadata& other);
/**
* Assignment clones metadata buffer.
*/
CameraMetadata &operator=(const CameraMetadata &other);
CameraMetadata &operator=(const camera_metadata_t *buffer);
CameraMetadata& operator=(const CameraMetadata& other);
CameraMetadata& operator=(const camera_metadata_t* buffer);
/**
* Get reference to the underlying metadata buffer. Ownership remains with
@ -64,7 +64,7 @@ class CameraMetadata {
* from getAndLock must be provided to guarantee that the right object is
* being unlocked.
*/
status_t unlock(const camera_metadata_t *buffer) const;
status_t unlock(const camera_metadata_t* buffer) const;
/**
* Release a raw metadata buffer to the caller. After this call,
@ -91,12 +91,12 @@ class CameraMetadata {
* Acquires raw buffer from other CameraMetadata object. After the call, the argument
* object no longer has any metadata.
*/
void acquire(CameraMetadata &other);
void acquire(CameraMetadata& other);
/**
* Append metadata from another CameraMetadata object.
*/
status_t append(const CameraMetadata &other);
status_t append(const CameraMetadata& other);
/**
* Append metadata from a raw camera_metadata buffer
@ -123,24 +123,16 @@ class CameraMetadata {
* will reallocate the buffer if insufficient space exists. Overloaded for
* the various types of valid data.
*/
status_t update(uint32_t tag,
const uint8_t *data, size_t data_count);
status_t update(uint32_t tag,
const int32_t *data, size_t data_count);
status_t update(uint32_t tag,
const float *data, size_t data_count);
status_t update(uint32_t tag,
const int64_t *data, size_t data_count);
status_t update(uint32_t tag,
const double *data, size_t data_count);
status_t update(uint32_t tag,
const camera_metadata_rational_t *data, size_t data_count);
status_t update(uint32_t tag,
const String8 &string);
status_t update(const camera_metadata_ro_entry &entry);
status_t update(uint32_t tag, const uint8_t* data, size_t data_count);
status_t update(uint32_t tag, const int32_t* data, size_t data_count);
status_t update(uint32_t tag, const float* data, size_t data_count);
status_t update(uint32_t tag, const int64_t* data, size_t data_count);
status_t update(uint32_t tag, const double* data, size_t data_count);
status_t update(uint32_t tag, const camera_metadata_rational_t* data, size_t data_count);
status_t update(uint32_t tag, const String8& string);
status_t update(const camera_metadata_ro_entry& entry);
template<typename T>
template <typename T>
status_t update(uint32_t tag, Vector<T> data) {
return update(tag, data.array(), data.size());
}
@ -170,7 +162,7 @@ class CameraMetadata {
* Swap the underlying camera metadata between this and the other
* metadata object.
*/
void swap(CameraMetadata &other);
void swap(CameraMetadata& other);
/**
* Dump contents into FD for debugging. The verbosity levels are
@ -184,9 +176,9 @@ class CameraMetadata {
void dump(int fd, int verbosity = 1, int indentation = 0) const;
private:
camera_metadata_t *mBuffer;
volatile char mReserved[3] __attribute__ ((unused));
mutable bool mLocked;
camera_metadata_t* mBuffer;
volatile char mReserved[3] __attribute__((unused));
mutable bool mLocked;
/**
* Check if tag has a given type
@ -196,15 +188,14 @@ class CameraMetadata {
/**
* Base update entry method
*/
status_t updateImpl(uint32_t tag, const void *data, size_t data_count);
status_t updateImpl(uint32_t tag, const void* data, size_t data_count);
/**
* Resize metadata buffer if needed by reallocating it and copying it over.
*/
status_t resizeIfNeeded(size_t extraEntries, size_t extraData);
};
} // namespace android
} // namespace android
#endif