Allow hidden api usage logging with VMRuntime

Added HiddenApiUsage interface, a static setter, and two static methods
which forward the hidden api usage events to the logger (for access via
JNI and via reflection)

Change-Id: Ia2f154f4649c5f0c22c55e6a12c0399a5912deb8
Topic: hidden-api-reporting-upcall
Test: m
Bug: 119217680
2 files changed