Java Code Examples for org.chromium.base.Log#isLoggable()

The following examples show how to use org.chromium.base.Log#isLoggable() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CronetUrlRequestContext.java    From cronet with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * @return loggingLevel see {@link #LOG_NONE}, {@link #LOG_DEBUG} and
 *         {@link #LOG_VERBOSE}.
 */
private int getLoggingLevel() {
    int loggingLevel;
    if (Log.isLoggable(LOG_TAG, Log.VERBOSE)) {
        loggingLevel = LOG_VERBOSE;
    } else if (Log.isLoggable(LOG_TAG, Log.DEBUG)) {
        loggingLevel = LOG_DEBUG;
    } else {
        loggingLevel = LOG_NONE;
    }
    return loggingLevel;
}
 
Example 2
Source File: DefaultMediaRouteController.java    From delion with Apache License 2.0 4 votes vote down vote up
@RemovableInRelease
private void addIntentExtraForDebugLogging(Intent intent) {
    if (Log.isLoggable(TAG, Log.DEBUG)) {
        intent.putExtra(CastMediaControlIntent.EXTRA_DEBUG_LOGGING_ENABLED, true);
    }
}
 
Example 3
Source File: DefaultMediaRouteController.java    From AndroidChromium with Apache License 2.0 4 votes vote down vote up
@RemovableInRelease
private void addIntentExtraForDebugLogging(Intent intent) {
    if (Log.isLoggable(TAG, Log.DEBUG)) {
        intent.putExtra(CastMediaControlIntent.EXTRA_DEBUG_LOGGING_ENABLED, true);
    }
}
 
Example 4
Source File: DefaultMediaRouteController.java    From 365browser with Apache License 2.0 4 votes vote down vote up
@RemovableInRelease
private void addIntentExtraForDebugLogging(Intent intent) {
    if (Log.isLoggable(TAG, Log.DEBUG)) {
        intent.putExtra(CastMediaControlIntent.EXTRA_DEBUG_LOGGING_ENABLED, true);
    }
}