示例#1
0
        protected virtual unsafe void OnNotificationReceivedInApp(global::Android.Content.Context p0, string p1, string p2, global::System.Collections.Generic.IDictionary <string, string> p3, int p4, string p5, string p6)
        {
            if (id_onNotificationReceivedInApp_Landroid_content_Context_Ljava_lang_String_Ljava_lang_String_Ljava_util_Map_ILjava_lang_String_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_onNotificationReceivedInApp_Landroid_content_Context_Ljava_lang_String_Ljava_lang_String_Ljava_util_Map_ILjava_lang_String_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "onNotificationReceivedInApp", "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;ILjava/lang/String;Ljava/lang/String;)V");
            }
            IntPtr native_p1 = JNIEnv.NewString(p1);
            IntPtr native_p2 = JNIEnv.NewString(p2);
            IntPtr native_p3 = global::Android.Runtime.JavaDictionary <string, string> .ToLocalJniHandle(p3);

            IntPtr native_p5 = JNIEnv.NewString(p5);
            IntPtr native_p6 = JNIEnv.NewString(p6);

            try {
                JValue *__args = stackalloc JValue [7];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(native_p2);
                __args [3] = new JValue(native_p3);
                __args [4] = new JValue(p4);
                __args [5] = new JValue(native_p5);
                __args [6] = new JValue(native_p6);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onNotificationReceivedInApp_Landroid_content_Context_Ljava_lang_String_Ljava_lang_String_Ljava_util_Map_ILjava_lang_String_Ljava_lang_String_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onNotificationReceivedInApp", "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;ILjava/lang/String;Ljava/lang/String;)V"), __args);
                }
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
                JNIEnv.DeleteLocalRef(native_p2);
                JNIEnv.DeleteLocalRef(native_p3);
                JNIEnv.DeleteLocalRef(native_p5);
                JNIEnv.DeleteLocalRef(native_p6);
            }
        }
示例#2
0
        public unsafe UpdateConversationField(string p0, string p1, global::Com.Liveperson.Api.Response.Types.TTRType p2, int p3)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p0 = JNIEnv.NewString(p0);
            IntPtr native_p1 = JNIEnv.NewString(p1);

            try {
                JValue *__args = stackalloc JValue [4];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(p2);
                __args [3] = new JValue(p3);
                if (((object)this).GetType() != typeof(UpdateConversationField))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/api/response/types/TTRType;I)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/api/response/types/TTRType;I)V", __args);
                    return;
                }

                if (id_ctor_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_api_response_types_TTRType_I == IntPtr.Zero)
                {
                    id_ctor_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_api_response_types_TTRType_I = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/api/response/types/TTRType;I)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_api_response_types_TTRType_I, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_api_response_types_TTRType_I, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
        public unsafe EGLConfigException(string message)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Ljava/lang/String;)V";

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

            IntPtr native_message = JNIEnv.NewString(message);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue(native_message);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_message);
            }
        }
        public unsafe FilterOutputStream(global::System.IO.Stream @out) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Ljava/io/OutputStream;)V";

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

            IntPtr native__out = global::Android.Runtime.OutputStreamAdapter.ToLocalJniHandle(@out);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue(native__out);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native__out);
                global::System.GC.KeepAlive(@out);
            }
        }
