Esempio n. 1
0
void
AndroidTimer::Bridge::Deinitialise(JNIEnv *env)
{
  assert(env != NULL);

  cls.Clear(env);
}
Esempio n. 2
0
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");
}
Esempio n. 3
0
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");
}
Esempio n. 4
0
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");
}
Esempio n. 5
0
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");
}
Esempio n. 6
0
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");
}
Esempio n. 7
0
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");
}
Esempio n. 8
0
void
VoltageDevice::Deinitialise(JNIEnv *env)
{
  voltage_class.Clear(env);
}
Esempio n. 9
0
void
TextUtil::Deinitialise(JNIEnv *env)
{
  cls.Clear(env);
}
Esempio n. 10
0
void
NunchuckDevice::Deinitialise(JNIEnv *env)
{
  nunchuck_class.Clear(env);
}
Esempio n. 11
0
void
I2CbaroDevice::Deinitialise(JNIEnv *env)
{
  i2cbaro_class.Clear(env);
}
Esempio n. 12
0
void
BMP085Device::Deinitialise(JNIEnv *env)
{
  bmp085_class.Clear(env);
}