Manchmal in AOSP Quellen sehe ich private static final boolean
Debug-Flag mit false
als Wert. Und es gibt Debug-Ausgabe, wenn dieses Flag true
ist. Etwas wie this:Wie verwendet man DEBUG-Flags in AOSP-Klassen?
private static final boolean DEBUG_DRAW = false;
private static final Paint DEBUG_DRAW_PAINT;
static {
DEBUG_DRAW_PAINT = DEBUG_DRAW ? new Paint() : null;
if (DEBUG_DRAW_PAINT != null) {
DEBUG_DRAW_PAINT.setAntiAlias(true);
DEBUG_DRAW_PAINT.setColor(Color.MAGENTA);
}
}
Wer und wie verwendet es? Ist es möglich, dieses Flag irgendwie zu wechseln und Debug-Ausgabe von AOSP-Klassen zu nehmen?