当前位置: 首页>>代码示例>>Java>>正文


Java VerboseLogUtil类代码示例

本文整理汇总了Java中com.google.android.exoplayer.util.VerboseLogUtil的典型用法代码示例。如果您正苦于以下问题:Java VerboseLogUtil类的具体用法?Java VerboseLogUtil怎么用?Java VerboseLogUtil使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


VerboseLogUtil类属于com.google.android.exoplayer.util包,在下文中一共展示了VerboseLogUtil类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: showVerboseLogPopup

import com.google.android.exoplayer.util.VerboseLogUtil; //导入依赖的package包/类
public void showVerboseLogPopup(View v) {
	PopupMenu popup = new PopupMenu(this, v);
	Menu menu = popup.getMenu();
	menu.add(Menu.NONE, 0, Menu.NONE, R.string.logging_normal);
	menu.add(Menu.NONE, 1, Menu.NONE, R.string.logging_verbose);
	menu.setGroupCheckable(Menu.NONE, true, true);
	menu.findItem((VerboseLogUtil.areAllTagsEnabled()) ? 1 : 0).setChecked(true);
	popup.setOnMenuItemClickListener(new OnMenuItemClickListener() {
		@Override
		public boolean onMenuItemClick(MenuItem item) {
			if (item.getItemId() == 0) {
				VerboseLogUtil.setEnableAllTags(false);
			} else {
				VerboseLogUtil.setEnableAllTags(true);
			}
			return true;
		}
	});
	popup.show();
}
 
开发者ID:vuthanhict,项目名称:ExoPlayerController,代码行数:21,代码来源:PlayerActivity.java

示例2: showVerboseLogPopup

import com.google.android.exoplayer.util.VerboseLogUtil; //导入依赖的package包/类
public void showVerboseLogPopup(View v) {
    PopupMenu popup = new PopupMenu(this, v);
    Menu menu = popup.getMenu();
    menu.add(Menu.NONE, 0, Menu.NONE, R.string.logging_normal);
    menu.add(Menu.NONE, 1, Menu.NONE, R.string.logging_verbose);
    menu.setGroupCheckable(Menu.NONE, true, true);
    menu.findItem((VerboseLogUtil.areAllTagsEnabled()) ? 1 : 0).setChecked(true);
    popup.setOnMenuItemClickListener(new OnMenuItemClickListener() {
        @Override
        public boolean onMenuItemClick(MenuItem item) {
            if (item.getItemId() == 0) {
                VerboseLogUtil.setEnableAllTags(false);
            } else {
                VerboseLogUtil.setEnableAllTags(true);
            }
            return true;
        }
    });
    popup.show();
}
 
开发者ID:asifkhan11,项目名称:ExoPlayer-Demo,代码行数:21,代码来源:PlayerActivity.java

示例3: showVerboseLogPopup

import com.google.android.exoplayer.util.VerboseLogUtil; //导入依赖的package包/类
public void showVerboseLogPopup(View v) {
  PopupMenu popup = new PopupMenu(this, v);
  Menu menu = popup.getMenu();
  menu.add(Menu.NONE, 0, Menu.NONE, R.string.logging_normal);
  menu.add(Menu.NONE, 1, Menu.NONE, R.string.logging_verbose);
  menu.setGroupCheckable(Menu.NONE, true, true);
  menu.findItem((VerboseLogUtil.areAllTagsEnabled()) ? 1 : 0).setChecked(true);
  popup.setOnMenuItemClickListener(new OnMenuItemClickListener() {
    @Override
    public boolean onMenuItemClick(MenuItem item) {
      if (item.getItemId() == 0) {
        VerboseLogUtil.setEnableAllTags(false);
      } else {
        VerboseLogUtil.setEnableAllTags(true);
      }
      return true;
    }
  });
  popup.show();
}
 
开发者ID:Weco,项目名称:android-exoplayer,代码行数:21,代码来源:FullPlayerActivity.java

示例4: onLoadStarted

import com.google.android.exoplayer.util.VerboseLogUtil; //导入依赖的package包/类
@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 + "]");
  }
}
 
开发者ID:Dreamxiaoxuan,项目名称:AndroidTvDemo,代码行数:10,代码来源:EventLogger.java

示例5: onLoadCompleted

import com.google.android.exoplayer.util.VerboseLogUtil; //导入依赖的package包/类
@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
        + "]");
  }
}
 
