summaryrefslogtreecommitdiffstats
path: root/tvout/src/android/hardware/Tvout.java
blob: f2fc3a8da7fcd1aa53aac3a45e03ae979c58b8cb (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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
package android.hardware;

import android.util.Log;

public class Tvout {
    private static final String TAG = "Tvout_java";

    static {
        System.loadLibrary("tvout_jni");
    }

    public Tvout() {
        Log.i(TAG, "Tvout Initializing");
        _native_setup();
    }

    private native boolean _TvoutGetCableStatus();

    private native boolean _TvoutGetStatus();

    private native boolean _TvoutGetSubtitleStatus();

    private native boolean _TvoutGetSuspendStatus();

    private native boolean _TvoutPostSubtitle(String string, int param);

    private native boolean _TvoutPostSuspend(String string);

    private native boolean _TvoutSetCableStatus(boolean connected);

    private native boolean _TvoutSetOutputMode(int mode);

    private native boolean _TvoutSetResolution(int resolution);

    private native boolean _TvoutSetStatus(boolean enabled);

    private native boolean _TvoutSetSubtitleStatus(boolean enabled);

    private native boolean _TvoutSetSuspendStatus(boolean enabled);

    private native boolean _TvoutSetDefaultString(String string);

    private final native void _native_setup();

    private final native void _release();

    public boolean getCableStatus() {
        return _TvoutGetCableStatus();
    }

    public boolean getStatus() {
        return _TvoutGetStatus();
    }

    public boolean getSubtitleStatus() {
        return _TvoutGetSubtitleStatus();
    }

    public boolean getSuspendStatus() {
        return _TvoutGetSuspendStatus();
    }

    public boolean postSubtitle(String string, int paramInt) {
        return _TvoutPostSubtitle(string, paramInt);
    }

    public boolean postSuspend(String string) {
        return _TvoutPostSuspend(string);
    }

    public boolean setCableStatus(boolean connected) {
        return _TvoutSetCableStatus(connected);
    }

    public boolean setOutputMode(int mode) {
        return _TvoutSetOutputMode(mode);
    }

    public boolean setResolution(int resolution) {
        return _TvoutSetResolution(resolution);
    }

    public boolean setStatus(boolean enabled) {
        return _TvoutSetStatus(enabled);
    }

    public boolean setSubtitleStatus(boolean enabled) {
        return _TvoutSetSubtitleStatus(enabled);
    }

    public boolean setSuspendStatus(boolean enabled) {
        return _TvoutSetSuspendStatus(enabled);
    }

    public boolean setDefaultString(String string) {
        return _TvoutSetDefaultString(string);
    }

    public void release() {
        _release();
    }
}