示例#5
0
        public unsafe MqttUnsubAck(sbyte info, byte[] data)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_data = JNIEnv.NewArray(data);

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(info);
                __args [1] = new JValue(native_data);
                if (((object)this).GetType() != typeof(MqttUnsubAck))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(B[B)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(B[B)V", __args);
                    return;
                }

                if (id_ctor_BarrayB == IntPtr.Zero)
                {
                    id_ctor_BarrayB = JNIEnv.GetMethodID(class_ref, "<init>", "(B[B)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_BarrayB, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_BarrayB, __args);
            } finally {
                if (data != null)
                {
                    JNIEnv.CopyArray(native_data, data);
                    JNIEnv.DeleteLocalRef(native_data);
                }
            }
        }
示例#6
0
        public unsafe ForwardingImageOriginListener(global::System.Collections.Generic.ICollection <global::Com.Facebook.Drawee.Backends.Pipeline.Info.IImageOriginListener> imageOriginListeners)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Ljava/util/Set;)V";

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

            IntPtr native_imageOriginListeners = global::Android.Runtime.JavaSet <global::Com.Facebook.Drawee.Backends.Pipeline.Info.IImageOriginListener> .ToLocalJniHandle(imageOriginListeners);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue(native_imageOriginListeners);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_imageOriginListeners);
            }
        }
        public unsafe void AddNearbyGeoFence(string p0, string p1, global::Com.Amap.Api.Location.DPoint p2, float p3, int p4, string p5)
        {
            if (id_addNearbyGeoFence_Ljava_lang_String_Ljava_lang_String_Lcom_amap_api_location_DPoint_FILjava_lang_String_ == IntPtr.Zero)
            {
                id_addNearbyGeoFence_Ljava_lang_String_Ljava_lang_String_Lcom_amap_api_location_DPoint_FILjava_lang_String_ = JNIEnv.GetMethodID(class_ref, "addNearbyGeoFence", "(Ljava/lang/String;Ljava/lang/String;Lcom/amap/api/location/DPoint;FILjava/lang/String;)V");
            }
            IntPtr  native_p0 = JNIEnv.NewString(p0);
            IntPtr  native_p1 = JNIEnv.NewString(p1);
            IntPtr  native_p5 = JNIEnv.NewString(p5);
            JValue *__args    = stackalloc JValue [6];

            __args [0] = new JValue(native_p0);
            __args [1] = new JValue(native_p1);
            __args [2] = new JValue((p2 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p2).Handle);
            __args [3] = new JValue(p3);
            __args [4] = new JValue(p4);
            __args [5] = new JValue(native_p5);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_addNearbyGeoFence_Ljava_lang_String_Ljava_lang_String_Lcom_amap_api_location_DPoint_FILjava_lang_String_, __args);
            JNIEnv.DeleteLocalRef(native_p0);
            JNIEnv.DeleteLocalRef(native_p1);
            JNIEnv.DeleteLocalRef(native_p5);
        }
示例#8
0
        public virtual void Update(byte[] p0, int p1, int p2)
        {
            if (id_update_arrayBII == IntPtr.Zero)
            {
                id_update_arrayBII = JNIEnv.GetMethodID(class_ref, "update", "([BII)V");
            }
            IntPtr native_p0 = JNIEnv.NewArray(p0);

            if (GetType() == ThresholdType)
            {
                JNIEnv.CallVoidMethod(Handle, id_update_arrayBII, new JValue(native_p0), new JValue(p1), new JValue(p2));
            }
            else
            {
                JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "update", "([BII)V"), new JValue(native_p0), new JValue(p1), new JValue(p2));
            }
            if (p0 != null)
            {
                JNIEnv.CopyArray(native_p0, p0);
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
        public static unsafe int GetBitInBytes(byte[] p0, int p1)
        {
            if (id_getBitInBytes_arrayBI == IntPtr.Zero)
            {
                id_getBitInBytes_arrayBI = JNIEnv.GetStaticMethodID(class_ref, "getBitInBytes", "([BI)I");
            }
            IntPtr native_p0 = JNIEnv.NewArray(p0);

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(p1);
                int __ret = JNIEnv.CallStaticIntMethod(class_ref, id_getBitInBytes_arrayBI, __args);
                return(__ret);
            } finally {
                if (p0 != null)
                {
                    JNIEnv.CopyArray(native_p0, p0);
                    JNIEnv.DeleteLocalRef(native_p0);
                }
            }
        }
