Lines Matching refs:env
23 FontChainAdapter(JNIEnv* env, jobject jFontChain)
24 : fEnv(env)
54 // TODO: Check, can we hold on to env here or do we have to get it every time?
59 static jlong FontChain_Create(JNIEnv* env, jobject, jobject jFontChain) {
60 return reinterpret_cast<jlong>(new FontChainAdapter(env, jFontChain));
63 static void FontChain_Release(JNIEnv* env, jobject, jlong native_FontChain) {
69 int register_androidkit_FontChain(JNIEnv* env) {
70 const auto clazz = env->FindClass("org/skia/androidkit/FontChain");
72 gFontChain_countMethodID = env->GetMethodID(clazz, "count", "()I");
73 gFontChain_getAtMethodID = env->GetMethodID(clazz, "getAt", "(I)J");
74 gFontChain_fontSizeMethodID = env->GetMethodID(clazz, "fontSize", "()F");
75 gFontChain_localeMethodID = env->GetMethodID(clazz, "locale", "()Ljava/lang/String;");
88 ? env->RegisterNatives(clazz, methods, SK_ARRAY_COUNT(methods))