Searched defs:env (Results 1 - 25 of 91) sorted by relevance

1234

/libcore/luni/src/test/native/
H A Dlibcore_java_nio_BufferTest.cpp21 JNIEnv* env, jobject /* clazz */, jobject buffer) {
22 return reinterpret_cast<jlong>(env->GetDirectBufferAddress(buffer));
26 JNIEnv* env, jobject /* clazz */, jobject buffer) {
27 return reinterpret_cast<jlong>(env->GetDirectBufferCapacity(buffer));
20 Java_libcore_java_nio_BufferTest_jniGetDirectBufferAddress( JNIEnv* env, jobject , jobject buffer) argument
25 Java_libcore_java_nio_BufferTest_jniGetDirectBufferCapacity( JNIEnv* env, jobject , jobject buffer) argument
H A Dlibcore_java_io_FileTest.cpp25 JNIEnv* env, jobject /* clazz */, jstring baseDir) {
26 ScopedUtfChars baseDirUtf(env, baseDir);
35 jniThrowIOException(env, errno);
38 jniThrowException(env, "java/lang/IllegalStateException", "expected dir");
43 jniThrowIOException(env, errno);
47 jniThrowException(env, "java/lang/IllegalStateException", "expected file");
24 Java_libcore_java_io_FileTest_nativeTestFilesWithSurrogatePairs( JNIEnv* env, jobject , jstring baseDir) argument
/libcore/ojluni/src/main/native/
H A DRegister.cpp36 extern void register_java_io_Console(JNIEnv* env);
65 extern void register_java_nio_Bits(JNIEnv* env);
66 extern void register_java_nio_MappedByteBuffer(JNIEnv* env);
67 extern void register_java_util_zip_Adler32(JNIEnv* env);
81 extern void register_sun_nio_ch_ServerSocketChannelImpl(JNIEnv* env);
82 extern void register_sun_nio_ch_SocketChannelImpl(JNIEnv* env);
83 extern void register_sun_nio_ch_InheritedChannel(JNIEnv* env);
84 extern void register_sun_nio_ch_PollArrayWrapper(JNIEnv* env);
93 jint JNI_OnLoad(JavaVM* vm, void*) { JNIEnv* env; local
94 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_
[all...]
H A DFileSystem_md.c34 FileSystem_getFileSystem(JNIEnv *env, jclass ignored) argument
36 return JNU_NewObjectByName(env, "java/io/UnixFileSystem", "()V");
44 void register_java_io_FileSystem(JNIEnv* env) { argument
45 jniRegisterNativeMethods(env, "java/io/FileSystem", gMethods, NELEM(gMethods));
H A DInet4Address.c40 static void Inet4Address_init(JNIEnv *env) { argument
41 jclass c = (*env)->FindClass(env, "java/net/Inet4Address");
43 ia4_class = (*env)->NewGlobalRef(env, c);
45 ia4_ctrID = (*env)->GetMethodID(env, ia4_class, "<init>", "()V");
49 void register_java_net_Inet4Address(JNIEnv* env) { argument
50 Inet4Address_init(env);
H A DString.c34 String_intern(JNIEnv *env, jobject this) argument
36 return JVM_InternString(env, this);
42 void register_java_lang_String(JNIEnv* env) { argument
43 jniRegisterNativeMethods(env, "java/lang/String", gMethods, NELEM(gMethods));
H A DShutdown.c37 Shutdown_halt0(JNIEnv *env, jclass ignored, jint code) argument
44 Shutdown_runAllFinalizers(JNIEnv *env, jclass ignored) argument
49 if ((cl = (*env)->FindClass(env, "java/lang/ref/Finalizer"))
50 && (mid = (*env)->GetStaticMethodID(env, cl,
52 (*env)->CallStaticVoidMethod(env, cl, mid);
61 void register_java_lang_Shutdown(JNIEnv* env) { argument
62 jniRegisterNativeMethods(env, "jav
[all...]
H A DThread.c60 void register_java_lang_Thread(JNIEnv* env) { argument
61 jclass cls = (*env)->FindClass(env, "java/lang/Thread");
62 (*env)->RegisterNatives(env, cls, methods, ARRAY_LENGTH(methods));
H A DThrowable.c50 Throwable_fillInStackTrace(JNIEnv *env, jobject throwable, int dummy) argument
52 JVM_FillInStackTrace(env, throwable);
57 Throwable_getStackTraceDepth(JNIEnv *env, jobject throwable) argument
59 return JVM_GetStackTraceDepth(env, throwable);
63 Throwable_getStackTraceElement(JNIEnv *env, argument
66 return JVM_GetStackTraceElement(env, throwable, index);
74 void register_java_lang_Throwable(JNIEnv* env) { argument
75 jniRegisterNativeMethods(env, "java/lang/Throwable", gMethods, NELEM(gMethods));
H A Djni_util_md.c29 jstring nativeNewStringPlatform(JNIEnv *env, const char *str) { argument
30 return (*env)->NewStringUTF(env, str);
33 const char* nativeGetStringPlatformChars(JNIEnv *env, jstring jstr, jboolean *isCopy) { argument
34 return (*env)->GetStringUTFChars(env, jstr, isCopy);
37 void nativeReleaseStringPlatformChars(JNIEnv* env, jstring jstr, const char* chars) { argument
38 (*env)->ReleaseStringUTFChars(env, jstr, chars);
H A Dsocket_tagger_util.cpp26 int tagSocket(JNIEnv* env, int fd) { argument
27 if (env->ExceptionOccurred()) { return fd; }
28 jmethodID get = env->GetStaticMethodID(JniConstants::socketTaggerClass,
31 env->CallStaticObjectMethod(JniConstants::socketTaggerClass, get);
32 jmethodID tag = env->GetMethodID(JniConstants::socketTaggerClass,
35 jobject fileDescriptor = jniCreateFileDescriptor(env, fd);
36 env->CallVoidMethod(socketTagger, tag, fileDescriptor);
40 void untagSocket(JNIEnv* env, int fd) { argument
41 if (env->ExceptionOccurred()) { return; }
42 jmethodID get = env
[all...]
H A DAdler32.c41 Java_java_util_zip_Adler32_update(JNIEnv *env, jclass cls, jint adler, jint b) argument
50 Java_java_util_zip_Adler32_updateBytes(JNIEnv *env, jclass cls, jint adler, argument
53 Bytef *buf = (*env)->GetPrimitiveArrayCritical(env, b, 0);
56 (*env)->ReleasePrimitiveArrayCritical(env, b, buf, 0);
62 Java_java_util_zip_Adler32_updateByteBuffer(JNIEnv *env, jclass cls, jint adler, argument
78 void register_java_util_zip_Adler32(JNIEnv* env) { argument
79 jniRegisterNativeMethods(env, "java/util/zip/Adler32", gMethods, NELEM(gMethods));
H A DConsole_md.c40 Java_java_io_Console_istty(JNIEnv *env, jclass cls) argument
46 Java_java_io_Console_encoding(JNIEnv *env, jclass cls) argument
52 Java_java_io_Console_echo(JNIEnv *env, argument
60 JNU_ThrowIOExceptionWithLastError(env, "tcgetattr failed");
70 JNU_ThrowIOExceptionWithLastError(env, "tcsetattr failed");
81 void register_java_io_Console(JNIEnv* env) { argument
82 jniRegisterNativeMethods(env, "java/io/Console", gMethods, NELEM(gMethods));
/libcore/luni/src/main/native/
H A DRegister.cpp27 JNIEnv* env; local
28 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) {
33 ScopedLocalFrame localFrame(env);
35 #define REGISTER(FN) extern void FN(JNIEnv*); FN(env)
H A Dlibcore_io_AsynchronousCloseMonitor.cpp24 static void AsynchronousCloseMonitor_signalBlockedThreads(JNIEnv* env, jclass, jobject javaFd) { argument
25 int fd = jniGetFDFromFileDescriptor(env, javaFd);
32 void register_libcore_io_AsynchronousCloseMonitor(JNIEnv* env) { argument
34 jniRegisterNativeMethods(env, "libcore/io/AsynchronousCloseMonitor", gMethods, NELEM(gMethods));
H A Dsun_misc_Unsafe.cpp22 static jobject Unsafe_allocateInstance(JNIEnv* env, jclass, jclass c) { argument
23 return env->AllocObject(c);
29 void register_sun_misc_Unsafe(JNIEnv* env) { argument
30 jniRegisterNativeMethods(env, "sun/misc/Unsafe", gMethods, NELEM(gMethods));
H A DExecStrings.cpp26 ExecStrings::ExecStrings(JNIEnv* env, jobjectArray java_string_array) argument
27 : env_(env), java_array_(java_string_array), array_(NULL) {
H A DJniException.cpp22 void jniThrowExceptionWithErrno(JNIEnv* env, const char* exceptionClassName, int error) { argument
24 jniThrowException(env, exceptionClassName, jniStrError(error, buf, sizeof(buf)));
27 void jniThrowOutOfMemoryError(JNIEnv* env, const char* message) { argument
28 jniThrowException(env, "java/lang/OutOfMemoryError", message);
31 void jniThrowSocketException(JNIEnv* env, int error) { argument
32 jniThrowExceptionWithErrno(env, "java/net/SocketException", error);
H A Dandroid_system_OsConstants.cpp54 static void initConstant(JNIEnv* env, jclass c, const char* fieldName, int value) { argument
55 jfieldID field = env->GetStaticFieldID(c, fieldName, "I");
56 env->SetStaticIntField(c, field, value);
59 static void OsConstants_initConstants(JNIEnv* env, jclass c) { argument
60 initConstant(env, c, "AF_INET", AF_INET);
61 initConstant(env, c, "AF_INET6", AF_INET6);
62 initConstant(env, c, "AF_PACKET", AF_PACKET);
63 initConstant(env, c, "AF_NETLINK", AF_NETLINK);
64 initConstant(env, c, "AF_UNIX", AF_UNIX);
65 initConstant(env,
668 register_android_system_OsConstants(JNIEnv* env) argument
[all...]
H A Dlibcore_util_NativeAllocationRegistry.cpp35 void register_libcore_util_NativeAllocationRegistry(JNIEnv* env) { argument
36 jniRegisterNativeMethods(env, "libcore/util/NativeAllocationRegistry",
H A DIcuUtilities.cpp30 jobjectArray fromStringEnumeration(JNIEnv* env, UErrorCode& status, const char* provider, icu::StringEnumeration* se) { argument
31 if (maybeThrowIcuException(env, provider, status)) {
36 if (maybeThrowIcuException(env, "StringEnumeration::count", status)) {
40 jobjectArray result = env->NewObjectArray(count, JniConstants::stringClass, NULL);
43 if (maybeThrowIcuException(env, "StringEnumeration::snext", status)) {
46 ScopedLocalRef<jstring> javaString(env, env->NewString(string->getBuffer(), string->length()));
47 env->SetObjectArrayElement(result, i, javaString.get());
52 bool maybeThrowIcuException(JNIEnv* env, const char* function, UErrorCode error) { argument
66 jniThrowExceptionFmt(env, exceptionClas
[all...]
H A DNetFd.h25 NetFd(JNIEnv* env, jobject fileDescriptor) argument
26 : mEnv(env), mFileDescriptor(fileDescriptor), mFd(-1)
/libcore/dalvik/src/main/native/
H A Dorg_apache_harmony_dalvik_NativeTestTarget.cpp41 int register_org_apache_harmony_dalvik_NativeTestTarget(JNIEnv* env) { argument
42 return jniRegisterNativeMethods(env, "org/apache/harmony/dalvik/NativeTestTarget", gMethods, NELEM(gMethods));
/libcore/include/
H A DScopedIcuLocale.h26 ScopedIcuLocale(JNIEnv* env, jstring javaLocaleName) : mEnv(env) { argument
34 const ScopedUtfChars localeName(env, javaLocaleName);
H A DScopedJavaUnicodeString.h28 ScopedJavaUnicodeString(JNIEnv* env, jstring s) : mEnv(env), mString(s) { argument
32 mChars = env->GetStringChars(mString, NULL);
33 const int32_t charCount = env->GetStringLength(mString);

Completed in 418 milliseconds

1234