Change JNI behavior related to hiddenapi.

When resolving a method, if the found method is not accessible, check if
there are methods defined in interfaces which are.

Bug: 178680596
Bug: 122551864
Test: 817-hiddenapi
Change-Id: Ibca0960e93ee399718716395ff9ed1f1c4e246b2
9 files changed