Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4ef12bb authored by Brad Ebinger's avatar Brad Ebinger Committed by android-build-merger
Browse files

Merge "Adds registerSessionListener API to Log"

am: e3daed81

Change-Id: Ia42cba6a735170ce1aea653bd42b6f1182853819
parents ea4423b1 e3daed81
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -199,6 +199,10 @@ public class Log {
        getSessionManager().endSession();
    }

    public static void registerSessionListener(SessionManager.ISessionListener l) {
        getSessionManager().registerSessionListener(l);
    }

    public static String getSessionId() {
        // If the Session logger has not been initialized, then there have been no sessions logged.
        // Don't load it now!
+0 −2
Original line number Diff line number Diff line
@@ -366,8 +366,6 @@ public class EventManager {
        // Now add a new entry
        mEventRecords.add(newRecord);
        mCallEventRecordMap.put(recordEntry, newRecord);

        // TODO: Add Implementation of this in Telecom for Analytics
        synchronized (mSync) {
            for (EventListener l : mEventListeners) {
                l.eventRecordAdded(newRecord);
+0 −1
Original line number Diff line number Diff line
@@ -273,7 +273,6 @@ public class SessionManager {
                    System.currentTimeMillis() - subsession.getExecutionStartTimeMilliseconds();
            android.util.Slog.d(LOGGING_TAG, Session.END_SESSION + " (dur: " + fullSessionTimeMs
                    + " ms): " + subsession.toString());
            // TODO: Add analytics hook
            for (ISessionListener l : mSessionListeners) {
                l.sessionComplete(subsession.getShortMethodName(), fullSessionTimeMs);
            }