/libnativehelper/ |
D | JniConstants.h | 31 jclass JniConstants_FileDescriptorClass(JNIEnv* env); 32 jclass JniConstants_NIOAccessClass(JNIEnv* env); 33 jclass JniConstants_NioBufferClass(JNIEnv* env); 41 jmethodID JniConstants_FileDescriptor_init(JNIEnv* env); 42 jmethodID JniConstants_NIOAccess_getBaseArray(JNIEnv* env); 43 jmethodID JniConstants_NIOAccess_getBaseArrayOffset(JNIEnv* env); 44 jmethodID JniConstants_NioBuffer_array(JNIEnv* env); 45 jmethodID JniConstants_NioBuffer_arrayOffset(JNIEnv* env); 53 jfieldID JniConstants_FileDescriptor_descriptor(JNIEnv* env); 54 jfieldID JniConstants_NioBuffer_address(JNIEnv* env); [all …]
|
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() 192 static jint JNI_CreateJavaVMImpl(JavaVM** p_vm, JNIEnv** p_env, void* vm_args) { in JNI_CreateJavaVMImpl() 193 typedef jint (*M)(JavaVM**, JNIEnv**, void*); in JNI_CreateJavaVMImpl() 197 jint JNI_CreateJavaVM(JavaVM** p_vm, JNIEnv** p_env, void* vm_args) { in JNI_CreateJavaVM() 226 jarray jniGetNioBufferBaseArray(JNIEnv* env, jobject nioBuffer) { in jniGetNioBufferBaseArray() [all …]
|
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() 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 | 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 | 53 static jmethodID FindMethod(JNIEnv* env, in FindMethod() 65 static bool AppendJString(JNIEnv* env, jstring text, struct ExpandableString* dst) { in AppendJString() 80 static bool GetExceptionSummary(JNIEnv* env, jthrowable thrown, struct ExpandableString* dst) { in GetExceptionSummary() 128 static jobject NewStringWriter(JNIEnv* env) { in NewStringWriter() 136 static jstring StringWriterToString(JNIEnv* env, jobject stringWriter) { in StringWriterToString() 142 static jobject NewPrintWriter(JNIEnv* env, jobject writer) { in NewPrintWriter() 150 static bool GetStackTrace(JNIEnv* env, jthrowable thrown, struct ExpandableString* dst) { in GetStackTrace() 188 static void GetStackTraceOrSummary(JNIEnv* env, jthrowable thrown, struct ExpandableString* dst) { in GetStackTraceOrSummary() 221 static void DiscardPendingException(JNIEnv* env, const char* className) { in DiscardPendingException() 237 static int ThrowException(JNIEnv* env, const char* className, const char* ctorSig, ...) { in ThrowException() [all …]
|
D | JniConstants.c | 80 static jclass FindClass(JNIEnv* env, const char* signature, bool androidOnly) { 89 static jmethodID FindMethod(JNIEnv* env, jclass cls, in FindMethod() 101 static jfieldID FindField(JNIEnv* env, jclass cls, in FindField() 114 static JNIEnv* g_init_env; 138 void EnsureInitialized(JNIEnv* env) { in EnsureInitialized() 176 jclass JniConstants_ ## cls ## Class(JNIEnv* env) { \ 184 jmethodID JniConstants_ ## cls ## _ ## method(JNIEnv* env) { \ 191 jfieldID JniConstants_ ## cls ## _ ## field(JNIEnv* env) { \
|
/libnativehelper/include_jni/ |
D | jni.h | 139 typedef _JNIEnv JNIEnv; typedef 142 typedef const struct JNINativeInterface* JNIEnv; typedef 155 jint (*GetVersion)(JNIEnv *); 157 jclass (*DefineClass)(JNIEnv*, const char*, jobject, const jbyte*, 159 jclass (*FindClass)(JNIEnv*, const char*); 161 jmethodID (*FromReflectedMethod)(JNIEnv*, jobject); 162 jfieldID (*FromReflectedField)(JNIEnv*, jobject); 164 jobject (*ToReflectedMethod)(JNIEnv*, jclass, jmethodID, jboolean); 166 jclass (*GetSuperclass)(JNIEnv*, jclass); 167 jboolean (*IsAssignableFrom)(JNIEnv*, jclass, jclass); [all …]
|
/libnativehelper/tests_mts/jni/ |
D | jni_helper_jni.cpp | 33 static void throwException(JNIEnv* env, jclass /*clazz*/, jstring className, jstring message) { in throwException() 39 static void throwExceptionWithIntFormat(JNIEnv* env, in throwExceptionWithIntFormat() 49 static void throwNullPointerException(JNIEnv* env, in throwNullPointerException() 56 static void throwRuntimeException(JNIEnv* env, jclass /*clazz*/, jstring message) { in throwRuntimeException() 61 static void throwIOException(JNIEnv* env, jclass /*clazz*/, jint cause) { in throwIOException() 65 static void throwErrnoException(JNIEnv* env, jclass /*clazz*/, jstring functionName, jint cause) { in throwErrnoException() 70 static void logException(JNIEnv* env, jclass /*clazz*/, jthrowable throwable) { in logException() 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() [all …]
|
D | libnativehelper_test.h | 28 JNIEnv* mEnv;
|
/libnativehelper/tests/jni_gtest/base/nativehelper/ |
D | jni_gtest.h | 79 JNIEnv* env_; 98 JNIEnv* CreateJNIEnv() { in CreateJNIEnv() 102 void DestroyJNIEnv(JNIEnv* env) { in DestroyJNIEnv() 112 std::unique_ptr<JNIEnv> CreateMockedJNIEnv() { in CreateMockedJNIEnv() 116 std::unique_ptr<JNIEnv> ret(new JNIEnv{0}); in CreateMockedJNIEnv()
|
/libnativehelper/include_platform/nativehelper/ |
D | JNIPlatformHelp.h | 92 inline jobject jniCreateFileDescriptor(JNIEnv* env, int fd) { 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() 123 inline jlong jniGetNioBufferFields(JNIEnv* env, jobject nioBuffer, in jniGetNioBufferFields() 129 inline jlong jniGetNioBufferPointer(JNIEnv* env, jobject nioBuffer) { in jniGetNioBufferPointer()
|
/libnativehelper/include/nativehelper/ |
D | JNIHelp.h | 102 [[maybe_unused]] static jmethodID FindMethod(JNIEnv* env, const char* className, in FindMethod() 112 [[maybe_unused]] static bool AppendJString(JNIEnv* env, jstring text, in AppendJString() 128 [[maybe_unused]] static bool GetExceptionSummary(JNIEnv* env, jthrowable thrown, in GetExceptionSummary() 177 [[maybe_unused]] static jobject NewStringWriter(JNIEnv* env) { 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() 199 [[maybe_unused]] static bool GetStackTrace(JNIEnv* env, jthrowable thrown, in GetStackTrace() 238 [[maybe_unused]] static void GetStackTraceOrSummary(JNIEnv* env, jthrowable thrown, in GetStackTraceOrSummary() 272 [[maybe_unused]] static void DiscardPendingException(JNIEnv* env, const char* className) { in DiscardPendingException() 289 [[maybe_unused]] static int ThrowException(JNIEnv* env, const char* className, const char* ctorSig, in ThrowException() [all …]
|
D | toStringArray.h | 28 jobjectArray toStringArray(JNIEnv* env, size_t count, StringVisitor&& visitor) { in toStringArray() 48 inline jobjectArray toStringArray(JNIEnv* env, const std::vector<std::string>& strings) { in toStringArray() 52 inline jobjectArray toStringArray(JNIEnv* env, const char* const* strings) { in toStringArray() 59 jobjectArray toStringArray(JNIEnv* env, Counter* counter, Getter* getter) { in toStringArray()
|
/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 | 234 …LID_JNI_ARGUMENT_TYPE(true,(is_valid_jni_argument_type<kNormalNative, /*pos*/0u, JNIEnv*>::value)); in TEST() 258 static JNIEnv* bad_ret_env() { return nullptr; } in bad_ret_env() 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() 261 static void v_e(JNIEnv*) {} in v_e() 262 static void v_ei(JNIEnv*, jint l) {} in v_ei() 263 static void v_el(JNIEnv*, jlong l) {} in v_el() 264 static void v_et(JNIEnv*, jstring) {} in v_et() 266 static void bad_noref_jint_norm(JNIEnv*, jclass, jint&) {} in bad_noref_jint_norm() 286 static void v_eo(JNIEnv*, jobject) {} in v_eo() [all …]
|
D | scoped_primitive_array_test.cpp | 21 void TestScopedPrimitiveArrayRO(JNIEnv* env, jbooleanArray array) { in TestScopedPrimitiveArrayRO() 28 void TestCompilationRW(JNIEnv* env, jintArray array) { in TestCompilationRW()
|
D | scoped_local_frame_test.cpp | 21 void TestScopedLocalFrame(JNIEnv* env) { in TestScopedLocalFrame()
|
D | scoped_string_chars_test.cpp | 21 void TestCompilationScopedStringChars(JNIEnv* env, string s) { in TestCompilationScopedStringChars()
|
D | scoped_utf_chars_test.cpp | 21 void TestCompilationScopedUtfChars(JNIEnv* env, jstring s) { in TestCompilationScopedUtfChars()
|
D | scoped_local_ref_test.cpp | 21 void TestScopedLocalRef(JNIEnv* env) { in TestScopedLocalRef()
|
/libnativehelper/header_only_include/nativehelper/ |
D | scoped_local_frame.h | 25 explicit ScopedLocalFrame(JNIEnv* env) : mEnv(env) { in ScopedLocalFrame() 34 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_primitive_array.h | 44 explicit Scoped ## NAME ## ArrayRO(JNIEnv* env) \ 46 Scoped ## NAME ## ArrayRO(JNIEnv* env, PRIMITIVE_TYPE ## Array javaArray) \ 78 JNIEnv* const mEnv; \ 104 explicit Scoped ## NAME ## ArrayRW(JNIEnv* env) \ 106 Scoped ## NAME ## ArrayRW(JNIEnv* env, PRIMITIVE_TYPE ## Array javaArray) \ 130 JNIEnv* const mEnv; \
|
D | scoped_string_chars.h | 36 ScopedStringChars(JNIEnv* env, jstring s) : env_(env), string_(s), size_(0) { in ScopedStringChars() 67 JNIEnv* const env_;
|
D | scoped_utf_chars.h | 37 ScopedUtfChars(JNIEnv* env, jstring s) : env_(env), string_(s) { in ScopedUtfChars() 88 JNIEnv* env_;
|