HomeSort by relevance Sort by last modified time
    Searched refs:OsConstants (Results 1 - 25 of 114) sorted by null

1 2 3 4 5

  /libcore/luni/src/test/java/libcore/android/system/
OsConstantsTest.java 19 import android.system.OsConstants;
27 assertTrue(OsConstants.RT_SCOPE_HOST > 0);
28 assertTrue(OsConstants.RT_SCOPE_LINK > 0);
29 assertTrue(OsConstants.RT_SCOPE_SITE > 0);
31 assertTrue(OsConstants.IFA_F_TENTATIVE > 0);
  /frameworks/base/services/net/java/android/net/netlink/
NetlinkSocket.java 22 import android.system.OsConstants;
56 OsConstants.AF_NETLINK, OsConstants.SOCK_DGRAM, nlProto);
59 mDescriptor, OsConstants.SOL_SOCKET,
60 OsConstants.SO_RCVBUF, SOCKET_RECV_BUFSIZE);
116 OsConstants.SOL_SOCKET, OsConstants.SO_RCVTIMEO,
156 OsConstants.SOL_SOCKET, OsConstants.SO_SNDTIMEO,
NetlinkConstants.java 19 import android.system.OsConstants;
51 if (family == OsConstants.AF_INET) { return "AF_INET"; }
52 if (family == OsConstants.AF_INET6) { return "AF_INET6"; }
53 if (family == OsConstants.AF_NETLINK) { return "AF_NETLINK"; }
StructNdaCacheInfo.java 20 import android.system.OsConstants;
56 private static final long CLOCK_TICKS_PER_SECOND = Os.sysconf(OsConstants._SC_CLK_TCK);
  /frameworks/base/core/java/android/net/
