diff options
Diffstat (limited to 'java/com/android/incallui/latencyreport')
-rw-r--r-- | java/com/android/incallui/latencyreport/LatencyReport.java | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/java/com/android/incallui/latencyreport/LatencyReport.java b/java/com/android/incallui/latencyreport/LatencyReport.java index 2e1fbd590..8ea66f9b3 100644 --- a/java/com/android/incallui/latencyreport/LatencyReport.java +++ b/java/com/android/incallui/latencyreport/LatencyReport.java @@ -30,111 +30,111 @@ public class LatencyReport { "android.telecom.extra.CALL_TELECOM_ROUTING_START_TIME_MILLIS"; private static final String EXTRA_CALL_TELECOM_ROUTING_END_TIME_MILLIS = "android.telecom.extra.CALL_TELECOM_ROUTING_END_TIME_MILLIS"; - private final boolean mWasIncoming; + private final boolean wasIncoming; // Time elapsed since boot when the call was created by the connection service. - private final long mCreatedTimeMillis; + private final long createdTimeMillis; // Time elapsed since boot when telecom began processing the call. - private final long mTelecomRoutingStartTimeMillis; + private final long telecomRoutingStartTimeMillis; // Time elapsed since boot when telecom finished processing the call. This includes things like // looking up contact info and call blocking but before showing any UI. - private final long mTelecomRoutingEndTimeMillis; + private final long telecomRoutingEndTimeMillis; // Time elapsed since boot when the call was added to the InCallUi. - private final long mCallAddedTimeMillis; + private final long callAddedTimeMillis; // Time elapsed since boot when the call was added and call blocking evaluation was completed. - private long mCallBlockingTimeMillis = INVALID_TIME; + private long callBlockingTimeMillis = INVALID_TIME; // Time elapsed since boot when the call notification was shown. - private long mCallNotificationTimeMillis = INVALID_TIME; + private long callNotificationTimeMillis = INVALID_TIME; // Time elapsed since boot when the InCallUI was shown. - private long mInCallUiShownTimeMillis = INVALID_TIME; + private long inCallUiShownTimeMillis = INVALID_TIME; // Whether the call was shown to the user as a heads up notification instead of a full screen // UI. - private boolean mDidDisplayHeadsUpNotification; + private boolean didDisplayHeadsUpNotification; public LatencyReport() { - mWasIncoming = false; - mCreatedTimeMillis = INVALID_TIME; - mTelecomRoutingStartTimeMillis = INVALID_TIME; - mTelecomRoutingEndTimeMillis = INVALID_TIME; - mCallAddedTimeMillis = SystemClock.elapsedRealtime(); + wasIncoming = false; + createdTimeMillis = INVALID_TIME; + telecomRoutingStartTimeMillis = INVALID_TIME; + telecomRoutingEndTimeMillis = INVALID_TIME; + callAddedTimeMillis = SystemClock.elapsedRealtime(); } public LatencyReport(android.telecom.Call telecomCall) { - mWasIncoming = telecomCall.getState() == android.telecom.Call.STATE_RINGING; + wasIncoming = telecomCall.getState() == android.telecom.Call.STATE_RINGING; Bundle extras = telecomCall.getDetails().getIntentExtras(); if (extras == null) { - mCreatedTimeMillis = INVALID_TIME; - mTelecomRoutingStartTimeMillis = INVALID_TIME; - mTelecomRoutingEndTimeMillis = INVALID_TIME; + createdTimeMillis = INVALID_TIME; + telecomRoutingStartTimeMillis = INVALID_TIME; + telecomRoutingEndTimeMillis = INVALID_TIME; } else { - mCreatedTimeMillis = extras.getLong(EXTRA_CALL_CREATED_TIME_MILLIS, INVALID_TIME); - mTelecomRoutingStartTimeMillis = + createdTimeMillis = extras.getLong(EXTRA_CALL_CREATED_TIME_MILLIS, INVALID_TIME); + telecomRoutingStartTimeMillis = extras.getLong(EXTRA_CALL_TELECOM_ROUTING_START_TIME_MILLIS, INVALID_TIME); - mTelecomRoutingEndTimeMillis = + telecomRoutingEndTimeMillis = extras.getLong(EXTRA_CALL_TELECOM_ROUTING_END_TIME_MILLIS, INVALID_TIME); } - mCallAddedTimeMillis = SystemClock.elapsedRealtime(); + callAddedTimeMillis = SystemClock.elapsedRealtime(); } public boolean getWasIncoming() { - return mWasIncoming; + return wasIncoming; } public long getCreatedTimeMillis() { - return mCreatedTimeMillis; + return createdTimeMillis; } public long getTelecomRoutingStartTimeMillis() { - return mTelecomRoutingStartTimeMillis; + return telecomRoutingStartTimeMillis; } public long getTelecomRoutingEndTimeMillis() { - return mTelecomRoutingEndTimeMillis; + return telecomRoutingEndTimeMillis; } public long getCallAddedTimeMillis() { - return mCallAddedTimeMillis; + return callAddedTimeMillis; } public long getCallBlockingTimeMillis() { - return mCallBlockingTimeMillis; + return callBlockingTimeMillis; } public void onCallBlockingDone() { - if (mCallBlockingTimeMillis == INVALID_TIME) { - mCallBlockingTimeMillis = SystemClock.elapsedRealtime(); + if (callBlockingTimeMillis == INVALID_TIME) { + callBlockingTimeMillis = SystemClock.elapsedRealtime(); } } public long getCallNotificationTimeMillis() { - return mCallNotificationTimeMillis; + return callNotificationTimeMillis; } public void onNotificationShown() { - if (mCallNotificationTimeMillis == INVALID_TIME) { - mCallNotificationTimeMillis = SystemClock.elapsedRealtime(); + if (callNotificationTimeMillis == INVALID_TIME) { + callNotificationTimeMillis = SystemClock.elapsedRealtime(); } } public long getInCallUiShownTimeMillis() { - return mInCallUiShownTimeMillis; + return inCallUiShownTimeMillis; } public void onInCallUiShown(boolean forFullScreenIntent) { - if (mInCallUiShownTimeMillis == INVALID_TIME) { - mInCallUiShownTimeMillis = SystemClock.elapsedRealtime(); - mDidDisplayHeadsUpNotification = mWasIncoming && !forFullScreenIntent; + if (inCallUiShownTimeMillis == INVALID_TIME) { + inCallUiShownTimeMillis = SystemClock.elapsedRealtime(); + didDisplayHeadsUpNotification = wasIncoming && !forFullScreenIntent; } } public boolean getDidDisplayHeadsUpNotification() { - return mDidDisplayHeadsUpNotification; + return didDisplayHeadsUpNotification; } } |