public static unsafe global::Org.Neuroph.Contrib.Imgrec.Image.IImage GetImage(global::Java.IO.File p0)
 {
     if (id_getImage_Ljava_io_File_ == IntPtr.Zero)
     {
         id_getImage_Ljava_io_File_ = JNIEnv.GetStaticMethodID(class_ref, "getImage", "(Ljava/io/File;)Lorg/neuroph/contrib/imgrec/image/Image;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         global::Org.Neuroph.Contrib.Imgrec.Image.IImage __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.Image.IImage> (JNIEnv.CallStaticObjectMethod(class_ref, id_getImage_Ljava_io_File_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
Exemple #2
0
            public unsafe ProfilePictureUpload(global::Com.Applozic.Mobicomkit.Uiwidgets.People.Fragment.ProfileFragment __self, bool p1, global::Android.Net.Uri p2, global::Java.IO.File p3, global::Android.Content.Context p4)
                : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
            {
                if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
                {
                    return;
                }

                try {
                    JValue *__args = stackalloc JValue [5];
                    __args [0] = new JValue(__self);
                    __args [1] = new JValue(p1);
                    __args [2] = new JValue(p2);
                    __args [3] = new JValue(p3);
                    __args [4] = new JValue(p4);
                    if (((object)this).GetType() != typeof(ProfilePictureUpload))
                    {
                        SetHandle(
                            global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";ZLandroid/net/Uri;Ljava/io/File;Landroid/content/Context;)V", __args),
                            JniHandleOwnership.TransferLocalRef);
                        global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";ZLandroid/net/Uri;Ljava/io/File;Landroid/content/Context;)V", __args);
                        return;
                    }

                    if (id_ctor_Lcom_applozic_mobicomkit_uiwidgets_people_fragment_ProfileFragment_ZLandroid_net_Uri_Ljava_io_File_Landroid_content_Context_ == IntPtr.Zero)
                    {
                        id_ctor_Lcom_applozic_mobicomkit_uiwidgets_people_fragment_ProfileFragment_ZLandroid_net_Uri_Ljava_io_File_Landroid_content_Context_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/applozic/mobicomkit/uiwidgets/people/fragment/ProfileFragment;ZLandroid/net/Uri;Ljava/io/File;Landroid/content/Context;)V");
                    }
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_applozic_mobicomkit_uiwidgets_people_fragment_ProfileFragment_ZLandroid_net_Uri_Ljava_io_File_Landroid_content_Context_, __args),
                        JniHandleOwnership.TransferLocalRef);
                    JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_applozic_mobicomkit_uiwidgets_people_fragment_ProfileFragment_ZLandroid_net_Uri_Ljava_io_File_Landroid_content_Context_, __args);
                } finally {
                }
            }
        public static unsafe global::System.Collections.Generic.IList <global::Net.SF.Image4j.Codec.Ico.ICOImage> ReadExt(global::Java.IO.File p0)
        {
            if (id_readExt_Ljava_io_File_ == IntPtr.Zero)
            {
                id_readExt_Ljava_io_File_ = JNIEnv.GetStaticMethodID(class_ref, "readExt", "(Ljava/io/File;)Ljava/util/List;");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);
                global::System.Collections.Generic.IList <global::Net.SF.Image4j.Codec.Ico.ICOImage> __ret = global::Android.Runtime.JavaList <global::Net.SF.Image4j.Codec.Ico.ICOImage> .FromJniHandle(JNIEnv.CallStaticObjectMethod(class_ref, id_readExt_Ljava_io_File_, __args), JniHandleOwnership.TransferLocalRef);

                return(__ret);
            } finally {
            }
        }
        protected virtual unsafe global::Android.Database.Sqlite.SQLiteDatabase PerformOpen(global::Java.IO.File p0, [global::Android.Runtime.IntDef(Flag = true, Type = "Com.Facebook.Stetho.Inspector.Database.SQLiteDatabaseCompat", Fields = new string [] { "EnableWriteAheadLogging", "EnableForeignKeyConstraints" })] int p1)
        {
            if (id_performOpen_Ljava_io_File_I == IntPtr.Zero)
            {
                id_performOpen_Ljava_io_File_I = JNIEnv.GetMethodID(class_ref, "performOpen", "(Ljava/io/File;I)Landroid/database/sqlite/SQLiteDatabase;");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);

                global::Android.Database.Sqlite.SQLiteDatabase __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Android.Database.Sqlite.SQLiteDatabase> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_performOpen_Ljava_io_File_I, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Android.Database.Sqlite.SQLiteDatabase> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "performOpen", "(Ljava/io/File;I)Landroid/database/sqlite/SQLiteDatabase;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }
Exemple #5
0
        public virtual unsafe void HandleProfileimageUpload(bool p0, global::Android.Net.Uri p1, global::Java.IO.File p2)
        {
            if (id_handleProfileimageUpload_ZLandroid_net_Uri_Ljava_io_File_ == IntPtr.Zero)
            {
                id_handleProfileimageUpload_ZLandroid_net_Uri_Ljava_io_File_ = JNIEnv.GetMethodID(class_ref, "handleProfileimageUpload", "(ZLandroid/net/Uri;Ljava/io/File;)V");
            }
            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_handleProfileimageUpload_ZLandroid_net_Uri_Ljava_io_File_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "handleProfileimageUpload", "(ZLandroid/net/Uri;Ljava/io/File;)V"), __args);
                }
            } finally {
            }
        }
