Deprecate nnAssert in favor of CHECK

CHECK is part of android-base/logging.h, provides the ability to
include an explanation, and comes with a bunch of helpers like
CHECK_EQ, CHECK_CONSTEXPR, and DCHECK.

`nnAssert(1 == 0);` aborts and produces the following LOG(FATAL) message:

    nnAssert failed at frameworks/ml/nn/common/operations/Gather.cpp:124 - 'true == false'

`CHECK(1 == 0) << "my explanation";` aborts and produces the following LOG(FATAL) message:

    Gather.cpp:124] Check failed: 1 == 0 my explanation

Bug: 118737105
Bug: 114704873
Test: NeuralNetworksTest_static
Change-Id: I20d610ad056f69059012d469f81cc6ee191f975e
Merged-In: I20d610ad056f69059012d469f81cc6ee191f975e
(cherry picked from commit df7e232ce9553d6f3db71787594cd6d216fb9b09)
2 files changed
tree: 27279f9b96fbb39e6f30adf75e8bf570d571ff24
  1. nn/
  2. .clang-format
  3. CleanSpec.mk
  4. OWNERS
  5. PREUPLOAD.cfg