コード例 #1
0
        /// <summary>
        /// returns the provided dps in pixels.
        /// </summary>
        /// <param name="px">Pixels.</param>
        public static int dpsToPixels(int dps, global::Android.Content.Res.Resources r)
        {
            float scale  = r.DisplayMetrics.Density;
            int   pixels = (int)(dps * scale + 0.5f);

            return(pixels);
        }
        public unsafe GlideBitmapDrawable(global::Android.Content.Res.Resources p0, global::Android.Graphics.Bitmap p1)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                if (GetType() != typeof(GlideBitmapDrawable))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Landroid/content/res/Resources;Landroid/graphics/Bitmap;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(Landroid/content/res/Resources;Landroid/graphics/Bitmap;)V", __args);
                    return;
                }

                if (id_ctor_Landroid_content_res_Resources_Landroid_graphics_Bitmap_ == IntPtr.Zero)
                {
                    id_ctor_Landroid_content_res_Resources_Landroid_graphics_Bitmap_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/content/res/Resources;Landroid/graphics/Bitmap;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_content_res_Resources_Landroid_graphics_Bitmap_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Landroid_content_res_Resources_Landroid_graphics_Bitmap_, __args);
            } finally {
            }
        }
コード例 #3
0
        public unsafe OffHours(global::Android.Content.Res.Resources res, global::Android.Widget.TextView view)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(res);
                __args [1] = new JValue(view);
                if (((object)this).GetType() != typeof(OffHours))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Landroid/content/res/Resources;Landroid/widget/TextView;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Landroid/content/res/Resources;Landroid/widget/TextView;)V", __args);
                    return;
                }

                if (id_ctor_Landroid_content_res_Resources_Landroid_widget_TextView_ == IntPtr.Zero)
                {
                    id_ctor_Landroid_content_res_Resources_Landroid_widget_TextView_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/content/res/Resources;Landroid/widget/TextView;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_content_res_Resources_Landroid_widget_TextView_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Landroid_content_res_Resources_Landroid_widget_TextView_, __args);
            } finally {
            }
        }
        public unsafe ResourceLoader(global::Android.Content.Res.Resources p0, global::Com.Bumptech.Glide.Load.Model.IModelLoader p1)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                if (GetType() != typeof(ResourceLoader))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Landroid/content/res/Resources;Lcom/bumptech/glide/load/model/ModelLoader;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(Landroid/content/res/Resources;Lcom/bumptech/glide/load/model/ModelLoader;)V", __args);
                    return;
                }

                if (id_ctor_Landroid_content_res_Resources_Lcom_bumptech_glide_load_model_ModelLoader_ == IntPtr.Zero)
                {
                    id_ctor_Landroid_content_res_Resources_Lcom_bumptech_glide_load_model_ModelLoader_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/content/res/Resources;Lcom/bumptech/glide/load/model/ModelLoader;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_content_res_Resources_Lcom_bumptech_glide_load_model_ModelLoader_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Landroid_content_res_Resources_Lcom_bumptech_glide_load_model_ModelLoader_, __args);
            } finally {
            }
        }
