Home
last modified time | relevance | path

Searched refs:OsConstants (Results 1 – 25 of 41) sorted by relevance

12

/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixConstants.java30 import android.system.OsConstants;
46 static final int O_RDONLY = OsConstants.O_RDONLY;
48 static final int O_WRONLY = OsConstants.O_WRONLY;
50 static final int O_RDWR = OsConstants.O_RDWR;
52 static final int O_APPEND = OsConstants.O_APPEND;
54 static final int O_CREAT = OsConstants.O_CREAT;
56 static final int O_EXCL = OsConstants.O_EXCL;
58 static final int O_TRUNC = OsConstants.O_TRUNC;
60 static final int O_SYNC = OsConstants.O_SYNC;
62 static final int O_DSYNC = OsConstants.O_DSYNC;
[all …]
/libcore/luni/src/test/java/libcore/android/system/
DOsConstantsTest.java19 import android.system.OsConstants;
27 assertTrue(OsConstants.RT_SCOPE_HOST > 0); in testBug15602893()
28 assertTrue(OsConstants.RT_SCOPE_LINK > 0); in testBug15602893()
29 assertTrue(OsConstants.RT_SCOPE_SITE > 0); in testBug15602893()
31 assertTrue(OsConstants.IFA_F_TENTATIVE > 0); in testBug15602893()
36 assertTrue(OsConstants.TCP_USER_TIMEOUT > 0); in testTcpUserTimeoutIsDefined()
/libcore/ojluni/src/main/java/java/net/
DInet6AddressImpl.java40 import static android.system.OsConstants.AF_INET;
41 import static android.system.OsConstants.AF_INET6;
42 import static android.system.OsConstants.AF_UNSPEC;
43 import static android.system.OsConstants.AI_ADDRCONFIG;
44 import static android.system.OsConstants.EACCES;
45 import static android.system.OsConstants.ECONNREFUSED;
46 import static android.system.OsConstants.NI_NAMEREQD;
47 import static android.system.OsConstants.ICMP6_ECHO_REPLY;
48 import static android.system.OsConstants.ICMP_ECHOREPLY;
49 import static android.system.OsConstants.IPPROTO_ICMP;
[all …]
DPlainSocketImpl.java42 import static android.system.OsConstants.AF_INET6;
43 import static android.system.OsConstants.AF_UNIX;
44 import static android.system.OsConstants.EAGAIN;
45 import static android.system.OsConstants.EBADF;
46 import static android.system.OsConstants.EINVAL;
47 import static android.system.OsConstants.MSG_OOB;
48 import static android.system.OsConstants.POLLERR;
49 import static android.system.OsConstants.POLLIN;
50 import static android.system.OsConstants.SOCK_DGRAM;
51 import static android.system.OsConstants.SOCK_STREAM;
[all …]
DPlainDatagramSocketImpl.java37 import static android.system.OsConstants.AF_INET6;
38 import static android.system.OsConstants.AF_UNSPEC;
39 import static android.system.OsConstants.IPPROTO_IP;
40 import static android.system.OsConstants.IP_MULTICAST_ALL;
41 import static android.system.OsConstants.MSG_PEEK;
42 import static android.system.OsConstants.POLLERR;
43 import static android.system.OsConstants.POLLIN;
44 import static android.system.OsConstants.SOCK_DGRAM;
DInet4Address.java30 import static android.system.OsConstants.*;
/libcore/luni/src/main/java/android/system/
DStructIcmpHdr.java19 import static android.system.OsConstants.ICMP6_ECHO_REQUEST;
20 import static android.system.OsConstants.ICMP_ECHO;
DErrnoException.java59 String errnoName = OsConstants.errnoName(errno); in getMessage()
DGaiException.java60 String gaiName = OsConstants.gaiName(error); in getMessage()
DUnixSocketAddress.java30 private static final int NAMED_PATH_LENGTH = OsConstants.UNIX_PATH_MAX;
/libcore/luni/src/test/java/libcore/io/
DOsTest.java21 import android.system.OsConstants;
49 import static android.system.OsConstants.*;
463 assertEquals(OsConstants.ENOENT, e.errno); in test_unlink()
482 if (OsConstants.ENOTCONN != expected.errno) { in test_recvfrom_concurrentShutdown()
517 assertEquals(OsConstants.ENODATA, e.errno); in test_xattr()
521 Libcore.os.setxattr(path, NAME_TEST, VALUE_CAKE, OsConstants.XATTR_CREATE); in test_xattr()
528 Libcore.os.setxattr(path, NAME_TEST, VALUE_PIE, OsConstants.XATTR_CREATE); in test_xattr()
531 assertEquals(OsConstants.EEXIST, e.errno); in test_xattr()
534 Libcore.os.setxattr(path, NAME_TEST, VALUE_PIE, OsConstants.XATTR_REPLACE); in test_xattr()
545 assertEquals(OsConstants.ENODATA, e.errno); in test_xattr()
[all …]
DMemoryMappedFileTest.java22 import android.system.OsConstants;
47 assertEquals(OsConstants.ENOENT, e.errno); in testMmapRo_missingFile()
58 assertEquals(OsConstants.EINVAL, e.errno); in testMmapRo_emptyFile()
/libcore/luni/src/test/java/libcore/java/util/zip/
DZipFileTest.java19 import android.system.OsConstants;
51 long initialOffset = android.system.Os.lseek(fd, 0, OsConstants.SEEK_CUR); in testZipFileOffsetNeverChangesAfterInit()
75 long currentOffset = android.system.Os.lseek(fd, 0, OsConstants.SEEK_CUR); in assertOffset()
/libcore/luni/src/test/java/libcore/java/io/
DFileInputStreamTest.java30 import android.system.OsConstants;
225 android.system.Os.ioctlInt(input.getFD(), OsConstants.FIONREAD, new MutableInt(0)); in test_available_on_nonIOCTL_supported_file()
229 + " FIONREAD, the test is no longer valid.", OsConstants.ENOTTY, in test_available_on_nonIOCTL_supported_file()
264 assertEquals(0, Libcore.os.lseek(fis.getFD(), 0, OsConstants.SEEK_CUR)); in testSkipOnLargeFiles()
305 if (e.errno != OsConstants.ENOENT) { in getOpenFdsForPrefix()
DFileTest.java20 import android.system.OsConstants;
328 assertEquals(OsConstants.EPERM, expected.errno); in testExistsOnSystem()
/libcore/tzdata/shared2/src/test/libcore/tzdata/shared2/
DFileUtilsTest.java21 import android.system.OsConstants;
337 int mask = OsConstants.S_IXUSR | OsConstants.S_IRUSR; in assertDirExistsAndIsAccessible()
339 mask = mask | OsConstants.S_IXGRP | OsConstants.S_IRGRP in assertDirExistsAndIsAccessible()
340 | OsConstants.S_IXOTH | OsConstants.S_IROTH; in assertDirExistsAndIsAccessible()
/libcore/support/src/test/java/tests/io/
DMockOs.java20 import android.system.OsConstants;
110 enqueueFault(methodName, OsConstants.EIO); in enqueueFault()
/libcore/ojluni/src/main/java/java/io/
DFileDescriptor.java30 import static android.system.OsConstants.F_DUPFD_CLOEXEC;
/libcore/luni/src/test/java/dalvik/system/
DBlockGuardTest.java20 import android.system.OsConstants;
256 FileDescriptor fd = Os.open(temp.getPath(), OsConstants.O_RDWR, 0); in testOpen()
262 fd = Os.open(temp.getPath(), OsConstants.O_RDONLY, 0); in testOpen()
/libcore/luni/src/main/java/java/nio/
DNioUtils.java26 import static android.system.OsConstants.*;
/libcore/luni/src/main/java/libcore/io/
DMemoryMappedFile.java28 import static android.system.OsConstants.*;
DBlockGuardOs.java20 import android.system.OsConstants;
35 import static android.system.OsConstants.*;
370 if ((flags & OsConstants.MS_SYNC) != 0) { in msync()
DIoUtils.java30 import static android.system.OsConstants.*;
/libcore/libart/src/main/java/java/lang/
DDaemons.java20 import android.system.OsConstants;
406 Os.kill(Os.getpid(), OsConstants.SIGQUIT); in finalizerTimedOut()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DFileIOInterruptTest.java20 import android.system.OsConstants;
84 Libcore.os.mkfifo(fifoFile.getAbsolutePath(), OsConstants.S_IRWXU); in setUp()

12