Filter symbols by api-map

header-abi-linker -api-map takes a json file that maps codenames to API
levels. The file is typically located at out/soong/api_levels.json. The
mapping is necessary for parsing Android version scripts.

Test: ANDROID_BUILD_TOP=`realpath .` \
      PATH=$PATH:`realpath out/soong/dist/bin` \
      development/vndk/tools/header-checker/tests/test.py
Test: LD_LIBRARY_PATH=out/soong/dist/lib64 \
      out/soong/host/linux-x86/nativetest64/header-checker-unittests/header-checker-unittests
Bug: 298626434
Change-Id: Ie0f9861959eaaf88dbe01b631c933d1ab76db656
11 files changed