/libcore/luni/src/main/java/libcore/io/ |
Libcore.java | 17 package libcore.io; 19 public final class Libcore { 20 private Libcore() { }
|
IoBridge.java | 17 package libcore.io; 38 import static libcore.io.OsConstants.*; 39 import libcore.util.MutableInt; 52 Libcore.os.ioctlInt(fd, FIONREAD, available); 87 Libcore.os.bind(fd, address, port); 127 Libcore.os.connect(fd, inetAddress, port); 144 Libcore.os.connect(fd, inetAddress, port); 188 Libcore.os.close(oldFd); 200 int rc = Libcore.os.poll(pollFds, remainingTimeoutMs); 204 int connectError = Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_ERROR) [all...] |
MemoryMappedFile.java | 17 package libcore.io; 25 import libcore.io.ErrnoException; 26 import libcore.io.Libcore; 27 import libcore.io.Memory; 28 import static libcore.io.OsConstants.*; 51 FileDescriptor fd = Libcore.os.open(path, O_RDONLY, 0); 52 long size = Libcore.os.fstat(fd).st_size; 53 long address = Libcore.os.mmap(0L, size, PROT_READ, MAP_SHARED, fd, 0); 54 Libcore.os.close(fd) [all...] |
IoUtils.java | 17 package libcore.io; 28 import static libcore.io.OsConstants.*; 43 Libcore.os.close(fd); 91 int flags = Libcore.os.fcntlVoid(fd, F_GETFL); 97 Libcore.os.fcntlLong(fd, F_SETFL, flags); 163 FileDescriptor fd = Libcore.os.open(path, O_RDONLY, 0); 164 Libcore.os.close(fd); 214 final StructStat stat = Libcore.os.fstat(fd); 234 while ((read = Libcore.os.read(fd, bytes, count, capacity - count)) != 0) {
|
/libcore/luni/src/main/java/java/io/ |
FileDescriptor.java | 20 import libcore.io.ErrnoException; 21 import libcore.io.Libcore; 22 import static libcore.io.OsConstants.*; 71 if (Libcore.os.isatty(this)) { 72 Libcore.os.tcdrain(this); 74 Libcore.os.fsync(this); 92 * your needs with a libcore maintainer before using this method. 101 * your needs with a libcore maintainer before using this method.
|
FileInputStream.java | 25 import libcore.io.ErrnoException; 26 import libcore.io.IoBridge; 27 import libcore.io.IoUtils; 28 import libcore.io.Libcore; 29 import libcore.io.Streams; 30 import static libcore.io.OsConstants.*; 190 Libcore.os.lseek(fd, byteCount, SEEK_CUR);
|
File.java | 26 import libcore.io.ErrnoException; 27 import libcore.io.IoUtils; 28 import libcore.io.Libcore; 29 import libcore.io.StructStat; 30 import libcore.io.StructStatVfs; 32 import static libcore.io.OsConstants.*; 283 return Libcore.os.access(path, mode); 313 Libcore.os.remove(path); 418 * TODO: move this stuff to libcore.os [all...] |
RandomAccessFile.java | 26 import libcore.io.ErrnoException; 27 import libcore.io.IoBridge; 28 import libcore.io.IoUtils; 29 import libcore.io.Libcore; 30 import libcore.io.Memory; 31 import libcore.io.SizeOf; 32 import static libcore.io.OsConstants.*; 223 return Libcore.os.lseek(fd, 0L, SEEK_CUR); 238 return Libcore.os.fstat(fd).st_size [all...] |
/libcore/luni/src/test/java/libcore/io/ |
OsTest.java | 17 package libcore.io; 30 import static libcore.io.OsConstants.*; 36 assertFalse(S_ISSOCK(Libcore.os.fstat(fis.getFD()).st_mode)); 40 assertTrue(S_ISSOCK(Libcore.os.fstat(s.getImpl$().getFD$()).st_mode)); 58 final FileDescriptor serverFd = Libcore.os.socket(AF_UNIX, SOCK_STREAM, 0); 59 Libcore.os.bind(serverFd, address, 0); 60 Libcore.os.listen(serverFd, 5); 68 FileDescriptor clientFd = Libcore.os.accept(serverFd, peerAddress); 74 StructUcred credentials = Libcore.os.getsockoptUcred(clientFd, SOL_SOCKET, SO_PEERCRED); 75 assertEquals(Libcore.os.getpid(), credentials.pid) [all...] |
/frameworks/base/core/java/android/os/ |
FileUtils.java | 22 import libcore.io.ErrnoException; 23 import libcore.io.IoUtils; 24 import libcore.io.Libcore; 25 import libcore.io.OsConstants; 90 Libcore.os.chmod(path, mode); 98 Libcore.os.chown(path, uid, gid); 118 Libcore.os.fchmod(fd, mode); 126 Libcore.os.fchown(fd, uid, gid); 141 return Libcore.os.stat(path).st_uid [all...] |
ParcelFileDescriptor.java | 19 import static libcore.io.OsConstants.AF_UNIX; 20 import static libcore.io.OsConstants.SEEK_SET; 21 import static libcore.io.OsConstants.SOCK_STREAM; 22 import static libcore.io.OsConstants.S_ISLNK; 23 import static libcore.io.OsConstants.S_ISREG; 31 import libcore.io.ErrnoException; 32 import libcore.io.IoUtils; 33 import libcore.io.Libcore; 34 import libcore.io.Memory [all...] |
/frameworks/base/services/java/com/android/server/am/ |
NativeCrashListener.java | 22 import libcore.io.ErrnoException; 23 import libcore.io.Libcore; 24 import libcore.io.StructTimeval; 25 import libcore.io.StructUcred; 27 import static libcore.io.OsConstants.*; 79 ci.exceptionMessage = Libcore.os.strsignal(mSignal); 119 FileDescriptor serverFd = Libcore.os.socket(AF_UNIX, SOCK_STREAM, 0); 121 Libcore.os.bind(serverFd, sockAddr, 0); 122 Libcore.os.listen(serverFd, 1) [all...] |
/libcore/luni/src/main/java/java/nio/ |
FileChannelImpl.java | 35 import libcore.io.ErrnoException; 36 import libcore.io.Libcore; 37 import libcore.io.StructFlock; 38 import libcore.util.MutableLong; 39 import static libcore.io.OsConstants.*; 121 success = (Libcore.os.fcntlFlock(fd, wait ? F_SETLKW64 : F_SETLK64, flock) != -1); 193 Libcore.os.fcntlFlock(fd, F_SETLKW64, flock); 206 Libcore.os.fsync(fd); 208 Libcore.os.fdatasync(fd) [all...] |
MappedByteBuffer.java | 20 import libcore.io.ErrnoException; 21 import libcore.io.Libcore; 22 import libcore.io.Memory; 23 import static libcore.io.OsConstants.*; 62 int pageSize = (int) Libcore.os.sysconf(_SC_PAGE_SIZE); 68 Libcore.os.mincore(address, size, vector); 88 Libcore.os.mlock(block.toLong(), block.getSize()); 89 Libcore.os.munlock(block.toLong(), block.getSize()); 107 Libcore.os.msync(block.toLong(), block.getSize(), MS_SYNC) [all...] |
PipeImpl.java | 25 import libcore.io.ErrnoException; 26 import libcore.io.IoUtils; 27 import libcore.io.Libcore; 28 import static libcore.io.OsConstants.*; 41 Libcore.os.socketpair(AF_UNIX, SOCK_STREAM, 0, fd1, fd2);
|
MemoryBlock.java | 24 import libcore.io.ErrnoException; 25 import libcore.io.Libcore; 26 import libcore.io.Memory; 27 import static libcore.io.OsConstants.*; 41 Libcore.os.munmap(address, size); 116 long address = Libcore.os.mmap(0L, size, prot, flags, fd, offset);
|
SelectorImpl.java | 38 import libcore.io.ErrnoException; 39 import libcore.io.IoBridge; 40 import libcore.io.IoUtils; 41 import libcore.io.Libcore; 42 import libcore.io.StructPollfd; 43 import libcore.util.EmptyArray; 44 import static libcore.io.OsConstants.*; 92 FileDescriptor[] pipeFds = Libcore.os.pipe(); 179 rc = Libcore.os.poll(pollFds.array(), (int) timeout) [all...] |
DatagramChannelImpl.java | 39 import libcore.io.ErrnoException; 40 import libcore.io.IoBridge; 41 import libcore.io.IoUtils; 42 import libcore.io.Libcore; 43 import libcore.util.EmptyArray; 149 Libcore.os.connect(fd, InetAddress.UNSPECIFIED, 0);
|
/libcore/luni/src/main/java/java/net/ |
PlainSocketImpl.java | 36 import libcore.io.ErrnoException; 37 import libcore.io.IoBridge; 38 import libcore.io.Libcore; 39 import libcore.io.Memory; 40 import libcore.io.Streams; 41 import static libcore.io.OsConstants.*; 98 FileDescriptor clientFd = Libcore.os.accept(fd, peerAddress); 281 Libcore.os.listen(fd, backlog); 366 Libcore.os.shutdown(fd, SHUT_RD) [all...] |
PlainDatagramSocketImpl.java | 31 import libcore.io.ErrnoException; 32 import libcore.io.IoBridge; 33 import libcore.io.Libcore; 34 import libcore.io.StructGroupReq; 35 import libcore.util.EmptyArray; 36 import static libcore.io.OsConstants.*; 216 Libcore.os.connect(fd, InetAddress.UNSPECIFIED, 0);
|
DatagramSocket.java | 24 import libcore.io.ErrnoException; 25 import libcore.io.IoBridge; 26 import libcore.io.Libcore; 27 import static libcore.io.OsConstants.*; 298 Libcore.os.setsockoptIfreq(impl.fd, SOL_SOCKET, SO_BINDTODEVICE, netInterface.getName());
|
/cts/tests/tests/net/src/android/net/ipv6/cts/ |
PingTest.java | 22 import libcore.io.ErrnoException; 23 import libcore.io.Libcore; 24 import libcore.io.StructTimeval; 25 import static libcore.io.OsConstants.*; 72 FileDescriptor s = Libcore.os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_ICMPV6); 73 Libcore.os.setsockoptTimeval(s, SOL_SOCKET, SO_RCVTIMEO, StructTimeval.fromMillis(100)); 86 int ret = Libcore.os.sendto(s, ByteBuffer.wrap(packet), 0, address, port); 98 int bytesRead = Libcore.os.recvfrom(s, responseBuffer, 0, from); 116 int id = ((InetSocketAddress) Libcore.os.getsockname(s)).getPort() [all...] |
/libcore/dalvik/src/main/java/dalvik/system/ |
Zygote.java | 19 import libcore.io.ErrnoException; 20 import libcore.io.Libcore; 186 Libcore.os.execv(args[0], args);
|
/art/test/ThreadStress/ |
ThreadStress.java | 23 import libcore.io.*; 205 Libcore.os.kill(Libcore.os.getpid(), OsConstants.SIGQUIT);
|
/libcore/luni/src/main/java/java/lang/ |
ProcessManager.java | 31 import libcore.io.ErrnoException; 32 import libcore.io.IoUtils; 33 import libcore.io.Libcore; 34 import libcore.util.MutableInt; 35 import static libcore.io.OsConstants.*; 86 int pid = Libcore.os.waitpid(0, status, 0); 260 Libcore.os.kill(pid, SIGKILL);
|