Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/gfx/skia/skia/src/ports/   (Android Betriebssystem Version 17©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  SkLog_android.cpp

  Sprache: C
 

/*
 * Copyright 2006 The Android Open Source Project
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */


#include "include/private/base/SkDebug.h"
#include "include/private/base/SkFeatures.h"
#include "include/private/base/SkLog.h"

#if defined(SK_BUILD_FOR_ANDROID)

#include <stdio.h>
#include <cstdarg>

#ifdef LOG_TAG
  #undef LOG_TAG
#endif
#define LOG_TAG "skia"
#include <android/log.h>

// Print debug output to stdout as well.  This is useful for command line
// applications
bool gSkDebugToStdOut = false;

void SkLogVAList(SkLogPriority priority, const char format[], va_list args) {
    va_list args_copy;

    if (gSkDebugToStdOut) {
        va_copy(args_copy, args);
        vprintf(format, args_copy);
        va_end(args_copy);
        fflush(stdout);
    }

    // Forces all Info and Debug logs to show as warnings in Android's RenderEngine. This hack
    // should be dropped as we update SkDebugf call sites to have more precise priority.
#if defined(SK_IN_RENDERENGINE)
    if (priority > SkLogPriority::kWarning) {
        priority = SkLogPriority::kWarning;
    }
#endif

    int android_priority;
    switch (priority) {
        case SkLogPriority::kFatal:   android_priority = ANDROID_LOG_FATAL;   break;
        case SkLogPriority::kError:   android_priority = ANDROID_LOG_ERROR;   break;
        case SkLogPriority::kWarning: android_priority = ANDROID_LOG_WARN;    break;
        case SkLogPriority::kInfo:    android_priority = ANDROID_LOG_INFO;    break;
        case SkLogPriority::kDebug:   android_priority = ANDROID_LOG_DEBUG;   break;
        default:                      android_priority = ANDROID_LOG_DEBUG;   break;
    }

    __android_log_vprint(android_priority, LOG_TAG, format, args);
}

#endif  // defined(SK_BUILD_FOR_ANDROID)

Messung V0.5 in Prozent
C=98 H=100 G=98

¤ Dauer der Verarbeitung: 0.15 Sekunden  (vorverarbeitet am  2026-08-26) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.