Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixConstants.java34 import android.system.OsConstants;
39 static final int O_RDONLY = OsConstants.O_RDONLY;
41 static final int O_WRONLY = OsConstants.O_WRONLY;
43 static final int O_RDWR = OsConstants.O_RDWR;
45 static final int O_APPEND = OsConstants.O_APPEND;
47 static final int O_CREAT = OsConstants.O_CREAT;
49 static final int O_EXCL = OsConstants.O_EXCL;
51 static final int O_TRUNC = OsConstants.O_TRUNC;
53 static final int O_SYNC = OsConstants.O_SYNC;
55 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()
44 assertEquals(OsConstants.O_CLOEXEC, OsConstants.SOCK_CLOEXEC); in testConstantsEqual()
45 assertEquals(OsConstants.O_NONBLOCK, OsConstants.SOCK_NONBLOCK); in testConstantsEqual()
DOsTest.java23 import android.system.OsConstants;
61 import static android.system.OsConstants.*;
807 assertEquals(OsConstants.ENOENT, e.errno); in test_unlink()
828 if (OsConstants.ENOTCONN != expected.errno) { in test_recvfrom_concurrentShutdown()
863 assertEquals(OsConstants.ENODATA, e.errno); in test_xattr()
867 Os.setxattr(path, NAME_TEST, VALUE_CAKE, OsConstants.XATTR_CREATE); in test_xattr()
874 Os.setxattr(path, NAME_TEST, VALUE_PIE, OsConstants.XATTR_CREATE); in test_xattr()
877 assertEquals(OsConstants.EEXIST, e.errno); in test_xattr()
880 Os.setxattr(path, NAME_TEST, VALUE_PIE, OsConstants.XATTR_REPLACE); in test_xattr()
891 assertEquals(OsConstants.ENODATA, e.errno); in test_xattr()
[all …]
DErrnoExceptionTest.java28 import static android.system.OsConstants.EBADF;
29 import static android.system.OsConstants.EINVAL;
/libcore/ojluni/src/main/java/java/net/
DInet6AddressImpl.java41 import static android.system.OsConstants.AF_INET;
42 import static android.system.OsConstants.AF_INET6;
43 import static android.system.OsConstants.AF_UNSPEC;
44 import static android.system.OsConstants.AI_ADDRCONFIG;
45 import static android.system.OsConstants.EACCES;
46 import static android.system.OsConstants.ECONNREFUSED;
47 import static android.system.OsConstants.EPERM;
48 import static android.system.OsConstants.NI_NAMEREQD;
49 import static android.system.OsConstants.ICMP6_ECHO_REPLY;
50 import static android.system.OsConstants.ICMP_ECHOREPLY;
[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/java/nio/
DNioUtils.java27 import static android.system.OsConstants.O_ACCMODE;
28 import static android.system.OsConstants.O_APPEND;
29 import static android.system.OsConstants.O_RDONLY;
30 import static android.system.OsConstants.O_WRONLY;
/libcore/luni/src/test/java/libcore/libcore/io/
DBlockGuardOsTest.java19 import static android.system.OsConstants.AF_INET6;
20 import static android.system.OsConstants.IPPROTO_TCP;
21 import static android.system.OsConstants.IPPROTO_UDP;
22 import static android.system.OsConstants.SOCK_DGRAM;
23 import static android.system.OsConstants.SOCK_STREAM;
34 import android.system.OsConstants;
122 numericAddrInfo.ai_flags = OsConstants.AI_NUMERICHOST; in test_android_getaddrinfo_networkPolicy()
/libcore/luni/src/main/java/libcore/io/
DMemoryMappedFile.java25 import static android.system.OsConstants.MAP_SHARED;
26 import static android.system.OsConstants.O_RDONLY;
27 import static android.system.OsConstants.PROT_READ;
DIoUtils.java34 import static android.system.OsConstants.F_GETFL;
35 import static android.system.OsConstants.F_SETFL;
36 import static android.system.OsConstants.O_NONBLOCK;
37 import static android.system.OsConstants.O_RDONLY;
/libcore/luni/src/main/java/android/system/
DIcmpHeaders.java19 import static android.system.OsConstants.ICMP6_ECHO_REQUEST;
20 import static android.system.OsConstants.ICMP_ECHO;
DGaiException.java60 String gaiName = OsConstants.gaiName(error); in getMessage()
DErrnoException.java60 String errnoName = OsConstants.errnoName(errno); in getMessage()
DUnixSocketAddress.java31 private static final int NAMED_PATH_LENGTH = OsConstants.UNIX_PATH_MAX;
/libcore/luni/src/test/java/libcore/java/net/
DNetworkInterfaceTest.java43 import static android.system.OsConstants.AF_INET;
44 import static android.system.OsConstants.IFF_LOOPBACK;
45 import static android.system.OsConstants.IFF_MULTICAST;
46 import static android.system.OsConstants.IFF_POINTOPOINT;
47 import static android.system.OsConstants.IFF_RUNNING;
48 import static android.system.OsConstants.IFF_UP;
49 import static android.system.OsConstants.SOCK_DGRAM;
/libcore/ojluni/src/main/java/java/io/
DFileOutputStream.java29 import static android.system.OsConstants.O_APPEND;
30 import static android.system.OsConstants.O_CREAT;
31 import static android.system.OsConstants.O_TRUNC;
32 import static android.system.OsConstants.O_WRONLY;
DUnixFileSystem.java31 import android.system.OsConstants;
265 mode = OsConstants.F_OK; in checkAccess()
268 mode = OsConstants.R_OK; in checkAccess()
271 mode = OsConstants.W_OK; in checkAccess()
274 mode = OsConstants.X_OK; in checkAccess()
DFileDescriptor.java30 import static android.system.OsConstants.F_DUPFD_CLOEXEC;
/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/main/java/libcore/net/
DInetAddressUtils.java25 import static android.system.OsConstants.AF_INET;
26 import static android.system.OsConstants.AI_NUMERICHOST;
/libcore/luni/src/test/java/libcore/java/io/
DFileInputStreamTest.java31 import android.system.OsConstants;
227 android.system.Os.ioctlInt(input.getFD(), OsConstants.FIONREAD, new Int32Ref(0)); in test_available_on_nonIOCTL_supported_file()
231 + " FIONREAD, the test is no longer valid.", OsConstants.ENOTTY, in test_available_on_nonIOCTL_supported_file()
266 assertEquals(0, Libcore.os.lseek(fis.getFD(), 0, OsConstants.SEEK_CUR)); in testSkipOnLargeFiles()
307 if (e.errno != OsConstants.ENOENT) { in getOpenFdsForPrefix()
/libcore/luni/src/test/java/libcore/dalvik/system/
DBlockGuardTest.java20 import android.system.OsConstants;
291 FileDescriptor fd = Os.open(temp.getPath(), OsConstants.O_RDWR, 0); in testOpen()
297 fd = Os.open(temp.getPath(), OsConstants.O_RDONLY, 0); in testOpen()
/libcore/libart/src/main/java/java/lang/
DDaemons.java21 import android.system.OsConstants;
461 Os.kill(Os.getpid(), OsConstants.SIGQUIT); in finalizerTimedOut()

12