/libnativehelper/include_platform/nativehelper/ |
D | JNIPlatformHelp.h | 36 jobject jniCreateFileDescriptor(C_JNIEnv* env, int fd); 41 int jniGetFDFromFileDescriptor(C_JNIEnv* env, jobject fileDescriptor); 47 void jniSetFileDescriptorOfFD(C_JNIEnv* env, jobject fileDescriptor, int value); 56 jarray jniGetNioBufferBaseArray(C_JNIEnv* env, jobject nioBuffer); 66 jint jniGetNioBufferBaseArrayOffset(C_JNIEnv* env, jobject nioBuffer); 77 jobject nioBuffer, 90 jlong jniGetNioBufferPointer(C_JNIEnv* env, jobject nioBuffer); 105 inline jobject jniCreateFileDescriptor(JNIEnv* env, int fd) { in jniCreateFileDescriptor() 109 inline int jniGetFDFromFileDescriptor(JNIEnv* env, jobject fileDescriptor) { in jniGetFDFromFileDescriptor() 113 inline void jniSetFileDescriptorOfFD(JNIEnv* env, jobject fileDescriptor, int value) { in jniSetFileDescriptorOfFD() [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 jobject jniCreateFileDescriptor(JNIEnv* env, int fd) { in jniCreateFileDescriptor() 36 jobject fileDescriptor = (*env)->NewObject(env, in jniCreateFileDescriptor() 47 int jniGetFDFromFileDescriptor(JNIEnv* env, jobject fileDescriptor) { in jniGetFDFromFileDescriptor() 56 void jniSetFileDescriptorOfFD(JNIEnv* env, jobject fileDescriptor, int value) { in jniSetFileDescriptorOfFD() 65 jarray jniGetNioBufferBaseArray(JNIEnv* env, jobject nioBuffer) { in jniGetNioBufferBaseArray() 68 jobject object = (*env)->CallStaticObjectMethod(env, in jniGetNioBufferBaseArray() 73 int jniGetNioBufferBaseArrayOffset(JNIEnv* env, jobject nioBuffer) { 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 | JNIHelpCompat.c | 33 int jniGetFDFromFileDescriptor_QR(JNIEnv* env, jobject fileDescriptor) { in jniGetFDFromFileDescriptor_QR() 48 jint jniGetFDFromFileDescriptor(JNIEnv* env, jobject fileDescriptor) { in jniGetFDFromFileDescriptor()
|
D | JNIHelp.c | 127 static jobject NewStringWriter(JNIEnv* env) { in NewStringWriter() 130 jobject instance = (*env)->NewObject(env, clazz, init); in NewStringWriter() 135 static jstring StringWriterToString(JNIEnv* env, jobject stringWriter) { in StringWriterToString() 141 static jobject NewPrintWriter(JNIEnv* env, jobject writer) { in NewPrintWriter() 144 jobject instance = (*env)->NewObject(env, clazz, init, writer); in NewPrintWriter() 156 jobject sw = NewStringWriter(env); in GetStackTrace() 161 jobject pw = NewPrintWriter(env, sw); in GetStackTrace() 320 jobject jniGetReferent(JNIEnv* env, jobject ref) { in jniGetReferent()
|
/libnativehelper/include/nativehelper/ |
D | JNIHelpCompat.h | 52 int jniGetFDFromFileDescriptor(C_JNIEnv* env, jobject fileDescriptor); 74 int jniGetFDFromFileDescriptor_QR(C_JNIEnv* env, jobject fileDescriptor); 84 inline int jniGetFDFromFileDescriptor(JNIEnv* env, jobject fileDescriptor) { in jniGetFDFromFileDescriptor() 88 inline int jniGetFDFromFileDescriptor_QR(JNIEnv* env, jobject fileDescriptor) { in jniGetFDFromFileDescriptor_QR()
|
D | JNIHelp.h | 98 jobject jniGetReferent(C_JNIEnv* env, jobject ref); 160 inline jobject jniGetReferent(JNIEnv* env, jobject ref) { in jniGetReferent()
|
/libnativehelper/tests_mts/jni/ |
D | jni_helper_jni.cpp | 31 extern "C" int jniGetFDFromFileDescriptor_QR(JNIEnv* env, jobject fileDescriptor); 49 jobject jlae = env->NewObject(jlaeClass.get(), init, message.get(), nullptr); in AssertionError() 89 static jobject fileDescriptorCreate(JNIEnv* env, jclass /*clazz*/, jint unix_fd) { in fileDescriptorCreate() 93 static jint fileDescriptorGetFD(JNIEnv* env, jclass /*clazz*/, jobject jiofd) { in fileDescriptorGetFD() 97 static jint fileDescriptorGetFDCompatQR(JNIEnv* env, jclass /*clazz*/, jobject jiofd) { in fileDescriptorGetFDCompatQR() 104 static void fileDescriptorSetFD(JNIEnv* env, jclass /*clazz*/, jobject jiofd, jint unix_fd) { in fileDescriptorSetFD() 108 static jobject allocateDirectNonHeapBuffer(JNIEnv* env, jclass /*clazz*/, jint length) { in allocateDirectNonHeapBuffer() 117 assertBufferBaseArrayOffsetBytes(JNIEnv* env, jclass /*clazz*/, jobject jnb, jint offset) { in assertBufferBaseArrayOffsetBytes() 127 static void assertBufferPosition(JNIEnv* env, jclass /*clazz*/, jobject jnb, jint position) { in assertBufferPosition() 138 static void assertBufferLimit(JNIEnv* env, jclass /*clazz*/, jobject jnb, jint limit) { in assertBufferLimit() [all …]
|
/libnativehelper/include/android/ |
D | file_descriptor_jni.h | 50 jobject AFileDescriptor_create(JNIEnv* env) __INTRODUCED_IN(31); 65 int AFileDescriptor_getFD(JNIEnv* env, jobject fileDescriptor) __INTRODUCED_IN(31); 82 void AFileDescriptor_setFD(JNIEnv* env, jobject fileDescriptor, int fd) __INTRODUCED_IN(31);
|
/libnativehelper/header_only_include/nativehelper/ |
D | scoped_bytes.h | 32 ScopedBytes(JNIEnv* env, jobject object) in ScopedBytes() 57 const jobject mObject; 69 ScopedBytesRO(JNIEnv* env, jobject object) : ScopedBytes<true>(env, object) {} in ScopedBytesRO() 77 ScopedBytesRW(JNIEnv* env, jobject object) : ScopedBytes<false>(env, object) {} in ScopedBytesRW()
|
/libnativehelper/tests/ |
D | scoped_bytes_test.cpp | 22 jobject o = nullptr; in TestCompilationScopedBytesRO() 28 jobject o = nullptr; in TestCompilationScopedBytesRW()
|
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/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()
|