LocalSocketImpl.java 27 import android.system.OsConstants;
67 Os.ioctlInt(myFd, OsConstants.FIONREAD, avail);
174 Os.ioctlInt(myFd, OsConstants.TIOCOUTQ, pending);
244 osType = OsConstants.SOCK_DGRAM;
247 osType = OsConstants.SOCK_STREAM;
250 osType = OsConstants.SOCK_SEQPACKET;
256 fd = Os.socket(OsConstants.AF_UNIX, osType, 0);
408 Os.shutdown(fd, OsConstants.SHUT_RD);
426 Os.shutdown(fd, OsConstants.SHUT_WR);
457 StructTimeval timeval = Os.getsockoptTimeval(fd, OsConstants.SOL_SOCKET
    [all...]
LinkAddress.java 29 import static android.system.OsConstants.IFA_F_DADFAILED;
30 import static android.system.OsConstants.IFA_F_DEPRECATED;
31 import static android.system.OsConstants.IFA_F_OPTIMISTIC;
32 import static android.system.OsConstants.IFA_F_TENTATIVE;
33 import static android.system.OsConstants.RT_SCOPE_HOST;
34 import static android.system.OsConstants.RT_SCOPE_LINK;
35 import static android.system.OsConstants.RT_SCOPE_SITE;
36 import static android.system.OsConstants.RT_SCOPE_UNIVERSE;
45 * <li>Address flags: A bitmask of {@code OsConstants.IFA_F_*} values representing properties
46 * of the address (e.g., {@code android.system.OsConstants.IFA_F_OPTIMISTIC})
    [all...]
  /frameworks/base/services/core/java/com/android/server/
PinnerService.java 28 import android.system.OsConstants;
85 fd = Os.open(fileToPin, OsConstants.O_RDONLY | OsConstants.O_CLOEXEC | OsConstants.O_NOFOLLOW, OsConstants.O_RDONLY);
98 long address = Os.mmap(0, length, OsConstants.PROT_READ, OsConstants.MAP_PRIVATE, fd, offset);
  /cts/tests/tests/permission/src/android/permission/cts/
NoReadLogsPermissionTest.java 21 import android.system.OsConstants;
100 if (e.errno != OsConstants.ENOENT && e.errno != OsConstants.EACCES) {
FileUtils.java 21 import android.system.OsConstants;
97 if ((capability < 0) || (capability > OsConstants.CAP_LAST_CAP)) {
  /frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
AppFuse.java 24 import android.system.OsConstants;
175 return -OsConstants.EINVAL;
227 return OsConstants.ENOENT;
229 return OsConstants.EIO;
231 return OsConstants.ENOTSUP;
233 return OsConstants.EINVAL;
235 return OsConstants.EIO;
MtpFileWriter.java 24 import android.system.OsConstants;
60 Os.lseek(mCacheFd.getFileDescriptor(), offset, OsConstants.SEEK_SET);
80 final long size = Os.lseek(mCacheFd.getFileDescriptor(), 0, OsConstants.SEEK_END);
85 Os.lseek(mCacheFd.getFileDescriptor(), 0, OsConstants.SEEK_SET);
  /cts/tests/tests/os/src/android/os/cts/
SecurityFeaturesTest.java 20 import static android.system.OsConstants.PR_GET_DUMPABLE;
  /frameworks/base/services/core/java/com/android/server/connectivity/
KeepalivePacketData.java 19 import android.system.OsConstants;
39 /** Protocol of the packet to send; one of the OsConstants.ETH_P_* values. */
79 this.protocol = OsConstants.ETH_P_IP;
81 this.protocol = OsConstants.ETH_P_IPV6;
121 buf.put((byte) OsConstants.IPPROTO_UDP);
  /frameworks/base/core/java/com/android/internal/os/
KernelCpuSpeedReader.java 19 import android.system.OsConstants;
55 long jiffyHz = Libcore.os.sysconf(OsConstants._SC_CLK_TCK);
ZygoteInit.java 19 import static android.system.OsConstants.POLLIN;
20 import static android.system.OsConstants.S_IRWXG;
21 import static android.system.OsConstants.S_IRWXO;
37 import android.system.OsConstants;
615 OsConstants.CAP_IPC_LOCK,
616 OsConstants.CAP_KILL,
617 OsConstants.CAP_NET_ADMIN,
618 OsConstants.CAP_NET_BIND_SERVICE,
619 OsConstants.CAP_NET_BROADCAST,
620 OsConstants.CAP_NET_RAW
    [all...]
  /cts/tests/tests/net/src/android/net/cts/
MultinetworkApiTest.java 25 import android.system.OsConstants;
149 assertEquals(-OsConstants.ENONET, runSetsocknetwork(eNoNetHandle));
150 assertEquals(-OsConstants.ENONET, runSetprocnetwork(eNoNetHandle));
153 // assertEquals(-OsConstants.ENONET, runGetaddrinfoCheck(eNoNetHandle));
MultinetworkSysctlTest.java 21 import android.system.OsConstants;
63 FileDescriptor fd = Os.open(fileName, 0, OsConstants.O_RDONLY);
  /frameworks/base/services/tests/servicestests/src/android/net/netlink/
NetlinkSocketTest.java 25 import android.system.OsConstants;
37 NetlinkSocket s = new NetlinkSocket(OsConstants.NETLINK_ROUTE);
96 NetlinkSocket s = new NetlinkSocket(OsConstants.NETLINK_ROUTE);
RtNetlinkNeighborMessageTest.java 24 import android.system.OsConstants;
156 assertEquals((byte) OsConstants.AF_INET, ndmsgHdr.ndm_family);
182 assertEquals((byte) OsConstants.AF_INET6, ndmsgHdr.ndm_family);
  /libcore/luni/src/main/java/android/system/
ErrnoException.java 25 * errno value, for comparison against the constants in {@link OsConstants}, should sophisticated
32 * The errno value, for comparison with the {@code E} constants in {@link OsConstants}.
59 String errnoName = OsConstants.errnoName(errno);
GaiException.java 33 * The native error value, for comparison with the {@code GAI_} constants in {@link OsConstants}.
60 String gaiName = OsConstants.gaiName(error);
  /libcore/ojluni/src/main/java/java/io/
FileDescriptor.java 30 import static android.system.OsConstants.F_DUPFD_CLOEXEC;
  /libcore/ojluni/src/main/java/java/net/
Inet6AddressImpl.java 35 import static android.system.OsConstants.AF_UNSPEC;
36 import static android.system.OsConstants.AI_ADDRCONFIG;
37 import static android.system.OsConstants.EACCES;
38 import static android.system.OsConstants.SOCK_STREAM;
  /frameworks/base/core/tests/coretests/src/android/net/
LinkAddressTest.java 36 import static android.system.OsConstants.IFA_F_DADFAILED;
37 import static android.system.OsConstants.IFA_F_DEPRECATED;
38 import static android.system.OsConstants.IFA_F_OPTIMISTIC;
39 import static android.system.OsConstants.IFA_F_PERMANENT;
40 import static android.system.OsConstants.IFA_F_TEMPORARY;
41 import static android.system.OsConstants.IFA_F_TENTATIVE;
42 import static android.system.OsConstants.RT_SCOPE_HOST;
43 import static android.system.OsConstants.RT_SCOPE_LINK;
44 import static android.system.OsConstants.RT_SCOPE_SITE;
45 import static android.system.OsConstants.RT_SCOPE_UNIVERSE
    [all...]
  /frameworks/base/cmds/bu/src/com/android/commands/bu/
Backup.java 23 import android.system.OsConstants;
56 doFullBackup(OsConstants.STDOUT_FILENO);
58 doFullRestore(OsConstants.STDIN_FILENO);

Completed in 1825 milliseconds

1 2 3 4 5