コード例 #5
0
 static void n_Init_Landroid_content_res_Resources_Lcom_facebook_drawee_components_DeferredReleaser_Lcom_facebook_imagepipeline_drawable_DrawableFactory_Ljava_util_concurrent_Executor_Lcom_facebook_imagepipeline_cache_MemoryCache_Lcom_facebook_common_internal_ImmutableList_Lcom_facebook_common_internal_Supplier_(IntPtr jnienv, IntPtr native__this, IntPtr native_resources, IntPtr native_deferredReleaser, IntPtr native_animatedDrawableFactory, IntPtr native_uiThreadExecutor, IntPtr native_memoryCache, IntPtr native_drawableFactories, IntPtr native_debugOverlayEnabledSupplier)
 {
     global::Com.Facebook.Drawee.Backends.Pipeline.PipelineDraweeControllerFactory __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Drawee.Backends.Pipeline.PipelineDraweeControllerFactory> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Content.Res.Resources resources = global::Java.Lang.Object.GetObject <global::Android.Content.Res.Resources> (native_resources, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Drawee.Components.DeferredReleaser      deferredReleaser        = global::Java.Lang.Object.GetObject <global::Com.Facebook.Drawee.Components.DeferredReleaser> (native_deferredReleaser, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Imagepipeline.Drawable.IDrawableFactory animatedDrawableFactory = (global::Com.Facebook.Imagepipeline.Drawable.IDrawableFactory)global::Java.Lang.Object.GetObject <global::Com.Facebook.Imagepipeline.Drawable.IDrawableFactory> (native_animatedDrawableFactory, JniHandleOwnership.DoNotTransfer);
     global::Java.Util.Concurrent.IExecutor uiThreadExecutor                           = (global::Java.Util.Concurrent.IExecutor)global::Java.Lang.Object.GetObject <global::Java.Util.Concurrent.IExecutor> (native_uiThreadExecutor, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Imagepipeline.Cache.IMemoryCache memoryCache                 = (global::Com.Facebook.Imagepipeline.Cache.IMemoryCache)global::Java.Lang.Object.GetObject <global::Com.Facebook.Imagepipeline.Cache.IMemoryCache> (native_memoryCache, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Common.Internal.ImmutableList    drawableFactories           = global::Java.Lang.Object.GetObject <global::Com.Facebook.Common.Internal.ImmutableList> (native_drawableFactories, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Common.Internal.ISupplier        debugOverlayEnabledSupplier = (global::Com.Facebook.Common.Internal.ISupplier)global::Java.Lang.Object.GetObject <global::Com.Facebook.Common.Internal.ISupplier> (native_debugOverlayEnabledSupplier, JniHandleOwnership.DoNotTransfer);
     __this.Init(resources, deferredReleaser, animatedDrawableFactory, uiThreadExecutor, memoryCache, drawableFactories, debugOverlayEnabledSupplier);
 }
        public unsafe global::Android.Content.Res.Resources GetResources(global::Java.Lang.Object p0)
        {
            if (id_getResources_Ljava_lang_Object_ == IntPtr.Zero)
            {
                id_getResources_Ljava_lang_Object_ = JNIEnv.GetMethodID(class_ref, "getResources", "(Ljava/lang/Object;)Landroid/content/res/Resources;");
            }
            IntPtr  native_p0 = JNIEnv.ToLocalJniHandle(p0);
            JValue *__args    = stackalloc JValue [1];

            __args [0] = new JValue(native_p0);
            global::Android.Content.Res.Resources __ret = global::Java.Lang.Object.GetObject <global::Android.Content.Res.Resources> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_getResources_Ljava_lang_Object_, __args), JniHandleOwnership.TransferLocalRef);
            JNIEnv.DeleteLocalRef(native_p0);
            return(__ret);
        }
コード例 #7
0
 public static unsafe int DpToPx(float p0, global::Android.Content.Res.Resources p1)
 {
     if (id_dpToPx_FLandroid_content_res_Resources_ == IntPtr.Zero)
     {
         id_dpToPx_FLandroid_content_res_Resources_ = JNIEnv.GetStaticMethodID(class_ref, "dpToPx", "(FLandroid/content/res/Resources;)I");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         int __ret = JNIEnv.CallStaticIntMethod(class_ref, id_dpToPx_FLandroid_content_res_Resources_, __args);
         return(__ret);
     } finally {
     }
 }
 public static unsafe string GetIdString(global::Android.Content.Res.Resources p0, int p1)
 {
     if (id_getIdString_Landroid_content_res_Resources_I == IntPtr.Zero)
     {
         id_getIdString_Landroid_content_res_Resources_I = JNIEnv.GetStaticMethodID(class_ref, "getIdString", "(Landroid/content/res/Resources;I)Ljava/lang/String;");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         string __ret = JNIEnv.GetString(JNIEnv.CallStaticObjectMethod(class_ref, id_getIdString_Landroid_content_res_Resources_I, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
コード例 #9
0
        public virtual unsafe void Init(global::Android.Content.Res.Resources resources, global::Com.Facebook.Drawee.Components.DeferredReleaser deferredReleaser, global::Com.Facebook.Imagepipeline.Drawable.IDrawableFactory animatedDrawableFactory, global::Java.Util.Concurrent.IExecutor uiThreadExecutor, global::Com.Facebook.Imagepipeline.Cache.IMemoryCache memoryCache, global::Com.Facebook.Common.Internal.ImmutableList drawableFactories, global::Com.Facebook.Common.Internal.ISupplier debugOverlayEnabledSupplier)
        {
            const string __id = "init.(Landroid/content/res/Resources;Lcom/facebook/drawee/components/DeferredReleaser;Lcom/facebook/imagepipeline/drawable/DrawableFactory;Ljava/util/concurrent/Executor;Lcom/facebook/imagepipeline/cache/MemoryCache;Lcom/facebook/common/internal/ImmutableList;Lcom/facebook/common/internal/Supplier;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [7];
                __args [0] = new JniArgumentValue((resources == null) ? IntPtr.Zero : ((global::Java.Lang.Object)resources).Handle);
                __args [1] = new JniArgumentValue((deferredReleaser == null) ? IntPtr.Zero : ((global::Java.Lang.Object)deferredReleaser).Handle);
                __args [2] = new JniArgumentValue((animatedDrawableFactory == null) ? IntPtr.Zero : ((global::Java.Lang.Object)animatedDrawableFactory).Handle);
                __args [3] = new JniArgumentValue((uiThreadExecutor == null) ? IntPtr.Zero : ((global::Java.Lang.Object)uiThreadExecutor).Handle);
                __args [4] = new JniArgumentValue((memoryCache == null) ? IntPtr.Zero : ((global::Java.Lang.Object)memoryCache).Handle);
                __args [5] = new JniArgumentValue((drawableFactories == null) ? IntPtr.Zero : ((global::Java.Lang.Object)drawableFactories).Handle);
                __args [6] = new JniArgumentValue((debugOverlayEnabledSupplier == null) ? IntPtr.Zero : ((global::Java.Lang.Object)debugOverlayEnabledSupplier).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }
コード例 #10
0
        public unsafe XResForwarder(global::Android.Content.Res.Resources res, int id)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Landroid/content/res/Resources;I)V";

            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((res == null) ? IntPtr.Zero : ((global::Java.Lang.Object)res).Handle);
                __args [1] = new JniArgumentValue(id);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
コード例 #11
0
        public unsafe DefaultDrawableFactory(global::Android.Content.Res.Resources resources, global::Com.Facebook.Imagepipeline.Drawable.IDrawableFactory animatedDrawableFactory)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Landroid/content/res/Resources;Lcom/facebook/imagepipeline/drawable/DrawableFactory;)V";

            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((resources == null) ? IntPtr.Zero : ((global::Java.Lang.Object)resources).Handle);
                __args [1] = new JniArgumentValue((animatedDrawableFactory == null) ? IntPtr.Zero : ((global::Java.Lang.Object)animatedDrawableFactory).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
        public unsafe RoundedBitmapDrawable(global::Android.Content.Res.Resources res, global::Android.Graphics.Bitmap bitmap, global::Android.Graphics.Paint paint)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Landroid/content/res/Resources;Landroid/graphics/Bitmap;Landroid/graphics/Paint;)V";

            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((res == null) ? IntPtr.Zero : ((global::Java.Lang.Object)res).Handle);
                __args [1] = new JniArgumentValue((bitmap == null) ? IntPtr.Zero : ((global::Java.Lang.Object)bitmap).Handle);
                __args [2] = new JniArgumentValue((paint == null) ? IntPtr.Zero : ((global::Java.Lang.Object)paint).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
コード例 #13
0
        public unsafe InlineMessagesController(global::Android.Content.Context p0, global::Android.Content.Res.Resources p1, global::Android.Views.View p2, global::Com.Liveperson.Infra.UI.View.Uicomponents.IConversationProvider p3, global::System.Collections.Generic.IDictionary <string, global::Java.Lang.Boolean> p4)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p4 = global::Android.Runtime.JavaDictionary <string, global::Java.Lang.Boolean> .ToLocalJniHandle(p4);

            try {
                JValue *__args = stackalloc JValue [5];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);
                __args [3] = new JValue(p3);
                __args [4] = new JValue(native_p4);
                if (((object)this).GetType() != typeof(InlineMessagesController))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Landroid/content/Context;Landroid/content/res/Resources;Landroid/view/View;Lcom/liveperson/infra/ui/view/uicomponents/IConversationProvider;Ljava/util/HashMap;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Landroid/content/Context;Landroid/content/res/Resources;Landroid/view/View;Lcom/liveperson/infra/ui/view/uicomponents/IConversationProvider;Ljava/util/HashMap;)V", __args);
                    return;
                }

                if (id_ctor_Landroid_content_Context_Landroid_content_res_Resources_Landroid_view_View_Lcom_liveperson_infra_ui_view_uicomponents_IConversationProvider_Ljava_util_HashMap_ == IntPtr.Zero)
                {
                    id_ctor_Landroid_content_Context_Landroid_content_res_Resources_Landroid_view_View_Lcom_liveperson_infra_ui_view_uicomponents_IConversationProvider_Ljava_util_HashMap_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/content/Context;Landroid/content/res/Resources;Landroid/view/View;Lcom/liveperson/infra/ui/view/uicomponents/IConversationProvider;Ljava/util/HashMap;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_content_Context_Landroid_content_res_Resources_Landroid_view_View_Lcom_liveperson_infra_ui_view_uicomponents_IConversationProvider_Ljava_util_HashMap_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Landroid_content_Context_Landroid_content_res_Resources_Landroid_view_View_Lcom_liveperson_infra_ui_view_uicomponents_IConversationProvider_Ljava_util_HashMap_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p4);
            }
        }
コード例 #14
0
        public unsafe TTRSnackBar(global::Android.Content.Res.Resources p0, global::Android.Views.View p1, global::System.Collections.Generic.IDictionary <string, global::Java.Lang.Boolean> p2)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p2 = global::Android.Runtime.JavaDictionary <string, global::Java.Lang.Boolean> .ToLocalJniHandle(p2);

            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(native_p2);
                if (((object)this).GetType() != typeof(TTRSnackBar))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Landroid/content/res/Resources;Landroid/view/View;Ljava/util/HashMap;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Landroid/content/res/Resources;Landroid/view/View;Ljava/util/HashMap;)V", __args);
                    return;
                }

                if (id_ctor_Landroid_content_res_Resources_Landroid_view_View_Ljava_util_HashMap_ == IntPtr.Zero)
                {
                    id_ctor_Landroid_content_res_Resources_Landroid_view_View_Ljava_util_HashMap_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/content/res/Resources;Landroid/view/View;Ljava/util/HashMap;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_content_res_Resources_Landroid_view_View_Ljava_util_HashMap_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Landroid_content_res_Resources_Landroid_view_View_Ljava_util_HashMap_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p2);
            }
        }
