/libcore/ojluni/src/main/native/ |
D | Bits.c | 80 size_t size; in Java_java_nio_Bits_copyFromShortArray() 91 size = (size_t)length; in Java_java_nio_Bits_copyFromShortArray() 115 size_t size; in Java_java_nio_Bits_copyToShortArray() 126 size = (size_t)length; in Java_java_nio_Bits_copyToShortArray() 150 size_t size; in Java_java_nio_Bits_copyFromIntArray() 161 size = (size_t)length; in Java_java_nio_Bits_copyFromIntArray() 185 size_t size; in Java_java_nio_Bits_copyToIntArray() 196 size = (size_t)length; in Java_java_nio_Bits_copyToIntArray() 220 size_t size; in Java_java_nio_Bits_copyFromLongArray() 231 size = (size_t)length; in Java_java_nio_Bits_copyFromLongArray() [all …]
|
D | LinuxNativeDispatcher.c | 39 typedef size_t fgetxattr_func(int fd, const char* name, void* value, size_t size); 40 typedef int fsetxattr_func(int fd, const char* name, void* value, size_t size, int flags); 42 typedef int flistxattr_func(int fd, char* list, size_t size); 86 size_t res = -1; in Java_sun_nio_fs_LinuxNativeDispatcher_fgetxattr0() 96 if (res == (size_t)-1) in Java_sun_nio_fs_LinuxNativeDispatcher_fgetxattr0() 140 size_t res = -1; in Java_sun_nio_fs_LinuxNativeDispatcher_flistxattr() 147 res = (*my_flistxattr_func)(fd, list, (size_t)size); in Java_sun_nio_fs_LinuxNativeDispatcher_flistxattr() 149 if (res == (size_t)-1) in Java_sun_nio_fs_LinuxNativeDispatcher_flistxattr()
|
D | net_util_md.h | 42 extern int NET_Read(int s, void* buf, size_t len); 96 typedef int (*getnameinfo_f)(const struct sockaddr *, size_t, 97 char *, size_t, char *, size_t, int);
|
D | MappedByteBuffer.c | 58 result = mincore(a, (size_t)len, vec); in Java_java_nio_MappedByteBuffer_isLoaded0() 81 int result = madvise((caddr_t)a, (size_t)len, MADV_WILLNEED); in Java_java_nio_MappedByteBuffer_load0() 93 int result = msync(a, (size_t)len, MS_SYNC); in Java_java_nio_MappedByteBuffer_force0()
|
D | jni_util_md.c | 46 extern int __xpg_strerror_r(int, char *, size_t); 52 getErrorString(int err, char *buf, size_t len) in getErrorString()
|
D | FileChannelImpl.c | 125 munmap(a, (size_t)len), in FileChannelImpl_unmap0() 169 jlong n = sendfile64(dstFD, srcFD, &offset, (size_t)count); in FileChannelImpl_transferTo0() 184 size_t numBytes = 0; in FileChannelImpl_transferTo0()
|
D | UnixNativeDispatcher.c | 422 RESTARTABLE(read((int)fd, bufp, (size_t)nbytes), n); in Java_sun_nio_fs_UnixNativeDispatcher_read() 435 RESTARTABLE(write((int)fd, bufp, (size_t)nbytes), n); in Java_sun_nio_fs_UnixNativeDispatcher_write() 992 RESTARTABLE_RETURN_PTR(getpwuid_r((uid_t)uid, &pwent, pwbuf, (size_t)buflen), p); in Java_sun_nio_fs_UnixNativeDispatcher_getpwuid() 994 RESTARTABLE(getpwuid_r((uid_t)uid, &pwent, pwbuf, (size_t)buflen, &p), res); in Java_sun_nio_fs_UnixNativeDispatcher_getpwuid() 1041 RESTARTABLE_RETURN_PTR(getgrgid_r((gid_t)gid, &grent, grbuf, (size_t)buflen), g); in Java_sun_nio_fs_UnixNativeDispatcher_getgrgid() 1043 RESTARTABLE(getgrgid_r((gid_t)gid, &grent, grbuf, (size_t)buflen, &g), res); in Java_sun_nio_fs_UnixNativeDispatcher_getgrgid() 1096 RESTARTABLE_RETURN_PTR(getpwnam_r(name, &pwent, pwbuf, (size_t)buflen), p); in Java_sun_nio_fs_UnixNativeDispatcher_getpwnam0() 1098 RESTARTABLE(getpwnam_r(name, &pwent, pwbuf, (size_t)buflen, &p), res); in Java_sun_nio_fs_UnixNativeDispatcher_getpwnam0() 1141 RESTARTABLE_RETURN_PTR(getgrnam_r(name, &grent, grbuf, (size_t)buflen), g); in Java_sun_nio_fs_UnixNativeDispatcher_getgrnam0() 1143 RESTARTABLE(getgrnam_r(name, &grent, grbuf, (size_t)buflen, &g), res); in Java_sun_nio_fs_UnixNativeDispatcher_getgrnam0()
|
D | SocketOutputStream.c | 84 bufP = (char *)malloc((size_t)buflen); in SocketOutputStream_socketWrite0()
|
D | SocketInputStream.c | 86 bufP = (char *)malloc((size_t)len); in SocketInputStream_socketRead0()
|
D | jlong_md.h | 88 #define jlong_to_size(a) ((size_t)(a))
|
D | ServerSocketChannelImpl.c | 36 typedef size_t socklen_t; /* New in SunOS 5.7, so need this for 5.6 */
|
D | UNIXProcess_md.c | 207 xmalloc(JNIEnv *env, size_t size) in xmalloc() 366 restartableWrite(int fd, const void *buf, size_t count) in restartableWrite() 496 size_t newsize = strlen(format) + strlen(detail) + 3 * sizeof(errnum); in throwIOException() 658 readFully(int fd, void *buf, size_t nbyte) in readFully()
|
D | linux_close.cpp | 126 int NET_Read(int s, void* buf, size_t len) { in NET_Read()
|
D | jvm.h | 1269 jio_vsnprintf(char *str, size_t count, const char *fmt, va_list args); 1272 jio_snprintf(char *str, size_t count, const char *fmt, ...); 1407 JVM_GetVersionInfo(JNIEnv* env, jvm_version_info* info, size_t info_size); 1445 typedef void (*jdk_version_info_fn_t)(jdk_version_info* info, size_t info_size);
|
D | jni_util.h | 365 extern int getErrorString(int err, char *buf, size_t len);
|
D | System.c | 42 void android_get_LD_LIBRARY_PATH(char*, size_t);
|
/libcore/luni/src/test/native/ |
D | libcore_io_Memory_test.cpp | 27 template<typename T, size_t NUM_ELEMENTS> 28 void swap_align_test(void (*swap_func)(T*, const T*, size_t), in swap_align_test() argument 44 for (size_t dst_align = 0; dst_align < ALIGNMENT; dst_align++) { in swap_align_test() 46 for (size_t src_align = 0; src_align < ALIGNMENT; src_align++) { in swap_align_test() 89 for (size_t i = 0; i < ALIGNMENT; i++) { in memory_peek_test() 115 for(size_t i = 0; i < ALIGNMENT; i++) { in memory_poke_test()
|
/libcore/luni/src/benchmark/native/ |
D | libcore_io_Memory_bench.cpp | 22 template<typename T, size_t ALIGN> 23 void swap_bench(benchmark::State& state, void (*swap_func)(T*, const T*, size_t)) { in swap_bench() argument 24 size_t num_elements = state.range(0); in swap_bench()
|
/libcore/luni/src/main/native/ |
D | libcore_io_Memory.cpp | 63 static inline void swapShorts(jshort* dstShorts, const jshort* srcShorts, size_t count) { in swapShorts() 67 for (size_t i = 0; i < count / 2; ++i) { in swapShorts() 77 static inline void swapInts(jint* dstInts, const jint* srcInts, size_t count) { in swapInts() 78 for (size_t i = 0; i < count; ++i) { in swapInts() 84 static inline void swapLongs(jlong* dstLongs, const jlong* srcLongs, size_t count) { in swapLongs() 87 for (size_t i = 0; i < count; ++i) { in swapLongs()
|
D | libcore_icu_TimeZoneNames.cpp | 78 size_t id_count = env->GetArrayLength(result); in TimeZoneNames_fillZoneStrings() 79 for (size_t i = 0; i < id_count; ++i) { in TimeZoneNames_fillZoneStrings()
|
D | org_apache_harmony_xml_ExpatParser.cpp | 431 static size_t fillBuffer(ParsingContext* parsingContext, const char* utf8, int byteCount) { in fillBuffer() 459 static void bufferAndInvoke(jmethodID method, void* data, const char* text, size_t length) { in bufferAndInvoke() 467 size_t utf16length = fillBuffer(parsingContext, text, length); in bufferAndInvoke() 552 size_t prefixLength = lastColon - qName; in matchesQName() 1021 const char* bytes, size_t byteOffset, size_t byteCount, jboolean isFinal) { in append() 1052 size_t byteOffset = 2 * charOffset; in ExpatParser_appendChars() 1053 size_t byteCount = 2 * charCount; in ExpatParser_appendChars() 1063 size_t byteCount = 2 * xml.size(); in ExpatParser_appendString()
|
D | libcore_io_Linux.cpp | 281 IoVec(JNIEnv* env, size_t bufferCount) : mEnv(env), mBufferCount(bufferCount) { in IoVec() 299 for (size_t i = 0; i < mBufferCount; ++i) { in init() 315 for (size_t i = 0; i < mScopedBuffers.size(); ++i) { in ~IoVec() 325 size_t size() { in size() 331 size_t mBufferCount; 354 size_t pathLength = sa_len - offsetof(struct sockaddr_un, sun_path); in getUnixSocketPath() 656 if ((size_t) pathLength > sizeof(sockaddr_un::sun_path)) { in javaUnixSocketAddressToSockaddr() 696 if ((size_t) len > sizeof(sll->sll_addr)) { in javaPacketSocketAddressToSockaddr() 788 size_t mBufferSize; 908 static constexpr size_t kMaxCapUserDataLength = 2U; [all …]
|
D | NetworkUtilities.cpp | 50 size_t addressLength; in sockaddrToInetAddress()
|
D | java_util_regex_Matcher.cpp | 131 for (size_t i = 0, groupCount = mMatcher->groupCount(); i <= groupCount; ++i) { in updateOffsets()
|
D | libcore_icu_NativeConverter.cpp | 49 size_t replacementCharCount; 56 size_t replacementByteCount;
|