diff options
Diffstat (limited to 'runtime/runtime.h')
| -rw-r--r-- | runtime/runtime.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h index 184e4e5b91..7ab9be5c5b 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -544,6 +544,14 @@ class Runtime { return dedupe_hidden_api_warnings_; } + void AlwaysSetHiddenApiWarningFlag() { + always_set_hidden_api_warning_flag_ = true; + } + + bool ShouldAlwaysSetHiddenApiWarningFlag() const { + return always_set_hidden_api_warning_flag_; + } + bool IsDexFileFallbackEnabled() const { return allow_dex_file_fallback_; } @@ -992,6 +1000,11 @@ class Runtime { // This is only used for testing. bool dedupe_hidden_api_warnings_; + // Hidden API can print warnings into the log and/or set a flag read by the + // framework to show a UI warning. If this flag is set, always set the flag + // when there is a warning. This is only used for testing. + bool always_set_hidden_api_warning_flag_; + // Whether threads should dump their native stack on SIGQUIT. bool dump_native_stack_on_sig_quit_; |