summaryrefslogtreecommitdiffstats
path: root/AriesParts/src/android/hardware/TvOut.java
diff options
context:
space:
mode:
authorPawit Pornkitprasan <p.pawit@gmail.com>2011-12-06 14:45:41 +0700
committerPawit Pornkitprasan <p.pawit@gmail.com>2011-12-06 14:45:54 +0700
commitcdf27513762c3313f8ef8e606bb31533e5f25087 (patch)
tree56fcffba956b8305ded2e104758a2f744cfb2285 /AriesParts/src/android/hardware/TvOut.java
parent71012e283db265ba0d4b93400ea802e2a84c46bf (diff)
downloaddevice_samsung_aries-common-cdf27513762c3313f8ef8e606bb31533e5f25087.zip
device_samsung_aries-common-cdf27513762c3313f8ef8e606bb31533e5f25087.tar.gz
device_samsung_aries-common-cdf27513762c3313f8ef8e606bb31533e5f25087.tar.bz2
Add TV Out support
Diffstat (limited to 'AriesParts/src/android/hardware/TvOut.java')
-rw-r--r--AriesParts/src/android/hardware/TvOut.java70
1 files changed, 70 insertions, 0 deletions
diff --git a/AriesParts/src/android/hardware/TvOut.java b/AriesParts/src/android/hardware/TvOut.java
new file mode 100644
index 0000000..6c0936e
--- /dev/null
+++ b/AriesParts/src/android/hardware/TvOut.java
@@ -0,0 +1,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);
+ }
+
+} \ No newline at end of file