Home
last modified time | relevance | path

Searched refs:ErrnoException (Results 1 – 25 of 32) sorted by relevance

12

/libcore/luni/src/main/java/libcore/io/
DOs.java19 import android.system.ErrnoException;
50 …scriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketExcepti… in accept()
51 public boolean access(String path, int mode) throws ErrnoException; in access()
53 …public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketEx… in bind()
54 … public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException; in bind()
55 public StructCapUserData[] capget(StructCapUserHeader hdr) throws ErrnoException; in capget()
56 public void capset(StructCapUserHeader hdr, StructCapUserData[] data) throws ErrnoException; in capset()
58 public void chmod(String path, int mode) throws ErrnoException; in chmod()
59 public void chown(String path, int uid, int gid) throws ErrnoException; in chown()
62 public void close(FileDescriptor fd) throws ErrnoException; in close()
[all …]
DLinux.java19 import android.system.ErrnoException;
50 …scriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketExcepti… in accept()
51 public native boolean access(String path, int mode) throws ErrnoException; in access()
53 …public native void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, S… in bind()
54 …public native void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketExc… in bind()
56 public native StructCapUserData[] capget(StructCapUserHeader hdr) throws ErrnoException; in capget()
59 throws ErrnoException; in capset()
60 public native void chmod(String path, int mode) throws ErrnoException; in chmod()
61 public native void chown(String path, int uid, int gid) throws ErrnoException; in chown()
63 public native void close(FileDescriptor fd) throws ErrnoException; in close()
[all …]
DForwardingOs.java19 import android.system.ErrnoException;
69 …scriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketExcepti… in accept()
72 …public boolean access(String path, int mode) throws ErrnoException { return os.access(path, mode);… in access()
74 …public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketEx… in bind()
75 …public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException … in bind()
77 public StructCapUserData[] capget(StructCapUserHeader hdr) throws ErrnoException { in capget()
81 public void capset(StructCapUserHeader hdr, StructCapUserData[] data) throws ErrnoException { in capset()
85 public void chmod(String path, int mode) throws ErrnoException { os.chmod(path, mode); } in chmod()
87 …public void chown(String path, int uid, int gid) throws ErrnoException { os.chown(path, uid, gid);… in chown()
88 public void close(FileDescriptor fd) throws ErrnoException { os.close(fd); } in close()
[all …]
DBlockGuardOs.java20 import android.system.ErrnoException;
52 private FileDescriptor tagSocket(FileDescriptor fd) throws ErrnoException { in tagSocket()
57 throw new ErrnoException("socket", EINVAL, e); in tagSocket()
61 …scriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketExcepti… in accept()
70 @Override public boolean access(String path, int mode) throws ErrnoException { in access()
77 @Override public void chmod(String path, int mode) throws ErrnoException { in chmod()
84 @Override public void chown(String path, int uid, int gid) throws ErrnoException { in chown()
91 @Override public void close(FileDescriptor fd) throws ErrnoException { in close()
104 } catch (ErrnoException ignored) { in close()
113 private static boolean isInetSocket(FileDescriptor fd) throws ErrnoException{ in isInetSocket()
[all …]
DIoBridge.java20 import android.system.ErrnoException;
76 } catch (ErrnoException errnoException) { in available()
105 } catch (ErrnoException errnoException) { in bind()
135 } catch (ErrnoException errnoException) { in connect()
153 …scriptor fd, InetAddress inetAddress, int port, int timeoutMs) throws ErrnoException, IOException { in connectErrno()
176 } catch (ErrnoException errnoException) { in connectErrno()
253 } catch (ErrnoException errnoException) { in closeAndSignalBlockedThreads()
261 ErrnoException cause; in isConnected()
274 throw new ErrnoException("isConnected", connectError); // The connect(2) failed. in isConnected()
275 } catch (ErrnoException errnoException) { in isConnected()
[all …]
DMemoryMappedFile.java20 import android.system.ErrnoException;
53 public static MemoryMappedFile mmapRO(String path) throws ErrnoException { in mmapRO()
72 public void close() throws ErrnoException { in close()
DIoUtils.java20 import android.system.ErrnoException;
217 } catch (ErrnoException errnoException) { in setBlocking()
278 } catch (ErrnoException errnoException) { in canOpenReadOnly()
334 } catch (ErrnoException exception) { in FileReader()
366 } catch (ErrnoException e) { in readFully()
/libcore/luni/src/main/java/android/system/
DOs.java47 …ptor accept(FileDescriptor fd, InetSocketAddress peerAddress) throws ErrnoException, SocketExcepti… in accept()
53 …scriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketExcepti… in accept()
58 …public static boolean access(String path, int mode) throws ErrnoException { return Libcore.os.acce… in access()
66 …public static void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, S… in bind()
71 …d(@NonNull FileDescriptor fd, @NonNull SocketAddress address) throws ErrnoException, SocketExcepti… in bind()
79 public static StructCapUserData[] capget(StructCapUserHeader hdr) throws ErrnoException { in capget()
90 throws ErrnoException { in capset()
97 …public static void chmod(String path, int mode) throws ErrnoException { Libcore.os.chmod(path, mod… in chmod()
102 …public static void chown(String path, int uid, int gid) throws ErrnoException { Libcore.os.chown(p… in chown()
107 public static void close(FileDescriptor fd) throws ErrnoException { Libcore.os.close(fd); } in close()
[all …]
DErrnoException.java29 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/
DErrnoExceptionTest.java23 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 …]
DOsTest.java19 import android.system.ErrnoException;
113 } catch (ErrnoException expected) { in testFcntlInt_invalidCmd()
124 } catch (ErrnoException expected) { in testFcntlInt_nullFd()
366 if (e instanceof ErrnoException) { in expectException()
368 (int) expectedErrno, ((ErrnoException) e).errno); in expectException()
410 expectBindException(null, addr, ErrnoException.class, EBADF); in expectBindConnectSendtoSuccess()
435 expectSendtoException(socket, null, ErrnoException.class, null); in expectBindConnectSendtoSuccess()
436 expectSendtoException(null, null, ErrnoException.class, EBADF); in expectBindConnectSendtoSuccess()
439 expectConnectException(null, addr, ErrnoException.class, EBADF); in expectBindConnectSendtoSuccess()
450 } catch (SocketException | ErrnoException e) { in expectBindConnectSendtoSuccess()
[all …]
/libcore/ojluni/src/main/java/java/net/
DPlainSocketImpl.java28 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()
DInet6AddressImpl.java27 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()
DNetworkInterface.java28 import android.system.ErrnoException;
436 } catch (ErrnoException e) { in getAll()
612 } catch (ErrnoException e) { in getMTU()
655 } catch (ErrnoException e) { in getFlags()
DPlainDatagramSocketImpl.java27 import android.system.ErrnoException;
203 } catch (ErrnoException errnoException) { in datagramSocketCreate()
/libcore/luni/src/test/java/libcore/java/io/
DFileInputStreamTest.java28 import android.system.ErrnoException;
229 } catch (ErrnoException expected) { in test_available_on_nonIOCTL_supported_file()
285 } catch (ErrnoException e) { in allocateEmptyFile()
292 } catch (ErrnoException e2) { in allocateEmptyFile()
306 } catch (ErrnoException e) { in getOpenFdsForPrefix()
DFileTest.java19 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/
DRandomAccessFile.java33 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()
DFileDescriptor.java28 import android.system.ErrnoException;
183 } catch (ErrnoException e) { in cloneForFork()
DUnixFileSystem.java30 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/luni/src/test/java/libcore/libcore/io/
DBlockGuardOsTest.java33 import android.system.ErrnoException;
102 } catch (ErrnoException ignored) { in test_blockguardOsIsNotifiedByDefault_rename()
146 public void test_connect_networkPolicy() throws ErrnoException, IOException { in test_connect_networkPolicy()
DMemoryMappedFileTest.java21 import android.system.ErrnoException;
49 } catch (ErrnoException e) { in testMmapRo_missingFile()
60 } catch (ErrnoException e) { in testMmapRo_emptyFile()
/libcore/mmodules/core_platform_api/api/legacy_platform/
Dcurrent-api.txt45 …tructCapUserData[] capget(android.system.StructCapUserHeader) throws android.system.ErrnoException;
46 …stem.StructCapUserHeader, android.system.StructCapUserData[]) throws android.system.ErrnoException;
47 method public static int getpgid(int) throws android.system.ErrnoException;
48 …thod public static android.system.StructRlimit getrlimit(int) throws android.system.ErrnoException;
49 …ic static int getsockoptInt(java.io.FileDescriptor, int, int) throws android.system.ErrnoException;
50 …ructLinger getsockoptLinger(java.io.FileDescriptor, int, int) throws android.system.ErrnoException;
51 …octlInt(java.io.FileDescriptor, int, android.system.Int32Ref) throws android.system.ErrnoException;
52 method public static java.io.FileDescriptor[] pipe2(int) throws android.system.ErrnoException;
53 method public static String realpath(String) throws android.system.ErrnoException;
54 method public static void setpgid(int, int) throws android.system.ErrnoException;
[all …]
/libcore/dalvik/src/main/java/dalvik/system/
DDexFile.java20 import android.system.ErrnoException;
146 } catch (ErrnoException ignored) { in DexFile()
/libcore/luni/src/test/java/libcore/java/lang/
DProcessBuilderTest.java19 import android.system.ErrnoException;
124 } catch (ErrnoException e) { in testRedirectInherit()

12