Flutter Engine
The Flutter Engine
|
Classes | |
class | JavaObjectWeakGlobalRef |
class | JavaRef |
class | JavaRef< jobject > |
struct | JNIDetach |
class | ScopedJavaGlobalRef |
class | ScopedJavaLocalFrame |
class | ScopedJavaLocalRef |
Functions | |
void | InitJavaVM (JavaVM *vm) |
JNIEnv * | AttachCurrentThread () |
void | DetachFromVM () |
std::string | JavaStringToString (JNIEnv *env, jstring str) |
ScopedJavaLocalRef< jstring > | StringToJavaString (JNIEnv *env, const std::string &u8_string) |
std::vector< std::string > | StringArrayToVector (JNIEnv *env, jobjectArray array) |
std::vector< std::string > | StringListToVector (JNIEnv *env, jobject list) |
ScopedJavaLocalRef< jobjectArray > | VectorToStringArray (JNIEnv *env, const std::vector< std::string > &vector) |
ScopedJavaLocalRef< jobjectArray > | VectorToBufferArray (JNIEnv *env, const std::vector< std::vector< uint8_t > > &vector) |
bool | HasException (JNIEnv *env) |
bool | ClearException (JNIEnv *env, bool silent) |
bool | CheckException (JNIEnv *env) |
std::string | GetJavaExceptionInfo (JNIEnv *env, jthrowable java_throwable) |
ScopedJavaLocalRef< jobject > | GetRealObject (JNIEnv *env, jweak obj) |
Variables | |
static JavaVM * | g_jvm = nullptr |
static thread_local std::unique_ptr< JNIDetach > | tls_jni_detach |
static const int | kDefaultLocalFrameCapacity = 16 |
JNIEnv * fml::jni::AttachCurrentThread | ( | ) |
Definition at line 34 of file jni_util.cc.
bool fml::jni::CheckException | ( | JNIEnv * | env | ) |
Definition at line 199 of file jni_util.cc.
bool fml::jni::ClearException | ( | JNIEnv * | env, |
bool | silent | ||
) |
Definition at line 188 of file jni_util.cc.
void fml::jni::DetachFromVM | ( | ) |
Definition at line 64 of file jni_util.cc.
std::string fml::jni::GetJavaExceptionInfo | ( | JNIEnv * | env, |
jthrowable | java_throwable | ||
) |
Definition at line 211 of file jni_util.cc.
ScopedJavaLocalRef< jobject > fml::jni::GetRealObject | ( | JNIEnv * | env, |
jweak | obj | ||
) |
Definition at line 45 of file jni_weak_ref.cc.
bool fml::jni::HasException | ( | JNIEnv * | env | ) |
Definition at line 184 of file jni_util.cc.
void fml::jni::InitJavaVM | ( | JavaVM * | vm | ) |
Definition at line 29 of file jni_util.cc.
std::string fml::jni::JavaStringToString | ( | JNIEnv * | env, |
jstring | str | ||
) |
Definition at line 70 of file jni_util.cc.
std::vector< std::string > fml::jni::StringArrayToVector | ( | JNIEnv * | env, |
jobjectArray | array | ||
) |
Definition at line 96 of file jni_util.cc.
std::vector< std::string > fml::jni::StringListToVector | ( | JNIEnv * | env, |
jobject | list | ||
) |
Definition at line 118 of file jni_util.cc.
ScopedJavaLocalRef< jstring > fml::jni::StringToJavaString | ( | JNIEnv * | env, |
const std::string & | u8_string | ||
) |
Definition at line 86 of file jni_util.cc.
ScopedJavaLocalRef< jobjectArray > fml::jni::VectorToBufferArray | ( | JNIEnv * | env, |
const std::vector< std::vector< uint8_t > > & | vector | ||
) |
Definition at line 164 of file jni_util.cc.
ScopedJavaLocalRef< jobjectArray > fml::jni::VectorToStringArray | ( | JNIEnv * | env, |
const std::vector< std::string > & | vector | ||
) |
Definition at line 147 of file jni_util.cc.
|
static |
Definition at line 18 of file jni_util.cc.
|
static |
Definition at line 13 of file scoped_java_ref.cc.
|
static |
Definition at line 27 of file jni_util.cc.