HomeSort by relevance Sort by last modified time
    Searched refs:ErrnoException (Results 1 - 25 of 185) sorted by null

1 2 3 4 5 6 7 8

  /frameworks/base/core/java/android/os/
ProxyFileDescriptorCallback.java 19 import android.system.ErrnoException;
25 * All callback methods except for onRelease should throw {@link android.system.ErrnoException}
47 * @throws ErrnoException ErrnoException containing E constants in OsConstants.
49 public long onGetSize() throws ErrnoException {
50 throw new ErrnoException("onGetSize", OsConstants.EBADF);
62 * @throws ErrnoException ErrnoException containing E constants in OsConstants.
64 public int onRead(long offset, int size, byte[] data) throws ErrnoException {
65 throw new ErrnoException("onRead", OsConstants.EBADF)
    [all...]
RevocableFileDescriptor.java 21 import android.system.ErrnoException;
62 } catch (ErrnoException e) {
105 private void checkRevoked() throws ErrnoException {
107 throw new ErrnoException(TAG, OsConstants.EPERM);
112 public long onGetSize() throws ErrnoException {
118 public int onRead(long offset, int size, byte[] data) throws ErrnoException {
133 public int onWrite(long offset, int size, byte[] data) throws ErrnoException {
148 public void onFsync() throws ErrnoException {
StatFs.java 19 import android.system.ErrnoException;
50 } catch (ErrnoException e) {
  /libcore/luni/src/main/java/libcore/io/
Os.java 19 import android.system.ErrnoException;
48 public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketException;
49 public boolean access(String path, int mode) throws ErrnoException;
51 public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException;
52 public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException;
53 public StructCapUserData[] capget(StructCapUserHeader hdr) throws ErrnoException;
54 public void capset(StructCapUserHeader hdr, StructCapUserData[] data) throws ErrnoException;
55 public void chmod(String path, int mode) throws ErrnoException;
56 public void chown(String path, int uid, int gid) throws ErrnoException;
57 public void close(FileDescriptor fd) throws ErrnoException;
    [all...]
Linux.java 19 import android.system.ErrnoException;
51 public native FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketException;
52 public native boolean access(String path, int mode) throws ErrnoException;
54 public native void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException;
55 public native void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException;
57 public native StructCapUserData[] capget(StructCapUserHeader hdr) throws ErrnoException;
60 throws ErrnoException;
61 public native void chmod(String path, int mode) throws ErrnoException;
62 public native void chown(String path, int uid, int gid) throws ErrnoException;
63 public native void close(FileDescriptor fd) throws ErrnoException;
    [all...]
ForwardingOs.java 19 import android.system.ErrnoException;
57 public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketException { return os.accept(fd, peerAddress); }
58 public boolean access(String path, int mode) throws ErrnoException { return os.access(path, mode); }
60 public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { os.bind(fd, address, port); }
61 public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException { os.bind(fd, address); }
63 public StructCapUserData[] capget(StructCapUserHeader hdr) throws ErrnoException {
67 public void capset(StructCapUserHeader hdr, StructCapUserData[] data) throws ErrnoException {
70 public void chmod(String path, int mode) throws ErrnoException { os.chmod(path, mode); }
71 public void chown(String path, int uid, int gid) throws ErrnoException { os.chown(path, uid, gid); }
72 public void close(FileDescriptor fd) throws ErrnoException { os.close(fd);
    [all...]
BlockGuardOs.java 19 import android.system.ErrnoException;
48 private FileDescriptor tagSocket(FileDescriptor fd) throws ErrnoException {
53 throw new ErrnoException("socket", EINVAL, e);
57 @Override public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketException {
66 @Override public boolean access(String path, int mode) throws ErrnoException {
71 @Override public void chmod(String path, int mode) throws ErrnoException {
76 @Override public void chown(String path, int uid, int gid) throws ErrnoException {
81 @Override public void close(FileDescriptor fd) throws ErrnoException {
94 } catch (ErrnoException ignored) {
103 private static boolean isInetSocket(FileDescriptor fd) throws ErrnoException{
    [all...]
MemoryMappedFile.java 19 import android.system.ErrnoException;
53 public static MemoryMappedFile mmapRO(String path) throws ErrnoException {
72 public void close() throws ErrnoException {
IoUtils.java 19 import android.system.ErrnoException;
45 } catch (ErrnoException errnoException) {
46 throw errnoException.rethrowAsIOException();
98 } catch (ErrnoException errnoException) {
99 throw errnoException.rethrowAsIOException();
166 } catch (ErrnoException errnoException) {
222 } catch (ErrnoException exception)
    [all...]
  /libcore/luni/src/main/java/android/system/
Os.java 41 public static FileDescriptor accept(FileDescriptor fd, InetSocketAddress peerAddress) throws ErrnoException, SocketException { return Libcore.os.accept(fd, peerAddress); }
47 public static FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketException { return Libcore.os.accept(fd, peerAddress); }
52 public static boolean access(String path, int mode) throws ErrnoException { return Libcore.os.access(path, mode); }
59 public static void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { Libcore.os.bind(fd, address, port); }
61 /** @hide */ public static void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException { Libcore.os.bind(fd, address); }
68 public static StructCapUserData[] capget(StructCapUserHeader hdr) throws ErrnoException {
78 throws ErrnoException {
85 public static void chmod(String path, int mode) throws ErrnoException { Libcore.os.chmod(path, mode); }
90 public static void chown(String path, int uid, int gid) throws ErrnoException { Libcore.os.chown(path, uid, gid); }
95 public static void close(FileDescriptor fd) throws ErrnoException { Libcore.os.close(fd);
    [all...]
ErrnoException.java 28 public final class ErrnoException extends Exception {
39 public ErrnoException(String functionName, int errno) {
47 public ErrnoException(String functionName, int errno, Throwable cause) {
  /cts/tests/tests/permission/src/android/permission/cts/
NoReadLogsPermissionTest.java 19 import android.system.ErrnoException;
78 public void testEventsLogSane() throws ErrnoException {
82 public void testMainLogSane() throws ErrnoException {
86 public void testRadioLogSane() throws ErrnoException {
90 public void testSystemLogSane() throws ErrnoException {
94 private static void testLogIsSane(String log) throws ErrnoException {
99 } catch (ErrnoException e) {
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowLinux.java 4 import android.system.ErrnoException;
14 public static void mkdir(String path, int mode) throws ErrnoException {
19 public StructStat stat(String path) throws ErrnoException {
ShadowPosix.java 4 import android.system.ErrnoException;
15 public static void mkdir(String path, int mode) throws ErrnoException {
20 public static Object stat(String path) throws ErrnoException {
ShadowSharedMemory.java 5 import android.system.ErrnoException;
36 public ByteBuffer map(int prot, int offset, int length) throws ErrnoException {
41 public static FileDescriptor nCreate(String name, int size) throws ErrnoException {
  /packages/apps/DocumentsUI/src/com/android/documentsui/archives/
Proxy.java 20 import android.system.ErrnoException;
47 public long onGetSize() throws ErrnoException {
52 public int onRead(long offset, int size, byte[] data) throws ErrnoException {
58 throw new ErrnoException("onRead", OsConstants.EIO);
66 throw new ErrnoException("onRead", OsConstants.EIO);
80 throw new ErrnoException("onRead", OsConstants.EIO);
  /cts/tests/tests/net/src/android/net/cts/
IpSecSysctlTest.java 19 import android.system.ErrnoException;
41 public void testProcFiles() throws ErrnoException, IOException, NumberFormatException {
SysctlBaseTest.java 19 import android.system.ErrnoException;
39 private void checkSysctlPermissions(String fileName) throws ErrnoException {
54 private String readFile(String fileName) throws ErrnoException, IOException {
66 protected int getIntValue(String filename) throws ErrnoException, IOException {
MultinetworkApiTest.java 24 import android.system.ErrnoException;
72 public void testGetaddrinfo() throws ErrnoException {
76 throw new ErrnoException(
82 public void testSetprocnetwork() throws ErrnoException {
93 throw new ErrnoException(
112 throw new ErrnoException(
124 public void testSetsocknetwork() throws ErrnoException {
128 throw new ErrnoException(
134 public void testNativeDatagramTransmission() throws ErrnoException {
138 throw new ErrnoException(
    [all...]
MultinetworkSysctlTest.java 19 import android.system.ErrnoException;
57 public void testProcFiles() throws ErrnoException, IOException, NumberFormatException {
  /frameworks/layoutlib/bridge/src/libcore/io/
MemoryMappedFile_Delegate.java 23 import android.system.ErrnoException;
54 static MemoryMappedFile mmapRO(String path) throws ErrnoException {
56 throw new ErrnoException("Custom timezone data files are not supported.", 1);
59 throw new ErrnoException("Bridge has not been initialized properly.", 1);
65 throw new ErrnoException("File not found: " + f.getPath(), 1);
80 throw new ErrnoException("mmapRO", 1, e);
85 static void close(MemoryMappedFile thisFile) throws ErrnoException {
  /frameworks/base/services/net/java/android/net/netlink/
NetlinkSocket.java 29 import android.system.ErrnoException;
58 public static void sendOneShotKernelMessage(int nlProto, byte[] msg) throws ErrnoException {
80 throw new ErrnoException(response.toString(), Math.abs(errno));
91 throw new ErrnoException(errmsg, EPROTO);
95 throw new ErrnoException(errPrefix, ETIMEDOUT, e);
98 throw new ErrnoException(errPrefix, EIO, e);
104 public static FileDescriptor forProto(int nlProto) throws ErrnoException {
110 public static void connectToKernel(FileDescriptor fd) throws ErrnoException, SocketException {
127 throws ErrnoException, IllegalArgumentException, InterruptedIOException {
151 throws ErrnoException, IllegalArgumentException, InterruptedIOException
    [all...]
  /cts/tests/tests/os/src/android/os/cts/
SharedMemoryService.java 24 import android.system.ErrnoException;
43 } catch (ErrnoException ex) {
SharedMemoryTest.java 41 import android.system.ErrnoException;
112 public void testReadWrite() throws RemoteException, ErrnoException {
133 public void testReadOnly() throws RemoteException, ErrnoException {
160 public void testUseAfterClose() throws RemoteException, ErrnoException {
181 public void testUseAfterUnmap() throws RemoteException, ErrnoException {
199 public void testNdkInterop() throws ErrnoException {
212 public void testInvalidCreate() throws ErrnoException {
217 public void testInvalidMapProt() throws ErrnoException {
224 public void testInvalidSetProt() throws ErrnoException {
231 public void testSetProtAddProt() throws ErrnoException {
    [all...]
  /frameworks/base/core/java/android/util/apk/
MemoryMappedFileDataSource.java 19 import android.system.ErrnoException;
95 } catch (ErrnoException e) {
101 } catch (ErrnoException ignored) { }

Completed in 964 milliseconds

1 2 3 4 5 6 7 8