public void OnLoadStarted( int sourceId, long length, int type, int trigger, Format format, long mediaStartTimeMs, long mediaEndTimeMs) { _loadStartTimeMs[sourceId] = SystemClock.ElapsedRealtime(); if (VerboseLogUtil.IsTagEnabled(Tag)) { Log.Verbose(Tag, "loadStart [" + GetSessionTimeString() + ", " + sourceId + ", " + type + ", " + mediaStartTimeMs + ", " + mediaEndTimeMs + "]"); } }
public void OnLoadCompleted( int sourceId, long bytesLoaded, int type, int trigger, Format format, long mediaStartTimeMs, long mediaEndTimeMs, long elapsedRealtimeMs, long loadDurationMs) { if (VerboseLogUtil.IsTagEnabled(Tag)) { long downloadTime = SystemClock.ElapsedRealtime() - _loadStartTimeMs[sourceId]; Log.Verbose(Tag, "loadEnd [" + GetSessionTimeString() + ", " + sourceId + ", " + downloadTime + "]"); } }
public void StartSession() { _sessionStartTimeMs = SystemClock.ElapsedRealtime(); Log.Debug(Tag, "start [0]"); }
private string GetSessionTimeString() { return(GetTimeString(SystemClock.ElapsedRealtime() - _sessionStartTimeMs)); }