/libcore/ojluni/src/main/native/ |
H A D | io_util_md.h | 7 * published by the Free Software Foundation. Oracle designates this 9 * by Oracle in the LICENSE file that accompanied this code. 15 * accompanied this code). 18 * 2 along with this work; if not, write to the Free Software Foundation, 36 * macros rely on having an appropriately defined 'this' object 42 #define SET_FD(this, fd, fid) \ 43 if ((*env)->GetObjectField(env, (this), (fid)) != NULL) \ 44 (*env)->SetIntField(env, (*env)->GetObjectField(env, (this), (fid)),IO_fd_fdID, (fd)) 46 #define GET_FD(this, fid) \ 47 (*env)->GetObjectField(env, (this), (fi [all...] |
H A D | String.c | 7 * published by the Free Software Foundation. Oracle designates this 9 * by Oracle in the LICENSE file that accompanied this code. 15 * accompanied this code). 18 * 2 along with this work; if not, write to the Free Software Foundation, 34 String_intern(JNIEnv *env, jobject this) argument 36 return JVM_InternString(env, this);
|
H A D | Runtime.c | 7 * published by the Free Software Foundation. Oracle designates this 9 * by Oracle in the LICENSE file that accompanied this code. 15 * accompanied this code). 18 * 2 along with this work; if not, write to the Free Software Foundation, 27 * Link foreign methods. This first half of this file contains the 30 * the implementation of this shared dynamic linking 33 * NOTE - source in this file is POSIX.1 compliant, host 48 Runtime_freeMemory(JNIEnv *env, jobject this) argument 54 Runtime_totalMemory(JNIEnv *env, jobject this) argument 60 Runtime_maxMemory(JNIEnv *env, jobject this) argument 66 Runtime_gc(JNIEnv *env, jobject this) argument 72 Runtime_nativeExit(JNIEnv *env, jclass this, jint status) argument [all...] |
H A D | io_util_md.c | 7 * published by the Free Software Foundation. Oracle designates this 9 * by Oracle in the LICENSE file that accompanied this code. 15 * accompanied this code). 18 * 2 along with this work; if not, write to the Free Software Foundation, 66 fileOpen(JNIEnv *env, jobject this, jstring path, jfieldID fid, int flags) argument 91 SET_FD(this, fd, fid); 102 fileClose(JNIEnv *env, jobject this, jfieldID fid) argument 104 FD fd = GET_FD(this, fid); 115 SET_FD(this, -1, fid); 125 SET_FD(this, f [all...] |
H A D | FileInputStream.c | 7 * published by the Free Software Foundation. Oracle designates this 9 * by Oracle in the LICENSE file that accompanied this code. 15 * accompanied this code). 18 * 2 along with this work; if not, write to the Free Software Foundation, 66 FileInputStream_open(JNIEnv *env, jobject this, jstring path) { argument 67 fileOpen(env, this, path, fis_fd, O_RDONLY); 71 FileInputStream_skip0(JNIEnv *env, jobject this, jlong toSkip) { argument 74 FD fd = GET_FD(this, fis_fd); 94 // types. For regular files, this is specified to return the difference 95 // between the current position and the file size. Note that this ca 118 FileInputStream_available0(JNIEnv *env, jobject this) argument [all...] |
H A D | PlainDatagramSocketImpl.c | 7 * published by the Free Software Foundation. Oracle designates this 9 * by Oracle in the LICENSE file that accompanied this code. 15 * accompanied this code). 18 * 2 along with this work; if not, write to the Free Software Foundation, 131 static int getFD(JNIEnv *env, jobject this) { argument 132 jobject fdObj = (*env)->GetObjectField(env, this, pdsi_fdID); 191 PlainDatagramSocketImpl_bind0(JNIEnv *env, jobject this, argument 193 /* fdObj is the FileDescriptor field on this */ 194 jobject fdObj = (*env)->GetObjectField(env, this, pdsi_fdID); 244 (*env)->SetIntField(env, this, pdsi_localPortI 256 PlainDatagramSocketImpl_connect0(JNIEnv *env, jobject this, jobject address, jint port) argument 298 PlainDatagramSocketImpl_disconnect0(JNIEnv *env, jobject this, jint family) argument 364 PlainDatagramSocketImpl_send(JNIEnv *env, jobject this, jobject packet) argument 500 PlainDatagramSocketImpl_peek(JNIEnv *env, jobject this, jobject addressObj) argument 585 PlainDatagramSocketImpl_peekData(JNIEnv *env, jobject this, jobject packet) argument 762 PlainDatagramSocketImpl_receive0(JNIEnv *env, jobject this, jobject packet) argument 964 PlainDatagramSocketImpl_datagramSocketCreate(JNIEnv *env, jobject this) argument 1043 PlainDatagramSocketImpl_datagramSocketClose(JNIEnv *env, jobject this) argument 1071 mcast_set_if_by_if_v4(JNIEnv *env, jobject this, int fd, jint ifindex) argument 1091 mcast_set_if_by_if_v6(JNIEnv *env, jobject this, int fd, jint ifindex) argument 1112 mcast_set_if_by_addr_v4(JNIEnv *env, jobject this, int fd, jobject value) argument 1131 mcast_set_if_by_addr_v6(JNIEnv *env, jobject this, int fd, jobject value) argument 1200 setMulticastInterface(JNIEnv *env, jobject this, int fd, jint opt, jobject value) argument 1244 mcast_set_loop_v4(JNIEnv *env, jobject this, int fd, jobject value) argument 1268 mcast_set_loop_v6(JNIEnv *env, jobject this, int fd, jobject value) argument 1293 setMulticastLoopbackMode(JNIEnv *env, jobject this, int fd, jint opt, jobject value) argument 1319 PlainDatagramSocketImpl_socketSetOption(JNIEnv *env, jobject this, jint opt, jobject value) argument 1453 getMulticastInterface(JNIEnv *env, jobject this, int fd, jint opt) argument 1485 PlainDatagramSocketImpl_socketGetOption(JNIEnv *env, jobject this, jint opt) argument 1583 PlainDatagramSocketImpl_setTTL(JNIEnv *env, jobject this, jbyte ttl) argument 1624 PlainDatagramSocketImpl_setTimeToLive(JNIEnv *env, jobject this, jint ttl) argument 1663 PlainDatagramSocketImpl_getTTL(JNIEnv *env, jobject this) argument 1674 PlainDatagramSocketImpl_getTimeToLive(JNIEnv *env, jobject this) argument 1734 mcast_join_leave(JNIEnv *env, jobject this, jobject iaObj, jobject niObj, jboolean join) argument 1952 PlainDatagramSocketImpl_join(JNIEnv *env, jobject this, jobject iaObj, jobject niObj) argument 1964 PlainDatagramSocketImpl_leave(JNIEnv *env, jobject this, jobject iaObj, jobject niObj) argument [all...] |
H A D | FileOutputStream_md.c | 7 * published by the Free Software Foundation. Oracle designates this 9 * by Oracle in the LICENSE file that accompanied this code. 15 * accompanied this code). 18 * 2 along with this work; if not, write to the Free Software Foundation, 55 FileOutputStream_open(JNIEnv *env, jobject this, argument 57 fileOpen(env, this, path, fos_fd,
|
H A D | io_util.c | 7 * published by the Free Software Foundation. Oracle designates this 9 * by Oracle in the LICENSE file that accompanied this code. 15 * accompanied this code). 18 * 2 along with this work; if not, write to the Free Software Foundation, 40 readSingle(JNIEnv *env, jobject this, jfieldID fid) { argument 43 FD fd = GET_FD(this, fid); 77 readBytes(JNIEnv *env, jobject this, jbyteArray bytes, argument 107 fd = GET_FD(this, fid); 131 writeSingle(JNIEnv *env, jobject this, jint byte, jboolean append, jfieldID fid) { argument 135 FD fd = GET_FD(this, fi 153 writeBytes(JNIEnv *env, jobject this, jbyteArray bytes, jint off, jint len, jboolean append, jfieldID fid) argument [all...] |
H A D | FileKey.c | 7 * published by the Free Software Foundation. Oracle designates this 9 * by Oracle in the LICENSE file that accompanied this code. 15 * accompanied this code). 18 * 2 along with this work; if not, write to the Free Software Foundation, 55 FileKey_init(JNIEnv *env, jobject this, jobject fdo) argument 64 (*env)->SetLongField(env, this, key_st_dev, (jlong)fbuf.st_dev); 65 (*env)->SetLongField(env, this, key_st_ino, (jlong)fbuf.st_ino);
|
H A D | java_util_zip_Deflater.c | 7 * published by the Free Software Foundation. Oracle designates this 9 * by Oracle in the LICENSE file that accompanied this code. 15 * accompanied this code). 18 * 2 along with this work; if not, write to the Free Software Foundation, 120 Deflater_deflateBytes(JNIEnv *env, jobject this, jlong addr, argument 125 jarray this_buf = (*env)->GetObjectField(env, this, bufID); 126 jint this_off = (*env)->GetIntField(env, this, offID); 127 jint this_len = (*env)->GetIntField(env, this, lenID); 131 if ((*env)->GetBooleanField(env, this, setParamsID)) { 132 int level = (*env)->GetIntField(env, this, levelI [all...] |
H A D | io_util.h | 7 * published by the Free Software Foundation. Oracle designates this 9 * by Oracle in the LICENSE file that accompanied this code. 15 * accompanied this code). 18 * 2 along with this work; if not, write to the Free Software Foundation, 49 jint readSingle(JNIEnv *env, jobject this, jfieldID fid); 50 jint readBytes(JNIEnv *env, jobject this, jbyteArray bytes, jint off, 52 void writeSingle(JNIEnv *env, jobject this, jint byte, jboolean append, jfieldID fid); 53 void writeBytes(JNIEnv *env, jobject this, jbyteArray bytes, jint off, 55 void fileOpen(JNIEnv *env, jobject this, jstring path, jfieldID fid, int flags);
|
H A D | java_util_zip_Inflater.c | 7 * published by the Free Software Foundation. Oracle designates this 9 * by Oracle in the LICENSE file that accompanied this code. 15 * accompanied this code). 18 * 2 along with this work; if not, write to the Free Software Foundation, 110 Inflater_inflateBytes(JNIEnv *env, jobject this, jlong addr, argument 114 jarray this_buf = (jarray)(*env)->GetObjectField(env, this, bufID); 115 jint this_off = (*env)->GetIntField(env, this, offID); 116 jint this_len = (*env)->GetIntField(env, this, lenID); 145 (*env)->SetBooleanField(env, this, finishedID, JNI_TRUE); 149 (*env)->SetIntField(env, this, offI [all...] |
H A D | DatagramChannelImpl.c | 7 * published by the Free Software Foundation. Oracle designates this 9 * by Oracle in the LICENSE file that accompanied this code. 15 * accompanied this code). 18 * 2 along with this work; if not, write to the Free Software Foundation, 79 Java_sun_nio_ch_DatagramChannelImpl_disconnect0(JNIEnv *env, jobject this, argument 132 Java_sun_nio_ch_DatagramChannelImpl_receive0(JNIEnv *env, jobject this, argument 179 (*env)->SetObjectField(env, this, dci_senderID, NULL); 188 senderAddr = (*env)->GetObjectField(env, this, dci_senderAddrID); 194 jint port = (*env)->GetIntField(env, this, dci_senderPortID); 215 (*env)->SetObjectField(env, this, dci_senderAddrI 224 Java_sun_nio_ch_DatagramChannelImpl_send0(JNIEnv *env, jobject this, jboolean preferIPv6, jobject fdo, jlong address, jint len, jobject destAddress, jint destPort) argument [all...] |
H A D | PlainSocketImpl.c | 7 * published by the Free Software Foundation. Oracle designates this 9 * by Oracle in the LICENSE file that accompanied this code. 15 * accompanied this code). 18 * 2 along with this work; if not, write to the Free Software Foundation, 95 static int getFD(JNIEnv *env, jobject this) { argument 96 jobject fdObj = (*env)->GetObjectField(env, this, psi_fdID); 131 * socketCreate, we ensure that this is initialized. This is to 142 PlainSocketImpl_socketCreate(JNIEnv *env, jobject this, argument 159 fdObj = (*env)->GetObjectField(env, this, psi_fdID); 191 * If this i 219 PlainSocketImpl_socketConnect(JNIEnv *env, jobject this, jobject iaObj, jint port, jint timeout) argument 513 PlainSocketImpl_socketBind(JNIEnv *env, jobject this, jobject iaObj, jint localport) argument 579 PlainSocketImpl_socketListen(JNIEnv *env, jobject this, jint count) argument 614 PlainSocketImpl_socketAccept(JNIEnv *env, jobject this, jobject socket) argument 768 PlainSocketImpl_socketAvailable(JNIEnv *env, jobject this) argument 799 PlainSocketImpl_socketClose0(JNIEnv *env, jobject this) argument 824 PlainSocketImpl_socketShutdown(JNIEnv *env, jobject this, jint howto) argument 852 PlainSocketImpl_socketSetOption(JNIEnv *env, jobject this, jint cmd, jboolean on, jobject value) argument 948 PlainSocketImpl_socketGetOption(JNIEnv *env, jobject this, jint cmd, jobject iaContainerObj) argument 1041 PlainSocketImpl_socketSendUrgentData(JNIEnv *env, jobject this, jint data) argument [all...] |
H A D | FileDescriptor_md.c | 7 * published by the Free Software Foundation. Oracle designates this 9 * by Oracle in the LICENSE file that accompanied this code. 15 * accompanied this code). 18 * 2 along with this work; if not, write to the Free Software Foundation, 58 FileDescriptor_sync(JNIEnv *env, jobject this) { argument 59 int fd = (*env)->GetIntField(env, this, IO_fd_fdID);
|
H A D | UnixFileSystem_md.c | 7 * published by the Free Software Foundation. Oracle designates this 9 * by Oracle in the LICENSE file that accompanied this code. 15 * accompanied this code). 18 * 2 along with this work; if not, write to the Free Software Foundation, 78 Java_java_io_UnixFileSystem_canonicalize0(JNIEnv *env, jobject this, argument 116 Java_java_io_UnixFileSystem_getBooleanAttributes0(JNIEnv *env, jobject this, argument 137 Java_java_io_UnixFileSystem_checkAccess0(JNIEnv *env, jobject this, argument 167 Java_java_io_UnixFileSystem_setPermission0(JNIEnv *env, jobject this, argument 214 Java_java_io_UnixFileSystem_getLastModifiedTime0(JNIEnv *env, jobject this, argument 230 Java_java_io_UnixFileSystem_getLength0(JNIEnv *env, jobject this, argument 275 Java_java_io_UnixFileSystem_delete0(JNIEnv *env, jobject this, jobject file) argument 290 Java_java_io_UnixFileSystem_list0(JNIEnv *env, jobject this, jobject file) argument 361 Java_java_io_UnixFileSystem_createDirectory0(JNIEnv *env, jobject this, jobject file) argument 376 Java_java_io_UnixFileSystem_rename0(JNIEnv *env, jobject this, jobject from, jobject to) argument 392 Java_java_io_UnixFileSystem_setLastModifiedTime0(JNIEnv *env, jobject this, jobject file, jlong time) argument 421 Java_java_io_UnixFileSystem_setReadOnly0(JNIEnv *env, jobject this, jobject file) argument 438 Java_java_io_UnixFileSystem_getSpace0(JNIEnv *env, jobject this, jobject file, jint t) argument [all...] |
H A D | PollArrayWrapper.c | 7 * published by the Free Software Foundation. Oracle designates this 9 * by Oracle in the LICENSE file that accompanied this code. 15 * accompanied this code). 18 * 2 along with this work; if not, write to the Free Software Foundation, 76 Java_sun_nio_ch_PollArrayWrapper_poll0(JNIEnv *env, jobject this, argument 98 Java_sun_nio_ch_PollArrayWrapper_interrupt(JNIEnv *env, jobject this, jint fd) argument
|
H A D | SocketChannelImpl.c | 7 * published by the Free Software Foundation. Oracle designates this 9 * by Oracle in the LICENSE file that accompanied this code. 15 * accompanied this code). 18 * 2 along with this work; if not, write to the Free Software Foundation, 52 Java_sun_nio_ch_SocketChannelImpl_checkConnect(JNIEnv *env, jobject this, argument 92 Java_sun_nio_ch_SocketChannelImpl_sendOutOfBandData(JNIEnv* env, jclass this, argument
|
H A D | Bits.c | 7 * published by the Free Software Foundation. Oracle designates this 9 * by Oracle in the LICENSE file that accompanied this code. 15 * accompanied this code). 18 * 2 along with this work; if not, write to the Free Software Foundation, 76 Java_java_nio_Bits_copyFromShortArray(JNIEnv *env, jobject this, jobject src, argument 87 /* do not change this if-else statement, see WARNING above */ 111 Java_java_nio_Bits_copyToShortArray(JNIEnv *env, jobject this, jlong srcAddr, argument 122 /* do not change this if-else statement, see WARNING above */ 146 Java_java_nio_Bits_copyFromIntArray(JNIEnv *env, jobject this, jobject src, argument 157 /* do not change this cod 181 Java_java_nio_Bits_copyToIntArray(JNIEnv *env, jobject this, jlong srcAddr, jobject dst, jlong dstPos, jlong length) argument 216 Java_java_nio_Bits_copyFromLongArray(JNIEnv *env, jobject this, jobject src, jlong srcPos, jlong dstAddr, jlong length) argument 251 Java_java_nio_Bits_copyToLongArray(JNIEnv *env, jobject this, jlong srcAddr, jobject dst, jlong dstPos, jlong length) argument [all...] |
H A D | FileChannelImpl.c | 7 * published by the Free Software Foundation. Oracle designates this 9 * by Oracle in the LICENSE file that accompanied this code. 15 * accompanied this code). 18 * 2 along with this work; if not, write to the Free Software Foundation, 77 FileChannelImpl_map0(JNIEnv *env, jobject this, argument 81 jobject fdo = (*env)->GetObjectField(env, this, chan_fd); 118 FileChannelImpl_unmap0(JNIEnv *env, jobject this, argument 129 FileChannelImpl_position0(JNIEnv *env, jobject this, argument 145 FileChannelImpl_close0(JNIEnv *env, jobject this, jobject fdo) argument 157 FileChannelImpl_transferTo0(JNIEnv *env, jobject this, argument [all...] |
H A D | IOUtil.c | 7 * published by the Free Software Foundation. Oracle designates this 9 * by Oracle in the LICENSE file that accompanied this code. 15 * accompanied this code). 18 * 2 along with this work; if not, write to the Free Software Foundation, 88 IOUtil_makePipe(JNIEnv *env, jobject this, jboolean blocking) argument 126 IOUtil_fdLimit(JNIEnv *env, jclass this) argument 167 IOUtil_iovMax(JNIEnv *env, jclass this) argument
|
H A D | ObjectStreamClass.c | 7 * published by the Free Software Foundation. Oracle designates this 9 * by Oracle in the LICENSE file that accompanied this code. 15 * accompanied this code). 18 * 2 along with this work; if not, write to the Free Software Foundation, 54 ObjectStreamClass_hasStaticInitializer(JNIEnv *env, jclass this, argument 74 // that would fail in this check (b/29064453). 82 * Empirically, this step appears to be unnecessary in 1.4; however, the
|
H A D | FileDispatcherImpl.c | 7 * published by the Free Software Foundation. Oracle designates this 9 * by Oracle in the LICENSE file that accompanied this code. 15 * accompanied this code). 18 * 2 along with this work; if not, write to the Free Software Foundation, 129 FileDispatcherImpl_force0(JNIEnv *env, jobject this, argument 144 FileDispatcherImpl_truncate0(JNIEnv *env, jobject this, argument 153 FileDispatcherImpl_size0(JNIEnv *env, jobject this, jobject fdo) argument 163 FileDispatcherImpl_lock0(JNIEnv *env, jobject this, jobject fdo, argument 201 FileDispatcherImpl_release0(JNIEnv *env, jobject this, argument
|
/libcore/dalvik/src/main/native/ |
H A D | sub.mk | 13 # TODO: fix this requirement
|
/libcore/ojluni/ |
H A D | Android.mk | 5 # you may not use this file except in compliance with the License.
|