示例#10
0
        public virtual void AddPoints(params global:: Osmdroid.Api.IGeoPoint[] aPoints)
        {
            if (id_addPoints_arrayLorg_osmdroid_api_IGeoPoint_ == IntPtr.Zero)
            {
                id_addPoints_arrayLorg_osmdroid_api_IGeoPoint_ = JNIEnv.GetMethodID(class_ref, "addPoints", "([Lorg/osmdroid/api/IGeoPoint;)V");
            }
            IntPtr native_aPoints = JNIEnv.NewArray(aPoints);

            if (GetType() == ThresholdType)
            {
                JNIEnv.CallVoidMethod(Handle, id_addPoints_arrayLorg_osmdroid_api_IGeoPoint_, new JValue(native_aPoints));
            }
            else
            {
                JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "addPoints", "([Lorg/osmdroid/api/IGeoPoint;)V"), new JValue(native_aPoints));
            }
            if (aPoints != null)
            {
                JNIEnv.CopyArray(native_aPoints, aPoints);
                JNIEnv.DeleteLocalRef(native_aPoints);
            }
        }
        public byte[] Uncompress(byte[] p0, int p1, int[] p2)
        {
            if (id_uncompress_arrayBIarrayI == IntPtr.Zero)
            {
                id_uncompress_arrayBIarrayI = JNIEnv.GetMethodID(class_ref, "uncompress", "([BI[I)[B");
            }
            IntPtr native_p0 = JNIEnv.NewArray(p0);
            IntPtr native_p2 = JNIEnv.NewArray(p2);

            byte[] __ret = (byte[])JNIEnv.GetArray(JNIEnv.CallObjectMethod(Handle, id_uncompress_arrayBIarrayI, new JValue(native_p0), new JValue(p1), new JValue(native_p2)), JniHandleOwnership.TransferLocalRef, typeof(byte));
            if (p0 != null)
            {
                JNIEnv.CopyArray(native_p0, p0);
                JNIEnv.DeleteLocalRef(native_p0);
            }
            if (p2 != null)
            {
                JNIEnv.CopyArray(native_p2, p2);
                JNIEnv.DeleteLocalRef(native_p2);
            }
            return(__ret);
        }
        public unsafe GetUrlForDownloadRequest(global::Com.Liveperson.Messaging.Messaging p0, string p1, string p2, global::Com.Liveperson.Api.Response.IOnUrlReady p3)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p1 = JNIEnv.NewString(p1);
            IntPtr native_p2 = JNIEnv.NewString(p2);

            try {
                JValue *__args = stackalloc JValue [4];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(native_p2);
                __args [3] = new JValue(p3);
                if (((object)this).GetType() != typeof(GetUrlForDownloadRequest))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lcom/liveperson/messaging/Messaging;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/api/response/IOnUrlReady;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/liveperson/messaging/Messaging;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/api/response/IOnUrlReady;)V", __args);
                    return;
                }

                if (id_ctor_Lcom_liveperson_messaging_Messaging_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_api_response_IOnUrlReady_ == IntPtr.Zero)
                {
                    id_ctor_Lcom_liveperson_messaging_Messaging_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_api_response_IOnUrlReady_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/liveperson/messaging/Messaging;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/api/response/IOnUrlReady;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_liveperson_messaging_Messaging_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_api_response_IOnUrlReady_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_liveperson_messaging_Messaging_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_api_response_IOnUrlReady_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
                JNIEnv.DeleteLocalRef(native_p2);
            }
        }
        public unsafe global::System.Collections.Generic.IDictionary <string, string> QueryKeyStatus(byte[] p0)
        {
            if (id_queryKeyStatus_arrayB == IntPtr.Zero)
            {
                id_queryKeyStatus_arrayB = JNIEnv.GetMethodID(class_ref, "queryKeyStatus", "([B)Ljava/util/Map;");
            }
            IntPtr native_p0 = JNIEnv.NewArray(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);
                global::System.Collections.Generic.IDictionary <string, string> __ret = global::Android.Runtime.JavaDictionary <string, string> .FromJniHandle(JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_queryKeyStatus_arrayB, __args), JniHandleOwnership.TransferLocalRef);

                return(__ret);
            } finally {
                if (p0 != null)
                {
                    JNIEnv.CopyArray(native_p0, p0);
                    JNIEnv.DeleteLocalRef(native_p0);
                }
            }
        }
        public unsafe global::Com.Google.Android.Exoplayer.Drm.FrameworkMediaCrypto CreateMediaCrypto(global::Java.Util.UUID p0, byte[] p1)
        {
            if (id_createMediaCrypto_Ljava_util_UUID_arrayB == IntPtr.Zero)
            {
                id_createMediaCrypto_Ljava_util_UUID_arrayB = JNIEnv.GetMethodID(class_ref, "createMediaCrypto", "(Ljava/util/UUID;[B)Lcom/google/android/exoplayer/drm/FrameworkMediaCrypto;");
            }
            IntPtr native_p1 = JNIEnv.NewArray(p1);

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);
                global::Com.Google.Android.Exoplayer.Drm.FrameworkMediaCrypto __ret = global::Java.Lang.Object.GetObject <global::Com.Google.Android.Exoplayer.Drm.FrameworkMediaCrypto> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_createMediaCrypto_Ljava_util_UUID_arrayB, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                if (p1 != null)
                {
                    JNIEnv.CopyArray(native_p1, p1);
                    JNIEnv.DeleteLocalRef(native_p1);
                }
            }
        }
