Home
last modified time | relevance | path

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

12

/libcore/luni/src/main/java/libcore/io/
DOs.java19 import android.system.ErrnoException;
51 …scriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketExcepti… in accept()
52 public boolean access(String path, int mode) throws ErrnoException; in access()
54 …public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketEx… in bind()
55 … public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException; in bind()
56 public StructCapUserData[] capget(StructCapUserHeader hdr) throws ErrnoException; in capget()
57 public void capset(StructCapUserHeader hdr, StructCapUserData[] data) throws ErrnoException; in capset()
59 public void chmod(String path, int mode) throws ErrnoException; in chmod()
60 public void chown(String path, int uid, int gid) throws ErrnoException; in chown()
63 public void close(FileDescriptor fd) throws ErrnoException; in close()
[all …]
DLinux.java19 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 …]
DForwardingOs.java19 import android.system.ErrnoException;
70 …scriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketExcepti… in accept()
73 …public boolean access(String path, int mode) throws ErrnoException { return os.access(path, mode);… in access()
75 …public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketEx… in bind()
76 …public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException … in bind()
78 public StructCapUserData[] capget(StructCapUserHeader hdr) throws ErrnoException { in capget()
82 public void capset(StructCapUserHeader hdr, StructCapUserData[] data) throws ErrnoException { in capset()
86 public void chmod(String path, int mode) throws ErrnoException { os.chmod(path, mode); } in chmod()
88 …public void chown(String path, int uid, int gid) throws ErrnoException { os.chown(path, uid, gid);… in chown()
89 public void close(FileDescriptor fd) throws ErrnoException { os.close(fd); } in close()
[all …]
DBlockGuardOs.java19 import android.system.ErrnoException;
50 private FileDescriptor tagSocket(FileDescriptor fd) throws ErrnoException { in tagSocket()
55 throw new ErrnoException("socket", EINVAL, e); in tagSocket()
59 …scriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketExcepti… in accept()
68 @Override public boolean access(String path, int mode) throws ErrnoException { in access()
75 @Override public void chmod(String path, int mode) throws ErrnoException { in chmod()
82 @Override public void chown(String path, int uid, int gid) throws ErrnoException { in chown()
89 @Override public void close(FileDescriptor fd) throws ErrnoException { in close()
102 } catch (ErrnoException ignored) { in close()
111 private static boolean isInetSocket(FileDescriptor fd) throws ErrnoException{ in isInetSocket()
[all …]
DIoBridge.java19 import android.system.ErrnoException;
77 } catch (ErrnoException errnoException) { in available()
106 } catch (ErrnoException errnoException) { in bind()
136 } catch (ErrnoException errnoException) { in connect()
154 …scriptor fd, InetAddress inetAddress, int port, int timeoutMs) throws ErrnoException, IOException { in connectErrno()
177 } catch (ErrnoException errnoException) { in connectErrno()
254 } catch (ErrnoException errnoException) { in closeAndSignalBlockedThreads()
262 ErrnoException cause; in isConnected()
275 throw new ErrnoException("isConnected", connectError); // The connect(2) failed. in isConnected()
276 } catch (ErrnoException errnoException) { in isConnected()
[all …]
DMemoryMappedFile.java19 import android.system.ErrnoException;
55 public static MemoryMappedFile mmapRO(String path) throws ErrnoException { in mmapRO()
74 public void close() throws ErrnoException { in close()
DIoUtils.java19 import android.system.ErrnoException;
213 } catch (ErrnoException errnoException) { in setBlocking()
291 } catch (ErrnoException errnoException) { in canOpenReadOnly()
347 } catch (ErrnoException exception) { in FileReader()
379 } catch (ErrnoException e) { in readFully()
/libcore/luni/src/main/java/android/system/
DOs.java48 …ptor accept(FileDescriptor fd, InetSocketAddress peerAddress) throws ErrnoException, SocketExcepti… in accept()
54 …scriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketExcepti… in accept()
59 …public static boolean access(String path, int mode) throws ErrnoException { return Libcore.os.acce… in access()
67 …public static void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, S… in bind()
72 …d(@NonNull FileDescriptor fd, @NonNull SocketAddress address) throws ErrnoException, SocketExcepti… in bind()
80 public static StructCapUserData[] capget(StructCapUserHeader hdr) throws ErrnoException { in capget()
91 throws ErrnoException { in capset()
98 …public static void chmod(String path, int mode) throws ErrnoException { Libcore.os.chmod(path, mod… in chmod()
103 …public static void chown(String path, int uid, int gid) throws ErrnoException { Libcore.os.chown(p… in chown()
108 public static void close(FileDescriptor fd) throws ErrnoException { Libcore.os.close(fd); } in close()
[all …]
DErrnoException.java28 public final class ErrnoException extends Exception { class
39 public ErrnoException(String functionName, int errno) { in ErrnoException() method in ErrnoException
47 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;
326 if (e instanceof ErrnoException) { in expectException()
328 (int) expectedErrno, ((ErrnoException) e).errno); in expectException()
370 expectBindException(null, addr, ErrnoException.class, EBADF); in expectBindConnectSendtoSuccess()
395 expectSendtoException(socket, null, ErrnoException.class, null); in expectBindConnectSendtoSuccess()
396 expectSendtoException(null, null, ErrnoException.class, EBADF); in expectBindConnectSendtoSuccess()
399 expectConnectException(null, addr, ErrnoException.class, EBADF); in expectBindConnectSendtoSuccess()
410 } catch (SocketException | ErrnoException e) { in expectBindConnectSendtoSuccess()
428 } catch (ErrnoException e) { in expectBindConnectSendtoErrno()
439 } catch (ErrnoException e) { in expectBindConnectSendtoErrno()
[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;
400 } catch (ErrnoException e) { in getAll()
572 } catch (ErrnoException e) { in getMTU()
615 } catch (ErrnoException e) { in getFlags()
DPlainDatagramSocketImpl.java27 import android.system.ErrnoException;
202 } catch (ErrnoException errnoException) { in datagramSocketCreate()
/libcore/ojluni/src/main/java/java/io/
DFileDescriptor.java28 import android.system.ErrnoException;
221 } catch (ErrnoException e) { in dupFd()
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()
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/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/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/luni/src/main/java/libcore/timezone/
DZoneInfoDB.java19 import android.system.ErrnoException;
187 } catch (ErrnoException errnoException) { in loadData()
392 } catch (ErrnoException ignored) { in close()
/libcore/mmodules/core_platform_api/api/platform/
Dcurrent-api.txt74 public final class ErrnoException extends java.lang.Exception {
91 …tructCapUserData[] capget(android.system.StructCapUserHeader) throws android.system.ErrnoException;
92 …stem.StructCapUserHeader, android.system.StructCapUserData[]) throws android.system.ErrnoException;
93 … public static int fcntlInt(java.io.FileDescriptor, int, int) throws android.system.ErrnoException;
94 method public static int getpgid(int) throws android.system.ErrnoException;
95 …thod public static android.system.StructRlimit getrlimit(int) throws android.system.ErrnoException;
96 …ic static int getsockoptInt(java.io.FileDescriptor, int, int) throws android.system.ErrnoException;
97 …ructLinger getsockoptLinger(java.io.FileDescriptor, int, int) throws android.system.ErrnoException;
98 …octlInt(java.io.FileDescriptor, int, android.system.Int32Ref) throws android.system.ErrnoException;
99 method public static java.io.FileDescriptor[] pipe2(int) throws android.system.ErrnoException;
[all …]
/libcore/dalvik/src/main/java/dalvik/system/
DDexFile.java19 import android.system.ErrnoException;
145 } catch (ErrnoException ignored) { in DexFile()

12