/libcore/luni/src/main/java/android/system/ |
D | Os.java | 28 import libcore.io.Libcore; 53 …cketAddress peerAddress) throws ErrnoException, SocketException { return Libcore.os.accept(fd, pee… in accept() 58 …public static boolean access(String path, int mode) throws ErrnoException { return Libcore.os.acce… in access() 61 …ring node, StructAddrinfo hints, int netId) throws GaiException { return Libcore.os.android_getadd… in android_getaddrinfo() 66 … InetAddress address, int port) throws ErrnoException, SocketException { Libcore.os.bind(fd, addre… in bind() 71 …@NonNull SocketAddress address) throws ErrnoException, SocketException { Libcore.os.bind(fd, addre… in bind() 80 return Libcore.os.capget(hdr); in capget() 91 Libcore.os.capset(hdr, data); in capset() 97 …public static void chmod(String path, int mode) throws ErrnoException { Libcore.os.chmod(path, mod… in chmod() 102 …public static void chown(String path, int uid, int gid) throws ErrnoException { Libcore.os.chown(p… in chown() [all …]
|
D | GaiException.java | 20 import libcore.io.Libcore; 64 String description = Libcore.os.gai_strerror(error); in getMessage()
|
D | ErrnoException.java | 21 import libcore.io.Libcore; 64 String description = Libcore.os.strerror(errno); in getMessage()
|
/libcore/luni/src/test/java/libcore/libcore/io/ |
D | FdsanTest.java | 30 import libcore.io.Libcore; 36 long tag = Libcore.os.android_fdsan_get_owner_tag(fd); in testFileInputStream() 38 assertEquals("FileInputStream", Libcore.os.android_fdsan_get_tag_type(tag)); in testFileInputStream() 39 assertEquals(System.identityHashCode(fis), Libcore.os.android_fdsan_get_tag_value(tag)); in testFileInputStream() 46 long tag = Libcore.os.android_fdsan_get_owner_tag(fd); in testFileOutputStream() 48 assertEquals("FileOutputStream", Libcore.os.android_fdsan_get_tag_type(tag)); in testFileOutputStream() 49 assertEquals(System.identityHashCode(fis), Libcore.os.android_fdsan_get_tag_value(tag)); in testFileOutputStream() 56 long tag = Libcore.os.android_fdsan_get_owner_tag(fd); in testRandomAccessFile() 58 assertEquals("RandomAccessFile", Libcore.os.android_fdsan_get_tag_type(tag)); in testRandomAccessFile() 59 assertEquals(System.identityHashCode(fis), Libcore.os.android_fdsan_get_tag_value(tag)); in testRandomAccessFile() [all …]
|
D | BlockGuardOsTest.java | 51 import libcore.io.Libcore; 150 FileDescriptor udpSocket = Libcore.os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in test_connect_networkPolicy() 160 FileDescriptor tcpSocket = Libcore.os.socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP); in test_connect_networkPolicy()
|
/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 65 Libcore.os.ioctlInt(fd, FIONREAD, available); in available() 104 Libcore.os.bind(fd, address, port); in bind() 156 Libcore.os.connect(fd, inetAddress, port); in connectErrno() 173 Libcore.os.connect(fd, inetAddress, port); in connectErrno() 252 Libcore.os.close(oldFd); in closeAndSignalBlockedThreads() 266 int rc = Libcore.os.poll(pollFds, remainingTimeoutMs); in isConnected() 270 int connectError = Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_ERROR); in isConnected() 312 return Libcore.os.getsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_IF); in getSocketOptionErrno() 318 return !booleanFromInt(Libcore.os.getsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_LOOP)); in getSocketOptionErrno() 322 return Libcore.os.getsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS); in getSocketOptionErrno() [all …]
|
D | MemoryMappedFile.java | 54 FileDescriptor fd = Libcore.os.open(path, O_RDONLY, 0); in mmapRO() 56 long size = Libcore.os.fstat(fd).st_size; in mmapRO() 57 long address = Libcore.os.mmap(0L, size, PROT_READ, MAP_SHARED, fd, 0); in mmapRO() 60 Libcore.os.close(fd); in mmapRO() 75 Libcore.os.munmap(address, size); in close()
|
D | Libcore.java | 23 public final class Libcore { class 24 private Libcore() { } in Libcore() method in Libcore 54 synchronized (Libcore.class) { in compareAndSetOs()
|
D | IoUtils.java | 69 Libcore.os.android_fdsan_exchange_owner_tag(copy, previousOwnerId, in acquireRawFd() 149 Libcore.os.android_fdsan_exchange_owner_tag(fd, previousOwnerId, ownerId); in setFdOwner() 210 int flags = Libcore.os.fcntlVoid(fd, F_GETFL); in setBlocking() 216 Libcore.os.fcntlInt(fd, F_SETFL, flags); in setBlocking() 275 FileDescriptor fd = Libcore.os.open(path, O_RDONLY, 0); in canOpenReadOnly() 276 Libcore.os.close(fd); in canOpenReadOnly() 326 final StructStat stat = Libcore.os.fstat(fd); in FileReader() 346 while ((read = Libcore.os.read(fd, bytes, count, capacity - count)) != 0) { in readFully()
|
D | BlockGuardOs.java | 114 return isInetDomain(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_DOMAIN)); in isInetSocket() 122 StructLinger linger = Libcore.os.getsockoptLinger(fd, SOL_SOCKET, SO_LINGER); in isLingerSocket() 127 return Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_PROTOCOL) == IPPROTO_UDP; in isUdpSocket()
|
/libcore/ojluni/src/main/java/java/net/ |
D | PlainSocketImpl.java | 38 import libcore.io.Libcore; 180 Libcore.os.listen(fd, count); in socketListen() 201 FileDescriptor newfd = Libcore.os.accept(fd, peerAddress); in socketAccept() 237 Libcore.os.dup2(markerFD, fd.getInt$()); in socketClose0() 238 Libcore.os.close(markerFD); in socketClose0() 265 Libcore.os.socketpair(AF_UNIX, SOCK_STREAM, 0, fd1, fd2); in getMarkerFD() 268 Libcore.os.shutdown(fd1, SHUT_RDWR); in getMarkerFD() 269 Libcore.os.close(fd2); in getMarkerFD() 281 Libcore.os.shutdown(fd, howto); in socketShutdown() 307 Libcore.os.sendto(fd, buffer, 0, 1, MSG_OOB, null, 0); in socketSendUrgentData()
|
D | NetworkInterface.java | 42 import libcore.io.Libcore; 435 ifaddrs = Libcore.os.getifaddrs(); in getAll() 456 int index = Libcore.os.if_nametoindex(e.getKey()); in getAll() 610 fd = Libcore.rawOs.socket(AF_INET, SOCK_DGRAM, 0); in getMTU() 611 return Libcore.rawOs.ioctlMTU(fd, name); in getMTU() 653 fd = Libcore.rawOs.socket(AF_INET, SOCK_DGRAM, 0); in getFlags() 654 return Libcore.rawOs.ioctlFlags(fd, name); in getFlags()
|
D | Inet6AddressImpl.java | 35 import libcore.io.Libcore; 135 InetAddress[] addresses = Libcore.os.android_getaddrinfo(host, hints, netId); in lookupHostByName() 154 …String detailMessage = "Unable to resolve host \"" + host + "\": " + Libcore.os.gai_strerror(gaiEx… in lookupHostByName() 294 Libcore.os.close(fd); in icmpEcho() 344 return Libcore.os.getnameinfo(hostaddr, NI_NAMEREQD); in getHostByAddr0()
|
D | PlainDatagramSocketImpl.java | 32 import libcore.io.Libcore; 202 Libcore.os.setsockoptInt(fd, IPPROTO_IP, IP_MULTICAST_ALL, 0); in datagramSocketCreate()
|
D | InetAddress.java | 39 import libcore.io.Libcore; 1487 String local = Libcore.os.uname().nodename; in getLocalHost()
|
/libcore/luni/src/main/java/libcore/net/ |
D | InetAddressUtils.java | 23 import libcore.io.Libcore; 86 addresses = Libcore.os.android_getaddrinfo(address, hints, NETID_UNSET); in parseNumericAddressNoThrow()
|
/libcore/ojluni/src/main/java/java/io/ |
D | UnixFileSystem.java | 35 import libcore.io.Libcore; 281 return Libcore.os.access(f.getPath(), mode); in checkAccess() 298 return Libcore.os.stat(f.getPath()).st_size; in getLength() 331 Libcore.os.remove(f.getPath()); in delete() 368 Libcore.os.rename(f1.getPath(), f2.getPath()); in rename()
|
D | RandomAccessFile.java | 38 import libcore.io.Libcore; 587 return Libcore.os.lseek(fd, 0L, SEEK_CUR); in getFilePointer() 617 Libcore.os.lseek(fd, pos, SEEK_SET); in seek() 635 return Libcore.os.fstat(fd).st_size; in length() 667 Libcore.os.ftruncate(fd, newLength); in setLength()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | NetworkInterfaceTest.java | 41 import libcore.io.Libcore; 213 StructIfaddrs[] ifaddrs = Libcore.os.getifaddrs(); in testGetNetworkInterfaces_matchesIfaddrs() 275 FileDescriptor fd = Libcore.rawOs.socket(AF_INET, SOCK_DGRAM, 0); in getFlags() 277 return Libcore.rawOs.ioctlFlags(fd, nif.getName()); in getFlags()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | FileInputStreamTest.java | 35 import libcore.io.Libcore; 86 FileDescriptor[] pipe = Libcore.os.pipe2(0); in testSkipInPipes() 266 assertEquals(0, Libcore.os.lseek(fis.getFD(), 0, OsConstants.SEEK_CUR)); in testSkipOnLargeFiles()
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | DexFile.java | 29 import libcore.io.Libcore; 141 if (Libcore.os.getuid() != Libcore.os.stat(parent).st_uid) { in DexFile()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ProcessTest.java | 25 import libcore.io.Libcore; 41 String pid = Integer.toString(Libcore.os.getpid()); in test_55017()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | System.java | 41 import libcore.io.Libcore; 990 userName = Libcore.os.getpwuid(Libcore.os.getuid()).pw_name; in initUnchangeableSystemProperties() 996 StructUtsname info = Libcore.os.uname(); in initUnchangeableSystemProperties() 1421 return Libcore.os.getenv(name); in getenv()
|
D | Runtime.java | 45 import libcore.io.Libcore; 715 return (int) Libcore.os.sysconf(_SC_NPROCESSORS_CONF); in availableProcessors()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | ZipFileTest.java | 20 import libcore.io.Libcore;
|