diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-10-17 22:17:54 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-10-17 22:17:54 +0000 |
commit | c2590357cf857e714f875f2a7c222d1bd128c2c5 (patch) | |
tree | 8cb92a8b0af7dc9d3278a5e1389f1cc646c26b98 /java/com/android/incallui/ProximitySensor.java | |
parent | 0d1362b28afb4a71b8b2a56bad2be3fcf2802de6 (diff) | |
parent | c8cf79e8e834148ff37759f59e83e169584ee99f (diff) |
Merge "Some cleanup of incoming call latency."
Diffstat (limited to 'java/com/android/incallui/ProximitySensor.java')
-rw-r--r-- | java/com/android/incallui/ProximitySensor.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/java/com/android/incallui/ProximitySensor.java b/java/com/android/incallui/ProximitySensor.java index 339a2e941..123ca539f 100644 --- a/java/com/android/incallui/ProximitySensor.java +++ b/java/com/android/incallui/ProximitySensor.java @@ -60,6 +60,7 @@ public class ProximitySensor @NonNull Context context, @NonNull AudioModeProvider audioModeProvider, @NonNull AccelerometerListener accelerometerListener) { + Trace.beginSection("ProximitySensor.Constructor"); mPowerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); if (mPowerManager.isWakeLockLevelSupported(PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK)) { mProximityWakeLock = @@ -78,6 +79,7 @@ public class ProximitySensor mAudioModeProvider = audioModeProvider; mAudioModeProvider.addListener(this); + Trace.endSection(); } public void tearDown() { |