示例#15
0
        public unsafe int ReadAt(long p0, byte[] p1, int p2, int p3)
        {
            if (id_readAt_JarrayBII == IntPtr.Zero)
            {
                id_readAt_JarrayBII = JNIEnv.GetMethodID(class_ref, "readAt", "(J[BII)I");
            }
            IntPtr  native_p1 = JNIEnv.NewArray(p1);
            JValue *__args    = stackalloc JValue [4];

            __args [0] = new JValue(p0);
            __args [1] = new JValue(native_p1);
            __args [2] = new JValue(p2);
            __args [3] = new JValue(p3);
            int __ret = JNIEnv.CallIntMethod(((global::Java.Lang.Object) this).Handle, id_readAt_JarrayBII, __args);

            if (p1 != null)
            {
                JNIEnv.CopyArray(native_p1, p1);
                JNIEnv.DeleteLocalRef(native_p1);
            }
            return(__ret);
        }
示例#16
0
        public unsafe GPUImageMonochromeFilter(float intensity, float[] color)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_color = JNIEnv.NewArray(color);

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(intensity);
                __args [1] = new JValue(native_color);
                if (((object)this).GetType() != typeof(GPUImageMonochromeFilter))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(F[F)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(F[F)V", __args);
                    return;
                }

                if (id_ctor_FarrayF == IntPtr.Zero)
                {
                    id_ctor_FarrayF = JNIEnv.GetMethodID(class_ref, "<init>", "(F[F)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_FarrayF, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_FarrayF, __args);
            } finally {
                if (color != null)
                {
                    JNIEnv.CopyArray(native_color, color);
                    JNIEnv.DeleteLocalRef(native_color);
                }
            }
        }
示例#17
0
        public static unsafe void SetUser(string p0, string p1, string p2, global::System.Collections.Generic.IDictionary <string, global::Java.Lang.Object> p3)
        {
            const string __id      = "setUser.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/HashMap;)V";
            IntPtr       native_p0 = JNIEnv.NewString(p0);
            IntPtr       native_p1 = JNIEnv.NewString(p1);
            IntPtr       native_p2 = JNIEnv.NewString(p2);
            IntPtr       native_p3 = global::Android.Runtime.JavaDictionary <string, global::Java.Lang.Object> .ToLocalJniHandle(p3);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [4];
                __args [0] = new JniArgumentValue(native_p0);
                __args [1] = new JniArgumentValue(native_p1);
                __args [2] = new JniArgumentValue(native_p2);
                __args [3] = new JniArgumentValue(native_p3);
                _members.StaticMethods.InvokeVoidMethod(__id, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                JNIEnv.DeleteLocalRef(native_p1);
                JNIEnv.DeleteLocalRef(native_p2);
                JNIEnv.DeleteLocalRef(native_p3);
            }
        }
        protected unsafe NativeLibrary(global::System.Collections.Generic.IList <string> libraryNames)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Ljava/util/List;)V";

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

            IntPtr native_libraryNames = global::Android.Runtime.JavaList <string> .ToLocalJniHandle(libraryNames);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue(native_libraryNames);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_libraryNames);
            }
        }
        public virtual unsafe void WriteDescriptor(global::Java.Util.UUID service, global::Java.Util.UUID character, global::Java.Util.UUID descriptor, byte[] value, global::Com.Vivalnk.Sdk.Common.Ble.Connect.Request.DescriptorWrite.IDescriptorWriteListener listener, bool loggable)
        {
            const string __id         = "writeDescriptor.(Ljava/util/UUID;Ljava/util/UUID;Ljava/util/UUID;[BLcom/vivalnk/sdk/common/ble/connect/request/DescriptorWrite$DescriptorWriteListener;Z)V";
            IntPtr       native_value = JNIEnv.NewArray(value);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [6];
                __args [0] = new JniArgumentValue((service == null) ? IntPtr.Zero : ((global::Java.Lang.Object)service).Handle);
                __args [1] = new JniArgumentValue((character == null) ? IntPtr.Zero : ((global::Java.Lang.Object)character).Handle);
                __args [2] = new JniArgumentValue((descriptor == null) ? IntPtr.Zero : ((global::Java.Lang.Object)descriptor).Handle);
                __args [3] = new JniArgumentValue(native_value);
                __args [4] = new JniArgumentValue((listener == null) ? IntPtr.Zero : ((global::Java.Lang.Object)listener).Handle);
                __args [5] = new JniArgumentValue(loggable);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
                if (value != null)
                {
                    JNIEnv.CopyArray(native_value, value);
                    JNIEnv.DeleteLocalRef(native_value);
                }
            }
        }
        public override void DoFinal(byte[] p0, int p1)
        {
            if (id_doFinal_arrayBI == IntPtr.Zero)
            {
                id_doFinal_arrayBI = JNIEnv.GetMethodID(class_ref, "doFinal", "([BI)V");
            }
            IntPtr native_p0 = JNIEnv.NewArray(p0);

            if (GetType() == ThresholdType)
            {
                JNIEnv.CallVoidMethod(Handle, id_doFinal_arrayBI, new JValue(native_p0), new JValue(p1));
            }
            else
            {
                JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "doFinal", "([BI)V"), new JValue(native_p0), new JValue(p1));
            }
            if (p0 != null)
            {
                JNIEnv.CopyArray(native_p0, p0);
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
示例#21
0
        protected override unsafe void OnSysNoticeOpened(string p0, string p1, global::System.Collections.Generic.IDictionary <string, string> p2)
        {
            if (id_onSysNoticeOpened_Ljava_lang_String_Ljava_lang_String_Ljava_util_Map_ == IntPtr.Zero)
            {
                id_onSysNoticeOpened_Ljava_lang_String_Ljava_lang_String_Ljava_util_Map_ = JNIEnv.GetMethodID(class_ref, "onSysNoticeOpened", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);
            IntPtr native_p1 = JNIEnv.NewString(p1);
            IntPtr native_p2 = global::Android.Runtime.JavaDictionary <string, string> .ToLocalJniHandle(p2);

            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(native_p2);
                JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onSysNoticeOpened_Ljava_lang_String_Ljava_lang_String_Ljava_util_Map_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                JNIEnv.DeleteLocalRef(native_p1);
                JNIEnv.DeleteLocalRef(native_p2);
            }
        }
        public unsafe BleGattProfile(global::System.Collections.Generic.IDictionary <global::Java.Util.UUID, global::System.Collections.Generic.IDictionary <global::Java.Util.UUID, global::Android.Bluetooth.BluetoothGattCharacteristic> > map)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Ljava/util/Map;)V";

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

            IntPtr native_map = global::Android.Runtime.JavaDictionary <global::Java.Util.UUID, global::System.Collections.Generic.IDictionary <global::Java.Util.UUID, global::Android.Bluetooth.BluetoothGattCharacteristic> > .ToLocalJniHandle(map);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue(native_map);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_map);
            }
        }
