void AndroidTimer::Bridge::Deinitialise(JNIEnv *env) { assert(env != NULL); cls.Clear(env); }
void VoltageDevice::Initialise(JNIEnv *env) { voltage_class.Find(env, "org/xcsoar/GlueVoltage"); voltage_ctor = env->GetMethodID(voltage_class, "<init>", "(Lorg/xcsoar/IOIOConnectionHolder;ILorg/xcsoar/Voltage$Listener;)V"); close_method = env->GetMethodID(voltage_class, "close", "()V"); }
void NunchuckDevice::Initialise(JNIEnv *env) { nunchuck_class.Find(env, "org/xcsoar/GlueNunchuck"); nunchuck_ctor = env->GetMethodID(nunchuck_class, "<init>", "(Lorg/xcsoar/IOIOConnectionHolder;IILorg/xcsoar/Nunchuck$Listener;)V"); close_method = env->GetMethodID(nunchuck_class, "close", "()V"); }
void I2CbaroDevice::Initialise(JNIEnv *env) { i2cbaro_class.Find(env, "org/xcsoar/GlueI2Cbaro"); i2cbaro_ctor = env->GetMethodID(i2cbaro_class, "<init>", "(Lorg/xcsoar/IOIOConnectionHolder;IIIILorg/xcsoar/I2Cbaro$Listener;)V"); close_method = env->GetMethodID(i2cbaro_class, "close", "()V"); }
void BMP085Device::Initialise(JNIEnv *env) { bmp085_class.Find(env, "org/xcsoar/GlueBMP085"); bmp085_ctor = env->GetMethodID(bmp085_class, "<init>", "(Lorg/xcsoar/IOIOConnectionHolder;IIILorg/xcsoar/BMP085$Listener;)V"); close_method = env->GetMethodID(bmp085_class, "close", "()V"); }
void AndroidTimer::Bridge::Initialise(JNIEnv *env) { assert(cls == NULL); assert(env != NULL); cls.Find(env, "org/xcsoar/Timer"); ctor = env->GetMethodID(cls, "<init>", "(JI)V"); install_method = env->GetMethodID(cls, "install", "()V"); uninstall_method = env->GetMethodID(cls, "uninstall", "()V"); }
void TextUtil::Initialise(JNIEnv *_env) { env = _env; cls.Find(env, "org/xcsoar/TextUtil"); midTextUtil = env->GetMethodID(cls, "<init>", "(Ljava/lang/String;III)V"); midGetFontMetrics = env->GetMethodID(cls, "getFontMetrics", "([I)V"); midGetTextBounds = env->GetMethodID(cls, "getTextBounds", "(Ljava/lang/String;)[I"); midGetTextTextureGL = env->GetMethodID(cls, "getTextTextureGL", "(Ljava/lang/String;)[I"); }
void VoltageDevice::Deinitialise(JNIEnv *env) { voltage_class.Clear(env); }
void TextUtil::Deinitialise(JNIEnv *env) { cls.Clear(env); }
void NunchuckDevice::Deinitialise(JNIEnv *env) { nunchuck_class.Clear(env); }
void I2CbaroDevice::Deinitialise(JNIEnv *env) { i2cbaro_class.Clear(env); }
void BMP085Device::Deinitialise(JNIEnv *env) { bmp085_class.Clear(env); }