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)

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