当前位置: 首页>>代码示例>>Java>>正文


Java TransportMediator.KEYCODE_MEDIA_PAUSE属性代码示例

本文整理汇总了Java中android.support.v4.media.TransportMediator.KEYCODE_MEDIA_PAUSE属性的典型用法代码示例。如果您正苦于以下问题:Java TransportMediator.KEYCODE_MEDIA_PAUSE属性的具体用法?Java TransportMediator.KEYCODE_MEDIA_PAUSE怎么用?Java TransportMediator.KEYCODE_MEDIA_PAUSE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在android.support.v4.media.TransportMediator的用法示例。


在下文中一共展示了TransportMediator.KEYCODE_MEDIA_PAUSE属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: b

private void b(int i) throws cf {
    int i2 = 0;
    while ((i & -128) != 0) {
        int i3 = i2 + 1;
        this.a[i2] = (byte) ((i & TransportMediator.KEYCODE_MEDIA_PAUSE) | 128);
        i >>>= 7;
        i2 = i3;
    }
    int i4 = i2 + 1;
    this.a[i2] = (byte) i;
    this.g.b(this.a, 0, i4);
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:12,代码来源:cs.java

示例2: read32

private long read32(byte[] buffer, int offset) {
    int i0;
    int i1;
    int i2;
    int i3;
    byte b0 = buffer[offset];
    byte b1 = buffer[offset + 1];
    byte b2 = buffer[offset + 2];
    byte b3 = buffer[offset + 3];
    if ((b0 & 128) == 128) {
        i0 = (b0 & TransportMediator.KEYCODE_MEDIA_PAUSE) + 128;
    } else {
        byte i02 = b0;
    }
    if ((b1 & 128) == 128) {
        i1 = (b1 & TransportMediator.KEYCODE_MEDIA_PAUSE) + 128;
    } else {
        byte i12 = b1;
    }
    if ((b2 & 128) == 128) {
        i2 = (b2 & TransportMediator.KEYCODE_MEDIA_PAUSE) + 128;
    } else {
        byte i22 = b2;
    }
    if ((b3 & 128) == 128) {
        i3 = (b3 & TransportMediator.KEYCODE_MEDIA_PAUSE) + 128;
    } else {
        byte i32 = b3;
    }
    return (((((long) i0) << 24) + (((long) i1) << 16)) + (((long) i2) << 8)) + ((long) i3);
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:31,代码来源:SntpClient.java

示例3: onKeyDown

public boolean onKeyDown(int keyCode, KeyEvent event) {
    boolean isKeyCodeSupported;
    if (keyCode == 4 || keyCode == 24 || keyCode == 25 || keyCode == 164 || keyCode == 82 || keyCode == 5 || keyCode == 6) {
        isKeyCodeSupported = false;
    } else {
        isKeyCodeSupported = true;
    }
    if (isInPlaybackState() && isKeyCodeSupported && this.mediaController != null) {
        if (keyCode == 79 || keyCode == 85) {
            if (this.mMediaPlayer.isPlaying()) {
                pause();
                this.mediaController.show();
                return true;
            }
            start();
            this.mediaController.hide();
            return true;
        } else if (keyCode == TransportMediator.KEYCODE_MEDIA_PLAY) {
            if (this.mMediaPlayer.isPlaying()) {
                return true;
            }
            start();
            this.mediaController.hide();
            return true;
        } else if (keyCode != 86 && keyCode != TransportMediator.KEYCODE_MEDIA_PAUSE) {
            toggleMediaControlsVisiblity();
        } else if (!this.mMediaPlayer.isPlaying()) {
            return true;
        } else {
            pause();
            this.mediaController.show();
            return true;
        }
    }
    return super.onKeyDown(keyCode, event);
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:36,代码来源:VideoViewTV.java

示例4: b

public final long b() {
    long j = 0;
    for (int i = 0; i < 64; i += 7) {
        byte i2 = i();
        j |= ((long) (i2 & TransportMediator.KEYCODE_MEDIA_PAUSE)) << i;
        if ((i2 & 128) == 0) {
            return j;
        }
    }
    throw j.c();
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:11,代码来源:d.java

示例5: f

public final int f() {
    byte i = i();
    if (i >= (byte) 0) {
        return i;
    }
    int i2 = i & TransportMediator.KEYCODE_MEDIA_PAUSE;
    byte i3 = i();
    if (i3 >= (byte) 0) {
        return i2 | (i3 << 7);
    }
    i2 |= (i3 & TransportMediator.KEYCODE_MEDIA_PAUSE) << 7;
    i3 = i();
    if (i3 >= (byte) 0) {
        return i2 | (i3 << 14);
    }
    i2 |= (i3 & TransportMediator.KEYCODE_MEDIA_PAUSE) << 14;
    i3 = i();
    if (i3 >= (byte) 0) {
        return i2 | (i3 << 21);
    }
    i2 |= (i3 & TransportMediator.KEYCODE_MEDIA_PAUSE) << 21;
    i3 = i();
    i2 |= i3 << 28;
    if (i3 >= (byte) 0) {
        return i2;
    }
    for (int i4 = 0; i4 < 5; i4++) {
        if (i() >= (byte) 0) {
            return i2;
        }
    }
    throw j.c();
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:33,代码来源:d.java


注:本文中的android.support.v4.media.TransportMediator.KEYCODE_MEDIA_PAUSE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。