public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { return os.poll(fds, timeoutMs); } public int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException { return os.pread(fd, buffer, offset); }
@Override public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { // Greater than 0 is a timeout in milliseconds and -1 means "block forever", // but 0 means "poll and return immediately", which shouldn't be subject to BlockGuard. if (timeoutMs != 0) { BlockGuard.getThreadPolicy().onNetwork(); } return os.poll(fds, timeoutMs); }
pollFds[0].fd = fd; pollFds[0].events = (short) POLLOUT; int rc = Libcore.os.poll(pollFds, remainingTimeoutMs); if (rc == 0) { return false; // Timeout.
while (true) { try { if (timeout <= 0 || Libcore.os.poll(pfds, timeout) == 0) { throw new SocketTimeoutException("accept() timed out");
rc = Libcore.os.poll(pollFds.array(), (int) timeout); } catch (ErrnoException errnoException) { if (errnoException.errno != EINTR) {
public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { return os.poll(fds, timeoutMs); } public int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException { return os.pread(fd, buffer, offset); }
public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { return os.poll(fds, timeoutMs); } public int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException { return os.pread(fd, buffer, offset); }
public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { return os.poll(fds, timeoutMs); } public int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException { return os.pread(fd, buffer, offset); }
public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { return os.poll(fds, timeoutMs); } public int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException { return os.pread(fd, buffer, offset); }
public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { return os.poll(fds, timeoutMs); } public int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException { return os.pread(fd, buffer, offset); }
public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { return os.poll(fds, timeoutMs); } public int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException { return os.pread(fd, buffer, offset); }
@Override public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { // Greater than 0 is a timeout in milliseconds and -1 means "block forever", // but 0 means "poll and return immediately", which shouldn't be subject to BlockGuard. if (timeoutMs != 0) { BlockGuard.getThreadPolicy().onNetwork(); } return os.poll(fds, timeoutMs); }
@Override public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { // Greater than 0 is a timeout in milliseconds and -1 means "block forever", // but 0 means "poll and return immediately", which shouldn't be subject to BlockGuard. if (timeoutMs != 0) { BlockGuard.getThreadPolicy().onNetwork(); } return os.poll(fds, timeoutMs); }
@Override public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { // Greater than 0 is a timeout in milliseconds and -1 means "block forever", // but 0 means "poll and return immediately", which shouldn't be subject to BlockGuard. if (timeoutMs != 0) { BlockGuard.getThreadPolicy().onNetwork(); } return os.poll(fds, timeoutMs); }
@Override public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { // Greater than 0 is a timeout in milliseconds and -1 means "block forever", // but 0 means "poll and return immediately", which shouldn't be subject to BlockGuard. if (timeoutMs != 0) { BlockGuard.getThreadPolicy().onNetwork(); } return os.poll(fds, timeoutMs); }
@Override public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { // Greater than 0 is a timeout in milliseconds and -1 means "block forever", // but 0 means "poll and return immediately", which shouldn't be subject to BlockGuard. if (timeoutMs != 0) { BlockGuard.getThreadPolicy().onNetwork(); } return os.poll(fds, timeoutMs); }
@Override public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { // Greater than 0 is a timeout in milliseconds and -1 means "block forever", // but 0 means "poll and return immediately", which shouldn't be subject to BlockGuard. if (timeoutMs != 0) { BlockGuard.getThreadPolicy().onNetwork(); } return os.poll(fds, timeoutMs); }
pollFds[0].fd = fd; pollFds[0].events = (short) POLLOUT; int rc = Libcore.os.poll(pollFds, remainingTimeoutMs); if (rc == 0) { return false; // Timeout.
pollFds[0].fd = fd; pollFds[0].events = (short) POLLOUT; int rc = Libcore.os.poll(pollFds, remainingTimeoutMs); if (rc == 0) { return false; // Timeout.
rc = Libcore.os.poll(pollFds.array(), (int) timeout); } catch (ErrnoException errnoException) { if (errnoException.errno != EINTR) {