/libcore/luni/src/main/native/ |
D | libcore_io_Memory.cpp | 107 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/ |
D | IoBridge.java | 593 InetSocketAddress srcAddress = packet != null ? new InetSocketAddress() : null; in recvfrom() local 594 result = Libcore.os.recvfrom(fd, bytes, byteOffset, byteCount, flags, srcAddress); in recvfrom() 595 result = postRecvfrom(isRead, packet, srcAddress, result); in recvfrom() 605 InetSocketAddress srcAddress = packet != null ? new InetSocketAddress() : null; in recvfrom() local 606 result = Libcore.os.recvfrom(fd, buffer, flags, srcAddress); in recvfrom() 607 result = postRecvfrom(isRead, packet, srcAddress, result); in recvfrom() 614 … postRecvfrom(boolean isRead, DatagramPacket packet, InetSocketAddress srcAddress, int byteCount) { in postRecvfrom() argument 620 packet.setPort(srcAddress.getPort()); in postRecvfrom() 623 if (!srcAddress.getAddress().equals(packet.getAddress())) { in postRecvfrom() 624 packet.setAddress(srcAddress.getAddress()); in postRecvfrom()
|
D | Linux.java | 195 …rom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) throws ErrnoExc… in recvfrom() argument 200 … bytesReceived = recvfromBytes(fd, buffer, position, buffer.remaining(), flags, srcAddress); in recvfrom() 202 …ray(buffer), NioUtils.unsafeArrayOffset(buffer) + position, buffer.remaining(), flags, srcAddress); in recvfrom() 208 …e[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoExc… in recvfrom() argument 210 return recvfromBytes(fd, bytes, byteOffset, byteCount, flags, srcAddress); in recvfrom() 212 …ct buffer, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoExc… in recvfromBytes() argument
|
D | BlockGuardOs.java | 328 …rom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) throws ErrnoExc… in recvfrom() argument 330 return super.recvfrom(fd, buffer, flags, srcAddress); in recvfrom() 333 …e[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoExc… in recvfrom() argument 335 return super.recvfrom(fd, bytes, byteOffset, byteCount, flags, srcAddress); in recvfrom()
|
D | ForwardingOs.java | 181 … flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException { return os.recvfrom(… in recvfrom() argument 182 …tSocketAddress srcAddress) throws ErrnoException, SocketException { return os.recvfrom(fd, bytes, … in recvfrom() argument
|
D | Os.java | 154 …rom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) throws ErrnoExc… in recvfrom() argument 155 …e[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoExc… in recvfrom() argument
|
/libcore/luni/src/test/java/libcore/android/system/ |
D | OsTest.java | 748 InetSocketAddress srcAddress = new InetSocketAddress(); in checkSocketPing() local 749 assertEquals(len, Os.recvfrom(fd, received, 0, received.length, 0, srcAddress)); in checkSocketPing() 750 assertEquals(to, srcAddress.getAddress()); in checkSocketPing() 840 InetSocketAddress srcAddress = new InetSocketAddress(); in test_recvfrom_concurrentShutdown() local 841 int received = Os.recvfrom(serverFd, buffer, 0, srcAddress); in test_recvfrom_concurrentShutdown() 1488 String srcAddress = "127.0.0.1"; in testInetPtonIpv4() local 1489 InetAddress inetAddress = Os.inet_pton(AF_INET, srcAddress); in testInetPtonIpv4() 1490 assertEquals(srcAddress, inetAddress.getHostAddress()); in testInetPtonIpv4() 1494 String srcAddress = "1123:4567:89ab:cdef:fedc:ba98:7654:3210"; in testInetPtonIpv6() local 1495 InetAddress inetAddress = Os.inet_pton(AF_INET6, srcAddress); in testInetPtonIpv6() [all …]
|
/libcore/luni/src/main/java/android/system/ |
D | Os.java | 493 …gs, InetSocketAddress srcAddress) throws ErrnoException, SocketException { return Libcore.os.recvf… in recvfrom() argument 498 …ketAddress srcAddress) throws ErrnoException, SocketException { return Libcore.os.recvfrom(fd, byt… in recvfrom() argument
|