/libnativehelper/ |
D | JniConstants.h | 23 static jclass GetFileDescriptorClass(JNIEnv* env); 26 static jfieldID GetFileDescriptorDescriptorField(JNIEnv* env); 29 static jfieldID GetFileDescriptorOwnerIdField(JNIEnv* env); 32 static jmethodID GetFileDescriptorInitMethod(JNIEnv* env); 35 static jclass GetNioAccessClass(JNIEnv* env); 38 static jmethodID GetNioAccessGetBaseArrayMethod(JNIEnv* env); 41 static jmethodID GetNioAccessGetBaseArrayOffsetMethod(JNIEnv* env); 44 static jclass GetNioBufferClass(JNIEnv* env); 47 static jfieldID GetNioBufferAddressField(JNIEnv* env); 50 static jfieldID GetNioBufferElementSizeShiftField(JNIEnv* env); [all …]
|
D | JniConstants.cpp | 85 jclass FindClass(JNIEnv* env, const char* name) { in FindClass() 91 jfieldID FindField(JNIEnv* env, jclass klass, const char* name, const char* desc) { in FindField() 97 jmethodID FindMethod(JNIEnv* env, jclass klass, const char* name, const char* signature) { in FindMethod() 103 jmethodID FindStaticMethod(JNIEnv* env, jclass klass, const char* name, const char* signature) { in FindStaticMethod() 111 jclass JniConstants::GetFileDescriptorClass(JNIEnv* env) { in GetFileDescriptorClass() 116 jclass JniConstants::GetNioAccessClass(JNIEnv* env) { in GetNioAccessClass() 121 jclass JniConstants::GetNioBufferClass(JNIEnv* env) { in GetNioBufferClass() 126 jclass JniConstants::GetReferenceClass(JNIEnv* env) { in GetReferenceClass() 131 jclass JniConstants::GetStringClass(JNIEnv* env) { in GetStringClass() 136 jfieldID JniConstants::GetFileDescriptorDescriptorField(JNIEnv* env) { in GetFileDescriptorDescriptorField() [all …]
|
D | JNIHelp.cpp | 45 (*mEnv)->DeleteLocalRef(reinterpret_cast<JNIEnv*>(mEnv), mLocalRef); in reset() 62 JNIEnv* e = reinterpret_cast<JNIEnv*>(env); in findClass() 69 JNIEnv* e = reinterpret_cast<JNIEnv*>(env); in jniRegisterNativeMethods() 91 JNIEnv* e = reinterpret_cast<JNIEnv*>(env); in getExceptionSummary() 142 JNIEnv* e = reinterpret_cast<JNIEnv*>(env); in getStackTrace() 200 JNIEnv* e = reinterpret_cast<JNIEnv*>(env); in jniThrowException() 251 JNIEnv* e = reinterpret_cast<JNIEnv*>(env); in jniGetStackTrace() 323 JNIEnv* e = reinterpret_cast<JNIEnv*>(env); in jniCreateFileDescriptor() 335 JNIEnv* e = reinterpret_cast<JNIEnv*>(env); in jniGetFDFromFileDescriptor() 345 JNIEnv* e = reinterpret_cast<JNIEnv*>(env); in jniSetFileDescriptorOfFD() [all …]
|
D | toStringArray.cpp | 45 MODULE_API jobjectArray newStringArray(JNIEnv* env, size_t count) { in newStringArray() 49 MODULE_API jobjectArray toStringArray(JNIEnv* env, const char* const* strings) { in toStringArray()
|
D | JniInvocation.cpp | 125 jint JNI_CreateJavaVM(JavaVM** p_vm, JNIEnv** p_env, void* vm_args); 140 jint (*JNI_CreateJavaVM_)(JavaVM**, JNIEnv**, void*); 259 jint JniInvocationImpl::JNI_CreateJavaVM(JavaVM** p_vm, JNIEnv** p_env, void* vm_args) { in JNI_CreateJavaVM() 288 MODULE_API jint JNI_CreateJavaVM(JavaVM** p_vm, JNIEnv** p_env, void* vm_args) { in JNI_CreateJavaVM()
|
/libnativehelper/include_jni/ |
D | jni.h | 140 typedef _JNIEnv JNIEnv; typedef 143 typedef const struct JNINativeInterface* JNIEnv; typedef 156 jint (*GetVersion)(JNIEnv *); 158 jclass (*DefineClass)(JNIEnv*, const char*, jobject, const jbyte*, 160 jclass (*FindClass)(JNIEnv*, const char*); 162 jmethodID (*FromReflectedMethod)(JNIEnv*, jobject); 163 jfieldID (*FromReflectedField)(JNIEnv*, jobject); 165 jobject (*ToReflectedMethod)(JNIEnv*, jclass, jmethodID, jboolean); 167 jclass (*GetSuperclass)(JNIEnv*, jclass); 168 jboolean (*IsAssignableFrom)(JNIEnv*, jclass, jclass); [all …]
|
/libnativehelper/include/nativehelper/ |
D | JNIHelp.h | 194 inline int jniRegisterNativeMethods(JNIEnv* env, const char* className, const JNINativeMethod* gMet… in jniRegisterNativeMethods() 198 inline int jniThrowException(JNIEnv* env, const char* className, const char* msg) { in jniThrowException() 206 inline int jniThrowExceptionFmt(JNIEnv* env, const char* className, const char* fmt, ...) { in jniThrowExceptionFmt() 213 inline int jniThrowNullPointerException(JNIEnv* env, const char* msg) { in jniThrowNullPointerException() 217 inline int jniThrowRuntimeException(JNIEnv* env, const char* msg) { in jniThrowRuntimeException() 221 inline int jniThrowIOException(JNIEnv* env, int errnum) { in jniThrowIOException() 225 inline jobject jniCreateFileDescriptor(JNIEnv* env, int fd) { in jniCreateFileDescriptor() 229 inline int jniGetFDFromFileDescriptor(JNIEnv* env, jobject fileDescriptor) { in jniGetFDFromFileDescriptor() 233 inline void jniSetFileDescriptorOfFD(JNIEnv* env, jobject fileDescriptor, int value) { in jniSetFileDescriptorOfFD() 237 inline jlong jniGetOwnerIdFromFileDescriptor(JNIEnv* env, jobject fileDescriptor) { in jniGetOwnerIdFromFileDescriptor() [all …]
|
D | toStringArray.h | 26 MODULE_API jobjectArray newStringArray(JNIEnv* env, size_t count); 27 MODULE_API jobjectArray toStringArray(JNIEnv* env, const char* const* strings); 36 jobjectArray toStringArray(JNIEnv* env, Counter* counter, Getter* getter) { in toStringArray() 70 inline jobjectArray toStringArray(JNIEnv* env, const std::vector<std::string>& strings) { in toStringArray()
|
/libnativehelper/tests/jni_gtest/base/nativehelper/ |
D | jni_gtest.h | 80 JNIEnv* env_; 99 JNIEnv* CreateJNIEnv() { in CreateJNIEnv() 103 void DestroyJNIEnv(JNIEnv* env) { in DestroyJNIEnv() 113 std::unique_ptr<JNIEnv> CreateMockedJNIEnv() { in CreateMockedJNIEnv() 117 std::unique_ptr<JNIEnv> ret(new JNIEnv{0}); in CreateMockedJNIEnv()
|
/libnativehelper/tests/ |
D | JniSafeRegisterNativeMethods_test.cpp | 235 …LID_JNI_ARGUMENT_TYPE(true,(is_valid_jni_argument_type<kNormalNative, /*pos*/0u, JNIEnv*>::value)); in TEST() 259 static JNIEnv* bad_ret_env() { return nullptr; } in bad_ret_env() 260 static void bad_wrongplace_env(jobject, JNIEnv*) {} in bad_wrongplace_env() 261 static void bad_wrongplace_env2(jobject, jobject, JNIEnv*) {} in bad_wrongplace_env2() 262 static void v_e(JNIEnv*) {} in v_e() 263 static void v_ei(JNIEnv*, jint l) {} in v_ei() 264 static void v_el(JNIEnv*, jlong l) {} in v_el() 265 static void v_et(JNIEnv*, jstring) {} in v_et() 267 static void bad_noref_jint_norm(JNIEnv*, jclass, jint&) {} in bad_noref_jint_norm() 287 static void v_eo(JNIEnv*, jobject) {} in v_eo() [all …]
|
/libnativehelper/header_only_include/nativehelper/ |
D | scoped_bytes.h | 32 ScopedBytes(JNIEnv* env, jobject object) in ScopedBytes() 56 JNIEnv* const mEnv; 69 ScopedBytesRO(JNIEnv* env, jobject object) : ScopedBytes<true>(env, object) {} in ScopedBytesRO() 77 ScopedBytesRW(JNIEnv* env, jobject object) : ScopedBytes<false>(env, object) {} in ScopedBytesRW()
|
D | scoped_primitive_array.h | 42 explicit Scoped ## NAME ## ArrayRO(JNIEnv* env) \ 44 Scoped ## NAME ## ArrayRO(JNIEnv* env, PRIMITIVE_TYPE ## Array javaArray) \ 76 JNIEnv* const mEnv; \ 102 explicit Scoped ## NAME ## ArrayRW(JNIEnv* env) \ 104 Scoped ## NAME ## ArrayRW(JNIEnv* env, PRIMITIVE_TYPE ## Array javaArray) \ 128 JNIEnv* const mEnv; \
|
D | scoped_local_ref.h | 29 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) { in ScopedLocalRef() 35 explicit ScopedLocalRef(JNIEnv* env) : mEnv(env), mLocalRef(nullptr) { in ScopedLocalRef() 85 JNIEnv* mEnv;
|
D | scoped_local_frame.h | 25 explicit ScopedLocalFrame(JNIEnv* env) : mEnv(env) { in ScopedLocalFrame() 34 JNIEnv* const mEnv;
|
D | scoped_string_chars.h | 34 ScopedStringChars(JNIEnv* env, jstring s) : env_(env), string_(s), size_(0) { in ScopedStringChars() 65 JNIEnv* const env_;
|
D | scoped_utf_chars.h | 36 ScopedUtfChars(JNIEnv* env, jstring s) : env_(env), string_(s) { in ScopedUtfChars() 87 JNIEnv* env_;
|
D | nativehelper_utils.h | 32 static inline int jniThrowNullPointerException(JNIEnv* env, const char* msg) { in jniThrowNullPointerException()
|
/libnativehelper/platform_include/nativehelper/detail/ |
D | signature_checker.h | 796 TYPE_TRAIT_FN(JNIEnv*, "", kNormalJniCallingConventionParameter, kF…
|