Example #1
0
 @Override
 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.v(
         TAG,
         "loadStart ["
             + getSessionTimeString()
             + ", "
             + sourceId
             + ", "
             + type
             + ", "
             + mediaStartTimeMs
             + ", "
             + mediaEndTimeMs
             + "]");
   }
 }
Example #2
0
 @Override
 public void onLoadCompleted(int sourceId, long bytesLoaded) {
   if (VerboseLogUtil.isTagEnabled(TAG)) {
     long downloadTime = SystemClock.elapsedRealtime() - loadStartTimeMs[sourceId];
     Log.v(
         TAG, "loadEnd [" + getSessionTimeString() + ", " + sourceId + ", " + downloadTime + "]");
   }
 }
Example #3
0
 @Override
 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.v(
         TAG, "loadEnd [" + getSessionTimeString() + ", " + sourceId + ", " + downloadTime + "]");
   }
 }
Example #4
0
 @Override
 public void onLoadStarted(
     int sourceId,
     String formatId,
     int trigger,
     boolean isInitialization,
     int mediaStartTimeMs,
     int mediaEndTimeMs,
     long length) {
   loadStartTimeMs[sourceId] = SystemClock.elapsedRealtime();
   if (VerboseLogUtil.isTagEnabled(TAG)) {
     Log.v(
         TAG,
         "loadStart ["
             + getSessionTimeString()
             + ", "
             + sourceId
             + ", "
             + mediaStartTimeMs
             + ", "
             + mediaEndTimeMs
             + "]");
   }
 }