/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() 130 static jobject NewStringWriter(JNIEnv* env) { in NewStringWriter() 138 static jstring StringWriterToString(JNIEnv* env, jobject stringWriter) { in StringWriterToString() 144 static jobject NewPrintWriter(JNIEnv* env, jobject writer) { in NewPrintWriter() 152 static bool GetStackTrace(JNIEnv* env, jthrowable thrown, struct ExpandableString* dst) { in GetStackTrace() 190 static void GetStackTraceOrSummary(JNIEnv* env, jthrowable thrown, struct ExpandableString* dst) { in GetStackTraceOrSummary() 223 static void DiscardPendingException(JNIEnv* env, const char* className) { in DiscardPendingException() 239 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 | 90 static jmethodID FindMethod(JNIEnv* env, jclass cls, in FindMethod() 102 static jfieldID FindField(JNIEnv* env, jclass cls, in FindField() 139 void EnsureInitialized(JNIEnv* env) { in EnsureInitialized()
|
/libnativehelper/include/nativehelper/ |
D | JNIHelp.h | 107 [[maybe_unused]] static jmethodID FindMethod(JNIEnv* env, const char* className, in FindMethod() 117 [[maybe_unused]] static bool AppendJString(JNIEnv* env, jstring text, in AppendJString() 133 [[maybe_unused]] static bool GetExceptionSummary(JNIEnv* env, jthrowable thrown, in GetExceptionSummary() 182 [[maybe_unused]] static jobject NewStringWriter(JNIEnv* env) { in NewStringWriter() 190 [[maybe_unused]] static jstring StringWriterToString(JNIEnv* env, jobject stringWriter) { in StringWriterToString() 196 [[maybe_unused]] static jobject NewPrintWriter(JNIEnv* env, jobject writer) { in NewPrintWriter() 204 [[maybe_unused]] static bool GetStackTrace(JNIEnv* env, jthrowable thrown, in GetStackTrace() 243 [[maybe_unused]] static void GetStackTraceOrSummary(JNIEnv* env, jthrowable thrown, in GetStackTraceOrSummary() 277 [[maybe_unused]] static void DiscardPendingException(JNIEnv* env, const char* className) { in DiscardPendingException() 294 [[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/header_only_include/nativehelper/ |
D | utils.h | 100 #define GET_UTF_OR_RETURN(env, expr) \ argument 102 #define GET_UTF_OR_RETURN_VOID(env, expr) GET_UTF_OR_RETURN_IMPL_((env), (expr)) argument 104 #define GET_UTF_OR_RETURN_IMPL_(env, expr, ...) \ argument 136 #define CREATE_UTF_OR_RETURN(env, expr) \ argument 138 #define CREATE_UTF_OR_RETURN_VOID(env, expr) CREATE_UTF_OR_RETURN_IMPL_((env), (expr)) argument 140 #define CREATE_UTF_OR_RETURN_IMPL_(env, expr, ...) \ argument
|
D | scoped_local_ref.h | 31 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) { in ScopedLocalRef() 37 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 | 34 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 | 44 ScopedUtfChars(JNIEnv* env, jstring s) : env_(env), string_(s) { in ScopedUtfChars()
|
/libnativehelper/tests/ |
D | libnativehelper_test.cpp | 45 jint ret = [&](JNIEnv* env) -> jint { in TEST_F() 60 [&](JNIEnv* env) -> void { in TEST_F() 70 jint ret = [&](JNIEnv* env) -> jint { in TEST_F() 84 [&](JNIEnv* env) -> void { in TEST_F() 98 jint ret = [&](JNIEnv* env) -> jint { in TEST_F() 122 jint ret = [&](JNIEnv* env) -> jint { in TEST_F() 138 jint ret = [&](JNIEnv* env) -> jint { in TEST_F() 153 [&](JNIEnv* env) -> void { in TEST_F() 169 jint ret = [&](JNIEnv* env) -> jint { in TEST_F() 185 [&](JNIEnv* env) -> void { in TEST_F()
|
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 | 890 static void android_os_Parcel_writeLong(JNIEnv* env, in android_os_Parcel_writeLong() 894 static void android_os_Parcel_writeFloat(JNIEnv* env, in android_os_Parcel_writeFloat() 898 static void android_os_Parcel_writeDouble(JNIEnv* env, in android_os_Parcel_writeDouble() 902 static void android_os_Parcel_writeString(JNIEnv* env, in android_os_Parcel_writeString() 906 static void android_os_Parcel_writeStrongBinder(JNIEnv* env, in android_os_Parcel_writeStrongBinder() 910 static jlong android_os_Parcel_writeFileDescriptor(JNIEnv* env, in android_os_Parcel_writeFileDescriptor() 914 static jbyteArray android_os_Parcel_createByteArray(JNIEnv* env, in android_os_Parcel_createByteArray() 918 static jboolean android_os_Parcel_readByteArray(JNIEnv* env, in android_os_Parcel_readByteArray() 923 static jbyteArray android_os_Parcel_readBlob(JNIEnv* env, in android_os_Parcel_readBlob() 934 static jstring android_os_Parcel_readString(JNIEnv* env, in android_os_Parcel_readString() [all …]
|
D | scoped_local_frame_test.cpp | 21 void TestScopedLocalFrame(JNIEnv* env) { in TestScopedLocalFrame()
|
D | scoped_local_ref_test.cpp | 21 void TestScopedLocalRef(JNIEnv* env) { in TestScopedLocalRef()
|
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/tests/jni_gtest/base/nativehelper/ |
D | jni_gtest.h | 102 void DestroyJNIEnv(JNIEnv* env) { in DestroyJNIEnv() 104 delete env; in DestroyJNIEnv() local
|