List of usage examples for android.util Log e
public static int e(String tag, String msg)
From source file:Main.java
public static String caxun(int time) { String re = "$CAXUN," + time + "* "; if (D)//w w w .j a v a 2 s.c o m Log.e(TAG, re); return re; }
From source file:Main.java
public static void checkGlError(String op) { int error;/*ww w .java 2 s. co m*/ while ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) { Log.e("SurfaceTest", op + ": glError " + GLUtils.getEGLErrorString(error)); } }
From source file:Main.java
public static void e(String tag, String msg) { if (DEBUG) {/*ww w . jav a 2 s.c o m*/ if (msg != null) { Log.e(tag, msg); } } }
From source file:Main.java
/** * Function to display log message * * @param msg:message to print as log */ public static void displayLog(String msg) { Log.e(TAG, msg); }
From source file:Main.java
public static void e(String tag, String msg) { if (SHOW) { Log.e(tag, msg); } }
From source file:Main.java
public static void all(String msg) { if (isShow) { Log.e("all", msg); } }
From source file:Main.java
public static int dip2px(Context context, float dpValue) { final float scale = context.getResources().getDisplayMetrics().density; Log.e("desitiny", scale + ""); return (int) (dpValue * scale + 0.5f); }
From source file:Main.java
public static void checkGlError(String op) { int error;//from w ww .j ava2 s. com while ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) { Log.e("ES20_ERROR", op + ": glError " + error); throw new RuntimeException(op + ": glError " + error); } }
From source file:Main.java
public static boolean isFirstStart(Context context) { Log.e("jhd", "SharedUtils-isFirstStart : " + context.getSharedPreferences(FILE_NAME, Context.MODE_PRIVATE).getBoolean(MODE_NAME, true)); return context.getSharedPreferences(FILE_NAME, Context.MODE_PRIVATE).getBoolean(MODE_NAME, true); }
From source file:Main.java
public static short hasAFEndIndex(byte[] data) { short count = 0; for (int i = 0; i < data.length; i++) { if (data[i] == (byte) 0xAF) { count++;// w w w . j ava 2 s . c om } } Log.e("BMSUtil", "contain the ending index header (count):" + count); return count; }