diff options
| author | 2018-04-08 07:21:37 +0000 | |
|---|---|---|
| committer | 2018-04-08 07:21:37 +0000 | |
| commit | 4b86ef5422e36e5b852a8208f59ac93c169f7ecb (patch) | |
| tree | 6debc967f7886e7e25905bc9e04d153ed12584a4 /tools/veridex/hidden_api.h | |
| parent | 406cfc2782cd6ba93a4162c066a0d13cbf4967a2 (diff) | |
| parent | c3dbfcc312774563c28f70c5c83c8bca5c894a9a (diff) | |
Snap for 4706961 from c3dbfcc312774563c28f70c5c83c8bca5c894a9a to pi-release
Change-Id: I7ad2b8bfacd5035ad9d01ae3601c431c21102feb
Diffstat (limited to 'tools/veridex/hidden_api.h')
| -rw-r--r-- | tools/veridex/hidden_api.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/veridex/hidden_api.h b/tools/veridex/hidden_api.h index 5893b8ae33..4c67768a00 100644 --- a/tools/veridex/hidden_api.h +++ b/tools/veridex/hidden_api.h @@ -18,6 +18,7 @@ #define ART_TOOLS_VERIDEX_HIDDEN_API_H_ #include "dex/hidden_api_access_flags.h" +#include "dex/method_reference.h" #include <ostream> #include <set> @@ -58,6 +59,10 @@ class HiddenApi { static std::string GetApiFieldName(const DexFile& dex_file, uint32_t field_index); + static std::string GetApiMethodName(MethodReference ref) { + return HiddenApi::GetApiMethodName(*ref.dex_file, ref.index); + } + private: static bool IsInList(const std::string& name, const std::set<std::string>& list) { return list.find(name) != list.end(); @@ -70,6 +75,13 @@ class HiddenApi { std::set<std::string> dark_greylist_; }; +struct HiddenApiStats { + uint32_t count = 0; + uint32_t reflection_count = 0; + uint32_t linking_count = 0; + uint32_t api_counts[4] = { 0, 0, 0, 0 }; +}; + } // namespace art #endif // ART_TOOLS_VERIDEX_HIDDEN_API_H_ |