Track HardwareBuffer native allocations

Bug: b/363028387
Flag: com.android.libcore.native_metrics

This CL will make use of the new API to create NativeAllocationRegistry
that associates with HardwareBuffer.class if libcore.native_metrics is
enabled (otherwise falls back to the legacy API). This allows tracking
of native allocations that are HardwareBuffer specific.

Change-Id: I848cf66dacf1cf82baf1ff8d2012866ee548973f
1 file changed