/libnativehelper/include_platform/nativehelper/ |
D | JNIPlatformHelp.h | 40 jarray jniGetNioBufferBaseArray(C_JNIEnv* env, jobject nioBuffer); 50 jint jniGetNioBufferBaseArrayOffset(C_JNIEnv* env, jobject nioBuffer); 61 jobject nioBuffer, 74 jlong jniGetNioBufferPointer(C_JNIEnv* env, jobject nioBuffer); 92 inline jobject jniCreateFileDescriptor(JNIEnv* env, int fd) { in jniCreateFileDescriptor() 93 jobject fileDescriptor = AFileDescriptor_create(env); in jniCreateFileDescriptor() 100 inline int jniGetFDFromFileDescriptor(JNIEnv* env, jobject fileDescriptor) { in jniGetFDFromFileDescriptor() 107 inline void jniSetFileDescriptorOfFD(JNIEnv* env, jobject fileDescriptor, int value) { in jniSetFileDescriptorOfFD() 115 inline jarray jniGetNioBufferBaseArray(JNIEnv* env, jobject nioBuffer) { in jniGetNioBufferBaseArray() 119 inline jint jniGetNioBufferBaseArrayOffset(JNIEnv* env, jobject nioBuffer) { in jniGetNioBufferBaseArrayOffset() [all …]
|
/libnativehelper/include_jni/ |
D | jni.h | 61 typedef _jobject* jobject; typedef 83 typedef void* jobject; typedef 84 typedef jobject jclass; 85 typedef jobject jstring; 86 typedef jobject jarray; 96 typedef jobject jthrowable; 97 typedef jobject jweak; 118 jobject l; 157 jclass (*DefineClass)(JNIEnv*, const char*, jobject, const jbyte*, 161 jmethodID (*FromReflectedMethod)(JNIEnv*, jobject); [all …]
|
/libnativehelper/ |
D | JNIPlatformHelp.c | 23 static int GetBufferPosition(JNIEnv* env, jobject nioBuffer) { in GetBufferPosition() 27 static int GetBufferLimit(JNIEnv* env, jobject nioBuffer) { in GetBufferLimit() 31 static int GetBufferElementSizeShift(JNIEnv* env, jobject nioBuffer) { in GetBufferElementSizeShift() 35 jarray jniGetNioBufferBaseArray(JNIEnv* env, jobject nioBuffer) { in jniGetNioBufferBaseArray() 38 jobject object = (*env)->CallStaticObjectMethod(env, in jniGetNioBufferBaseArray() 43 int jniGetNioBufferBaseArrayOffset(JNIEnv* env, jobject nioBuffer) { in jniGetNioBufferBaseArrayOffset() 49 jlong jniGetNioBufferPointer(JNIEnv* env, jobject nioBuffer) { in jniGetNioBufferPointer() 59 jlong jniGetNioBufferFields(JNIEnv* env, jobject nioBuffer, in jniGetNioBufferFields()
|
D | libnativehelper_lazy.c | 164 jobject AFileDescriptor_create(JNIEnv* env) { in AFileDescriptor_create() 165 typedef jobject (*M)(JNIEnv*); in AFileDescriptor_create() 169 int AFileDescriptor_getFd(JNIEnv* env, jobject fileDescriptor) { in AFileDescriptor_getFd() 170 typedef int (*M)(JNIEnv*, jobject); in AFileDescriptor_getFd() 174 void AFileDescriptor_setFd(JNIEnv* env, jobject fileDescriptor, int fd) { in AFileDescriptor_setFd() 175 typedef void (*M)(JNIEnv*, jobject, int); in AFileDescriptor_setFd() 226 jarray jniGetNioBufferBaseArray(JNIEnv* env, jobject nioBuffer) { in jniGetNioBufferBaseArray() 227 typedef jarray (*M)(JNIEnv*, jobject); in jniGetNioBufferBaseArray() 231 int jniGetNioBufferBaseArrayOffset(JNIEnv* env, jobject nioBuffer) { in jniGetNioBufferBaseArrayOffset() 232 typedef int (*M)(JNIEnv*, jobject); in jniGetNioBufferBaseArrayOffset() [all …]
|
D | file_descriptor_jni.c | 26 static void EnsureArgumentIsFileDescriptor(JNIEnv* env, jobject instance) { in EnsureArgumentIsFileDescriptor() 33 JNIEXPORT _Nullable jobject AFileDescriptor_create(JNIEnv* env) { in AFileDescriptor_create() 39 JNIEXPORT int AFileDescriptor_getFd(JNIEnv* env, jobject fileDescriptor) { in AFileDescriptor_getFd() 44 JNIEXPORT void AFileDescriptor_setFd(JNIEnv* env, jobject fileDescriptor, int fd) { in AFileDescriptor_setFd()
|
D | JNIHelp.c | 128 static jobject NewStringWriter(JNIEnv* env) { in NewStringWriter() 131 jobject instance = (*env)->NewObject(env, clazz, init); in NewStringWriter() 136 static jstring StringWriterToString(JNIEnv* env, jobject stringWriter) { in StringWriterToString() 142 static jobject NewPrintWriter(JNIEnv* env, jobject writer) { in NewPrintWriter() 145 jobject instance = (*env)->NewObject(env, clazz, init, writer); in NewPrintWriter() 157 jobject sw = NewStringWriter(env); in GetStackTrace() 162 jobject pw = NewPrintWriter(env, sw); in GetStackTrace() 263 jobject instance = (*env)->NewObjectV(env, exceptionClass, init, args); in ThrowException()
|
/libnativehelper/include/android/ |
D | file_descriptor_jni.h | 52 jobject AFileDescriptor_create(JNIEnv* env) __INTRODUCED_IN(31); 67 int AFileDescriptor_getFd(JNIEnv* env, jobject fileDescriptor) __INTRODUCED_IN(31); 84 void AFileDescriptor_setFd(JNIEnv* env, jobject fileDescriptor, int fd) __INTRODUCED_IN(31);
|
/libnativehelper/tests/ |
D | JniSafeRegisterNativeMethods_test.cpp | 235 …LID_JNI_ARGUMENT_TYPE(true,(is_valid_jni_argument_type<kNormalNative, /*pos*/1u, jobject>::value)); in TEST() 259 static void bad_wrongplace_env(jobject, JNIEnv*) {} in bad_wrongplace_env() 260 static void bad_wrongplace_env2(jobject, jobject, JNIEnv*) {} in bad_wrongplace_env2() 265 static jobject o_none() { return nullptr; } in o_none() 286 static void v_eo(JNIEnv*, jobject) {} in v_eo() 287 static void v_eoo(JNIEnv*, jobject, jobject) {} in v_eoo() 289 static void v_eolib(JNIEnv*, jobject, jlong, jint, jboolean) {} in v_eolib() 290 static jshort s_eolAibA(JNIEnv*, jobject, jlongArray, jint, jbooleanArray) { return 0; } in s_eolAibA() 296 DEC_TEST_FN_IMPL(normal_ ## name, ret_t, JNIEnv*, jobject, __VA_ARGS__) \ 301 DEC_TEST_FN_IMPL(normal_ ## name, ret_t, JNIEnv*, jobject) \ [all …]
|
/libnativehelper/tests_mts/jni/ |
D | jni_helper_jni.cpp | 74 static jobject fileDescriptorCreate(JNIEnv* env, jclass /*clazz*/, jint unix_fd) { in fileDescriptorCreate() 78 static jint fileDescriptorGetFD(JNIEnv* env, jclass /*clazz*/, jobject jiofd) { in fileDescriptorGetFD() 82 static void fileDescriptorSetFD(JNIEnv* env, jclass /*clazz*/, jobject jiofd, jint unix_fd) { in fileDescriptorSetFD()
|
/libnativehelper/include/nativehelper/ |
D | JNIHelp.h | 177 [[maybe_unused]] static jobject NewStringWriter(JNIEnv* env) { in NewStringWriter() 180 jobject instance = env->NewObject(clazz, init); in NewStringWriter() 185 [[maybe_unused]] static jstring StringWriterToString(JNIEnv* env, jobject stringWriter) { in StringWriterToString() 191 [[maybe_unused]] static jobject NewPrintWriter(JNIEnv* env, jobject writer) { in NewPrintWriter() 194 jobject instance = env->NewObject(clazz, init, writer); in NewPrintWriter() 207 jobject sw = NewStringWriter(env); in GetStackTrace() 212 jobject pw = NewPrintWriter(env, sw); in GetStackTrace() 318 jobject instance = env->NewObjectV(exceptionClass, init, args); in ThrowException()
|
/libnativehelper/include_platform_header_only/nativehelper/detail/ |
D | signature_checker.h | 782 TYPE_TRAIT_FN(jobject, "Ljava/lang/Object;", kFastNative, kNotFinal, kFirstOrLater… 817 return {Reify<jobject>()}; in DEFINE_JNI_TYPE_TRAIT()
|