/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/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 …]
|
/libnativehelper/ |
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 | 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 | libnativehelper_lazy.c | 164 jobject AFileDescriptor_create(JNIEnv* env) { in AFileDescriptor_create() 169 int AFileDescriptor_getFd(JNIEnv* env, jobject fileDescriptor) { in AFileDescriptor_getFd() 174 void AFileDescriptor_setFd(JNIEnv* env, jobject fileDescriptor, int fd) { in AFileDescriptor_setFd() 226 jarray jniGetNioBufferBaseArray(JNIEnv* env, jobject nioBuffer) { in jniGetNioBufferBaseArray() 231 int jniGetNioBufferBaseArrayOffset(JNIEnv* env, jobject nioBuffer) { in jniGetNioBufferBaseArrayOffset() 236 jlong jniGetNioBufferFields(JNIEnv* env, jobject nioBuffer, in jniGetNioBufferFields() 243 jlong jniGetNioBufferPointer(JNIEnv* env, jobject nioBuffer) { in jniGetNioBufferPointer()
|
D | JniConstants.c | 89 static jmethodID FindMethod(JNIEnv* env, jclass cls, in FindMethod() 101 static jfieldID FindField(JNIEnv* env, jclass cls, in FindField() 138 void EnsureInitialized(JNIEnv* env) { in EnsureInitialized()
|
/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/tests/ |
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 | libnativehelper_lazy_test.cpp | 39 C_JNIEnv* env = NULL; in TEST_F() local 58 JNIEnv* env = NULL; in TEST_F() local
|
D | JniSafeRegisterNativeMethods_test.cpp | 902 static void android_os_Parcel_writeLong(JNIEnv* env, in android_os_Parcel_writeLong() 906 static void android_os_Parcel_writeFloat(JNIEnv* env, in android_os_Parcel_writeFloat() 910 static void android_os_Parcel_writeDouble(JNIEnv* env, in android_os_Parcel_writeDouble() 914 static void android_os_Parcel_writeString(JNIEnv* env, in android_os_Parcel_writeString() 918 static void android_os_Parcel_writeStrongBinder(JNIEnv* env, in android_os_Parcel_writeStrongBinder() 922 static jlong android_os_Parcel_writeFileDescriptor(JNIEnv* env, in android_os_Parcel_writeFileDescriptor() 926 static jbyteArray android_os_Parcel_createByteArray(JNIEnv* env, in android_os_Parcel_createByteArray() 930 static jboolean android_os_Parcel_readByteArray(JNIEnv* env, in android_os_Parcel_readByteArray() 935 static jbyteArray android_os_Parcel_readBlob(JNIEnv* env, in android_os_Parcel_readBlob() 946 static jstring android_os_Parcel_readString(JNIEnv* env, in android_os_Parcel_readString() [all …]
|
D | scoped_local_ref_test.cpp | 21 void TestScopedLocalRef(JNIEnv* env) { in TestScopedLocalRef()
|
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 | JniInvocation_test.cpp | 61 JNIEnv *env; in TEST() local
|
/libnativehelper/header_only_include/nativehelper/ |
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()
|
D | scoped_local_frame.h | 25 explicit ScopedLocalFrame(JNIEnv* env) : mEnv(env) { in ScopedLocalFrame()
|
D | nativehelper_utils.h | 32 static inline int jniThrowNullPointerException(JNIEnv* env) { in jniThrowNullPointerException()
|
D | scoped_string_chars.h | 36 ScopedStringChars(JNIEnv* env, jstring s) : env_(env), string_(s), size_(0) { in ScopedStringChars()
|
D | scoped_utf_chars.h | 37 ScopedUtfChars(JNIEnv* env, jstring s) : env_(env), string_(s) { in ScopedUtfChars()
|
/libnativehelper/tests/jni_gtest/base/nativehelper/ |
D | jni_gtest.h | 102 void DestroyJNIEnv(JNIEnv* env) { in DestroyJNIEnv() 104 delete env; in DestroyJNIEnv() local
|