Home
last modified time | relevance | path

Searched refs:OsConstants (Results 1 – 25 of 48) 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()
DErrnoExceptionTest.java28 import static android.system.OsConstants.EBADF;
29 import static android.system.OsConstants.EINVAL;
DOsTest.java23 import android.system.OsConstants;
69 import static android.system.OsConstants.*;
852 int temp_rc = Os.recvmsg(recvFd, recvmsgHdr, OsConstants.MSG_TRUNC);
1181 assertEquals(OsConstants.ENOENT, e.errno);
1202 if (OsConstants.ENOTCONN != expected.errno) {
1237 assertEquals(OsConstants.ENODATA, e.errno);
1241 Os.setxattr(path, NAME_TEST, VALUE_CAKE, OsConstants.XATTR_CREATE);
1248 Os.setxattr(path, NAME_TEST, VALUE_PIE, OsConstants.XATTR_CREATE);
1251 assertEquals(OsConstants.EEXIST, e.errno);
1254 Os.setxattr(path, NAME_TEST, VALUE_PIE, OsConstants.XATTR_REPLACE);
[all …]
/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/test/java/libcore/libcore/io/
DBlockGuardOsTest.java19 import static android.system.OsConstants.AF_INET6;
20 import static android.system.OsConstants.AF_UNIX;
21 import static android.system.OsConstants.IPPROTO_TCP;
22 import static android.system.OsConstants.IPPROTO_UDP;
23 import static android.system.OsConstants.F_SETFL;
24 import static android.system.OsConstants.SOCK_DGRAM;
25 import static android.system.OsConstants.O_NONBLOCK;
26 import static android.system.OsConstants.SOCK_STREAM;
40 import android.system.OsConstants;
130 numericAddrInfo.ai_flags = OsConstants.AI_NUMERICHOST; in test_android_getaddrinfo_networkPolicy()
/libcore/luni/src/main/java/java/nio/
DNioUtils.java30 import static android.system.OsConstants.O_ACCMODE;
31 import static android.system.OsConstants.O_APPEND;
32 import static android.system.OsConstants.O_RDONLY;
33 import static android.system.OsConstants.O_WRONLY;
/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.java39 import static android.system.OsConstants.F_GETFL;
40 import static android.system.OsConstants.F_SETFL;
41 import static android.system.OsConstants.O_NONBLOCK;
42 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.java40 private static final int NAMED_PATH_LENGTH = OsConstants.UNIX_PATH_MAX;
/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/net/
DNetworkInterfaceTest.java45 import static android.system.OsConstants.AF_INET;
46 import static android.system.OsConstants.IFF_LOOPBACK;
47 import static android.system.OsConstants.IFF_MULTICAST;
48 import static android.system.OsConstants.IFF_POINTOPOINT;
49 import static android.system.OsConstants.IFF_RUNNING;
50 import static android.system.OsConstants.IFF_UP;
51 import static android.system.OsConstants.SOCK_DGRAM;
/libcore/luni/src/test/java/libcore/java/util/zip/
DZipFileTest.java19 import android.system.OsConstants;
52 long initialOffset = android.system.Os.lseek(fd, 0, OsConstants.SEEK_CUR); in testZipFileOffsetNeverChangesAfterInit()
76 long currentOffset = android.system.Os.lseek(fd, 0, OsConstants.SEEK_CUR); in assertOffset()
/libcore/luni/src/test/java/libcore/java/io/
DFileInputStreamTest.java21 import android.system.OsConstants;
226 android.system.Os.ioctlInt(input.getFD(), OsConstants.FIONREAD); in test_available_on_nonIOCTL_supported_file()
230 + " FIONREAD, the test is no longer valid.", OsConstants.ENOTTY, in test_available_on_nonIOCTL_supported_file()
265 assertEquals(0, Libcore.os.lseek(fis.getFD(), 0, OsConstants.SEEK_CUR)); in testSkipOnLargeFiles()
306 if (e.errno != OsConstants.ENOENT) { in getOpenFdsForPrefix()
/libcore/luni/src/main/java/libcore/net/
DInetAddressUtils.java29 import static android.system.OsConstants.AF_INET;
30 import static android.system.OsConstants.AI_NUMERICHOST;
/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