ART: Don't check access for method parameters

Rename ResolveClassAndCheckAccess to ResolveClass and add a CheckAccess
template parameter. Do not check access when checking the signature of
the method to be verified. A parameter itself is not an access and would
not trigger an IllegalAccessError. So only check on actual usage.

Bug: 64681719
Test: m test-art-host
Change-Id: I00aa37f5fb097b37e267bd4332638fa3092b4fe9
3 files changed