libgui: avoid allocations for bit manip

Avoid doing allocations when getting layer metadata
attributes.

Bug: 328177618
Test: TH
Change-Id: I63189bce152bd275bd46d9d2cdd4d7d02d282533
1 file changed