ZFPROTOCOL_IMPLEMENTATION_CLASS(ZFAnimationNativeViewImpl_sys_Android)(void) { JNIEnv *jniEnv = JNIGetJNIEnv(); jobject tmp = zfnull; tmp = JNIUtilFindClass(jniEnv, JNIConvertClassNameForFindClass(ZFImpl_sys_Android_JNI_NAME_ZFAnimationNativeView).c_str()); this->jclsOwner = (jclass)JNIUtilNewGlobalRef(jniEnv, tmp); JNIUtilDeleteLocalRef(jniEnv, tmp); tmp = JNIUtilFindClass(jniEnv, JNIConvertClassNameForFindClass(ZFImpl_sys_Android_JNI_NAME_ZFAnimationNativeView_NativeAnimation).c_str()); this->jclsNativeAnimation = (jclass)JNIUtilNewGlobalRef(jniEnv, tmp); JNIUtilDeleteLocalRef(jniEnv, tmp); }
ZF_NAMESPACE_GLOBAL_BEGIN ZF_GLOBAL_INITIALIZER_INIT_WITH_LEVEL(ZFImpl_sys_Android_jclsHolder, ZFLevelZFFrameworkNormal) { jobject tmp = zfnull; JNIEnv *jniEnv = JNIGetJNIEnv(); tmp = JNIUtilFindClass(jniEnv, JNIConvertClassNameForFindClass(ZFImpl_sys_Android_JNI_NAME_Object).c_str()); this->jclsObject = (jclass)JNIUtilNewGlobalRef(jniEnv, tmp); JNIUtilDeleteLocalRef(jniEnv, tmp); tmp = JNIUtilFindClass(jniEnv, JNIConvertClassNameForFindClass(ZFImpl_sys_Android_JNI_NAME_String).c_str()); this->jclsString = (jclass)JNIUtilNewGlobalRef(jniEnv, tmp); JNIUtilDeleteLocalRef(jniEnv, tmp); }
zfoverride virtual void protocolOnInit(void) { zfsuper::protocolOnInit(); JNIEnv *jniEnv = JNIGetJNIEnv(); jobject tmp = zfnull; tmp = JNIUtilFindClass(jniEnv, JNIConvertClassNameForFindClass(ZFImpl_sys_Android_JNI_NAME_ZFAnimationNativeView).c_str()); this->jclsOwner = (jclass)JNIUtilNewGlobalRef(jniEnv, tmp); JNIUtilDeleteLocalRef(jniEnv, tmp); tmp = JNIUtilFindClass(jniEnv, JNIConvertClassNameForFindClass(ZFImpl_sys_Android_JNI_NAME_ZFAnimationNativeView_NativeAnimation).c_str()); this->jclsNativeAnimation = (jclass)JNIUtilNewGlobalRef(jniEnv, tmp); JNIUtilDeleteLocalRef(jniEnv, tmp); }
ZFPROTOCOL_IMPLEMENTATION_NAME(ZFUIImageIOImpl_sys_Android)(void) { JNIEnv *jniEnv = JNIGetJNIEnv(); jobject tmp = JNIUtilFindClass(jniEnv, JNIConvertClassNameForFindClass(ZFImpl_sys_Android_JNI_NAME_ZFUIImageIO).c_str()); this->jclsOwner = (jclass)JNIUtilNewGlobalRef(jniEnv, tmp); JNIUtilDeleteLocalRef(jniEnv, tmp); }
void ZFImpl_sys_Android_stackTracePrint(void) { JNIEnv *jniEnv = JNIGetJNIEnv(); jclass jcls = JNIUtilFindClass(jniEnv, JNIConvertClassNameForFindClass(ZFImpl_sys_Android_JNI_NAME_ZFAndroidLog).c_str()); static jmethodID jmId = JNIUtilGetStaticMethodID(jniEnv, jcls, zfTextA("stackTracePrint"), JNIGetMethodSig(JNIType::S_void, JNIParamTypeContainer() ).c_str()); JNIUtilCallStaticVoidMethod(jniEnv, jcls, jmId); }
ZF_NAMESPACE_GLOBAL_BEGIN ZF_GLOBAL_INITIALIZER_INIT_WITH_LEVEL(ZFImpl_sys_Android_ZFUIKit_jclsHolder, ZFLevelZFFrameworkHigh) { jobject tmp = zfnull; JNIEnv *jniEnv = JNIGetJNIEnv(); tmp = JNIUtilFindClass(jniEnv, JNIConvertClassNameForFindClass(ZFImpl_sys_Android_JNI_NAME_ZFAndroidPoint).c_str()); this->jclsPoint = (jclass)JNIUtilNewGlobalRef(jniEnv, tmp); JNIUtilDeleteLocalRef(jniEnv, tmp); tmp = JNIUtilFindClass(jniEnv, JNIConvertClassNameForFindClass(ZFImpl_sys_Android_JNI_NAME_ZFAndroidSize).c_str()); this->jclsSize = (jclass)JNIUtilNewGlobalRef(jniEnv, tmp); JNIUtilDeleteLocalRef(jniEnv, tmp); tmp = JNIUtilFindClass(jniEnv, JNIConvertClassNameForFindClass(ZFImpl_sys_Android_JNI_NAME_ZFAndroidMargin).c_str()); this->jclsMargin = (jclass)JNIUtilNewGlobalRef(jniEnv, tmp); JNIUtilDeleteLocalRef(jniEnv, tmp); tmp = JNIUtilFindClass(jniEnv, JNIConvertClassNameForFindClass(ZFImpl_sys_Android_JNI_NAME_ZFAndroidRect).c_str()); this->jclsRect = (jclass)JNIUtilNewGlobalRef(jniEnv, tmp); JNIUtilDeleteLocalRef(jniEnv, tmp); }
zfstring ZFImpl_sys_Android_objectInfo(ZF_IN jobject nativeObject) { JNIEnv *jniEnv = JNIGetJNIEnv(); jclass jcls = JNIUtilFindClass(jniEnv, JNIConvertClassNameForFindClass(ZFImpl_sys_Android_JNI_NAME_ZFAndroidLog).c_str()); static jmethodID jmId = JNIUtilGetStaticMethodID(jniEnv, jcls, zfTextA("objectInfo"), JNIGetMethodSig(JNIType::S_object(ZFImpl_sys_Android_JNI_NAME_String), JNIParamTypeContainer() .add(JNIType::S_object(ZFImpl_sys_Android_JNI_NAME_Object)) ).c_str()); jstring tmp = ZFCastStatic(jstring, JNIUtilCallStaticObjectMethod(jniEnv, jcls, jmId, nativeObject)); const char *utf = JNIUtilGetStringUTFChars(jniEnv, tmp, zfnull); zfstring ret = utf; JNIUtilReleaseStringUTFChars(jniEnv, tmp, utf); return ret; }
zfstring ZFImpl_sys_Android_stackTrace(void) { JNIEnv *jniEnv = JNIGetJNIEnv(); jclass jcls = JNIUtilFindClass(jniEnv, JNIConvertClassNameForFindClass(ZFImpl_sys_Android_JNI_NAME_ZFAndroidLog).c_str()); static jmethodID jmId = JNIUtilGetStaticMethodID(jniEnv, jcls, zfTextA("stackTrace"), JNIGetMethodSig(JNIType::S_object(ZFImpl_sys_Android_JNI_NAME_String), JNIParamTypeContainer() ).c_str()); jstring jobjString = ZFCastStatic(jstring, JNIUtilCallStaticObjectMethod(jniEnv, jcls, jmId)); const char *utf = JNIUtilGetStringUTFChars(jniEnv, jobjString, zfnull); zfstring ret; if(utf != zfnull) { ret = utf; } JNIUtilReleaseStringUTFChars(jniEnv, jobjString, utf); return ret; }