Add basic validation for ANeuralNetworksModel_addOperation

  - This change tries to catch errors during
    ANeuralNetworksModel_addOperation.
  - It checks the expected number of arguments and their types.
  - Add tests for most of the operations.
  - Fix a bug in another test caught by this change.

Bug: 67828197
Test: mm
Test: NeuralNetworksTest
Change-Id: I565a8a08f96dd9f2b15a8e413360df0bedc57f37
6 files changed
tree: f0b848dcc6db40400374743ad603c7d225decb78
  1. nn/
  2. OWNERS