Home
last modified time | relevance | path

Searched refs:instance (Results 1 – 6 of 6) sorted by relevance

/libnativehelper/
DJniInvocation.c168 bool JniInvocationInit(struct JniInvocationImpl* instance, const char* library_name) { in JniInvocationInit() argument
212 instance->jni_provider_library_name = library_name; in JniInvocationInit()
213 instance->jni_provider_library = library; in JniInvocationInit()
214 instance->JNI_GetDefaultJavaVMInitArgs = (jint (*)(void *)) JNI_GetDefaultJavaVMInitArgs_; in JniInvocationInit()
215 instance->JNI_CreateJavaVM = (jint (*)(JavaVM**, JNIEnv**, void*)) JNI_CreateJavaVM_; in JniInvocationInit()
216 instance->JNI_GetCreatedJavaVMs = (jint (*)(JavaVM**, jsize, jsize*)) JNI_GetCreatedJavaVMs_; in JniInvocationInit()
221 void JniInvocationDestroy(struct JniInvocationImpl* instance) { in JniInvocationDestroy() argument
222 DlCloseLibrary(instance->jni_provider_library); in JniInvocationDestroy()
223 memset(instance, 0, sizeof(*instance)); in JniInvocationDestroy()
Dfile_descriptor_jni.c26 static void EnsureArgumentIsFileDescriptor(JNIEnv* env, jobject instance) { in EnsureArgumentIsFileDescriptor() argument
27 ALOG_ALWAYS_FATAL_IF(instance == NULL, "FileDescriptor is NULL"); in EnsureArgumentIsFileDescriptor()
29 ALOG_ALWAYS_FATAL_IF(!(*env)->IsInstanceOf(env, instance, jifd), in EnsureArgumentIsFileDescriptor()
Dlibnativehelper_lazy.c262 void JniInvocationDestroy(struct JniInvocationImpl* instance) { in JniInvocationDestroy() argument
264 INVOKE_METHOD(JniInvocationDestroy, M, instance); in JniInvocationDestroy()
267 bool JniInvocationInit(struct JniInvocationImpl* instance, const char* library) { in JniInvocationInit() argument
269 INVOKE_METHOD(JniInvocationInit, M, instance, library); in JniInvocationInit()
DJNIHelp.c133 jobject instance = (*env)->NewObject(env, clazz, init); in NewStringWriter() local
135 return instance; in NewStringWriter()
147 jobject instance = (*env)->NewObject(env, clazz, init, writer); in NewPrintWriter() local
149 return instance; in NewPrintWriter()
265 jobject instance = (*env)->NewObjectV(env, exceptionClass, init, args); in ThrowException() local
266 if (instance == NULL) { in ThrowException()
271 if ((*env)->Throw(env, (jthrowable)instance) != JNI_OK) { in ThrowException()
/libnativehelper/include_platform/nativehelper/
DJniInvocation.h56 bool JniInvocationInit(struct JniInvocationImpl* instance, const char* library);
61 void JniInvocationDestroy(struct JniInvocationImpl* instance);
/libnativehelper/include/nativehelper/
DJNIHelp.h185 jobject instance = env->NewObject(clazz, init); in NewStringWriter() local
187 return instance; in NewStringWriter()
199 jobject instance = env->NewObject(clazz, init, writer); in NewPrintWriter() local
201 return instance; in NewPrintWriter()
323 jobject instance = env->NewObjectV(exceptionClass, init, args); in ThrowException() local
324 if (instance == NULL) { in ThrowException()
330 if (env->Throw((jthrowable)instance) != JNI_OK) { in ThrowException()