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 d(Object logStr) {
    Log.d(TAG, defaultPreStr + logStr);
}

From source file:Main.java

public static void dumpNode(AccessibilityNodeInfo node) {
    Log.d(LOGTAG, String.format("class: %s; text: %s; content-desc: %s", node.getClassName(), node.getText(),
            node.getContentDescription()));
}

From source file:Main.java

private static boolean initOpenCVLibs(String Libs) {
    Log.d(TAG, "Trying to init OpenCV libs");

    boolean result = true;

    if ((null != Libs) && (Libs.length() != 0)) {
        Log.d(TAG, "Trying to load libs by dependency list");
        StringTokenizer splitter = new StringTokenizer(Libs, ";");
        while (splitter.hasMoreTokens()) {
            result &= loadLibrary(splitter.nextToken());
        }//from   w  w  w.jav a 2 s. co  m
    } else {
        // If dependencies list is not defined or empty.
        result &= loadLibrary("opencv_java3");
    }

    return result;
}

From source file:Main.java

private static boolean initOpenCVLibs(String Libs) {
    Log.d(TAG, "Trying to init OpenCV libs");

    boolean result = true;

    if ((null != Libs) && (Libs.length() != 0)) {
        Log.d(TAG, "Trying to load libs by dependency list");
        StringTokenizer splitter = new StringTokenizer(Libs, ";");
        while (splitter.hasMoreTokens()) {
            result &= loadLibrary(splitter.nextToken());
        }/*from   w  ww.  j  a  v a2  s.co  m*/
    } else {
        // If dependencies list is not defined or empty.
        result &= loadLibrary("opencv_java");
    }

    return result;
}

From source file:Main.java

public static void d(String msg) {
    if (isDebug)
        Log.d(TAG, msg);
}

From source file:Main.java

public static List<RectF> createBoundLines(RectF baseRect, final float graphSideZoom) {
    Log.d("GammaGraph", "function createBoundLines");
    List<RectF> boundLines = new ArrayList<RectF>();
    final float drawRectSide = baseRect.right - baseRect.left;
    final float rectSideQuadDiv = drawRectSide / 4;
    for (int i = 1; i <= 3; i++) {
        final float linePos = i * rectSideQuadDiv;
        RectF boundLine1 = new RectF(baseRect.left + linePos, baseRect.top + 1, baseRect.left + linePos,
                baseRect.bottom - 1);/*  w  w w  .j  a v  a  2 s .  co  m*/
        RectF boundLine2 = new RectF(baseRect.left + 1, baseRect.top + linePos, baseRect.right - 1,
                baseRect.top + linePos);
        boundLines.add(boundLine1);
        boundLines.add(boundLine2);
    }
    return boundLines;
}

From source file:Main.java

public static void debug(Object output) {
    if (DEBUG) {
        Log.d("AML", String.valueOf(output));
    }
}

From source file:Main.java

public static List<File> listFilesByName(File f) {
    Log.d("listFileByName f", "" + f);
    final List<File> fList = new LinkedList<>();
    final Stack<File> stk = new Stack<>();
    if (f.isDirectory()) {
        stk.push(f);//from w w  w . j  a va 2  s.com
    } else {
        fList.add(f);
    }
    File fi = null;
    File[] fs;
    while (stk.size() > 0) {
        fi = stk.pop();
        fs = fi.listFiles();
        for (File f2 : fs) {
            if (f2.isDirectory()) {
                stk.push(f2);
            } else {
                fList.add(f2);
            }
        }
    }
    return fList;
}

From source file:Main.java

public static void d(String msg) {
    if (isShow) {
        Log.d(TAG, msg);
    }
}

From source file:Main.java

public static void d(String tag, String msg) {
    if (DEBUG) {/*from   w w  w.j av a 2  s.co  m*/
        if (msg != null) {
            Log.d(tag, msg);
        }
    }

}