Merge "Hook up emergency metrics"
This commit is contained in:
commit
b1b1c64f22
|
@ -160,6 +160,9 @@ public class Analytics {
|
|||
public void setCallIsAdditional(boolean isAdditional) {
|
||||
}
|
||||
|
||||
public void setCallIsEmergency(boolean isEmergency) {
|
||||
}
|
||||
|
||||
public void setCallIsInterrupted(boolean isInterrupted) {
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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'
|
||||
|
|
|
@ -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;
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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…
Reference in New Issue