示例#23
0
        public unsafe bool ReadFully(byte[] p0, int p1, int p2, bool p3)
        {
            if (id_readFully_arrayBIIZ == IntPtr.Zero)
            {
                id_readFully_arrayBIIZ = JNIEnv.GetMethodID(class_ref, "readFully", "([BIIZ)Z");
            }
            IntPtr  native_p0 = JNIEnv.NewArray(p0);
            JValue *__args    = stackalloc JValue [4];

            __args [0] = new JValue(native_p0);
            __args [1] = new JValue(p1);
            __args [2] = new JValue(p2);
            __args [3] = new JValue(p3);
            bool __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_readFully_arrayBIIZ, __args);

            if (p0 != null)
            {
                JNIEnv.CopyArray(native_p0, p0);
                JNIEnv.DeleteLocalRef(native_p0);
            }
            return(__ret);
        }
示例#24
0
        public unsafe SendCsatCommand(string p0, string p1, int p2, int p3)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p0 = JNIEnv.NewString(p0);
            IntPtr native_p1 = JNIEnv.NewString(p1);

            try {
                JValue *__args = stackalloc JValue [4];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(p2);
                __args [3] = new JValue(p3);
                if (((object)this).GetType() != typeof(SendCsatCommand))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Ljava/lang/String;Ljava/lang/String;II)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/lang/String;Ljava/lang/String;II)V", __args);
                    return;
                }

                if (id_ctor_Ljava_lang_String_Ljava_lang_String_II == IntPtr.Zero)
                {
                    id_ctor_Ljava_lang_String_Ljava_lang_String_II = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/String;Ljava/lang/String;II)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_II, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_II, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
        public virtual void A(string p0, string p1, string p2, int p3)
        {
            if (id_a_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_I == IntPtr.Zero)
            {
                id_a_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_I = JNIEnv.GetMethodID(class_ref, "a", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);
            IntPtr native_p1 = JNIEnv.NewString(p1);
            IntPtr native_p2 = JNIEnv.NewString(p2);

            if (GetType() == ThresholdType)
            {
                JNIEnv.CallVoidMethod(Handle, id_a_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_I, new JValue(native_p0), new JValue(native_p1), new JValue(native_p2), new JValue(p3));
            }
            else
            {
                JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "a", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V"), new JValue(native_p0), new JValue(native_p1), new JValue(native_p2), new JValue(p3));
            }
            JNIEnv.DeleteLocalRef(native_p0);
            JNIEnv.DeleteLocalRef(native_p1);
            JNIEnv.DeleteLocalRef(native_p2);
        }
            public override sealed unsafe void Write(byte[] p0, int p1, int p2)
            {
                if (id_write_arrayBII == IntPtr.Zero)
                {
                    id_write_arrayBII = JNIEnv.GetMethodID(class_ref, "write", "([BII)V");
                }
                IntPtr native_p0 = JNIEnv.NewArray(p0);

                try {
                    JValue *__args = stackalloc JValue [3];
                    __args [0] = new JValue(native_p0);
                    __args [1] = new JValue(p1);
                    __args [2] = new JValue(p2);
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_write_arrayBII, __args);
                } finally {
                    if (p0 != null)
                    {
                        JNIEnv.CopyArray(native_p0, p0);
                        JNIEnv.DeleteLocalRef(native_p0);
                    }
                }
            }
