public FileOutputStream(java.io.FileDescriptor arg0) : base(global::MonoJavaBridge.JNIEnv.ThreadEnv) { global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv; global::MonoJavaBridge.JniLocalHandle handle = @__env.NewObject(java.io.FileOutputStream.staticClass, global::java.io.FileOutputStream._FileOutputStream12579, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0)); Init(@__env, handle); }
public void writeFileDescriptor(java.io.FileDescriptor val) { throw new System.NotImplementedException(); }
internal static void clearFileDescriptor(java.io.FileDescriptor desc) { throw new System.NotImplementedException(); }
private extern void force0(java.io.FileDescriptor fd, long address, long length);
internal static java.nio.MemoryBlock mmap(java.io.FileDescriptor fd, long offset, long size, java.nio.channels.FileChannel.MapMode mapMode) { throw new System.NotImplementedException(); }
public static android.graphics.Bitmap decodeFileDescriptor(java.io.FileDescriptor fd, android.graphics.Rect outPadding, android.graphics.BitmapFactory.Options opts ) { throw new System.NotImplementedException(); }
protected internal override void dump(java.io.FileDescriptor fd, java.io.PrintWriter fout, string[] args) { throw new System.NotImplementedException(); }
public abstract android.os.Debug.MemoryInfo dumpMemInfo(java.io.FileDescriptor arg1 , bool arg2, bool arg3, string[] arg4);
public abstract void dumpService(java.io.FileDescriptor arg1, android.os.IBinder arg2, string[] arg3);
public virtual android.os.Debug.MemoryInfo dumpMemInfo(java.io.FileDescriptor fd, bool checkin, bool all, string[] args) { throw new System.NotImplementedException(); }
public virtual void dumpGfxInfo(java.io.FileDescriptor fd, string[] args) { throw new System.NotImplementedException(); }
public abstract void dumpGfxInfo(java.io.FileDescriptor arg1, string[] arg2);
public virtual void dumpActivity(java.io.FileDescriptor fd, android.os.IBinder token , string prefix, string[] args) { throw new System.NotImplementedException(); }
public abstract void dumpActivity(java.io.FileDescriptor arg1, android.os.IBinder arg2, string arg3, string[] arg4);
private extern void socketWrite0(java.io.FileDescriptor fd, sbyte[] b, int off, int len);
public void dumpAsync(java.io.FileDescriptor fd, string[] args) { throw new System.NotImplementedException(); }
public virtual void dump(java.io.FileDescriptor fd, java.io.PrintWriter fout, string [] args) { throw new System.NotImplementedException(); }
internal int doTransfer(java.io.FileDescriptor fd) { throw new System.NotImplementedException(); }
public static android.graphics.Bitmap decodeFileDescriptor(java.io.FileDescriptor fd) { throw new System.NotImplementedException(); }
public static ParcelFileDescriptor dup(java.io.FileDescriptor orig) { return(null); }
/// <summary> /// Creates a FileWriter using the existing FileDescriptor /// <code>fd</code> /// . /// </summary> /// <param name="fd">the non-null FileDescriptor to write bytes to.</param> public FileWriter(java.io.FileDescriptor fd) : base(new java.io.FileOutputStream( fd)) { }
public void dumpLocked(java.io.FileDescriptor fd, java.io.PrintWriter pw, string[] args, string name, string prefix, int[] counts, android.util.SparseIntArray pidCounts ) { throw new System.NotImplementedException(); }
public static long read(object nd, FileDescriptor fd, ByteBuffer[] bufs, int offset, int length) { #if FIRST_PASS return(0); #else ByteBuffer[] altBufs = null; List <ArraySegment <byte> > list = new List <ArraySegment <byte> >(length); for (int i = 0; i < length; i++) { ByteBuffer bb = bufs[i + offset]; if (!bb.hasArray()) { if (altBufs == null) { altBufs = new ByteBuffer[bufs.Length]; } bb = altBufs[i + offset] = ByteBuffer.allocate(bb.remaining()); } list.Add(new ArraySegment <byte>(bb.array(), bb.arrayOffset() + bb.position(), bb.remaining())); } int count; try { count = fd.getSocket().Receive(list); } catch (System.Net.Sockets.SocketException x) { if (x.ErrorCode == global::java.net.SocketUtil.WSAEWOULDBLOCK) { count = 0; } else { throw global::java.net.SocketUtil.convertSocketExceptionToIOException(x); } } catch (ObjectDisposedException) { throw new global::java.net.SocketException("Socket is closed"); } int total = count; for (int i = 0; total > 0 && i < length; i++) { ByteBuffer bb = bufs[i + offset]; ByteBuffer abb; int consumed = Math.Min(total, bb.remaining()); if (altBufs != null && (abb = altBufs[i + offset]) != null) { abb.position(consumed); abb.flip(); bb.put(abb); } else { bb.position(bb.position() + consumed); } total -= consumed; } return(count); #endif }
public LocalServerSocket(java.io.FileDescriptor arg0) : base(global::MonoJavaBridge.JNIEnv.ThreadEnv) { global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv; global::MonoJavaBridge.JniLocalHandle handle = @__env.NewObject(android.net.LocalServerSocket.staticClass, global::android.net.LocalServerSocket._LocalServerSocket5153, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0)); Init(@__env, handle); }
/// <summary> /// Construct a new FileReader on the given FileDescriptor /// <code>fd</code> /// . Since /// a previously opened FileDescriptor is passed as an argument, no /// FileNotFoundException can be thrown. /// </summary> /// <param name="fd">the previously opened file descriptor.</param> public FileReader(java.io.FileDescriptor fd) : base(new java.io.FileInputStream(fd )) { }
protected internal virtual void dump(java.io.FileDescriptor fd, java.io.PrintWriter pw) { throw new System.NotImplementedException(); }
internal static java.io.FileDescriptor dupFileDescriptor(java.io.FileDescriptor orig ) { throw new System.NotImplementedException(); }
// http://man.cat-v.org/p9p/3/sendfd // http://stackoverflow.com/questions/4489433/sending-file-descriptor-over-unix-domain-socket-and-select // https://vec.io/posts/andriod-ipc-shared-memory-with-ashmem-memoryfile-and-binder // private static native void nativeWriteFileDescriptor(long nativePtr, FileDescriptor val); // magics to transfer a Linux file descriptor from one process to another. public void writeFileDescriptor(java.io.FileDescriptor val) { }
public void dump(string prefix, java.io.FileDescriptor fd, java.io.PrintWriter writer , string[] args) { throw new System.NotImplementedException(); }
public static android.graphics.BitmapRegionDecoder newInstance(java.io.FileDescriptor fd, bool isShareable) { throw new System.NotImplementedException(); }