Home
last modified time | relevance | path

Searched refs:size_t (Results 1 – 25 of 29) sorted by relevance

12

/libcore/ojluni/src/main/native/
DBits.c80 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 …]
DLinuxNativeDispatcher.c39 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()
Dnet_util_md.h42 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);
DMappedByteBuffer.c58 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()
Djni_util_md.c46 extern int __xpg_strerror_r(int, char *, size_t);
52 getErrorString(int err, char *buf, size_t len) in getErrorString()
DFileChannelImpl.c125 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()
DUnixNativeDispatcher.c422 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()
DSocketOutputStream.c84 bufP = (char *)malloc((size_t)buflen); in SocketOutputStream_socketWrite0()
DSocketInputStream.c86 bufP = (char *)malloc((size_t)len); in SocketInputStream_socketRead0()
Djlong_md.h88 #define jlong_to_size(a) ((size_t)(a))
DServerSocketChannelImpl.c36 typedef size_t socklen_t; /* New in SunOS 5.7, so need this for 5.6 */
DUNIXProcess_md.c207 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()
Dlinux_close.cpp126 int NET_Read(int s, void* buf, size_t len) { in NET_Read()
Djvm.h1269 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);
Djni_util.h365 extern int getErrorString(int err, char *buf, size_t len);
DSystem.c42 void android_get_LD_LIBRARY_PATH(char*, size_t);
/libcore/luni/src/test/native/
Dlibcore_io_Memory_test.cpp27 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/
Dlibcore_io_Memory_bench.cpp22 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/
Dlibcore_io_Memory.cpp63 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()
Dlibcore_icu_TimeZoneNames.cpp78 size_t id_count = env->GetArrayLength(result); in TimeZoneNames_fillZoneStrings()
79 for (size_t i = 0; i < id_count; ++i) { in TimeZoneNames_fillZoneStrings()
Dorg_apache_harmony_xml_ExpatParser.cpp431 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()
Dlibcore_io_Linux.cpp281 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 …]
DNetworkUtilities.cpp50 size_t addressLength; in sockaddrToInetAddress()
Djava_util_regex_Matcher.cpp131 for (size_t i = 0, groupCount = mMatcher->groupCount(); i <= groupCount; ++i) { in updateOffsets()
Dlibcore_icu_NativeConverter.cpp49 size_t replacementCharCount;
56 size_t replacementByteCount;

12