Implement NNAPI compilation caching runtime.

Implement compilation caching in runtime and add compilation caching
tests.

The token from user is transformed during the partitioning process by
SHA256 hasher based on
- device name
- device version string
- execution preference
- which operation (index) is included in the partition

Add tests to test compilation caching and the partitioner.

Bug: 119616526
Test: NeuralNetworksTest_static
Change-Id: I41e9dce10d95f744382894299c0d68bb8d10c08c
14 files changed
tree: b1da5a197abf1eeff46493584c670da56c50d68b
  1. nn/
  2. .clang-format
  3. CleanSpec.mk
  4. OWNERS
  5. PREUPLOAD.cfg