Simplify VersionedInterfaces error handling logic

This CL has the following simplifications:
* CHECK input is non-null instead of gracefully failing
* more clearly separate versioned logic
* remove std::nothrow when calling "new" for small objects
* makes const methods const

Bug: N/A
Test: mma
Test: NeuralNetworksTest_static
Test: CtsNNAPITestCases
Change-Id: If739b4cc37d8fd0d6b844111327c0688057c27e1
2 files changed
tree: cc2207063e92da7f72b4a198d29d93f8a751a147
  1. nn/
  2. .clang-format
  3. CleanSpec.mk
  4. CPPLINT.cfg
  5. OWNERS
  6. PREUPLOAD.cfg