Home
last modified time | relevance | path

Searched refs:JNIEnv (Results 1 – 25 of 118) sorted by relevance

12345

/libcore/ojluni/src/main/native/
DRegister.cpp36 extern void register_java_io_Console(JNIEnv* env);
37 extern void register_java_io_FileDescriptor(JNIEnv*);
38 extern void register_java_io_FileInputStream(JNIEnv*);
39 extern void register_java_io_FileOutputStream(JNIEnv*);
40 extern void register_java_io_FileSystem(JNIEnv*);
41 extern void register_java_io_ObjectInputStream(JNIEnv*);
42 extern void register_java_io_ObjectOutputStream(JNIEnv*);
43 extern void register_java_io_ObjectStreamClass(JNIEnv*);
44 extern void register_java_io_UnixFileSystem(JNIEnv*);
45 extern void register_java_lang_Double(JNIEnv*);
[all …]
Djni_util.h49 JNU_ThrowByName(JNIEnv *env, const char *name, const char *msg);
53 JNU_ThrowNullPointerException(JNIEnv *env, const char *msg);
56 JNU_ThrowArrayIndexOutOfBoundsException(JNIEnv *env, const char *msg);
59 JNU_ThrowOutOfMemoryError(JNIEnv *env, const char *msg);
62 JNU_ThrowIllegalArgumentException(JNIEnv *env, const char *msg);
65 JNU_ThrowIllegalAccessError(JNIEnv *env, const char *msg);
68 JNU_ThrowIllegalAccessException(JNIEnv *env, const char *msg);
71 JNU_ThrowInternalError(JNIEnv *env, const char *msg);
74 JNU_ThrowIOException(JNIEnv *env, const char *msg);
77 JNU_ThrowNoSuchFieldException(JNIEnv *env, const char *msg);
[all …]
Djava_net_PlainDatagramSocketImpl.h43 (JNIEnv *, jobject, jint, jobject);
51 (JNIEnv *, jobject, jobject);
59 (JNIEnv *, jobject, jobject);
67 (JNIEnv *, jobject, jobject);
75 (JNIEnv *, jobject, jobject);
83 (JNIEnv *, jobject, jint);
91 (JNIEnv *, jobject);
99 (JNIEnv *, jobject, jbyte);
107 (JNIEnv *, jobject);
115 (JNIEnv *, jobject, jobject, jobject);
[all …]
Dsun_nio_ch_Net.h49 (JNIEnv *, jclass);
57 (JNIEnv *, jclass);
65 (JNIEnv *, jclass);
73 (JNIEnv *, jclass);
81 (JNIEnv *, jclass, jboolean, jboolean, jboolean);
89 (JNIEnv *, jclass, jobject, jboolean, jboolean, jobject, jint);
97 (JNIEnv *, jclass, jobject, jint);
105 (JNIEnv *, jclass, jboolean, jobject, jobject, jint);
113 (JNIEnv *, jclass, jobject, jint);
121 (JNIEnv *, jclass, jobject);
[all …]
Djvm.h79 JVM_IHashCode(JNIEnv *env, jobject obj);
82 JVM_MonitorWait(JNIEnv *env, jobject obj, jlong ms);
85 JVM_MonitorNotify(JNIEnv *env, jobject obj);
88 JVM_MonitorNotifyAll(JNIEnv *env, jobject obj);
91 JVM_Clone(JNIEnv *env, jobject obj);
97 JVM_InternString(JNIEnv *env, jstring str);
103 JVM_CurrentTimeMillis(JNIEnv *env, jclass ignored);
106 JVM_NanoTime(JNIEnv *env, jclass ignored);
109 JVM_ArrayCopy(JNIEnv *env, jclass ignored, jobject src, jint src_pos,
113 JVM_InitProperties(JNIEnv *env, jobject p);
[all …]
Djava_util_zip_ZipFile.h58 (JNIEnv *, jclass, jlong, jbyteArray, jboolean);
66 (JNIEnv *, jclass, jlong, jlong);
74 (JNIEnv *, jclass, jlong, jint);
82 (JNIEnv *, jclass, jlong);
90 (JNIEnv *, jclass, jstring, jint, jlong, jboolean);
98 (JNIEnv *, jclass, jlong);
106 (JNIEnv *, jclass, jlong);
114 (JNIEnv *, jclass, jlong, jlong, jlong, jbyteArray, jint, jint);
122 (JNIEnv *, jclass, jlong);
130 (JNIEnv *, jclass, jlong);
[all …]
Dsun_nio_ch_FileDispatcherImpl.h51 (JNIEnv *, jclass, jobject, jlong, jint);
59 (JNIEnv *, jclass, jobject, jlong, jint, jlong);
67 (JNIEnv *, jclass, jobject, jlong, jint);
75 (JNIEnv *, jclass, jobject, jlong, jint);
83 (JNIEnv *, jclass, jobject, jlong, jint, jlong);
91 (JNIEnv *, jclass, jobject, jlong, jint);
99 (JNIEnv *, jclass, jobject, jboolean);
107 (JNIEnv *, jclass, jobject, jlong);
115 (JNIEnv *, jclass, jobject);
123 (JNIEnv *, jclass, jobject, jboolean, jlong, jlong, jboolean);
[all …]
Djava_io_UnixFileSystem.h63 (JNIEnv *, jobject, jstring);
71 (JNIEnv *, jobject, jobject);
79 (JNIEnv *, jobject, jobject, jint);
87 (JNIEnv *, jobject, jobject);
95 (JNIEnv *, jobject, jobject);
103 (JNIEnv *, jobject, jobject, jint, jboolean, jboolean);
111 (JNIEnv *, jobject, jstring);
119 (JNIEnv *, jobject, jobject);
127 (JNIEnv *, jobject, jobject);
135 (JNIEnv *, jobject, jobject);
[all …]
Djava_net_PlainSocketImpl.h47 (JNIEnv *, jobject, jboolean);
55 (JNIEnv *, jobject, jobject, jint, jint);
63 (JNIEnv *, jobject, jobject, jint);
71 (JNIEnv *, jobject, jint);
79 (JNIEnv *, jobject, jobject);
87 (JNIEnv *, jobject);
95 (JNIEnv *, jobject);
103 (JNIEnv *, jobject, jint);
112 (JNIEnv *, jobject, jint, jboolean, jobject);
120 (JNIEnv *, jobject, jint, jobject);
[all …]
Djava_net_NetworkInterface.h43 (JNIEnv *, jclass);
51 (JNIEnv *, jclass, jstring);
59 (JNIEnv *, jclass, jint);
67 (JNIEnv *, jclass, jobject);
75 (JNIEnv *, jclass, jstring, jint);
83 (JNIEnv *, jclass, jstring, jint);
91 (JNIEnv *, jclass, jstring, jint);
99 (JNIEnv *, jclass, jstring, jint);
107 (JNIEnv *, jclass, jbyteArray, jstring, jint);
115 (JNIEnv *, jclass, jstring, jint);
[all …]
DMath.c31 Math_cos(JNIEnv *env, jclass unused, jdouble d) { in Math_cos()
36 Math_sin(JNIEnv *env, jclass unused, jdouble d) { in Math_sin()
41 Math_tan(JNIEnv *env, jclass unused, jdouble d) { in Math_tan()
46 Math_asin(JNIEnv *env, jclass unused, jdouble d) { in Math_asin()
51 Math_acos(JNIEnv *env, jclass unused, jdouble d) { in Math_acos()
56 Math_atan(JNIEnv *env, jclass unused, jdouble d) { in Math_atan()
61 Math_exp(JNIEnv *env, jclass unused, jdouble d) { in Math_exp()
66 Math_log(JNIEnv *env, jclass unused, jdouble d) { in Math_log()
71 Math_log10(JNIEnv *env, jclass unused, jdouble d) { in Math_log10()
76 Math_sqrt(JNIEnv *env, jclass unused, jdouble d) { in Math_sqrt()
[all …]
DCharacter.cpp33 Character_isLowerCaseImpl(JNIEnv* env, jclass, jint codePoint) { in Character_isLowerCaseImpl()
38 Character_isUpperCaseImpl(JNIEnv* env, jclass, jint codePoint) { in Character_isUpperCaseImpl()
43 Character_isTitleCaseImpl(JNIEnv* env, jclass, jint codePoint) { in Character_isTitleCaseImpl()
48 Character_isDigitImpl(JNIEnv* env, jclass, jint codePoint) { in Character_isDigitImpl()
53 Character_isLetterImpl(JNIEnv* env, jclass, jint codePoint) { in Character_isLetterImpl()
58 Character_isLetterOrDigitImpl(JNIEnv* env, jclass, jint codePoint) { in Character_isLetterOrDigitImpl()
63 Character_isAlphabeticImpl(JNIEnv* env, jclass, jint codePoint) { in Character_isAlphabeticImpl()
68 Character_isIdeographicImpl(JNIEnv* env, jclass, jint codePoint) { in Character_isIdeographicImpl()
73 Character_getTypeImpl(JNIEnv* env, jclass, jint codePoint) { in Character_getTypeImpl()
78 Character_isUnicodeIdentifierStartImpl(JNIEnv* env, jclass, jint codePoint) { in Character_isUnicodeIdentifierStartImpl()
[all …]
DStrictMath.c36 StrictMath_cos(JNIEnv *env, jclass unused, jdouble d) in StrictMath_cos()
42 StrictMath_sin(JNIEnv *env, jclass unused, jdouble d) in StrictMath_sin()
48 StrictMath_tan(JNIEnv *env, jclass unused, jdouble d) in StrictMath_tan()
54 StrictMath_asin(JNIEnv *env, jclass unused, jdouble d) in StrictMath_asin()
60 StrictMath_acos(JNIEnv *env, jclass unused, jdouble d) in StrictMath_acos()
66 StrictMath_atan(JNIEnv *env, jclass unused, jdouble d) in StrictMath_atan()
72 StrictMath_exp(JNIEnv *env, jclass unused, jdouble d) in StrictMath_exp()
78 StrictMath_log(JNIEnv *env, jclass unused, jdouble d) in StrictMath_log()
84 StrictMath_log10(JNIEnv *env, jclass unused, jdouble d) in StrictMath_log10()
90 StrictMath_sqrt(JNIEnv *env, jclass unused, jdouble d) in StrictMath_sqrt()
[all …]
Dsun_nio_ch_InheritedChannel.h55 (JNIEnv *, jclass, jint);
63 (JNIEnv *, jclass, jint, jint);
71 (JNIEnv *, jclass, jstring, jint);
79 (JNIEnv *, jclass, jint);
87 (JNIEnv *, jclass, jint);
95 (JNIEnv *, jclass, jint);
103 (JNIEnv *, jclass, jint);
Dnet_util.h61 extern void setInetAddress_addr(JNIEnv *env, jobject iaObj, int address);
62 extern void setInetAddress_family(JNIEnv *env, jobject iaObj, int family);
63 extern void setInetAddress_hostName(JNIEnv *env, jobject iaObj, jobject h);
64 extern int getInetAddress_addr(JNIEnv *env, jobject iaObj);
65 extern int getInetAddress_family(JNIEnv *env, jobject iaObj);
66 extern jobject getInetAddress_hostName(JNIEnv *env, jobject iaObj);
107 JNIEXPORT void JNICALL NET_ThrowNew(JNIEnv *env, int errorNum, char *msg);
110 void NET_ThrowCurrent(JNIEnv *env, char *msg);
112 jfieldID NET_GetFileDescriptorID(JNIEnv *env);
120 NET_InetAddressToSockaddr(JNIEnv *env, jobject iaObj, int port, struct sockaddr *him, int *len, jbo…
[all …]
DRuntime.c48 Runtime_freeMemory(JNIEnv *env, jobject this) in Runtime_freeMemory()
54 Runtime_totalMemory(JNIEnv *env, jobject this) in Runtime_totalMemory()
60 Runtime_maxMemory(JNIEnv *env, jobject this) in Runtime_maxMemory()
66 Runtime_gc(JNIEnv *env, jobject this) in Runtime_gc()
72 Runtime_nativeExit(JNIEnv *env, jclass this, jint status) in Runtime_nativeExit()
78 Runtime_nativeLoad(JNIEnv* env, jclass ignored, jstring javaFilename, in Runtime_nativeLoad()
95 void register_java_lang_Runtime(JNIEnv* env) { in register_java_lang_Runtime()
DIOUtil.c44 static void IOUtil_initIDs(JNIEnv *env) in IOUtil_initIDs()
51 IOUtil_randomBytes(JNIEnv *env, jclass clazz, in IOUtil_randomBytes()
59 IOUtil_fdVal(JNIEnv *env, jclass clazz, jobject fdo) in IOUtil_fdVal()
65 IOUtil_setfdVal(JNIEnv *env, jclass clazz, jobject fdo, jint val) in IOUtil_setfdVal()
80 IOUtil_configureBlocking(JNIEnv *env, jclass clazz, in IOUtil_configureBlocking()
88 IOUtil_makePipe(JNIEnv *env, jobject this, jboolean blocking) in IOUtil_makePipe()
109 IOUtil_drain(JNIEnv *env, jclass cl, jint fd) in IOUtil_drain()
126 IOUtil_fdLimit(JNIEnv *env, jclass this) in IOUtil_fdLimit()
144 convertReturnVal(JNIEnv *env, jint n, jboolean reading) in convertReturnVal()
167 IOUtil_iovMax(JNIEnv *env, jclass this) in IOUtil_iovMax()
[all …]
Dnio_util.h45 jint fdval(JNIEnv *env, jobject fdo);
47 jint convertReturnVal(JNIEnv *env, jint n, jboolean reading);
48 jlong convertLongReturnVal(JNIEnv *env, jlong n, jboolean reading);
53 jint handleSocketError(JNIEnv *env, jint errorValue);
55 jint handleSocketErrorWithDefault(JNIEnv *env, jint errorValue,
Dsun_nio_ch_FileChannelImpl.h53 (JNIEnv *, jobject, jint, jlong, jlong);
61 (JNIEnv *, jclass, jlong, jlong);
69 (JNIEnv *, jobject, jint, jlong, jlong, jint);
77 (JNIEnv *, jobject, jobject, jlong);
85 (JNIEnv *, jclass);
/libcore/dalvik/src/main/native/
Dorg_apache_harmony_dalvik_NativeTestTarget.cpp22 static void NativeTestTarget_emptyJniMethod0(JNIEnv*, jobject) { } in NativeTestTarget_emptyJniMethod0() argument
23 static void NativeTestTarget_emptyJniMethod6(JNIEnv*, jclass, int, int, int, int, int, int) { } in NativeTestTarget_emptyJniMethod6() argument
24 static void NativeTestTarget_emptyJniMethod6L(JNIEnv*, jclass, jobject, jarray, jarray, jobject, ja… in NativeTestTarget_emptyJniMethod6L() argument
25 static void NativeTestTarget_emptyJniStaticMethod0(JNIEnv*, jclass) { } in NativeTestTarget_emptyJniStaticMethod0() argument
26 static void NativeTestTarget_emptyJniStaticMethod6(JNIEnv*, jclass, int, int, int, int, int, int) {… in NativeTestTarget_emptyJniStaticMethod6() argument
27 static void NativeTestTarget_emptyJniStaticMethod6L(JNIEnv*, jclass, jobject, jarray, jarray, jobje… in NativeTestTarget_emptyJniStaticMethod6L() argument
28 static void NativeTestTarget_emptyJniStaticSynchronizedMethod0(JNIEnv*, jclass) { } in NativeTestTarget_emptyJniStaticSynchronizedMethod0() argument
29 static void NativeTestTarget_emptyJniSynchronizedMethod0(JNIEnv*, jclass) { } in NativeTestTarget_emptyJniSynchronizedMethod0() argument
41 int register_org_apache_harmony_dalvik_NativeTestTarget(JNIEnv* env) { in register_org_apache_harmony_dalvik_NativeTestTarget()
/libcore/luni/src/main/native/
DvalueOf.h22 jobject booleanValueOf(JNIEnv* env, jboolean b);
23 jobject doubleValueOf(JNIEnv* env, jdouble d);
24 jobject integerValueOf(JNIEnv* env, jint i);
25 jobject longValueOf(JNIEnv* env, jlong l);
29 jboolean booleanValue(JNIEnv* env, jobject javaLangBoolean);
30 jint intValue(JNIEnv* env, jobject javaLangInteger);
Djava_util_regex_Matcher.cpp44 MatcherAccessor(JNIEnv* env, jlong address, jstring javaInput, bool reset) { in MatcherAccessor()
65 MatcherAccessor(JNIEnv* env, jlong address) { in MatcherAccessor()
98 void init(JNIEnv* env, jlong address) { in init()
107 JNIEnv* mEnv;
123 static jlong Matcher_getNativeFinalizer(JNIEnv*, jclass) { in Matcher_getNativeFinalizer() argument
129 static jint Matcher_nativeSize(JNIEnv*, jclass) { in Matcher_nativeSize() argument
133 static jint Matcher_findImpl(JNIEnv* env, jclass, jlong addr, jstring javaText, jint startIndex, ji… in Matcher_findImpl()
142 static jint Matcher_findNextImpl(JNIEnv* env, jclass, jlong addr, jstring javaText, jintArray offse… in Matcher_findNextImpl()
154 static jint Matcher_groupCountImpl(JNIEnv* env, jclass, jlong addr) { in Matcher_groupCountImpl()
159 static jint Matcher_hitEndImpl(JNIEnv* env, jclass, jlong addr) { in Matcher_hitEndImpl()
[all …]
DvalueOf.cpp24 static jobject valueOf(JNIEnv* env, jclass c, const char* signature, const T& value) { in valueOf()
36 jobject booleanValueOf(JNIEnv* env, jboolean value) { in booleanValueOf()
40 jobject doubleValueOf(JNIEnv* env, jdouble value) { in doubleValueOf()
44 jobject integerValueOf(JNIEnv* env, jint value) { in integerValueOf()
48 jobject longValueOf(JNIEnv* env, jlong value) { in longValueOf()
52 jboolean booleanValue(JNIEnv* env, jobject javaLangBoolean) { in booleanValue()
57 jint intValue(JNIEnv* env, jobject javaLangInteger) { in intValue()
Dlibcore_io_Posix.cpp213 static void throwException(JNIEnv* env, jclass exceptionClass, jmethodID ctor3, jmethodID ctor2, in throwException()
237 static void throwErrnoException(JNIEnv* env, const char* functionName) { in throwErrnoException()
246 static void throwGaiException(JNIEnv* env, const char* functionName, int error) { in throwGaiException()
265 static rc_t throwIfMinusOne(JNIEnv* env, const char* name, rc_t rc) { in throwIfMinusOne()
275 IoVec(JNIEnv* env, size_t bufferCount) : mEnv(env), mBufferCount(bufferCount) { in IoVec()
324 JNIEnv* mEnv;
336 static jbyteArray getUnixSocketPath(JNIEnv* env, const sockaddr_storage& ss, in getUnixSocketPath()
362 static jobject makeSocketAddress(JNIEnv* env, const sockaddr_storage& ss, const socklen_t sa_len) { in makeSocketAddress()
411 static jobject makeStructPasswd(JNIEnv* env, const struct passwd& pw) { in makeStructPasswd()
421 static jobject makeStructStat(JNIEnv* env, const struct stat& sb) { in makeStructStat()
[all …]
Djava_math_NativeBN.cpp54 static bool throwExceptionIfNecessary(JNIEnv* env) { in throwExceptionIfNecessary()
74 static int isValidHandle(JNIEnv* env, jlong handle, const char* message) { in isValidHandle()
82 static int oneValidHandle(JNIEnv* env, jlong a) { in oneValidHandle()
86 static int twoValidHandles(JNIEnv* env, jlong a, jlong b) { in twoValidHandles()
91 static int threeValidHandles(JNIEnv* env, jlong a, jlong b, jlong c) { in threeValidHandles()
96 static int fourValidHandles(JNIEnv* env, jlong a, jlong b, jlong c, jlong d) { in fourValidHandles()
101 static jlong NativeBN_BN_new(JNIEnv* env, jclass) { in NativeBN_BN_new()
107 static jlong NativeBN_getNativeFinalizer(JNIEnv*, jclass) { in NativeBN_getNativeFinalizer() argument
111 static void NativeBN_BN_free(JNIEnv* env, jclass, jlong a) { in NativeBN_BN_free()
116 static int NativeBN_BN_cmp(JNIEnv* env, jclass, jlong a, jlong b) { in NativeBN_BN_cmp()
[all …]

12345