/libcore/luni/src/main/java/libcore/io/ |
D | Os.java | 21 import android.system.ErrnoException; 68 …scriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketExcepti… in accept() 73 public boolean access(String path, int mode) throws ErrnoException; in access() 83 …public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketEx… in bind() 88 … public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException; in bind() 93 public StructCapUserData[] capget(StructCapUserHeader hdr) throws ErrnoException; in capget() 98 public void capset(StructCapUserHeader hdr, StructCapUserData[] data) throws ErrnoException; in capset() 104 public void chmod(String path, int mode) throws ErrnoException; in chmod() 109 public void chown(String path, int uid, int gid) throws ErrnoException; in chown() 115 public void close(FileDescriptor fd) throws ErrnoException; in close() [all …]
|
D | Linux.java | 19 import android.system.ErrnoException; 51 …scriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketExcepti… in accept() 52 public native boolean access(String path, int mode) throws ErrnoException; in access() 54 …public native void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, S… in bind() 55 …public native void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketExc… in bind() 57 public native StructCapUserData[] capget(StructCapUserHeader hdr) throws ErrnoException; in capget() 60 throws ErrnoException; in capset() 61 public native void chmod(String path, int mode) throws ErrnoException; in chmod() 62 public native void chown(String path, int uid, int gid) throws ErrnoException; in chown() 64 public native void close(FileDescriptor fd) throws ErrnoException; in close() [all …]
|
D | ForwardingOs.java | 21 import android.system.ErrnoException; 93 …scriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketExcepti… in accept() 131 …public boolean access(@Nullable String path, int mode) throws ErrnoException { return os.access(pa… in access() 141 …public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketEx… in bind() 146 …public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException … in bind() 152 public StructCapUserData[] capget(StructCapUserHeader hdr) throws ErrnoException { in capget() 160 public void capset(StructCapUserHeader hdr, StructCapUserData[] data) throws ErrnoException { in capset() 168 public void chmod(String path, int mode) throws ErrnoException { os.chmod(path, mode); } in chmod() 174 …public void chown(String path, int uid, int gid) throws ErrnoException { os.chown(path, uid, gid);… in chown() 179 public void close(FileDescriptor fd) throws ErrnoException { os.close(fd); } in close() [all …]
|
D | BlockGuardOs.java | 20 import android.system.ErrnoException; 53 private FileDescriptor tagSocket(FileDescriptor fd) throws ErrnoException { in tagSocket() 58 throw new ErrnoException("socket", EINVAL, e); in tagSocket() 62 …scriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketExcepti… in accept() 73 @Override public boolean access(String path, int mode) throws ErrnoException { in access() 80 @Override public void chmod(String path, int mode) throws ErrnoException { in chmod() 87 @Override public void chown(String path, int uid, int gid) throws ErrnoException { in chown() 94 @Override public void close(FileDescriptor fd) throws ErrnoException { in close() 107 } catch (ErrnoException ignored) { in close() 116 public static boolean isNonBlockingFile(FileDescriptor fd) throws ErrnoException { in isNonBlockingFile() [all …]
|
D | IoBridge.java | 21 import android.system.ErrnoException; 118 } catch (ErrnoException errnoException) { in available() 147 } catch (ErrnoException errnoException) { in bind() 181 } catch (ErrnoException errnoException) { in connect() 199 …scriptor fd, InetAddress inetAddress, int port, int timeoutMs) throws ErrnoException, IOException { in connectErrno() 222 } catch (ErrnoException errnoException) { in connectErrno() 314 } catch (ErrnoException errnoException) { in closeAndSignalBlockedThreads() 323 ErrnoException cause; in isConnected() 336 throw new ErrnoException("isConnected", connectError); // The connect(2) failed. in isConnected() 337 } catch (ErrnoException errnoException) { in isConnected() [all …]
|
D | MemoryMappedFile.java | 20 import android.system.ErrnoException; 53 public static MemoryMappedFile mmapRO(String path) throws ErrnoException { in mmapRO() 72 public void close() throws ErrnoException { in close()
|
D | IoUtils.java | 23 import android.system.ErrnoException; 267 } catch (ErrnoException errnoException) { in setBlocking() 344 } catch (ErrnoException errnoException) { in canOpenReadOnly() 403 } catch (ErrnoException exception) { in FileReader() 435 } catch (ErrnoException e) { in readFully()
|
/libcore/luni/src/main/java/android/system/ |
D | Os.java | 51 …ptor accept(FileDescriptor fd, InetSocketAddress peerAddress) throws ErrnoException, SocketExcepti… in accept() 57 …scriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketExcepti… in accept() 62 …public static boolean access(String path, int mode) throws ErrnoException { return Libcore.os.acce… in access() 70 …public static void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, S… in bind() 75 …d(@NonNull FileDescriptor fd, @NonNull SocketAddress address) throws ErrnoException, SocketExcepti… in bind() 89 …atic @Nullable StructCapUserData[] capget(@NonNull StructCapUserHeader hdr) throws ErrnoException { in capget() 114 throws ErrnoException { in capset() 121 …public static void chmod(String path, int mode) throws ErrnoException { Libcore.os.chmod(path, mod… in chmod() 126 …public static void chown(String path, int uid, int gid) throws ErrnoException { Libcore.os.chown(p… in chown() 131 public static void close(FileDescriptor fd) throws ErrnoException { Libcore.os.close(fd); } in close() [all …]
|
D | ErrnoException.java | 29 public final class ErrnoException extends Exception { class 40 public ErrnoException(String functionName, int errno) { in ErrnoException() method in ErrnoException 48 public ErrnoException(String functionName, int errno, Throwable cause) { in ErrnoException() method in ErrnoException
|
/libcore/luni/src/test/java/libcore/android/system/ |
D | ErrnoExceptionTest.java | 23 import android.system.ErrnoException; 48 assertMessageErrnoAndCause(msg, errno, null, new ErrnoException(nameOrNull, errno)); in check_messageErrnoAndCause() 49 assertMessageErrnoAndCause(msg, errno, null, new ErrnoException(nameOrNull, errno, null)); in check_messageErrnoAndCause() 50 assertMessageErrnoAndCause(msg, errno, cause, new ErrnoException(nameOrNull, errno, cause)); in check_messageErrnoAndCause() 54 ErrnoException e) { in assertMessageErrnoAndCause() 61 check_rethrow(new ErrnoException(null, EINVAL)); in rethrow() 62 check_rethrow(new ErrnoException(null, EINVAL, null)); in rethrow() 63 check_rethrow(new ErrnoException(null, EINVAL, new Throwable("cause msg"))); in rethrow() 65 check_rethrow(new ErrnoException("name", EINVAL)); in rethrow() 66 check_rethrow(new ErrnoException("name", EINVAL, null)); in rethrow() [all …]
|
D | OsTest.java | 19 import android.system.ErrnoException; 136 } catch (ErrnoException expected) { in testFcntlInt_invalidCmd() 148 } catch (ErrnoException expected) { in testFcntlInt_nullFd() 392 if (e instanceof ErrnoException) { in expectException() 394 (int) expectedErrno, ((ErrnoException) e).errno); in expectException() 426 ErrnoException.class, expectedErrno, msg); in expectSendtoException() 436 expectBindException(null, addr, ErrnoException.class, EBADF); in expectBindConnectSendtoSuccess() 466 expectConnectException(null, addr, ErrnoException.class, EBADF); in expectBindConnectSendtoSuccess() 477 } catch (SocketException | ErrnoException e) { in expectBindConnectSendtoSuccess() 495 } catch (ErrnoException e) { in expectBindConnectSendtoErrno() [all …]
|
/libcore/ojluni/src/main/java/java/net/ |
D | PlainSocketImpl.java | 28 import android.system.ErrnoException; 181 } catch (ErrnoException errnoException) { in socketListen() 207 } catch (ErrnoException errnoException) { in socketAccept() 243 } catch (ErrnoException errnoException) { in socketClose0() 270 } catch (ErrnoException errnoException) { in getMarkerFD() 282 } catch (ErrnoException errnoException) { in socketShutdown() 308 } catch (ErrnoException errnoException) { in socketSendUrgentData()
|
D | Inet6AddressImpl.java | 27 import android.system.ErrnoException; 147 if (gaiException.getCause() instanceof ErrnoException) { in lookupHostByName() 148 int errno = ((ErrnoException) gaiException.getCause()).errno; in lookupHostByName() 234 return cause instanceof ErrnoException in tcpEcho() 235 && ((ErrnoException) cause).errno == ECONNREFUSED; in tcpEcho() 295 } catch (ErrnoException e) { } in icmpEcho()
|
D | NetworkInterface.java | 28 import android.system.ErrnoException; 436 } catch (ErrnoException e) { in getAll() 615 } catch (ErrnoException e) { in getMTU() 658 } catch (ErrnoException e) { in getFlags()
|
D | PlainDatagramSocketImpl.java | 27 import android.system.ErrnoException; 203 } catch (ErrnoException errnoException) { in datagramSocketCreate()
|
/libcore/luni/src/test/java/libcore/libcore/io/ |
D | BlockGuardOsTest.java | 39 import android.system.ErrnoException; 110 } catch (ErrnoException ignored) { in test_blockguardOsIsNotifiedByDefault_rename() 154 public void test_nonblock() throws ErrnoException, IOException { in test_nonblock() 168 public void test_unixSocket() throws ErrnoException, IOException { in test_unixSocket() 180 public void test_accept_networkPolicy() throws ErrnoException, IOException { in test_accept_networkPolicy() 195 public void test_connect_networkPolicy() throws ErrnoException, IOException { in test_connect_networkPolicy()
|
D | MemoryMappedFileTest.java | 21 import android.system.ErrnoException; 49 } catch (ErrnoException e) { in testMmapRo_missingFile() 60 } catch (ErrnoException e) { in testMmapRo_emptyFile()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | FileInputStreamTest.java | 19 import android.system.ErrnoException; 228 } catch (ErrnoException expected) { in test_available_on_nonIOCTL_supported_file() 284 } catch (ErrnoException e) { in allocateEmptyFile() 291 } catch (ErrnoException e2) { in allocateEmptyFile() 305 } catch (ErrnoException e) { in getOpenFdsForPrefix()
|
D | FileTest.java | 19 import android.system.ErrnoException; 319 public void testExistsOnSystem() throws ErrnoException, IOException { in testExistsOnSystem() 327 } catch (ErrnoException expected) { in testExistsOnSystem()
|
/libcore/ojluni/src/main/java/java/io/ |
D | RandomAccessFile.java | 33 import android.system.ErrnoException; 307 } catch (ErrnoException e) { in maybeSync() 588 } catch (ErrnoException errnoException) { in getFilePointer() 619 } catch (ErrnoException errnoException) { in seek() 636 } catch (ErrnoException errnoException) { in length() 668 } catch (ErrnoException errnoException) { in setLength()
|
D | FileDescriptor.java | 28 import android.system.ErrnoException; 186 } catch (ErrnoException e) { in cloneForFork()
|
D | UnixFileSystem.java | 30 import android.system.ErrnoException; 282 } catch (ErrnoException e) { in checkAccess() 299 } catch (ErrnoException e) { in getLength() 333 } catch (ErrnoException e) { in delete() 370 } catch (ErrnoException e) { in rename()
|
/libcore/mmodules/core_platform_api/api/legacy_platform/ |
D | current.txt | 40 …serData[] capget(@NonNull android.system.StructCapUserHeader) throws android.system.ErrnoException; 41 …ctCapUserHeader, @NonNull android.system.StructCapUserData[]) throws android.system.ErrnoException; 42 method public static int getpgid(int) throws android.system.ErrnoException; 43 …able public static android.system.StructRlimit getrlimit(int) throws android.system.ErrnoException; 44 … int getsockoptInt(@NonNull java.io.FileDescriptor, int, int) throws android.system.ErrnoException; 45 …r getsockoptLinger(@NonNull java.io.FileDescriptor, int, int) throws android.system.ErrnoException; 46 …lic static int ioctlInt(@NonNull java.io.FileDescriptor, int) throws android.system.ErrnoException; 47 …d @Nullable public static java.io.FileDescriptor[] pipe2(int) throws android.system.ErrnoException; 48 …hod @Nullable public static String realpath(@Nullable String) throws android.system.ErrnoException; 49 method public static void setpgid(int, int) throws android.system.ErrnoException; [all …]
|
/libcore/mmodules/core_platform_api/api/stable_platform/ |
D | current.txt | 40 …serData[] capget(@NonNull android.system.StructCapUserHeader) throws android.system.ErrnoException; 41 …ctCapUserHeader, @NonNull android.system.StructCapUserData[]) throws android.system.ErrnoException; 42 method public static int getpgid(int) throws android.system.ErrnoException; 43 …able public static android.system.StructRlimit getrlimit(int) throws android.system.ErrnoException; 44 … int getsockoptInt(@NonNull java.io.FileDescriptor, int, int) throws android.system.ErrnoException; 45 …r getsockoptLinger(@NonNull java.io.FileDescriptor, int, int) throws android.system.ErrnoException; 46 …lic static int ioctlInt(@NonNull java.io.FileDescriptor, int) throws android.system.ErrnoException; 47 …d @Nullable public static java.io.FileDescriptor[] pipe2(int) throws android.system.ErrnoException; 48 …hod @Nullable public static String realpath(@Nullable String) throws android.system.ErrnoException; 49 method public static void setpgid(int, int) throws android.system.ErrnoException; [all …]
|
/libcore/api/ |
D | module-lib-current.txt | 40 …serData[] capget(@NonNull android.system.StructCapUserHeader) throws android.system.ErrnoException; 41 …ctCapUserHeader, @NonNull android.system.StructCapUserData[]) throws android.system.ErrnoException; 42 method public static int getpgid(int) throws android.system.ErrnoException; 43 …able public static android.system.StructRlimit getrlimit(int) throws android.system.ErrnoException; 44 … int getsockoptInt(@NonNull java.io.FileDescriptor, int, int) throws android.system.ErrnoException; 45 …r getsockoptLinger(@NonNull java.io.FileDescriptor, int, int) throws android.system.ErrnoException; 46 …lic static int ioctlInt(@NonNull java.io.FileDescriptor, int) throws android.system.ErrnoException; 47 …d @Nullable public static java.io.FileDescriptor[] pipe2(int) throws android.system.ErrnoException; 48 …hod @Nullable public static String realpath(@Nullable String) throws android.system.ErrnoException; 49 method public static void setpgid(int, int) throws android.system.ErrnoException; [all …]
|