diff options
| author | 2019-01-25 16:18:53 +0000 | |
|---|---|---|
| committer | 2019-01-30 10:24:00 +0000 | |
| commit | a2d2bc2ed74e35c46b7c6aa5172c652f63679fa3 (patch) | |
| tree | 4964fce11a9c49086b46aaf08be75f3262462b3d /runtime/hidden_api.h | |
| parent | 4ee4561f2153f3b0bc3be2e781488a97c73ca58e (diff) | |
Replace libmetricslogger logging with up-call to Java for hidden api
Use VMRuntime.hiddenApiUsedWith{JNI,Reflection} instead of depending on
libmetricslogger
Topic: hidden-api-reporting-upcall
Test: m
Bug: 119217680
Change-Id: Ifaf0b0e4ae271f6fcd37e8d7cf917a3b81d8ddae
Merged-In: I3292f1d20cc8635391cddc3ba60d4a80b578fa82
Diffstat (limited to 'runtime/hidden_api.h')
| -rw-r--r-- | runtime/hidden_api.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/runtime/hidden_api.h b/runtime/hidden_api.h index 8bd59ea90a..e15e9f38aa 100644 --- a/runtime/hidden_api.h +++ b/runtime/hidden_api.h @@ -45,11 +45,13 @@ inline EnforcementPolicy EnforcementPolicyFromInt(int api_policy_int) { return static_cast<EnforcementPolicy>(api_policy_int); } +// Hidden API access method +// Thist must be kept in sync with VMRuntime.HiddenApiUsageLogger.ACCESS_METHOD_* enum class AccessMethod { - kNone, // internal test that does not correspond to an actual access by app - kReflection, - kJNI, - kLinking, + kNone = 0, // internal test that does not correspond to an actual access by app + kReflection = 1, + kJNI = 2, + kLinking = 3, }; // Represents the API domain of a caller/callee. |