开发者ID:Dreamxiaoxuan,项目名称:AndroidTvDemo,代码行数:10,代码来源:EventLogger.java

示例6: onLoadStarted

import com.google.android.exoplayer.util.VerboseLogUtil; //导入依赖的package包/类
@Override
public void onLoadStarted(int sourceId, long length, int type, int trigger, Format format,
                          int mediaStartTimeMs, int mediaEndTimeMs) {
    loadStartTimeMs[sourceId] = SystemClock.elapsedRealtime();
    if (VerboseLogUtil.isTagEnabled(TAG)) {
        Log.v(TAG, "loadStart [" + getSessionTimeString() + ", " + sourceId + ", " + type
                + ", " + mediaStartTimeMs + ", " + mediaEndTimeMs + "]");
    }
}
 
开发者ID:nextux,项目名称:sbs-android-tv,代码行数:10,代码来源:EventLogger.java

示例7: onLoadCompleted

import com.google.android.exoplayer.util.VerboseLogUtil; //导入依赖的package包/类
@Override
public void onLoadCompleted(int sourceId, long bytesLoaded, int type, int trigger, Format format,
                            int mediaStartTimeMs, int mediaEndTimeMs, long elapsedRealtimeMs, long loadDurationMs) {
    if (VerboseLogUtil.isTagEnabled(TAG)) {
        long downloadTime = SystemClock.elapsedRealtime() - loadStartTimeMs[sourceId];
        Log.v(TAG, "loadEnd [" + getSessionTimeString() + ", " + sourceId + ", " + downloadTime
                + "]");
    }
}
 
开发者ID:nextux,项目名称:sbs-android-tv,代码行数:10,代码来源:EventLogger.java

示例8: onLoadStarted

import com.google.android.exoplayer.util.VerboseLogUtil; //导入依赖的package包/类
@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 + "]");
    }
}
 
开发者ID:cklar,项目名称:ExoPlayerWrapper,代码行数:10,代码来源:EventLogger.java

示例9: onLoadCompleted

import com.google.android.exoplayer.util.VerboseLogUtil; //导入依赖的package包/类
@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
                + "]");
    }
}
 
开发者ID:cklar,项目名称:ExoPlayerWrapper,代码行数:10,代码来源:EventLogger.java

示例10: onLoadStarted

import com.google.android.exoplayer.util.VerboseLogUtil; //导入依赖的package包/类
@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 + "]");
  }
}
 
开发者ID:Weco,项目名称:android-exoplayer,代码行数:10,代码来源:EventLogger.java

示例11: onLoadCompleted

import com.google.android.exoplayer.util.VerboseLogUtil; //导入依赖的package包/类
@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 + "]");
  }
}
 
开发者ID:Weco,项目名称:android-exoplayer,代码行数:9,代码来源:EventLogger.java

示例12: onLoadStarted

import com.google.android.exoplayer.util.VerboseLogUtil; //导入依赖的package包/类
@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 + "]");
  }
}
 
开发者ID:birdcopy,项目名称:Android-Birdcopy-Application,代码行数:10,代码来源:EventLogger.java

示例13: onLoadCompleted

import com.google.android.exoplayer.util.VerboseLogUtil; //导入依赖的package包/类
@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
            + "]");
  }
}
 
开发者ID:birdcopy,项目名称:Android-Birdcopy-Application,代码行数:10,代码来源:EventLogger.java

示例14: onLoadCompleted

import com.google.android.exoplayer.util.VerboseLogUtil; //导入依赖的package包/类
@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
        + "]");
  }
}
 
开发者ID:tyazid,项目名称:Exoplayer_VLC,代码行数:9,代码来源:EventLogger.java

示例15: onLoadStarted

import com.google.android.exoplayer.util.VerboseLogUtil; //导入依赖的package包/类
@Override
public void onLoadStarted(int sourceId, long length, int type, int trigger, Format format,
    int mediaStartTimeMs, int mediaEndTimeMs) {
  loadStartTimeMs[sourceId] = SystemClock.elapsedRealtime();
  if (VerboseLogUtil.isTagEnabled(TAG)) {
    Log.v(TAG, "loadStart [" + getSessionTimeString() + ", " + sourceId + ", " + type
        + ", " + mediaStartTimeMs + ", " + mediaEndTimeMs + "]");
  }
}
 
开发者ID:raphanda,项目名称:ExoPlayer,代码行数:10,代码来源:EventLogger.java


注:本文中的com.google.android.exoplayer.util.VerboseLogUtil类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。