Home
last modified time | relevance | path

Searched refs:srcAddress (Results 1 – 8 of 8) sorted by relevance

/libcore/luni/src/main/native/
Dlibcore_io_Memory.cpp107 static jbyte Memory_peekByte(JNIEnv*, jclass, jlong srcAddress) { in Memory_peekByte() argument
108 return *cast<const jbyte*>(srcAddress); in Memory_peekByte()
111 static void Memory_peekByteArray(JNIEnv* env, jclass, jlong srcAddress, jbyteArray dst, jint dstOff… in Memory_peekByteArray() argument
112 env->SetByteArrayRegion(dst, dstOffset, byteCount, cast<const jbyte*>(srcAddress)); in Memory_peekByteArray()
128 const SWAP_TYPE* src = cast<const SWAP_TYPE*>(srcAddress); \
131 const SCALAR_TYPE* src = cast<const SCALAR_TYPE*>(srcAddress); \
136 static void Memory_peekCharArray(JNIEnv* env, jclass, jlong srcAddress, jcharArray dst, jint dstOff… in Memory_peekCharArray() argument
140 static void Memory_peekDoubleArray(JNIEnv* env, jclass, jlong srcAddress, jdoubleArray dst, jint ds… in Memory_peekDoubleArray() argument
144 static void Memory_peekFloatArray(JNIEnv* env, jclass, jlong srcAddress, jfloatArray dst, jint dstO… in Memory_peekFloatArray() argument
148 static void Memory_peekIntArray(JNIEnv* env, jclass, jlong srcAddress, jintArray dst, jint dstOffse… in Memory_peekIntArray() argument
[all …]
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java597 InetSocketAddress srcAddress = packet != null ? new InetSocketAddress() : null; in recvfrom() local
598 result = Libcore.os.recvfrom(fd, bytes, byteOffset, byteCount, flags, srcAddress); in recvfrom()
599 result = postRecvfrom(isRead, packet, srcAddress, result); in recvfrom()
609 InetSocketAddress srcAddress = packet != null ? new InetSocketAddress() : null; in recvfrom() local
610 result = Libcore.os.recvfrom(fd, buffer, flags, srcAddress); in recvfrom()
611 result = postRecvfrom(isRead, packet, srcAddress, result); in recvfrom()
618 … postRecvfrom(boolean isRead, DatagramPacket packet, InetSocketAddress srcAddress, int byteCount) { in postRecvfrom() argument
624 packet.setPort(srcAddress.getPort()); in postRecvfrom()
627 if (!srcAddress.getAddress().equals(packet.getAddress())) { in postRecvfrom()
628 packet.setAddress(srcAddress.getAddress()); in postRecvfrom()
DLinux.java196 …rom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) throws ErrnoExc… in recvfrom() argument
201 … bytesReceived = recvfromBytes(fd, buffer, position, buffer.remaining(), flags, srcAddress); in recvfrom()
203 …ray(buffer), NioUtils.unsafeArrayOffset(buffer) + position, buffer.remaining(), flags, srcAddress); in recvfrom()
209 …e[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoExc… in recvfrom() argument
211 return recvfromBytes(fd, bytes, byteOffset, byteCount, flags, srcAddress); in recvfrom()
213 …ct buffer, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoExc… in recvfromBytes() argument
DBlockGuardOs.java326 …rom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) throws ErrnoExc… in recvfrom() argument
328 return super.recvfrom(fd, buffer, flags, srcAddress); in recvfrom()
331 …e[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoExc… in recvfrom() argument
333 return super.recvfrom(fd, bytes, byteOffset, byteCount, flags, srcAddress); in recvfrom()
DForwardingOs.java182 … flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException { return os.recvfrom(… in recvfrom() argument
183 …tSocketAddress srcAddress) throws ErrnoException, SocketException { return os.recvfrom(fd, bytes, … in recvfrom() argument
DOs.java155 …rom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) throws ErrnoExc… in recvfrom() argument
156 …e[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoExc… in recvfrom() argument
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java649 InetSocketAddress srcAddress = new InetSocketAddress(); in checkSocketPing() local
650 assertEquals(len, Os.recvfrom(fd, received, 0, received.length, 0, srcAddress)); in checkSocketPing()
651 assertEquals(to, srcAddress.getAddress()); in checkSocketPing()
741 InetSocketAddress srcAddress = new InetSocketAddress(); in test_recvfrom_concurrentShutdown() local
742 int received = Os.recvfrom(serverFd, buffer, 0, srcAddress); in test_recvfrom_concurrentShutdown()
1389 String srcAddress = "127.0.0.1"; in testInetPtonIpv4() local
1390 InetAddress inetAddress = Os.inet_pton(AF_INET, srcAddress); in testInetPtonIpv4()
1391 assertEquals(srcAddress, inetAddress.getHostAddress()); in testInetPtonIpv4()
1395 String srcAddress = "1123:4567:89ab:cdef:fedc:ba98:7654:3210"; in testInetPtonIpv6() local
1396 InetAddress inetAddress = Os.inet_pton(AF_INET6, srcAddress); in testInetPtonIpv6()
[all …]
/libcore/luni/src/main/java/android/system/
DOs.java490 …gs, InetSocketAddress srcAddress) throws ErrnoException, SocketException { return Libcore.os.recvf… in recvfrom() argument
495 …ketAddress srcAddress) throws ErrnoException, SocketException { return Libcore.os.recvfrom(fd, byt… in recvfrom() argument