commit | c989d983ecf7c0729f4725f10135a40e935b3db1 | [log] [tgz] |
---|---|---|
author | Lucas Dupin <dupin@google.com> | Tue Oct 08 11:44:42 2019 -0700 |
committer | Lucas Dupin <dupin@google.com> | Tue Oct 08 11:44:42 2019 -0700 |
tree | c9f694b6d65c875619774fc46288b091d4b42427 | |
parent | 3b5eb58b74c33b182a30639938baab3082be56ff [diff] |
Add trace points for measuring performance Test: systrace Bug: 139363827 Bug: 139360025 Change-Id: I979c5fbecbaa9896a39abeb7b5639a95a5166688
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyguardStateControllerImpl.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyguardStateControllerImpl.java index cc91bc0..392094d 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyguardStateControllerImpl.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyguardStateControllerImpl.java
@@ -154,13 +154,17 @@ } private void notifyKeyguardChanged() { + Trace.beginSection("KeyguardStateController#notifyKeyguardChanged"); // Copy the list to allow removal during callback. new ArrayList<>(mCallbacks).forEach(Callback::onKeyguardShowingChanged); + Trace.endSection(); } private void notifyUnlockedChanged() { + Trace.beginSection("KeyguardStateController#notifyUnlockedChanged"); // Copy the list to allow removal during callback. new ArrayList<>(mCallbacks).forEach(Callback::onUnlockedChanged); + Trace.endSection(); } @Override