Support /system/system_ext/framework jars with hiddenapi.

When devices ship without a /system_ext partition, we create
/system/system_ext and add a symlink from /system_ext. However, the path
ART gets is the full resolved path, so we need to account for it.

Also rename LocationIsOnModule to LocationIsOn, as the method has
nothing to do with modules (anymore?).

Cleanup hidden_api_test.cc

Bug: 180943021
Test: hidden_api_test
Change-Id: Ib3bf65da73248a80f76b8a8a5ed5e004c8716851
2 files changed