示例#27
0
        public virtual void SetP(byte[] p0)
        {
            if (id_setP_arrayB == IntPtr.Zero)
            {
                id_setP_arrayB = JNIEnv.GetMethodID(class_ref, "setP", "([B)V");
            }
            IntPtr native_p0 = JNIEnv.NewArray(p0);

            if (GetType() == ThresholdType)
            {
                JNIEnv.CallVoidMethod(Handle, id_setP_arrayB, new JValue(native_p0));
            }
            else
            {
                JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setP", "([B)V"), new JValue(native_p0));
            }
            if (p0 != null)
            {
                JNIEnv.CopyArray(native_p0, p0);
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
示例#28
0
        public static unsafe global::Java.Lang.Object MakeTexCoordsUnique(global::JavaGl.Obj.IReadableObj input, global::System.Collections.Generic.IList <global::Java.Lang.Integer> indexMapping, global::Java.Lang.Object output)
        {
            if (id_makeTexCoordsUnique_Lde_javagl_obj_ReadableObj_Ljava_util_List_Lde_javagl_obj_WritableObj_ == IntPtr.Zero)
            {
                id_makeTexCoordsUnique_Lde_javagl_obj_ReadableObj_Ljava_util_List_Lde_javagl_obj_WritableObj_ = JNIEnv.GetStaticMethodID(class_ref, "makeTexCoordsUnique", "(Lde/javagl/obj/ReadableObj;Ljava/util/List;Lde/javagl/obj/WritableObj;)Lde/javagl/obj/WritableObj;");
            }
            IntPtr native_indexMapping = global::Android.Runtime.JavaList <global::Java.Lang.Integer> .ToLocalJniHandle(indexMapping);

            IntPtr native_output = JNIEnv.ToLocalJniHandle(output);

            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(input);
                __args [1] = new JValue(native_indexMapping);
                __args [2] = new JValue(native_output);
                global::Java.Lang.Object __ret = (Java.Lang.Object)global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (JNIEnv.CallStaticObjectMethod(class_ref, id_makeTexCoordsUnique_Lde_javagl_obj_ReadableObj_Ljava_util_List_Lde_javagl_obj_WritableObj_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_indexMapping);
                JNIEnv.DeleteLocalRef(native_output);
            }
        }
示例#29
0
        public unsafe global::Com.Mikepenz.Fastadapter.Adapters.GenericFastItemAdapter AddModel(int p0, params global:: Java.Lang.Object[] p1)
        {
            if (id_addModel_IarrayLjava_lang_Object_ == IntPtr.Zero)
            {
                id_addModel_IarrayLjava_lang_Object_ = JNIEnv.GetMethodID(class_ref, "addModel", "(I[Ljava/lang/Object;)Lcom/mikepenz/fastadapter/adapters/GenericFastItemAdapter;");
            }
            IntPtr native_p1 = JNIEnv.NewArray(p1);

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);
                global::Com.Mikepenz.Fastadapter.Adapters.GenericFastItemAdapter __ret = global::Java.Lang.Object.GetObject <global::Com.Mikepenz.Fastadapter.Adapters.GenericFastItemAdapter> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_addModel_IarrayLjava_lang_Object_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                if (p1 != null)
                {
                    JNIEnv.CopyArray(native_p1, p1);
                    JNIEnv.DeleteLocalRef(native_p1);
                }
            }
        }
            public unsafe PictureHeader(int p0, short[] p1)
                : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
            {
                if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
                {
                    return;
                }

                IntPtr native_p1 = JNIEnv.NewArray(p1);

                try {
                    JValue *__args = stackalloc JValue [2];
                    __args [0] = new JValue(p0);
                    __args [1] = new JValue(native_p1);
                    if (GetType() != typeof(PictureHeader))
                    {
                        SetHandle(
                            global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(I[S)V", __args),
                            JniHandleOwnership.TransferLocalRef);
                        global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(I[S)V", __args);
                        return;
                    }

                    if (id_ctor_IarrayS == IntPtr.Zero)
                    {
                        id_ctor_IarrayS = JNIEnv.GetMethodID(class_ref, "<init>", "(I[S)V");
                    }
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_IarrayS, __args),
                        JniHandleOwnership.TransferLocalRef);
                    JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_IarrayS, __args);
                } finally {
                    if (p1 != null)
                    {
                        JNIEnv.CopyArray(native_p1, p1);
                        JNIEnv.DeleteLocalRef(native_p1);
                    }
                }
            }