[Android] LibVLC: hide JNI warnings
Thomas Guillem
git at videolan.org
Sat Feb 27 18:23:11 CET 2016
vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Sat Feb 27 18:14:39 2016 +0100| [6a310020a8ceb4e7fe4d53cda60c94108cd77452] | committer: Thomas Guillem
LibVLC: hide JNI warnings
Because we don't use the official way to build the jni lib.
> https://code.videolan.org/videolan/vlc-android/commit/6a310020a8ceb4e7fe4d53cda60c94108cd77452
---
libvlc/src/org/videolan/libvlc/Dialog.java | 1 +
libvlc/src/org/videolan/libvlc/IAWindowNativeHandler.java | 1 +
libvlc/src/org/videolan/libvlc/LibVLC.java | 5 +++--
libvlc/src/org/videolan/libvlc/Media.java | 2 +-
libvlc/src/org/videolan/libvlc/MediaDiscoverer.java | 2 +-
libvlc/src/org/videolan/libvlc/MediaList.java | 2 +-
libvlc/src/org/videolan/libvlc/MediaPlayer.java | 2 +-
libvlc/src/org/videolan/libvlc/VLCObject.java | 1 +
8 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/libvlc/src/org/videolan/libvlc/Dialog.java b/libvlc/src/org/videolan/libvlc/Dialog.java
index 330587a..e7b13e4 100644
--- a/libvlc/src/org/videolan/libvlc/Dialog.java
+++ b/libvlc/src/org/videolan/libvlc/Dialog.java
@@ -24,6 +24,7 @@ import android.os.Handler;
import android.os.Looper;
import android.support.annotation.MainThread;
+ at SuppressWarnings("unused, JniMissingFunction")
public abstract class Dialog {
/**
diff --git a/libvlc/src/org/videolan/libvlc/IAWindowNativeHandler.java b/libvlc/src/org/videolan/libvlc/IAWindowNativeHandler.java
index adf17ea..bd26672 100644
--- a/libvlc/src/org/videolan/libvlc/IAWindowNativeHandler.java
+++ b/libvlc/src/org/videolan/libvlc/IAWindowNativeHandler.java
@@ -22,6 +22,7 @@ package org.videolan.libvlc;
import android.view.Surface;
+ at SuppressWarnings("unused, JniMissingFunction")
public abstract class IAWindowNativeHandler {
/**
* Callback called from {@link IVLCVout#sendMouseEvent}.
diff --git a/libvlc/src/org/videolan/libvlc/LibVLC.java b/libvlc/src/org/videolan/libvlc/LibVLC.java
index 0a0ef91..94d91af 100644
--- a/libvlc/src/org/videolan/libvlc/LibVLC.java
+++ b/libvlc/src/org/videolan/libvlc/LibVLC.java
@@ -28,6 +28,7 @@ import android.view.Surface;
import org.videolan.libvlc.util.HWDecoderUtil;
+ at SuppressWarnings("unused, JniMissingFunction")
public class LibVLC extends VLCObject<LibVLC.Event> {
private static final String TAG = "VLC/LibVLC";
@@ -116,8 +117,8 @@ public class LibVLC extends VLCObject<LibVLC.Event> {
nativeRelease();
}
- public static interface OnNativeCrashListener {
- public void onNativeCrash();
+ public interface OnNativeCrashListener {
+ void onNativeCrash();
}
public static void setOnNativeCrashListener(OnNativeCrashListener l) {
diff --git a/libvlc/src/org/videolan/libvlc/Media.java b/libvlc/src/org/videolan/libvlc/Media.java
index 64653ff..e0d4879 100644
--- a/libvlc/src/org/videolan/libvlc/Media.java
+++ b/libvlc/src/org/videolan/libvlc/Media.java
@@ -27,7 +27,7 @@ import org.videolan.libvlc.util.HWDecoderUtil;
import java.io.FileDescriptor;
- at SuppressWarnings("unused")
+ at SuppressWarnings("unused, JniMissingFunction")
public class Media extends VLCObject<Media.Event> {
private final static String TAG = "LibVLC/Media";
diff --git a/libvlc/src/org/videolan/libvlc/MediaDiscoverer.java b/libvlc/src/org/videolan/libvlc/MediaDiscoverer.java
index dd17de4..e18557a 100644
--- a/libvlc/src/org/videolan/libvlc/MediaDiscoverer.java
+++ b/libvlc/src/org/videolan/libvlc/MediaDiscoverer.java
@@ -22,7 +22,7 @@ package org.videolan.libvlc;
import android.support.annotation.Nullable;
- at SuppressWarnings("unused")
+ at SuppressWarnings("unused, JniMissingFunction")
public class MediaDiscoverer extends VLCObject<MediaDiscoverer.Event> {
private final static String TAG = "LibVLC/MediaDiscoverer";
diff --git a/libvlc/src/org/videolan/libvlc/MediaList.java b/libvlc/src/org/videolan/libvlc/MediaList.java
index 4beff1a..4786354 100644
--- a/libvlc/src/org/videolan/libvlc/MediaList.java
+++ b/libvlc/src/org/videolan/libvlc/MediaList.java
@@ -22,7 +22,7 @@ package org.videolan.libvlc;
import android.util.SparseArray;
- at SuppressWarnings("unused")
+ at SuppressWarnings("unused, JniMissingFunction")
public class MediaList extends VLCObject<MediaList.Event> {
private final static String TAG = "LibVLC/MediaList";
diff --git a/libvlc/src/org/videolan/libvlc/MediaPlayer.java b/libvlc/src/org/videolan/libvlc/MediaPlayer.java
index 7efbe2b..42c2b07 100644
--- a/libvlc/src/org/videolan/libvlc/MediaPlayer.java
+++ b/libvlc/src/org/videolan/libvlc/MediaPlayer.java
@@ -22,7 +22,7 @@
package org.videolan.libvlc;
- at SuppressWarnings("unused")
+ at SuppressWarnings("unused, JniMissingFunction")
public class MediaPlayer extends VLCObject<MediaPlayer.Event> {
public static class Event extends VLCEvent {
diff --git a/libvlc/src/org/videolan/libvlc/VLCObject.java b/libvlc/src/org/videolan/libvlc/VLCObject.java
index abcf40c..65b8520 100644
--- a/libvlc/src/org/videolan/libvlc/VLCObject.java
+++ b/libvlc/src/org/videolan/libvlc/VLCObject.java
@@ -25,6 +25,7 @@ import android.os.Looper;
import java.lang.ref.WeakReference;
+ at SuppressWarnings("JniMissingFunction")
abstract class VLCObject<T extends VLCEvent> {
private VLCEvent.Listener<T> mEventListener = null;
private Handler mHandler = null;
More information about the Android
mailing list