jni_compiler_test.cc | 107 jklass_ = env_->FindClass("MyClassNatives"); 108 ASSERT_TRUE(jklass_ != nullptr) << method_name << " " << method_sig; 111 jmethod_ = env_->GetStaticMethodID(jklass_, method_name, method_sig); 113 jmethod_ = env_->GetMethodID(jklass_, method_name, method_sig); 119 ASSERT_EQ(JNI_OK, env_->RegisterNatives(jklass_, methods, 1)) 122 env_->UnregisterNatives(jklass_); 125 jmethodID constructor = env_->GetMethodID(jklass_, "<init>", "()V"); 126 jobj_ = env_->NewObject(jklass_, constructor); 131 static jclass jklass_; member in class:art::JniCompilerTest 180 jclass JniCompilerTest::jklass_; member in class:art::JniCompilerTest [all...] |