/frameworks/base/ravenwood/runtime-test/test/com/android/ravenwood/runtimetest/ |
D | OsConstantsTest.java | 20 import static android.system.OsConstants.CAP_TO_INDEX; 21 import static android.system.OsConstants.CAP_TO_MASK; 22 import static android.system.OsConstants.S_ISBLK; 23 import static android.system.OsConstants.S_ISCHR; 24 import static android.system.OsConstants.S_ISDIR; 25 import static android.system.OsConstants.S_ISFIFO; 26 import static android.system.OsConstants.S_ISLNK; 27 import static android.system.OsConstants.S_ISREG; 28 import static android.system.OsConstants.S_ISSOCK; 29 import static android.system.OsConstants.WCOREDUMP; [all …]
|
D | OsTest.java | 21 import android.system.OsConstants; 63 assertEquals(4, Os.lseek(fd, 4, OsConstants.SEEK_SET)); in testLseek() 64 assertEquals(4, Os.lseek(fd, 0, OsConstants.SEEK_CUR)); in testLseek() 65 assertEquals(6, Os.lseek(fd, 2, OsConstants.SEEK_CUR)); in testLseek() 113 assertEquals(4, Os.lseek(fd1, 4, OsConstants.SEEK_SET)); in checkAreDup() 114 assertEquals(4, Os.lseek(fd1, 0, OsConstants.SEEK_CUR)); in checkAreDup() 117 assertEquals(4, Os.lseek(fd2, 0, OsConstants.SEEK_CUR)); in checkAreDup() 119 assertEquals(6, Os.lseek(fd1, 2, OsConstants.SEEK_CUR)); in checkAreDup() 120 assertEquals(6, Os.lseek(fd2, 0, OsConstants.SEEK_CUR)); in checkAreDup()
|
/frameworks/base/core/java/android/net/ |
D | LocalSocketImpl.java | 23 import android.system.OsConstants; 68 return Os.ioctlInt(myFd, OsConstants.FIONREAD); in available() 212 osType = OsConstants.SOCK_DGRAM; in create() 215 osType = OsConstants.SOCK_STREAM; in create() 218 osType = OsConstants.SOCK_SEQPACKET; in create() 224 fd = Os.socket(OsConstants.AF_UNIX, osType, 0); in create() 375 Os.shutdown(fd, OsConstants.SHUT_RD); in shutdownInput() 393 Os.shutdown(fd, OsConstants.SHUT_WR); in shutdownOutput() 424 StructTimeval timeval = Os.getsockoptTimeval(fd, OsConstants.SOL_SOCKET, in getOption() 425 OsConstants.SO_SNDTIMEO); in getOption() [all …]
|
/frameworks/base/core/java/android/os/ |
D | ProxyFileDescriptorCallback.java | 20 import android.system.OsConstants; 50 throw new ErrnoException("onGetSize", OsConstants.EBADF); in onGetSize() 65 throw new ErrnoException("onRead", OsConstants.EBADF); in onRead() 79 throw new ErrnoException("onWrite", OsConstants.EBADF); in onWrite() 89 throw new ErrnoException("onFsync", OsConstants.EINVAL); in onFsync()
|
D | SharedMemory.java | 24 import android.system.OsConstants; 116 private static final int PROT_MASK = OsConstants.PROT_READ | OsConstants.PROT_WRITE 117 | OsConstants.PROT_EXEC | OsConstants.PROT_NONE; 205 return map(OsConstants.PROT_READ | OsConstants.PROT_WRITE, 0, mSize); in mapReadWrite() 219 return map(OsConstants.PROT_READ, 0, mSize); in mapReadOnly() 248 long address = Os.mmap(0, length, prot, OsConstants.MAP_SHARED, mFileDescriptor, offset); in map() 249 boolean readOnly = (prot & OsConstants.PROT_WRITE) == 0; in map()
|
D | ParcelFileDescriptor.java | 19 import static android.system.OsConstants.AF_UNIX; 20 import static android.system.OsConstants.F_DUPFD; 21 import static android.system.OsConstants.F_DUPFD_CLOEXEC; 22 import static android.system.OsConstants.O_CLOEXEC; 23 import static android.system.OsConstants.SEEK_SET; 24 import static android.system.OsConstants.SOCK_CLOEXEC; 25 import static android.system.OsConstants.SOCK_SEQPACKET; 26 import static android.system.OsConstants.SOCK_STREAM; 27 import static android.system.OsConstants.S_IROTH; 28 import static android.system.OsConstants.S_IRWXG; [all …]
|
D | RevocableFileDescriptor.java | 23 import android.system.OsConstants; 63 OsConstants.O_CREAT | OsConstants.O_RDWR, 0700)); in RevocableFileDescriptor() 132 throw new ErrnoException(TAG, OsConstants.EPERM);
|
D | FileUtils.java | 25 import static android.system.OsConstants.EINVAL; 26 import static android.system.OsConstants.ENOSYS; 27 import static android.system.OsConstants.F_OK; 28 import static android.system.OsConstants.EIO; 29 import static android.system.OsConstants.O_ACCMODE; 30 import static android.system.OsConstants.O_APPEND; 31 import static android.system.OsConstants.O_CREAT; 32 import static android.system.OsConstants.O_RDONLY; 33 import static android.system.OsConstants.O_RDWR; 34 import static android.system.OsConstants.O_TRUNC; [all …]
|
/frameworks/base/core/java/android/util/apk/ |
D | MemoryMappedFileDataSource.java | 21 import android.system.OsConstants; 34 private static final long MEMORY_PAGE_SIZE_BYTES = Os.sysconf(OsConstants._SC_PAGESIZE); 84 OsConstants.PROT_READ, in feedIntoDataDigester() 85 OsConstants.MAP_SHARED | OsConstants.MAP_POPULATE, // "prefault" all pages in feedIntoDataDigester()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | WrapperInit.java | 23 import android.system.OsConstants; 191 OsConstants._LINUX_CAPABILITY_VERSION_3, 0); in preserveCapabilities() 215 int dataIndex = OsConstants.CAP_TO_INDEX(i); in preserveCapabilities() 216 int capMask = OsConstants.CAP_TO_MASK(i); in preserveCapabilities() 219 Os.prctl(OsConstants.PR_CAP_AMBIENT, OsConstants.PR_CAP_AMBIENT_RAISE, i, 0, in preserveCapabilities()
|
D | ZygoteInit.java | 19 import static android.system.OsConstants.S_IRWXG; 20 import static android.system.OsConstants.S_IRWXO; 44 import android.system.OsConstants; 635 OsConstants.CAP_IPC_LOCK, in forkSystemServer() 636 OsConstants.CAP_KILL, in forkSystemServer() 637 OsConstants.CAP_NET_ADMIN, in forkSystemServer() 638 OsConstants.CAP_NET_BIND_SERVICE, in forkSystemServer() 639 OsConstants.CAP_NET_BROADCAST, in forkSystemServer() 640 OsConstants.CAP_NET_RAW, in forkSystemServer() 641 OsConstants.CAP_SYS_MODULE, in forkSystemServer() [all …]
|
D | FuseAppLoop.java | 28 import android.system.OsConstants; 253 throw new ErrnoException("onCommand", OsConstants.EBADF); 269 throw new ErrnoException("onOpen", OsConstants.EMFILE); 286 if (errno != OsConstants.ENOSYS) { 290 return -OsConstants.EBADF; 297 throw new ErrnoException("getCallbackEntryOrThrowLocked", OsConstants.ENOENT);
|
D | ChildZygoteInit.java | 21 import android.system.OsConstants; 87 Os.prctl(OsConstants.PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in runZygoteServer()
|
D | KernelCpuSpeedReader.java | 21 import android.system.OsConstants; 57 long jiffyHz = Os.sysconf(OsConstants._SC_CLK_TCK); in KernelCpuSpeedReader()
|
/frameworks/base/core/java/android/net/metrics/ |
D | ConnectStats.java | 19 import android.system.OsConstants; 32 private final static int EALREADY = OsConstants.EALREADY; 33 private final static int EINPROGRESS = OsConstants.EINPROGRESS; 131 String errno = OsConstants.errnoName(errnos.keyAt(i)); in toString()
|
/frameworks/base/core/java/com/android/internal/net/ |
D | NetworkUtilsInternal.java | 19 import static android.system.OsConstants.AF_INET; 20 import static android.system.OsConstants.AF_INET6;
|
/frameworks/base/services/core/java/com/android/server/clipboard/ |
D | EmulatorClipboardMonitor.java | 25 import android.system.OsConstants; 74 final FileDescriptor fd = Os.socket(OsConstants.AF_VSOCK, OsConstants.SOCK_STREAM, 0); in openPipeImpl() 77 Os.connect(fd, new VmSocketAddress(HOST_PORT, OsConstants.VMADDR_CID_HOST)); in openPipeImpl() 244 throw new ErrnoException("write", OsConstants.EIO); in writeFully()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | NativeCrashListener.java | 19 import static android.system.OsConstants.AF_UNIX; 20 import static android.system.OsConstants.SOCK_STREAM; 21 import static android.system.OsConstants.SOL_SOCKET; 22 import static android.system.OsConstants.SO_RCVTIMEO; 23 import static android.system.OsConstants.SO_SNDTIMEO;
|
/frameworks/base/core/java/android/net/util/ |
D | SocketUtils.java | 19 import static android.system.OsConstants.SOL_SOCKET; 20 import static android.system.OsConstants.SO_BINDTODEVICE;
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbAlsaMidiDevice.java | 30 import android.system.OsConstants; 204 pollfd.events = (short) OsConstants.POLLIN; in openLocked() 238 if ((pfd.revents & (OsConstants.POLLERR in openLocked() 239 | OsConstants.POLLHUP)) != 0) { in openLocked() 241 } else if ((pfd.revents & OsConstants.POLLIN) != 0) { in openLocked()
|
/frameworks/base/cmds/bu/src/com/android/commands/bu/ |
D | Backup.java | 25 import android.system.OsConstants; 75 doBackup(OsConstants.STDOUT_FILENO, userId); in run() 77 doRestore(OsConstants.STDIN_FILENO, userId); in run()
|
/frameworks/base/tests/vcn/java/android/net/vcn/persistablebundleutils/ |
D | TunnelModeChildSessionParamsUtilsTest.java | 19 import static android.system.OsConstants.AF_INET; 20 import static android.system.OsConstants.AF_INET6;
|
/frameworks/base/services/core/java/com/android/server/ondeviceintelligence/ |
D | BundleUtil.java | 19 import static android.system.OsConstants.F_GETFL; 20 import static android.system.OsConstants.O_ACCMODE; 21 import static android.system.OsConstants.O_RDONLY; 22 import static android.system.OsConstants.PROT_READ;
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | FileUtilsTest.java | 32 import static android.system.OsConstants.AF_INET; 33 import static android.system.OsConstants.F_OK; 34 import static android.system.OsConstants.O_APPEND; 35 import static android.system.OsConstants.O_CREAT; 36 import static android.system.OsConstants.O_RDONLY; 37 import static android.system.OsConstants.O_RDWR; 38 import static android.system.OsConstants.O_TRUNC; 39 import static android.system.OsConstants.O_WRONLY; 40 import static android.system.OsConstants.R_OK; 41 import static android.system.OsConstants.SOCK_STREAM; [all …]
|
/frameworks/base/services/core/java/com/android/server/wearable/ |
D | WearableSensingManagerPerUserService.java | 20 import static android.system.OsConstants.F_GETFL; 21 import static android.system.OsConstants.O_ACCMODE; 22 import static android.system.OsConstants.O_RDONLY; 50 import android.system.OsConstants; 318 sharedMemory.setProtect(OsConstants.PROT_READ); in onProvidedData()
|