Search in sources :

Example 1 with RemovableInRelease

use of org.chromium.base.annotations.RemovableInRelease in project AndroidChromium by JackyAndroid.

the class DefaultMediaRouteController method logExtraHttpInfo.

@RemovableInRelease
private void logExtraHttpInfo(Bundle extras) {
    if (extras != null) {
        if (extras.containsKey(MediaItemStatus.EXTRA_HTTP_STATUS_CODE)) {
            int httpStatus = extras.getInt(MediaItemStatus.EXTRA_HTTP_STATUS_CODE);
            Log.d(TAG, "HTTP status: %s", httpStatus);
        }
        if (extras.containsKey(MediaItemStatus.EXTRA_HTTP_RESPONSE_HEADERS)) {
            Bundle headers = extras.getBundle(MediaItemStatus.EXTRA_HTTP_RESPONSE_HEADERS);
            Log.d(TAG, "HTTP headers: %s", bundleToString(headers));
        }
    }
}
Also used : Bundle(android.os.Bundle) RemovableInRelease(org.chromium.base.annotations.RemovableInRelease)

Example 2 with RemovableInRelease

use of org.chromium.base.annotations.RemovableInRelease in project AndroidChromium by JackyAndroid.

the class DefaultMediaRouteController method logMediaSessionStatus.

@RemovableInRelease
private void logMediaSessionStatus(Bundle data) {
    MediaSessionStatus status = MediaSessionStatus.fromBundle(data.getBundle(MediaControlIntent.EXTRA_SESSION_STATUS));
    int sessionState = status.getSessionState();
    Log.d(TAG, "Session state after ending session: %s", sessionState);
}
Also used : MediaSessionStatus(android.support.v7.media.MediaSessionStatus) RemovableInRelease(org.chromium.base.annotations.RemovableInRelease)

Aggregations

RemovableInRelease (org.chromium.base.annotations.RemovableInRelease)2 Bundle (android.os.Bundle)1 MediaSessionStatus (android.support.v7.media.MediaSessionStatus)1