Commit 1a6a4ccc authored by qinmin's avatar qinmin Committed by Commit bot

Suppress build time warnings

BUG=411360

Review URL: https://codereview.chromium.org/550503002

Cr-Commit-Position: refs/heads/master@{#293799}
parent fb1b90a9
...@@ -153,6 +153,7 @@ class MediaCodecBridge { ...@@ -153,6 +153,7 @@ class MediaCodecBridge {
/** /**
* Get a list of supported android codec mimes. * Get a list of supported android codec mimes.
*/ */
@SuppressWarnings("deprecation")
@CalledByNative @CalledByNative
private static CodecInfo[] getCodecsInfo() { private static CodecInfo[] getCodecsInfo() {
// Return the first (highest-priority) codec for each MIME type. // Return the first (highest-priority) codec for each MIME type.
...@@ -180,6 +181,7 @@ class MediaCodecBridge { ...@@ -180,6 +181,7 @@ class MediaCodecBridge {
return codecInfos.toArray(new CodecInfo[codecInfos.size()]); return codecInfos.toArray(new CodecInfo[codecInfos.size()]);
} }
@SuppressWarnings("deprecation")
private static String getDecoderNameForMime(String mime) { private static String getDecoderNameForMime(String mime) {
int count = MediaCodecList.getCodecCount(); int count = MediaCodecList.getCodecCount();
for (int i = 0; i < count; ++i) { for (int i = 0; i < count; ++i) {
...@@ -268,6 +270,7 @@ class MediaCodecBridge { ...@@ -268,6 +270,7 @@ class MediaCodecBridge {
} }
} }
@SuppressWarnings("deprecation")
@CalledByNative @CalledByNative
private boolean start() { private boolean start() {
try { try {
...@@ -362,6 +365,7 @@ class MediaCodecBridge { ...@@ -362,6 +365,7 @@ class MediaCodecBridge {
return mOutputBuffers != null ? mOutputBuffers[0].capacity() : -1; return mOutputBuffers != null ? mOutputBuffers[0].capacity() : -1;
} }
@SuppressWarnings("deprecation")
@CalledByNative @CalledByNative
private boolean getOutputBuffers() { private boolean getOutputBuffers() {
try { try {
...@@ -435,6 +439,7 @@ class MediaCodecBridge { ...@@ -435,6 +439,7 @@ class MediaCodecBridge {
} }
} }
@SuppressWarnings("deprecation")
@CalledByNative @CalledByNative
private DequeueOutputResult dequeueOutputBuffer(long timeoutUs) { private DequeueOutputResult dequeueOutputBuffer(long timeoutUs) {
MediaCodec.BufferInfo info = new MediaCodec.BufferInfo(); MediaCodec.BufferInfo info = new MediaCodec.BufferInfo();
...@@ -610,6 +615,7 @@ class MediaCodecBridge { ...@@ -610,6 +615,7 @@ class MediaCodecBridge {
return mAudioTrack.getPlaybackHeadPosition(); return mAudioTrack.getPlaybackHeadPosition();
} }
@SuppressWarnings("deprecation")
@CalledByNative @CalledByNative
private void setVolume(double volume) { private void setVolume(double volume) {
if (mAudioTrack != null) { if (mAudioTrack != null) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment