Pass sampled value to hidden api access logger
The hidden api access logger can use multiple logging methods, each with
its own sampling rate. ART will only be aware of the maximum sampling
rate, and it will be up to the logger to choose which logging method or
methods will be chosen.
Test: m
Bug: 119217680
(cherry picked from commit 5746f795e254fc74ab54ba4e59bc0c5e994efb03)
Change-Id: Ida8d494cb280cb94cd27adf1264776d3e9306471
Merged-In: I888e55c76ea7a032c35e880a981d1fc9dd4ba6b6
diff --git a/runtime/hidden_api.h b/runtime/hidden_api.h
index 0bdb5c8..2b876dc 100644
--- a/runtime/hidden_api.h
+++ b/runtime/hidden_api.h
@@ -197,7 +197,7 @@
void WarnAboutAccess(AccessMethod access_method, ApiList list);
- void LogAccessToEventLog(AccessMethod access_method, bool access_denied);
+ void LogAccessToEventLog(uint32_t sampled_value, AccessMethod access_method, bool access_denied);
// Calls back into managed code to notify VMRuntime.nonSdkApiUsageConsumer that
// |member| was accessed. This is usually called when an API is on the black,