Example usage for android.util Log d

List of usage examples for android.util Log d

Introduction

In this page you can find the example usage for android.util Log d.

Prototype

public static int d(String tag, String msg) 

Source Link

Document

Send a #DEBUG log message.

Usage

From source file:Main.java

public static void Log_sys(String s1, String s2) {
    if (debug_system) {
        Log.d(s1, s2);
    }
}

From source file:Main.java

public final static void d(String tag, String msg) {
    if (debug) {
        Log.d(tag, msg);
    }
}

From source file:Main.java

public static void d(String tag, String msg) {
    if (IS_PRINT) {
        Log.d(tag, msg);
    }
}

From source file:Main.java

public static void logd(String tag, String msg) {
    if (ENABLE_LOG) {
        Log.d(tag, msg);
    }
}

From source file:Main.java

public static Camera getCameraInstance() {
    Camera c = null;//w w w .j  ava  2 s  .c om
    try {
        Log.d("debug", "Trying to open camera");
        c = Camera.open();
    } catch (Exception e) {
        // Camera is not available or doesn't exist
        Log.d("debug", "getCamera failed " + e.getMessage());
    }
    return c;
}

From source file:Main.java

public static void toc(String tag, String info) {
    long t2 = System.currentTimeMillis() - t1;
    Log.d(tag, info + ": " + t2);
}

From source file:Main.java

public static void d(String TAG, String method, String msg) {
    Log.d(TAG, "[" + method + "]" + msg);
}

From source file:Main.java

public static void printMatrix(float[] m) {
    Log.d(TAG, "printMatrix");
    Log.d(TAG, String.format("%f, %f, %f, %f", m[0], m[1], m[2], m[3]));
    Log.d(TAG, String.format("%f, %f, %f, %f", m[4], m[5], m[6], m[7]));
    Log.d(TAG, String.format("%f, %f, %f, %f", m[8], m[9], m[10], m[11]));
    Log.d(TAG, String.format("%f, %f, %f, %f", m[12], m[13], m[14], m[15]));
}

From source file:Main.java

public static void m1469d(String logStr) {
    if (isShow) {
        Log.d(tagStr, logStr);
    }
}

From source file:Main.java

public static void DebugGeneral(String tag, String message) {

    if (DEBUG_MODE) {
        Log.d(tag, message);
    }
}