/libcore/luni/src/main/java/libcore/io/ |
Os.java | 28 public FileDescriptor accept(FileDescriptor fd, InetSocketAddress peerAddress) throws ErrnoException; 29 public boolean access(String path, int mode) throws ErrnoException; 30 public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException; 31 public void chmod(String path, int mode) throws ErrnoException; 32 public void close(FileDescriptor fd) throws ErrnoException; 33 public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException; 34 public FileDescriptor dup(FileDescriptor oldFd) throws ErrnoException; 35 public FileDescriptor dup2(FileDescriptor oldFd, int newFd) throws ErrnoException; 37 public int fcntlVoid(FileDescriptor fd, int cmd) throws ErrnoException; 38 public int fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoException; [all...] |
Posix.java | 31 public native FileDescriptor accept(FileDescriptor fd, InetSocketAddress peerAddress) throws ErrnoException; 32 public native boolean access(String path, int mode) throws ErrnoException; 33 public native void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException; 34 public native void chmod(String path, int mode) throws ErrnoException; 35 public native void close(FileDescriptor fd) throws ErrnoException; 36 public native void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException; 37 public native FileDescriptor dup(FileDescriptor oldFd) throws ErrnoException; 38 public native FileDescriptor dup2(FileDescriptor oldFd, int newFd) throws ErrnoException; 40 public native int fcntlVoid(FileDescriptor fd, int cmd) throws ErrnoException; 41 public native int fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoException; [all...] |
BlockGuardOs.java | 36 private FileDescriptor tagSocket(FileDescriptor fd) throws ErrnoException { 41 throw new ErrnoException("socket", EINVAL, e); 45 private void untagSocket(FileDescriptor fd) throws ErrnoException { 49 throw new ErrnoException("socket", EINVAL, e); 53 @Override public FileDescriptor accept(FileDescriptor fd, InetSocketAddress peerAddress) throws ErrnoException { 58 @Override public void close(FileDescriptor fd) throws ErrnoException { 69 } catch (ErrnoException ignored) { 78 private static boolean isLingerSocket(FileDescriptor fd) throws ErrnoException { 83 @Override public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException { 90 @Override public void fdatasync(FileDescriptor fd) throws ErrnoException { [all...] |
ForwardingOs.java | 37 public FileDescriptor accept(FileDescriptor fd, InetSocketAddress peerAddress) throws ErrnoException { return os.accept(fd, peerAddress); } 38 public boolean access(String path, int mode) throws ErrnoException { return os.access(path, mode); } 39 public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException { os.bind(fd, address, port); } 40 public void chmod(String path, int mode) throws ErrnoException { os.chmod(path, mode); } 41 public void close(FileDescriptor fd) throws ErrnoException { os.close(fd); } 42 public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException { os.connect(fd, address, port); } 43 public FileDescriptor dup(FileDescriptor oldFd) throws ErrnoException { return os.dup(oldFd); } 44 public FileDescriptor dup2(FileDescriptor oldFd, int newFd) throws ErrnoException { return os.dup2(oldFd, newFd); } 46 public int fcntlVoid(FileDescriptor fd, int cmd) throws ErrnoException { return os.fcntlVoid(fd, cmd); } 47 public int fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoException { return os.fcntlLong(fd, cmd, arg); [all...] |
ErrnoException.java | 27 public final class ErrnoException extends Exception { 31 public ErrnoException(String functionName, int errno) { 36 public ErrnoException(String functionName, int errno, Throwable cause) {
|
MemoryMappedFile.java | 25 import libcore.io.ErrnoException; 50 public static MemoryMappedFile mmapRO(String path) throws ErrnoException { 66 public synchronized void close() throws ErrnoException {
|
IoBridge.java | 63 } catch (ErrnoException errnoException) { 64 if (errnoException.errno == ENOTTY) { 68 throw errnoException.rethrowAsIOException(); 88 } catch (ErrnoException errnoException) { 89 throw new BindException(errnoException.getMessage(), errnoException); 113 } catch (ErrnoException errnoException) { [all...] |
IoUtils.java | 40 } catch (ErrnoException errnoException) { 41 throw errnoException.rethrowAsIOException(); 93 } catch (ErrnoException errnoException) { 94 throw errnoException.rethrowAsIOException();
|
/libcore/luni/src/main/java/java/io/ |
FileDescriptor.java | 20 import libcore.io.ErrnoException; 72 } catch (ErrnoException errnoException) { 73 SyncFailedException sfe = new SyncFailedException(errnoException.getMessage()); 74 sfe.initCause(errnoException);
|
File.java | 26 import libcore.io.ErrnoException; 284 } catch (ErrnoException errnoException) { 315 } catch (ErrnoException errnoException) { 532 } catch (ErrnoException errnoException) { 547 } catch (ErrnoException errnoException) { 579 } catch (ErrnoException errnoException) [all...] |
FileInputStream.java | 25 import libcore.io.ErrnoException; 192 } catch (ErrnoException errnoException) { 193 if (errnoException.errno == ESPIPE) { 197 throw errnoException.rethrowAsIOException();
|
RandomAccessFile.java | 26 import libcore.io.ErrnoException; 224 } catch (ErrnoException errnoException) { 225 throw errnoException.rethrowAsIOException(); 239 } catch (ErrnoException errnoException) { 240 throw errnoException.rethrowAsIOException(); 605 } catch (ErrnoException errnoException) { 606 throw errnoException.rethrowAsIOException() [all...] |
/libcore/luni/src/main/java/java/nio/ |
MappedByteBuffer.java | 20 import libcore.io.ErrnoException; 90 } catch (ErrnoException errnoException) { 103 } catch (ErrnoException ignored) { 120 } catch (ErrnoException errnoException) { 123 throw new AssertionError(errnoException);
|
FileChannelImpl.java | 35 import libcore.io.ErrnoException; 123 } catch (ErrnoException errnoException) { 124 throw errnoException.rethrowAsIOException(); 195 } catch (ErrnoException errnoException) { 196 throw errnoException.rethrowAsIOException(); 211 } catch (ErrnoException errnoException) { 212 throw errnoException.rethrowAsIOException() [all...] |
IoVec.java | 22 import libcore.io.ErrnoException; 83 } catch (ErrnoException errnoException) { 84 throw errnoException.rethrowAsIOException();
|
PipeImpl.java | 25 import libcore.io.ErrnoException; 44 } catch (ErrnoException errnoException) { 45 throw errnoException.rethrowAsIOException();
|
SelectorImpl.java | 38 import libcore.io.ErrnoException; 98 } catch (ErrnoException errnoException) { 99 throw errnoException.rethrowAsIOException(); 180 } catch (ErrnoException errnoException) { 181 if (errnoException.errno != EINTR) { 182 throw errnoException.rethrowAsIOException(); 317 } catch (ErrnoException ignored) {
|
MemoryBlock.java | 24 import libcore.io.ErrnoException; 42 } catch (ErrnoException errnoException) { 45 throw new AssertionError(errnoException); 119 } catch (ErrnoException errnoException) { 120 throw errnoException.rethrowAsIOException();
|
/libcore/support/src/test/java/tests/io/ |
MockOs.java | 27 import libcore.io.ErrnoException; 115 @Override public Object invoke(Object proxy, Method method, Object[] args) throws ErrnoException { 116 throw new ErrnoException(method.getName(), errno);
|
/frameworks/base/core/java/android/app/backup/ |
FullBackup.java | 30 import libcore.io.ErrnoException; 153 } catch (ErrnoException e) {
|
/libcore/dalvik/src/main/java/dalvik/system/ |
DexFile.java | 23 import libcore.io.ErrnoException; 104 } catch (ErrnoException ignored) {
|
/libcore/luni/src/main/java/java/net/ |
PlainSocketImpl.java | 36 import libcore.io.ErrnoException; 106 } catch (ErrnoException errnoException) { 107 if (errnoException.errno == EAGAIN || errnoException.errno == EWOULDBLOCK) { 108 throw new SocketTimeoutException(errnoException); 110 throw errnoException.rethrowAsSocketException(); 282 } catch (ErrnoException errnoException) { 283 throw errnoException.rethrowAsSocketException() [all...] |
InetAddress.java | 36 import libcore.io.ErrnoException; 416 if (gaiException.getCause() instanceof ErrnoException) { 417 if (((ErrnoException) gaiException.getCause()).errno == EACCES) { 732 if (e.getCause() instanceof ErrnoException) { 734 reached = (((ErrnoException) e.getCause()).errno == ECONNREFUSED); [all...] |
/libcore/luni/src/main/java/java/lang/ |
ProcessManager.java | 31 import libcore.io.ErrnoException; 101 } catch (ErrnoException errnoException) { 102 if (errnoException.errno == ECHILD) { 108 throw new AssertionError(errnoException); 261 } catch (ErrnoException e) {
|
/libcore/luni/src/main/java/libcore/util/ |
ZoneInfoDB.java | 30 import libcore.io.ErrnoException; 108 } catch (ErrnoException errnoException) { 109 throw new AssertionError(errnoException); 135 private static void readIndex(MemoryMappedFile mappedFile) throws ErrnoException, IOException {
|