base: update input jni to use long instead of int