コード例 #15
0
ファイル: KXAndroidLayoutLocator.cs プロジェクト: jkells/kx
 public KXAndroidLayoutLocator(global::Android.Content.Res.Resources resources, string packageName)
 {
     _resources = resources;
     _packageName = packageName;
 }
コード例 #16
0
        public static int pixelsToDps(int px, global::Android.Content.Res.Resources r)
        {
            int dps = (int)Math.Ceiling((r.DisplayMetrics.Xdpi / r.DisplayMetrics.Density) * px);

            return(dps);
        }
コード例 #17
0
        protected virtual unsafe global::Com.Facebook.Drawee.Backends.Pipeline.PipelineDraweeController InternalCreateController(global::Android.Content.Res.Resources resources, global::Com.Facebook.Drawee.Components.DeferredReleaser deferredReleaser, global::Com.Facebook.Imagepipeline.Drawable.IDrawableFactory animatedDrawableFactory, global::Java.Util.Concurrent.IExecutor uiThreadExecutor, global::Com.Facebook.Imagepipeline.Cache.IMemoryCache memoryCache, global::Com.Facebook.Common.Internal.ImmutableList drawableFactories)
        {
            const string __id = "internalCreateController.(Landroid/content/res/Resources;Lcom/facebook/drawee/components/DeferredReleaser;Lcom/facebook/imagepipeline/drawable/DrawableFactory;Ljava/util/concurrent/Executor;Lcom/facebook/imagepipeline/cache/MemoryCache;Lcom/facebook/common/internal/ImmutableList;)Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [6];
                __args [0] = new JniArgumentValue((resources == null) ? IntPtr.Zero : ((global::Java.Lang.Object)resources).Handle);
                __args [1] = new JniArgumentValue((deferredReleaser == null) ? IntPtr.Zero : ((global::Java.Lang.Object)deferredReleaser).Handle);
                __args [2] = new JniArgumentValue((animatedDrawableFactory == null) ? IntPtr.Zero : ((global::Java.Lang.Object)animatedDrawableFactory).Handle);
                __args [3] = new JniArgumentValue((uiThreadExecutor == null) ? IntPtr.Zero : ((global::Java.Lang.Object)uiThreadExecutor).Handle);
                __args [4] = new JniArgumentValue((memoryCache == null) ? IntPtr.Zero : ((global::Java.Lang.Object)memoryCache).Handle);
                __args [5] = new JniArgumentValue((drawableFactories == null) ? IntPtr.Zero : ((global::Java.Lang.Object)drawableFactories).Handle);
                var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Com.Facebook.Drawee.Backends.Pipeline.PipelineDraweeController> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
        public static unsafe global::Com.Facebook.Drawee.Drawable.RoundedBitmapDrawable FromBitmapDrawable(global::Android.Content.Res.Resources res, global::Android.Graphics.Drawables.BitmapDrawable bitmapDrawable)
        {
            const string __id = "fromBitmapDrawable.(Landroid/content/res/Resources;Landroid/graphics/drawable/BitmapDrawable;)Lcom/facebook/drawee/drawable/RoundedBitmapDrawable;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((res == null) ? IntPtr.Zero : ((global::Java.Lang.Object)res).Handle);
                __args [1] = new JniArgumentValue((bitmapDrawable == null) ? IntPtr.Zero : ((global::Java.Lang.Object)bitmapDrawable).Handle);
                var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args);
                return(global::Java.Lang.Object.GetObject <global::Com.Facebook.Drawee.Drawable.RoundedBitmapDrawable> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }