Implement fallback strategy of device memory allocation.

Currently, NNAPI will always fallback to ashmem if the driver fails to
allocate device memory, or if memory domain is not supported on the
related devices. This CL changes this behavior to only fallback if the
related compilations are not created with introspection API.

Bug: 147886012
Test: NNT_static
Change-Id: I93486c6bcb2edd12e0095d79f49bdde679c82d73
Merged-In: I93486c6bcb2edd12e0095d79f49bdde679c82d73
(cherry picked from commit 02249d9e0e515cd0b71abaa93df1243f09a21936)
5 files changed
tree: b0383540f16b41278633323f6b59697883bba08a
  1. nn/
  2. .clang-format
  3. CleanSpec.mk
  4. CPPLINT.cfg
  5. OWNERS
  6. PREUPLOAD.cfg