diff options
Diffstat (limited to 'java/com/android/incallui/InCallServiceImpl.java')
-rw-r--r-- | java/com/android/incallui/InCallServiceImpl.java | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/java/com/android/incallui/InCallServiceImpl.java b/java/com/android/incallui/InCallServiceImpl.java index d2b029741..a2e243202 100644 --- a/java/com/android/incallui/InCallServiceImpl.java +++ b/java/com/android/incallui/InCallServiceImpl.java @@ -19,6 +19,7 @@ package com.android.incallui; import android.content.Context; import android.content.Intent; import android.os.IBinder; +import android.os.Trace; import android.telecom.Call; import android.telecom.CallAudioState; import android.telecom.InCallService; @@ -45,26 +46,35 @@ public class InCallServiceImpl extends InCallService { @Override public void onBringToForeground(boolean showDialpad) { + Trace.beginSection("InCallServiceImpl.onBringToForeground"); InCallPresenter.getInstance().onBringToForeground(showDialpad); + Trace.endSection(); } @Override public void onCallAdded(Call call) { + Trace.beginSection("InCallServiceImpl.onCallAdded"); InCallPresenter.getInstance().onCallAdded(call); + Trace.endSection(); } @Override public void onCallRemoved(Call call) { + Trace.beginSection("InCallServiceImpl.onCallRemoved"); InCallPresenter.getInstance().onCallRemoved(call); + Trace.endSection(); } @Override public void onCanAddCallChanged(boolean canAddCall) { + Trace.beginSection("InCallServiceImpl.onCanAddCallChanged"); InCallPresenter.getInstance().onCanAddCallChanged(canAddCall); + Trace.endSection(); } @Override public IBinder onBind(Intent intent) { + Trace.beginSection("InCallServiceImpl.onBind"); final Context context = getApplicationContext(); final ContactInfoCache contactInfoCache = ContactInfoCache.getInstance(context); InCallPresenter.getInstance() @@ -85,20 +95,25 @@ public class InCallServiceImpl extends InCallService { returnToCallController = new ReturnToCallController(this); } - return super.onBind(intent); + IBinder iBinder = super.onBind(intent); + Trace.endSection(); + return iBinder; } @Override public boolean onUnbind(Intent intent) { + Trace.beginSection("InCallServiceImpl.onUnbind"); super.onUnbind(intent); InCallPresenter.getInstance().onServiceUnbind(); tearDown(); + Trace.endSection(); return false; } private void tearDown() { + Trace.beginSection("InCallServiceImpl.tearDown"); Log.v(this, "tearDown"); // Tear down the InCall system TelecomAdapter.getInstance().clearInCallService(); @@ -107,5 +122,6 @@ public class InCallServiceImpl extends InCallService { returnToCallController.tearDown(); returnToCallController = null; } + Trace.endSection(); } } |