tflite: Implement AHardwareBuffer_getId

This CL implements the AHardwareBuffer_getId function,
which provides the system wide unique id for an AHardwareBuffer.

The implementation is adapted from [1].

BUG=b:373990980
TEST=hardware_buffer_test pass

[1] https://cs.android.com/android/platform/superproject/main/+/main:frameworks/native/libs/ui/GraphicBuffer.cpp;l=32-41;drc=a3d7333eb90fe3a2fdfebe7bf694ee78900052c6

Change-Id: I5e18a7a17bea1a87691835a9a981203e81b9afc6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tflite/+/6073619
Tested-by: Tommy Chiang <ototot@google.com>
Commit-Queue: Tommy Chiang <ototot@google.com>
Auto-Submit: Tommy Chiang <ototot@google.com>
Reviewed-by: Shik Chen <shik@chromium.org>
3 files changed