completed jni example with wind direction query

This commit is contained in:
strawmanbobi
2019-02-17 11:28:26 +08:00
parent a5148c63ee
commit 6e630ca504

View File

@@ -37,6 +37,8 @@ public class IRDecode {
private native int irACGetSupportedSwing(int acMode);
private native int irACGetSupportedWindDirection(int acMode);
private static IRDecode mInstance;
public static IRDecode getInstance() {
@@ -114,6 +116,11 @@ public class IRDecode {
return retSupportedSwing;
}
public int getACSupportedWindDirection(int acMode) {
// how many directions supported by specific AC
return irACGetSupportedWindDirection(acMode);
}
public static void main(String[] args) {
int ret = 0;
System.out.println("This is IR decode test");