示例#1
0
void
AndroidTimer::Bridge::Deinitialise(JNIEnv *env)
{
  assert(env != NULL);

  cls.Clear(env);
}
示例#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");
}
示例#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");
}
示例#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");
}
示例#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");
}
示例#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");
}
示例#7
0
文件: TextUtil.cpp 项目: ppara/XCSoar
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");
}
示例#8
0
void
VoltageDevice::Deinitialise(JNIEnv *env)
{
  voltage_class.Clear(env);
}
示例#9
0
文件: TextUtil.cpp 项目: ppara/XCSoar
void
TextUtil::Deinitialise(JNIEnv *env)
{
  cls.Clear(env);
}
示例#10
0
void
NunchuckDevice::Deinitialise(JNIEnv *env)
{
  nunchuck_class.Clear(env);
}
示例#11
0
void
I2CbaroDevice::Deinitialise(JNIEnv *env)
{
  i2cbaro_class.Clear(env);
}
示例#12
0
void
BMP085Device::Deinitialise(JNIEnv *env)
{
  bmp085_class.Clear(env);
}