completed jni example with wind direction query
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user