예제 #1
0
 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);
 }
예제 #2
0
 public void writeFileDescriptor(java.io.FileDescriptor val)
 {
     throw new System.NotImplementedException();
 }
예제 #3
0
 internal static void clearFileDescriptor(java.io.FileDescriptor desc)
 {
     throw new System.NotImplementedException();
 }
예제 #4
0
 private extern void force0(java.io.FileDescriptor fd, long address, long length);
예제 #5
0
 internal static java.nio.MemoryBlock mmap(java.io.FileDescriptor fd, long offset,
                                           long size, java.nio.channels.FileChannel.MapMode mapMode)
 {
     throw new System.NotImplementedException();
 }
예제 #6
0
 public static android.graphics.Bitmap decodeFileDescriptor(java.io.FileDescriptor
                                                            fd, android.graphics.Rect outPadding, android.graphics.BitmapFactory.Options opts
                                                            )
 {
     throw new System.NotImplementedException();
 }
예제 #7
0
 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);
예제 #10
0
 public virtual android.os.Debug.MemoryInfo dumpMemInfo(java.io.FileDescriptor fd,
                                                        bool checkin, bool all, string[] args)
 {
     throw new System.NotImplementedException();
 }
예제 #11
0
 public virtual void dumpGfxInfo(java.io.FileDescriptor fd, string[] args)
 {
     throw new System.NotImplementedException();
 }
예제 #12
0
 public abstract void dumpGfxInfo(java.io.FileDescriptor arg1, string[] arg2);
예제 #13
0
 public virtual void dumpActivity(java.io.FileDescriptor fd, android.os.IBinder token
                                  , string prefix, string[] args)
 {
     throw new System.NotImplementedException();
 }
예제 #14
0
 public abstract void dumpActivity(java.io.FileDescriptor arg1, android.os.IBinder
                                   arg2, string arg3, string[] arg4);
예제 #15
0
 private extern void socketWrite0(java.io.FileDescriptor fd, sbyte[] b, int off, int len);
예제 #16
0
 public void dumpAsync(java.io.FileDescriptor fd, string[] args)
 {
     throw new System.NotImplementedException();
 }
예제 #17
0
 public virtual void dump(java.io.FileDescriptor fd, java.io.PrintWriter fout, string
                          [] args)
 {
     throw new System.NotImplementedException();
 }
예제 #18
0
 internal int doTransfer(java.io.FileDescriptor fd)
 {
     throw new System.NotImplementedException();
 }
예제 #19
0
 public static android.graphics.Bitmap decodeFileDescriptor(java.io.FileDescriptor
                                                            fd)
 {
     throw new System.NotImplementedException();
 }
 public static ParcelFileDescriptor dup(java.io.FileDescriptor orig)
 {
     return(null);
 }
예제 #21
0
 /// <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))
 {
 }
예제 #22
0
 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();
 }
예제 #23
0
        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
        }
예제 #24
0
 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);
 }
예제 #25
0
 /// <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
                                                                                 ))
 {
 }
예제 #26
0
 protected internal virtual void dump(java.io.FileDescriptor fd, java.io.PrintWriter
                                      pw)
 {
     throw new System.NotImplementedException();
 }
예제 #27
0
 internal static java.io.FileDescriptor dupFileDescriptor(java.io.FileDescriptor orig
                                                          )
 {
     throw new System.NotImplementedException();
 }
예제 #28
0
        // 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)
        {
        }
예제 #29
0
 public void dump(string prefix, java.io.FileDescriptor fd, java.io.PrintWriter writer
                  , string[] args)
 {
     throw new System.NotImplementedException();
 }
예제 #30
0
 public static android.graphics.BitmapRegionDecoder newInstance(java.io.FileDescriptor
                                                                fd, bool isShareable)
 {
     throw new System.NotImplementedException();
 }