Home
last modified time | relevance | path

Searched refs:this (Results 1 – 25 of 64) sorted by relevance

123

/libcore/ojluni/src/main/native/
Dio_util_md.h42 #define SET_FD(this, fd, fid) \ argument
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) \ argument
47 (*env)->GetObjectField(env, (this), (fid)) == NULL ? \
48 -1 : (*env)->GetIntField(env, (*env)->GetObjectField(env, (this), (fid)), IO_fd_fdID)
73 void fileClose(JNIEnv *env, jobject this, jfieldID fid);
DPlainSocketImpl.c95 static int getFD(JNIEnv *env, jobject this) { in getFD() argument
96 jobject fdObj = (*env)->GetObjectField(env, this, psi_fdID); in getFD()
142 PlainSocketImpl_socketCreate(JNIEnv *env, jobject this, in PlainSocketImpl_socketCreate() argument
159 fdObj = (*env)->GetObjectField(env, this, psi_fdID); in PlainSocketImpl_socketCreate()
194 ssObj = (*env)->GetObjectField(env, this, psi_serverSocketID); in PlainSocketImpl_socketCreate()
219 PlainSocketImpl_socketConnect(JNIEnv *env, jobject this, in PlainSocketImpl_socketConnect() argument
223 jint localport = (*env)->GetIntField(env, this, psi_localportID); in PlainSocketImpl_socketConnect()
227 jobject fdObj = (*env)->GetObjectField(env, this, psi_fdID); in PlainSocketImpl_socketConnect()
229 jclass clazz = (*env)->GetObjectClass(env, this); in PlainSocketImpl_socketConnect()
233 jint trafficClass = (*env)->GetIntField(env, this, psi_trafficClassID); in PlainSocketImpl_socketConnect()
[all …]
DPlainDatagramSocketImpl.c131 static int getFD(JNIEnv *env, jobject this) { in getFD() argument
132 jobject fdObj = (*env)->GetObjectField(env, this, pdsi_fdID); in getFD()
191 PlainDatagramSocketImpl_bind0(JNIEnv *env, jobject this, in PlainDatagramSocketImpl_bind0() argument
194 jobject fdObj = (*env)->GetObjectField(env, this, pdsi_fdID); in PlainDatagramSocketImpl_bind0()
244 (*env)->SetIntField(env, this, pdsi_localPortID, localport); in PlainDatagramSocketImpl_bind0()
246 (*env)->SetIntField(env, this, pdsi_localPortID, localport); in PlainDatagramSocketImpl_bind0()
256 PlainDatagramSocketImpl_connect0(JNIEnv *env, jobject this, in PlainDatagramSocketImpl_connect0() argument
259 jobject fdObj = (*env)->GetObjectField(env, this, pdsi_fdID); in PlainDatagramSocketImpl_connect0()
298 PlainDatagramSocketImpl_disconnect0(JNIEnv *env, jobject this, jint family) { in PlainDatagramSocketImpl_disconnect0() argument
300 jobject fdObj = (*env)->GetObjectField(env, this, pdsi_fdID); in PlainDatagramSocketImpl_disconnect0()
[all …]
Djava_util_zip_Deflater.c120 Deflater_deflateBytes(JNIEnv *env, jobject this, jlong addr, in Deflater_deflateBytes() argument
125 jarray this_buf = (*env)->GetObjectField(env, this, bufID); in Deflater_deflateBytes()
126 jint this_off = (*env)->GetIntField(env, this, offID); in Deflater_deflateBytes()
127 jint this_len = (*env)->GetIntField(env, this, lenID); in Deflater_deflateBytes()
131 if ((*env)->GetBooleanField(env, this, setParamsID)) { in Deflater_deflateBytes()
132 int level = (*env)->GetIntField(env, this, levelID); in Deflater_deflateBytes()
133 int strategy = (*env)->GetIntField(env, this, strategyID); in Deflater_deflateBytes()
159 (*env)->SetBooleanField(env, this, setParamsID, JNI_FALSE); in Deflater_deflateBytes()
161 (*env)->SetIntField(env, this, offID, this_off); in Deflater_deflateBytes()
162 (*env)->SetIntField(env, this, lenID, strm->avail_in); in Deflater_deflateBytes()
[all …]
DRuntime.c48 Runtime_freeMemory(JNIEnv *env, jobject this) in Runtime_freeMemory() argument
54 Runtime_totalMemory(JNIEnv *env, jobject this) in Runtime_totalMemory() argument
60 Runtime_maxMemory(JNIEnv *env, jobject this) in Runtime_maxMemory() argument
66 Runtime_gc(JNIEnv *env, jobject this) in Runtime_gc() argument
72 Runtime_nativeExit(JNIEnv *env, jclass this, jint status) in Runtime_nativeExit() argument
Dio_util_md.c66 fileOpen(JNIEnv *env, jobject this, jstring path, jfieldID fid, int flags) in fileOpen() argument
91 SET_FD(this, fd, fid); in fileOpen()
102 fileClose(JNIEnv *env, jobject this, jfieldID fid) in fileClose() argument
104 FD fd = GET_FD(this, fid); in fileClose()
115 SET_FD(this, -1, fid); in fileClose()
125 SET_FD(this, fd, fid); // restore fd in fileClose()
DFileInputStream.c66 FileInputStream_open(JNIEnv *env, jobject this, jstring path) { in FileInputStream_open() argument
67 fileOpen(env, this, path, fis_fd, O_RDONLY); in FileInputStream_open()
71 FileInputStream_skip0(JNIEnv *env, jobject this, jlong toSkip) { in FileInputStream_skip0() argument
74 FD fd = GET_FD(this, fis_fd); in FileInputStream_skip0()
118 FileInputStream_available0(JNIEnv *env, jobject this) { in FileInputStream_available0() argument
120 FD fd = GET_FD(this, fis_fd); in FileInputStream_available0()
Djava_util_zip_Inflater.c110 Inflater_inflateBytes(JNIEnv *env, jobject this, jlong addr, in Inflater_inflateBytes() argument
114 jarray this_buf = (jarray)(*env)->GetObjectField(env, this, bufID); in Inflater_inflateBytes()
115 jint this_off = (*env)->GetIntField(env, this, offID); in Inflater_inflateBytes()
116 jint this_len = (*env)->GetIntField(env, this, lenID); in Inflater_inflateBytes()
145 (*env)->SetBooleanField(env, this, finishedID, JNI_TRUE); in Inflater_inflateBytes()
149 (*env)->SetIntField(env, this, offID, this_off); in Inflater_inflateBytes()
150 (*env)->SetIntField(env, this, lenID, strm->avail_in); in Inflater_inflateBytes()
153 (*env)->SetBooleanField(env, this, needDictID, JNI_TRUE); in Inflater_inflateBytes()
156 (*env)->SetIntField(env, this, offID, this_off); in Inflater_inflateBytes()
157 (*env)->SetIntField(env, this, lenID, strm->avail_in); in Inflater_inflateBytes()
Dio_util.c40 readSingle(JNIEnv *env, jobject this, jfieldID fid) { in readSingle() argument
43 FD fd = GET_FD(this, fid); in readSingle()
77 readBytes(JNIEnv *env, jobject this, jbyteArray bytes, in readBytes() argument
107 fd = GET_FD(this, fid); in readBytes()
131 writeSingle(JNIEnv *env, jobject this, jint byte, jboolean append, jfieldID fid) { in writeSingle() argument
135 FD fd = GET_FD(this, fid); in writeSingle()
153 writeBytes(JNIEnv *env, jobject this, jbyteArray bytes, in writeBytes() argument
188 fd = GET_FD(this, fid); in writeBytes()
DDatagramChannelImpl.c79 Java_sun_nio_ch_DatagramChannelImpl_disconnect0(JNIEnv *env, jobject this, in Java_sun_nio_ch_DatagramChannelImpl_disconnect0() argument
132 Java_sun_nio_ch_DatagramChannelImpl_receive0(JNIEnv *env, jobject this, in Java_sun_nio_ch_DatagramChannelImpl_receive0() argument
179 (*env)->SetObjectField(env, this, dci_senderID, NULL); in Java_sun_nio_ch_DatagramChannelImpl_receive0()
188 senderAddr = (*env)->GetObjectField(env, this, dci_senderAddrID); in Java_sun_nio_ch_DatagramChannelImpl_receive0()
194 jint port = (*env)->GetIntField(env, this, dci_senderPortID); in Java_sun_nio_ch_DatagramChannelImpl_receive0()
215 (*env)->SetObjectField(env, this, dci_senderAddrID, ia); in Java_sun_nio_ch_DatagramChannelImpl_receive0()
216 (*env)->SetIntField(env, this, dci_senderPortID, in Java_sun_nio_ch_DatagramChannelImpl_receive0()
218 (*env)->SetObjectField(env, this, dci_senderID, isa); in Java_sun_nio_ch_DatagramChannelImpl_receive0()
224 Java_sun_nio_ch_DatagramChannelImpl_send0(JNIEnv *env, jobject this, in Java_sun_nio_ch_DatagramChannelImpl_send0() argument
Dio_util.h49 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);
DFileKey.c55 FileKey_init(JNIEnv *env, jobject this, jobject fdo) in FileKey_init() argument
64 (*env)->SetLongField(env, this, key_st_dev, (jlong)fbuf.st_dev); in FileKey_init()
65 (*env)->SetLongField(env, this, key_st_ino, (jlong)fbuf.st_ino); in FileKey_init()
DUnixFileSystem_md.c78 Java_java_io_UnixFileSystem_canonicalize0(JNIEnv *env, jobject this, in Java_java_io_UnixFileSystem_canonicalize0() argument
116 Java_java_io_UnixFileSystem_getBooleanAttributes0(JNIEnv *env, jobject this, in Java_java_io_UnixFileSystem_getBooleanAttributes0() argument
137 Java_java_io_UnixFileSystem_checkAccess0(JNIEnv *env, jobject this, in Java_java_io_UnixFileSystem_checkAccess0() argument
167 Java_java_io_UnixFileSystem_setPermission0(JNIEnv *env, jobject this, in Java_java_io_UnixFileSystem_setPermission0() argument
214 Java_java_io_UnixFileSystem_getLastModifiedTime0(JNIEnv *env, jobject this, in Java_java_io_UnixFileSystem_getLastModifiedTime0() argument
230 Java_java_io_UnixFileSystem_getLength0(JNIEnv *env, jobject this, in Java_java_io_UnixFileSystem_getLength0() argument
275 Java_java_io_UnixFileSystem_delete0(JNIEnv *env, jobject this, in Java_java_io_UnixFileSystem_delete0() argument
290 Java_java_io_UnixFileSystem_list0(JNIEnv *env, jobject this, in Java_java_io_UnixFileSystem_list0() argument
361 Java_java_io_UnixFileSystem_createDirectory0(JNIEnv *env, jobject this, in Java_java_io_UnixFileSystem_createDirectory0() argument
376 Java_java_io_UnixFileSystem_rename0(JNIEnv *env, jobject this, in Java_java_io_UnixFileSystem_rename0() argument
[all …]
DString.c34 String_intern(JNIEnv *env, jobject this) in String_intern() argument
36 return JVM_InternString(env, this); in String_intern()
DFileChannelImpl.c77 FileChannelImpl_map0(JNIEnv *env, jobject this, in FileChannelImpl_map0() argument
81 jobject fdo = (*env)->GetObjectField(env, this, chan_fd); in FileChannelImpl_map0()
118 FileChannelImpl_unmap0(JNIEnv *env, jobject this, in FileChannelImpl_unmap0() argument
129 FileChannelImpl_position0(JNIEnv *env, jobject this, in FileChannelImpl_position0() argument
145 FileChannelImpl_close0(JNIEnv *env, jobject this, jobject fdo) in FileChannelImpl_close0() argument
157 FileChannelImpl_transferTo0(JNIEnv *env, jobject this, in FileChannelImpl_transferTo0() argument
DFileOutputStream_md.c55 FileOutputStream_open(JNIEnv *env, jobject this, in FileOutputStream_open() argument
57 fileOpen(env, this, path, fos_fd, in FileOutputStream_open()
DFileDescriptor_md.c58 FileDescriptor_sync(JNIEnv *env, jobject this) { in FileDescriptor_sync() argument
59 int fd = (*env)->GetIntField(env, this, IO_fd_fdID); in FileDescriptor_sync()
DBits.c76 Java_java_nio_Bits_copyFromShortArray(JNIEnv *env, jobject this, jobject src, in Java_java_nio_Bits_copyFromShortArray() argument
111 Java_java_nio_Bits_copyToShortArray(JNIEnv *env, jobject this, jlong srcAddr, in Java_java_nio_Bits_copyToShortArray() argument
146 Java_java_nio_Bits_copyFromIntArray(JNIEnv *env, jobject this, jobject src, in Java_java_nio_Bits_copyFromIntArray() argument
181 Java_java_nio_Bits_copyToIntArray(JNIEnv *env, jobject this, jlong srcAddr, in Java_java_nio_Bits_copyToIntArray() argument
216 Java_java_nio_Bits_copyFromLongArray(JNIEnv *env, jobject this, jobject src, in Java_java_nio_Bits_copyFromLongArray() argument
251 Java_java_nio_Bits_copyToLongArray(JNIEnv *env, jobject this, jlong srcAddr, in Java_java_nio_Bits_copyToLongArray() argument
/libcore/ojluni/
DNOTICE8 To change the template for this generated file go to
16 The original version of this source code and documentation is copyrighted *
28 The original version of this source code and documentation is copyrighted *
40 The original version of this source code and documentation is copyrighted *
103 The original version of this source code and documentation is copyrighted *
119 The original version of this source code and documentation is
130 The original version of this source code and documentation is
144 The original version of this source code and documentation is copyrighted
156 The original version of this source code and documentation is copyrighted
168 The original version of this source code and documentation is copyrighted
[all …]
/libcore/luni/src/test/resources/META-INF/services/
Dlibcore.java.util.ServiceLoaderTestInterface1 # this is a comment
5 libcore.java.util.ServiceLoaderTest$Impl2 # this comment is valid
6 libcore.java.util.ServiceLoaderTest$Impl2#as is this
/libcore/
DLICENSE8 Everyone is permitted to copy and distribute verbatim copies of this license
24 distribute copies of free software (and charge for this service if you wish),
40 offer you this license which gives you legal permission to copy, distribute
44 everyone understands that there is no warranty for this free software. If the
52 To prevent this, we have made it clear that any patent must be licensed for
62 this General Public License. The "Program", below, refers to any such program
71 this License; they are outside its scope. The act of running the Program is
79 disclaimer of warranty; keep intact all the notices that refer to this License
81 Program a copy of this License along with the Program.
97 this License.
[all …]
DNOTICE4 == in this case for the Android-specific code. ==
16 == in this case for the Apache Harmony distribution. ==
40 a copy of this software and associated documentation files (the
45 copyright notice(s) and this permission notice appear in all copies of
46 the Software and that both the above copyright notice(s) and this
59 Except as contained in this notice, the name of a copyright holder
61 or other dealings in this Software without prior written authorization
75 a copy of this software and associated documentation files (the
82 The above copyright notice and this permission notice shall be
115 Permission to use, copy, modify, and distribute this
[all …]
/libcore/harmony-tests/src/test/resources/resources/
Dtest.rtf4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
Dtest.doc4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
/libcore/luni/src/main/java/java/util/logging/
Dlogging.properties3 # this work for additional information regarding copyright ownership.
4 # The ASF licenses this file to You under the Apache License, Version 2.0
5 # (the "License"); you may not use this file except in compliance with
21 # property, this property can be set via the Preference API, or as VM arguments
24 # about this file.

123