blob: 6c0936ed955adec89c107615c94a2edfb99c9ce9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
package android.hardware;
import java.lang.ref.WeakReference;
import android.graphics.Bitmap;
import android.util.Log;
public class TvOut {
private static final String TAG = "TvOut";
private int mListenerContext;
private int mNativeContext;
public native void _DisableTvOut();
public native void _EnableTvOut();
public native void _SetOrientation(int paramInt);
public native void _SetTvScreenSize(int paramInt);
public native void _SetTvSystem(int paramInt);
public native void _TvOutResume(int paramInt);
public native void _TvOutSetImageString(String paramString);
public native void _TvOutSuspend(String paramString);
public native boolean _TvoutSubtitleIsEnable();
public native boolean _TvoutSubtitlePostBitmap(Bitmap paramBitmap, int paramInt);
public native boolean _TvoutSubtitleSetStatus(int paramInt);
public native int _getSubtitleHDMIHeight();
public native int _getSubtitleHDMIWidth();
public native boolean _isEnabled();
public native boolean _isSuspended();
public native boolean _isTvoutCableConnected();
private final native void _native_setup(Object paramObject);
private final native void _release();
public native void _setTvoutCableConnected(int paramInt);
static {
System.loadLibrary("tvout_jni");
}
public TvOut() {
_native_setup(new WeakReference<TvOut>(this));
}
public void finalize() {
_release();
}
private static void postEventFromNative(Object tvOutRef, int what, int arg1, int arg2, Object obj) {
TvOut tvOut = (TvOut)((WeakReference<TvOut>)tvOutRef).get();
Log.d(TAG, "Native Event: " + what + " " + arg1 + " " + arg2);
}
}
|