Add support for mmaped file descriptor

  - create new API to create ANeuralNetworks_Memory from a mmaped fd.
  - add the corresponding Memory constructor to NeuralNetworksWrapper.h
  - Add unit test TestFd for the new API.

Bug: 63905942
Test: mm
Test: TestFd pass with CPU path.
Test: TestFd pass on sample HIDL driver, with ag/2588539

Change-Id: I1fcb0f0bd01e58bd592e18eff11c27034ee4a4c3
10 files changed
tree: a1da2a51901cb5cec35fc50e625a15f64197b0d2
  1. common/
  2. driver/
  3. runtime/
  4. tools/
  5. Android.bp
  6. README.txt