NNAPI: validate that FmqResultDatum padding is 0 -- runtime

FmqResultDatum::OperandInformation has padding that may not be
initialized by an NN HAL service instance. This CL makes
adjustments to ensure padding values entering and leaving the
FMQ are preserved. This CL also makes a private method public
for easier security testing.

Bug: 131356202
Test: mma
Test: atest VtsHalNeuralnetworksV1_2TargetTest
      (for ValidationTest with sample-all)
Test: altered sample-driver to randomly set a padding byte to 1;
      the new validation test successfully failed the test

Change-Id: Idd5af092ff838dc13ccd022b48b4f16661b40474
3 files changed
tree: 9024fdccbc2680ac0fecd2436d9727171b1675c0
  1. nn/
  2. .clang-format
  3. CleanSpec.mk
  4. OWNERS
  5. PREUPLOAD.cfg