summaryrefslogtreecommitdiff
path: root/runtime/hidden_api_test.cc
diff options
context:
space:
mode:
author Andrei Onea <andreionea@google.com> 2020-11-19 00:20:04 +0000
committer Andrei-Valentin Onea <andreionea@google.com> 2020-11-23 19:02:00 +0000
commit037d282cd1fc201601ac52dcfe0f1a4d97ca3790 (patch)
treeda6a1d61357cd09c4131501031de691491bcdb2a /runtime/hidden_api_test.cc
parent6e71c66b35f6a96908e3d371316cba15dcb75d1f (diff)
Add compat framework logging to ART
Log first call for every change id in ART to logcat. Test: manual Bug: 153061480 Change-Id: I37ff5b88572478ae6c24b0b7dec2020da03b2172
Diffstat (limited to 'runtime/hidden_api_test.cc')
-rw-r--r--runtime/hidden_api_test.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/hidden_api_test.cc b/runtime/hidden_api_test.cc
index 6e573de528..6a002e5704 100644
--- a/runtime/hidden_api_test.cc
+++ b/runtime/hidden_api_test.cc
@@ -83,13 +83,14 @@ class HiddenApiTest : public CommonRuntimeTest {
}
void setChangeIdState(uint64_t change, bool enabled) {
- std::set<uint64_t> disabled_changes = runtime_->GetDisabledCompatChanges();
+ CompatFramework& compat_framework = runtime_->GetCompatFramework();
+ std::set<uint64_t> disabled_changes = compat_framework.GetDisabledCompatChanges();
if (enabled) {
disabled_changes.erase(change);
} else {
disabled_changes.insert(change);
}
- runtime_->SetDisabledCompatChanges(disabled_changes);
+ compat_framework.SetDisabledCompatChanges(disabled_changes);
}
bool ShouldDenyAccess(hiddenapi::ApiList list) REQUIRES_SHARED(Locks::mutator_lock_) {