Loading src/com/android/server/telecom/Analytics.java +10 −0 Original line number Diff line number Diff line Loading @@ -160,6 +160,9 @@ public class Analytics { public void setCallIsAdditional(boolean isAdditional) { } public void setCallIsEmergency(boolean isEmergency) { } public void setCallIsInterrupted(boolean isInterrupted) { } Loading Loading @@ -294,6 +297,12 @@ public class Analytics { this.callTechnologies |= callTechnology; } @Override public void setCallIsEmergency(boolean isEmergency) { Log.d(TAG, "setting call as emergency: " + isEmergency); this.isEmergency = isEmergency; } @Override public void setCallDisconnectCause(DisconnectCause disconnectCause) { Log.d(TAG, "setting disconnectCause for call " + callId + " to " + disconnectCause); Loading Loading @@ -361,6 +370,7 @@ public class Analytics { + " direction: " + getCallDirectionString() + '\n' + " isAdditionalCall: " + isAdditionalCall + '\n' + " isInterrupted: " + isInterrupted + '\n' + " isEmergency: " + isEmergency + '\n' + " callTechnologies: " + getCallTechnologiesAsString() + '\n' + " callTerminationReason: " + getCallDisconnectReasonString() + '\n' + " connectionService: " + connectionService + '\n' Loading src/com/android/server/telecom/Call.java +3 −2 Original line number Diff line number Diff line Loading @@ -414,7 +414,7 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable, private final TelecomSystem.SyncRoot mLock; private final String mId; private String mConnectionId; private Analytics.CallInfo mAnalytics; private Analytics.CallInfo mAnalytics = new Analytics.CallInfo(); private char mPlayingDtmfTone; private boolean mWasConferencePreviouslyMerged = false; Loading Loading @@ -580,7 +580,6 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable, mShouldAttachToExistingConnection = shouldAttachToExistingConnection || callDirection == CALL_DIRECTION_INCOMING; maybeLoadCannedSmsResponses(); mAnalytics = new Analytics.CallInfo(); mClockProxy = clockProxy; mCreationTimeMillis = mClockProxy.currentTimeMillis(); } Loading Loading @@ -657,6 +656,7 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable, analyticsDirection = Analytics.UNKNOWN_DIRECTION; } mAnalytics = Analytics.initiateCallAnalytics(mId, analyticsDirection); mAnalytics.setCallIsEmergency(mIsEmergencyCall); Log.addEvent(this, LogUtils.Events.CREATED); } Loading Loading @@ -1033,6 +1033,7 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable, mIsEmergencyCall = mHandle != null && mPhoneNumberUtilsAdapter.isLocalEmergencyNumber(mContext, mHandle.getSchemeSpecificPart()); mAnalytics.setCallIsEmergency(mIsEmergencyCall); } startCallerInfoLookup(); for (Listener l : mListeners) { Loading Loading
src/com/android/server/telecom/Analytics.java +10 −0 Original line number Diff line number Diff line Loading @@ -160,6 +160,9 @@ public class Analytics { public void setCallIsAdditional(boolean isAdditional) { } public void setCallIsEmergency(boolean isEmergency) { } public void setCallIsInterrupted(boolean isInterrupted) { } Loading Loading @@ -294,6 +297,12 @@ public class Analytics { this.callTechnologies |= callTechnology; } @Override public void setCallIsEmergency(boolean isEmergency) { Log.d(TAG, "setting call as emergency: " + isEmergency); this.isEmergency = isEmergency; } @Override public void setCallDisconnectCause(DisconnectCause disconnectCause) { Log.d(TAG, "setting disconnectCause for call " + callId + " to " + disconnectCause); Loading Loading @@ -361,6 +370,7 @@ public class Analytics { + " direction: " + getCallDirectionString() + '\n' + " isAdditionalCall: " + isAdditionalCall + '\n' + " isInterrupted: " + isInterrupted + '\n' + " isEmergency: " + isEmergency + '\n' + " callTechnologies: " + getCallTechnologiesAsString() + '\n' + " callTerminationReason: " + getCallDisconnectReasonString() + '\n' + " connectionService: " + connectionService + '\n' Loading
src/com/android/server/telecom/Call.java +3 −2 Original line number Diff line number Diff line Loading @@ -414,7 +414,7 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable, private final TelecomSystem.SyncRoot mLock; private final String mId; private String mConnectionId; private Analytics.CallInfo mAnalytics; private Analytics.CallInfo mAnalytics = new Analytics.CallInfo(); private char mPlayingDtmfTone; private boolean mWasConferencePreviouslyMerged = false; Loading Loading @@ -580,7 +580,6 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable, mShouldAttachToExistingConnection = shouldAttachToExistingConnection || callDirection == CALL_DIRECTION_INCOMING; maybeLoadCannedSmsResponses(); mAnalytics = new Analytics.CallInfo(); mClockProxy = clockProxy; mCreationTimeMillis = mClockProxy.currentTimeMillis(); } Loading Loading @@ -657,6 +656,7 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable, analyticsDirection = Analytics.UNKNOWN_DIRECTION; } mAnalytics = Analytics.initiateCallAnalytics(mId, analyticsDirection); mAnalytics.setCallIsEmergency(mIsEmergencyCall); Log.addEvent(this, LogUtils.Events.CREATED); } Loading Loading @@ -1033,6 +1033,7 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable, mIsEmergencyCall = mHandle != null && mPhoneNumberUtilsAdapter.isLocalEmergencyNumber(mContext, mHandle.getSchemeSpecificPart()); mAnalytics.setCallIsEmergency(mIsEmergencyCall); } startCallerInfoLookup(); for (Listener l : mListeners) { Loading