Camera: Fix metadata data alignment, other minor bugs.

- When a metadata entry needs to overflow into the data buffer, make
 sure the starting offset is aligned to the maximum needed by all the
 metadata types.
- Bounds check the data buffer size when adding a new entry
- Add new test for the bounds check
- Print out doubles correctly.

Bug: 7498597

Change-Id: Ic8645a998c096f5b803839ee8076b97862127021
2 files changed
tree: 0ede894b4f153ee1d4f2b94fda00c61a297c9aa7
  2. audio_effects/
  3. audio_utils/
  4. camera/