Exemple #6
0
        public virtual unsafe global::System.Collections.Generic.IDictionary <string, global::Java.Lang.Double> RecognizeImage(global::Java.IO.File p0)
        {
            if (id_recognizeImage_Ljava_io_File_ == IntPtr.Zero)
            {
                id_recognizeImage_Ljava_io_File_ = JNIEnv.GetMethodID(class_ref, "recognizeImage", "(Ljava/io/File;)Ljava/util/HashMap;");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                global::System.Collections.Generic.IDictionary <string, global::Java.Lang.Double> __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = global::Android.Runtime.JavaDictionary <string, global::Java.Lang.Double> .FromJniHandle(JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_recognizeImage_Ljava_io_File_, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Android.Runtime.JavaDictionary <string, global::Java.Lang.Double> .FromJniHandle(JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "recognizeImage", "(Ljava/io/File;)Ljava/util/HashMap;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }
Exemple #7
0
 public static unsafe global::Com.Bumptech.Glide.Load.Engine.Cache.IDiskCache Get(global::Java.IO.File p0, int p1)
 {
     if (id_get_Ljava_io_File_I == IntPtr.Zero)
     {
         id_get_Ljava_io_File_I = JNIEnv.GetStaticMethodID(class_ref, "get", "(Ljava/io/File;I)Lcom/bumptech/glide/load/engine/cache/DiskCache;");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         global::Com.Bumptech.Glide.Load.Engine.Cache.IDiskCache __ret = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.Load.Engine.Cache.IDiskCache> (JNIEnv.CallStaticObjectMethod(class_ref, id_get_Ljava_io_File_I, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
        public static unsafe global::Okhttp3.RequestBody Create(global::Okhttp3.MediaType contentType, global::Java.IO.File file)
        {
            const string __id = "create.(Lokhttp3/MediaType;Ljava/io/File;)Lokhttp3/RequestBody;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((contentType == null) ? IntPtr.Zero : ((global::Java.Lang.Object)contentType).Handle);
                __args [1] = new JniArgumentValue((file == null) ? IntPtr.Zero : ((global::Java.Lang.Object)file).Handle);
                var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args);
                return(global::Java.Lang.Object.GetObject <global::Okhttp3.RequestBody> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
Exemple #9
0
 public virtual unsafe bool Encode(Object data, global::Java.IO.File file, global::Bumptech.Glide.Load.Options options)
 => Encode((IResource)data, file, options);
        public virtual unsafe global::Com.Bumptech.Glide.Load.Data.IDataFetcher GetResourceFetcher(global::Java.IO.File p0, int p1, int p2)
        {
            if (id_getResourceFetcher_Ljava_io_File_II == IntPtr.Zero)
            {
                id_getResourceFetcher_Ljava_io_File_II = JNIEnv.GetMethodID(class_ref, "getResourceFetcher", "(Ljava/io/File;II)Lcom/bumptech/glide/load/data/DataFetcher;");
            }
            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);

                global::Com.Bumptech.Glide.Load.Data.IDataFetcher __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.Load.Data.IDataFetcher> (JNIEnv.CallObjectMethod(Handle, id_getResourceFetcher_Ljava_io_File_II, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.Load.Data.IDataFetcher> (JNIEnv.CallNonvirtualObjectMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getResourceFetcher", "(Ljava/io/File;II)Lcom/bumptech/glide/load/data/DataFetcher;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }
 public FileEntity(global::Java.IO.File file, string @string)                         /* MethodBuilder.Create */
 {
 }
 static void n_Fix_Ljava_io_File_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Org.Jcodec.Codecs.Mpeg12.HLSFixPMT __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.Mpeg12.HLSFixPMT> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Java.IO.File p0 = global::Java.Lang.Object.GetObject <global::Java.IO.File> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.Fix(p0);
 }
 static void n_Put_Ljava_io_File_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Algorithmia.Data.DataFile __this = global::Java.Lang.Object.GetObject <global::Com.Algorithmia.Data.DataFile> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Java.IO.File p0 = global::Java.Lang.Object.GetObject <global::Java.IO.File> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.Put(p0);
 }
Exemple #14
0
        public MapsForgeTileProvider(global::Osmdroid.TileProvider.IRegisterReceiver p0, global::Java.IO.File p1) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (Handle != IntPtr.Zero)
            {
                return;
            }

            if (GetType() != typeof(MapsForgeTileProvider))
            {
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/osmdroid/tileprovider/IRegisterReceiver;Ljava/io/File;)V", new JValue(p0), new JValue(p1)),
                    JniHandleOwnership.TransferLocalRef);
                global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(Lorg/osmdroid/tileprovider/IRegisterReceiver;Ljava/io/File;)V", new JValue(p0), new JValue(p1));
                return;
            }

            if (id_ctor_Lorg_osmdroid_tileprovider_IRegisterReceiver_Ljava_io_File_ == IntPtr.Zero)
            {
                id_ctor_Lorg_osmdroid_tileprovider_IRegisterReceiver_Ljava_io_File_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/osmdroid/tileprovider/IRegisterReceiver;Ljava/io/File;)V");
            }
            SetHandle(
                global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_osmdroid_tileprovider_IRegisterReceiver_Ljava_io_File_, new JValue(p0), new JValue(p1)),
                JniHandleOwnership.TransferLocalRef);
            JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Lorg_osmdroid_tileprovider_IRegisterReceiver_Ljava_io_File_, new JValue(p0), new JValue(p1));
        }
Exemple #15
0
 public static unsafe global::Com.Google.Android.Exoplayer.Upstream.Cache.CacheSpan CreateCacheEntry(global::Java.IO.File p0)
 {
     if (id_createCacheEntry_Ljava_io_File_ == IntPtr.Zero)
     {
         id_createCacheEntry_Ljava_io_File_ = JNIEnv.GetStaticMethodID(class_ref, "createCacheEntry", "(Ljava/io/File;)Lcom/google/android/exoplayer/upstream/cache/CacheSpan;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         global::Com.Google.Android.Exoplayer.Upstream.Cache.CacheSpan __ret = global::Java.Lang.Object.GetObject <global::Com.Google.Android.Exoplayer.Upstream.Cache.CacheSpan> (JNIEnv.CallStaticObjectMethod(class_ref, id_createCacheEntry_Ljava_io_File_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
Exemple #16
0
 public virtual void Parse(global::Java.IO.File @is, global::Org.Xml.Sax.HandlerBase hb)                         /* MethodBuilder.Create */
 {
 }
Exemple #17
0
 public static global::Osmdroid.TileProvider.Modules.IArchiveFile GetArchiveFile(global::Java.IO.File pFile)
 {
     if (id_getArchiveFile_Ljava_io_File_ == IntPtr.Zero)
     {
         id_getArchiveFile_Ljava_io_File_ = JNIEnv.GetStaticMethodID(class_ref, "getArchiveFile", "(Ljava/io/File;)Lorg/osmdroid/tileprovider/modules/IArchiveFile;");
     }
     global::Osmdroid.TileProvider.Modules.IArchiveFile __ret = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.Modules.IArchiveFile> (JNIEnv.CallStaticObjectMethod(class_ref, id_getArchiveFile_Ljava_io_File_, new JValue(pFile)), JniHandleOwnership.TransferLocalRef);
     return(__ret);
 }
Exemple #18
0
 public virtual void Parse(global::Java.IO.File @is, global::Org.Xml.Sax.Helpers.DefaultHandler hb)                         /* MethodBuilder.Create */
 {
 }
Exemple #19
0
 static void n_SetInput_Ljava_io_File_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Org.Neuroph.Contrib.Imgrec.ImageRecognitionPlugin __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Contrib.Imgrec.ImageRecognitionPlugin> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Java.IO.File p0 = global::Java.Lang.Object.GetObject <global::Java.IO.File> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.SetInput(p0);
 }
Exemple #20
0
 public virtual global::Org.W3c.Dom.IDocument Parse(global::Java.IO.File @is)                         /* MethodBuilder.Create */
 {
     return(default(global::Org.W3c.Dom.IDocument));
 }
Exemple #21
0
        public static unsafe global::Okhttp3.Internal.Cache.DiskLruCache Create(global::Okhttp3.Internal.IO.IFileSystem fileSystem, global::Java.IO.File directory, int appVersion, int valueCount, long maxSize)
        {
            const string __id = "create.(Lokhttp3/internal/io/FileSystem;Ljava/io/File;IIJ)Lokhttp3/internal/cache/DiskLruCache;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [5];
                __args [0] = new JniArgumentValue((fileSystem == null) ? IntPtr.Zero : ((global::Java.Lang.Object)fileSystem).Handle);
                __args [1] = new JniArgumentValue((directory == null) ? IntPtr.Zero : ((global::Java.Lang.Object)directory).Handle);
                __args [2] = new JniArgumentValue(appVersion);
                __args [3] = new JniArgumentValue(valueCount);
                __args [4] = new JniArgumentValue(maxSize);
                var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args);
                return(global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.Cache.DiskLruCache> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
        public virtual unsafe global::Android.Database.Sqlite.SQLiteDatabase OpenDatabase(global::Java.IO.File p0)
        {
            if (id_openDatabase_Ljava_io_File_ == IntPtr.Zero)
            {
                id_openDatabase_Ljava_io_File_ = JNIEnv.GetMethodID(class_ref, "openDatabase", "(Ljava/io/File;)Landroid/database/sqlite/SQLiteDatabase;");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                global::Android.Database.Sqlite.SQLiteDatabase __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Android.Database.Sqlite.SQLiteDatabase> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_openDatabase_Ljava_io_File_, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Android.Database.Sqlite.SQLiteDatabase> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "openDatabase", "(Ljava/io/File;)Landroid/database/sqlite/SQLiteDatabase;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }