public virtual unsafe long CalculateEffectiveTTR(string p0, global::Com.Liveperson.Api.Response.Types.TTRType p1, long p2, long p3, long p4)
        {
            if (id_calculateEffectiveTTR_Ljava_lang_String_Lcom_liveperson_api_response_types_TTRType_JJJ == IntPtr.Zero)
            {
                id_calculateEffectiveTTR_Ljava_lang_String_Lcom_liveperson_api_response_types_TTRType_JJJ = JNIEnv.GetMethodID(class_ref, "calculateEffectiveTTR", "(Ljava/lang/String;Lcom/liveperson/api/response/types/TTRType;JJJ)J");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            try {
                JValue *__args = stackalloc JValue [5];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);
                __args [3] = new JValue(p3);
                __args [4] = new JValue(p4);

                long __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallLongMethod(((global::Java.Lang.Object) this).Handle, id_calculateEffectiveTTR_Ljava_lang_String_Lcom_liveperson_api_response_types_TTRType_JJJ, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualLongMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "calculateEffectiveTTR", "(Ljava/lang/String;Lcom/liveperson/api/response/types/TTRType;JJJ)J"), __args);
                }
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
        public virtual unsafe long FixTs(int p0, global::Java.Nio.ByteBuffer p1, bool p2)
        {
            if (id_fixTs_ILjava_nio_ByteBuffer_Z == IntPtr.Zero)
            {
                id_fixTs_ILjava_nio_ByteBuffer_Z = JNIEnv.GetMethodID(class_ref, "fixTs", "(ILjava/nio/ByteBuffer;Z)J");
            }
            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);

                long __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallLongMethod(((global::Java.Lang.Object) this).Handle, id_fixTs_ILjava_nio_ByteBuffer_Z, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualLongMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "fixTs", "(ILjava/nio/ByteBuffer;Z)J"), __args);
                }
                return(__ret);
            } finally {
            }
        }
            public virtual unsafe long InitializeAndLoadNativeLibrary(string libraryName)
            {
                if (id_initializeAndLoadNativeLibrary_Ljava_lang_String_ == IntPtr.Zero)
                {
                    id_initializeAndLoadNativeLibrary_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "initializeAndLoadNativeLibrary", "(Ljava/lang/String;)J");
                }
                IntPtr native_libraryName = JNIEnv.NewString(libraryName);

                try {
                    JValue *__args = stackalloc JValue [1];
                    __args [0] = new JValue(native_libraryName);

                    long __ret;
                    if (((object)this).GetType() == ThresholdType)
                    {
                        __ret = JNIEnv.CallLongMethod(((global::Java.Lang.Object) this).Handle, id_initializeAndLoadNativeLibrary_Ljava_lang_String_, __args);
                    }
                    else
                    {
                        __ret = JNIEnv.CallNonvirtualLongMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "initializeAndLoadNativeLibrary", "(Ljava/lang/String;)J"), __args);
                    }
                    return(__ret);
                } finally {
                    JNIEnv.DeleteLocalRef(native_libraryName);
                }
            }
        public virtual long GetEncodedLength(byte[] p0)
        {
            if (id_getEncodedLength_arrayB == IntPtr.Zero)
            {
                id_getEncodedLength_arrayB = JNIEnv.GetMethodID(class_ref, "getEncodedLength", "([B)J");
            }
            IntPtr native_p0 = JNIEnv.NewArray(p0);

            long __ret;

            if (GetType() == ThresholdType)
            {
                __ret = JNIEnv.CallLongMethod(Handle, id_getEncodedLength_arrayB, new JValue(native_p0));
            }
            else
            {
                __ret = JNIEnv.CallNonvirtualLongMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getEncodedLength", "([B)J"), new JValue(native_p0));
            }
            if (p0 != null)
            {
                JNIEnv.CopyArray(native_p0, p0);
                JNIEnv.DeleteLocalRef(native_p0);
            }
            return(__ret);
        }
        public virtual unsafe long GetLongValue(string p0, string p1, long p2)
        {
            if (id_getLongValue_Ljava_lang_String_Ljava_lang_String_J == IntPtr.Zero)
            {
                id_getLongValue_Ljava_lang_String_Ljava_lang_String_J = JNIEnv.GetMethodID(class_ref, "getLongValue", "(Ljava/lang/String;Ljava/lang/String;J)J");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);
            IntPtr native_p1 = JNIEnv.NewString(p1);

            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(p2);

                long __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallLongMethod(((global::Java.Lang.Object) this).Handle, id_getLongValue_Ljava_lang_String_Ljava_lang_String_J, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualLongMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getLongValue", "(Ljava/lang/String;Ljava/lang/String;J)J"), __args);
                }
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
        public virtual unsafe long GetEncodedLength(byte[] p0)
        {
            if (id_getEncodedLength_arrayB == IntPtr.Zero)
            {
                id_getEncodedLength_arrayB = JNIEnv.GetMethodID(class_ref, "getEncodedLength", "([B)J");
            }
            IntPtr native_p0 = JNIEnv.NewArray(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);

                long __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallLongMethod(((global::Java.Lang.Object) this).Handle, id_getEncodedLength_arrayB, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualLongMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getEncodedLength", "([B)J"), __args);
                }
                return(__ret);
            } finally {
                if (p0 != null)
                {
                    JNIEnv.CopyArray(native_p0, p0);
                    JNIEnv.DeleteLocalRef(native_p0);
                }
            }
        }
Exemple #7
0
        public virtual unsafe long InsertOrUpdate(global::Android.Content.ContentValues p0, global::Android.Content.ContentValues p1, string p2, string[] p3)
        {
            if (id_insertOrUpdate_Landroid_content_ContentValues_Landroid_content_ContentValues_Ljava_lang_String_arrayLjava_lang_String_ == IntPtr.Zero)
            {
                id_insertOrUpdate_Landroid_content_ContentValues_Landroid_content_ContentValues_Ljava_lang_String_arrayLjava_lang_String_ = JNIEnv.GetMethodID(class_ref, "insertOrUpdate", "(Landroid/content/ContentValues;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)J");
            }
            IntPtr native_p2 = JNIEnv.NewString(p2);
            IntPtr native_p3 = JNIEnv.NewArray(p3);

            try {
                JValue *__args = stackalloc JValue [4];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(native_p2);
                __args [3] = new JValue(native_p3);

                long __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallLongMethod(((global::Java.Lang.Object) this).Handle, id_insertOrUpdate_Landroid_content_ContentValues_Landroid_content_ContentValues_Ljava_lang_String_arrayLjava_lang_String_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualLongMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "insertOrUpdate", "(Landroid/content/ContentValues;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)J"), __args);
                }
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p2);
                if (p3 != null)
                {
                    JNIEnv.CopyArray(native_p3, p3);
                    JNIEnv.DeleteLocalRef(native_p3);
                }
            }
        }
Exemple #8
0
		public override unsafe long GetItemId (int p0)
		{
			if (id_getItemId_I == IntPtr.Zero)
				id_getItemId_I = JNIEnv.GetMethodID (class_ref, "getItemId", "(I)J");
			try {
				JValue* __args = stackalloc JValue [1];
				__args [0] = new JValue (p0);

				if (((object) this).GetType () == ThresholdType)
					return JNIEnv.CallLongMethod (((global::Java.Lang.Object) this).Handle, id_getItemId_I, __args);
				else
					return JNIEnv.CallNonvirtualLongMethod (((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID (ThresholdClass, "getItemId", "(I)J"), __args);
			} finally {
			}
		}
Exemple #9
0
        public override long GetItemId(int p0)
        {
            if (id_getItemId_I == IntPtr.Zero)
            {
                id_getItemId_I = JNIEnv.GetMethodID(class_ref, "getItemId", "(I)J");
            }

            if (GetType() == ThresholdType)
            {
                return(JNIEnv.CallLongMethod(Handle, id_getItemId_I, new JValue(p0)));
            }
            else
            {
                return(JNIEnv.CallNonvirtualLongMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getItemId", "(I)J"), new JValue(p0)));
            }
        }
 public virtual unsafe long Create()
 {
     if (id_Create == IntPtr.Zero)
     {
         id_Create = JNIEnv.GetMethodID(class_ref, "Create", "()J");
     }
     try {
         if (GetType() == ThresholdType)
         {
             return(JNIEnv.CallLongMethod(Handle, id_Create));
         }
         else
         {
             return(JNIEnv.CallNonvirtualLongMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "Create", "()J")));
         }
     } finally {
     }
 }
 public virtual unsafe long TimeoutNanos()
 {
     if (id_timeoutNanos == IntPtr.Zero)
     {
         id_timeoutNanos = JNIEnv.GetMethodID(class_ref, "timeoutNanos", "()J");
     }
     try {
         if (GetType() == ThresholdType)
         {
             return(JNIEnv.CallLongMethod(Handle, id_timeoutNanos));
         }
         else
         {
             return(JNIEnv.CallNonvirtualLongMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "timeoutNanos", "()J")));
         }
     } finally {
     }
 }
 public virtual unsafe long Get()
 {
     if (id_get == IntPtr.Zero)
     {
         id_get = JNIEnv.GetMethodID(class_ref, "get", "()J");
     }
     try {
         if (GetType() == ThresholdType)
         {
             return(JNIEnv.CallLongMethod(((global::Java.Lang.Object) this).Handle, id_get));
         }
         else
         {
             return(JNIEnv.CallNonvirtualLongMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "get", "()J")));
         }
     } finally {
     }
 }
        protected override long GetImageId(global::Android.Database.ICursor p0)
        {
            if (id_getImageId_Landroid_database_Cursor_ == IntPtr.Zero)
            {
                id_getImageId_Landroid_database_Cursor_ = JNIEnv.GetMethodID(class_ref, "getImageId", "(Landroid/database/Cursor;)J");
            }

            long __ret;

            if (GetType() == ThresholdType)
            {
                __ret = JNIEnv.CallLongMethod(Handle, id_getImageId_Landroid_database_Cursor_, new JValue(p0));
            }
            else
            {
                __ret = JNIEnv.CallNonvirtualLongMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getImageId", "(Landroid/database/Cursor;)J"), new JValue(p0));
            }
            return(__ret);
        }
Exemple #14
0
        public virtual long GetLong(string p0)
        {
            if (id_getLong_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_getLong_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "getLong", "(Ljava/lang/String;)J");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            long __ret;

            if (GetType() == ThresholdType)
            {
                __ret = JNIEnv.CallLongMethod(Handle, id_getLong_Ljava_lang_String_, new JValue(native_p0));
            }
            else
            {
                __ret = JNIEnv.CallNonvirtualLongMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getLong", "(Ljava/lang/String;)J"), new JValue(native_p0));
            }
            JNIEnv.DeleteLocalRef(native_p0);
            return(__ret);
        }
        public virtual unsafe long Skip(long byteCount)
        {
            if (id_skip_J == IntPtr.Zero)
            {
                id_skip_J = JNIEnv.GetMethodID(class_ref, "skip", "(J)J");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(byteCount);

                if (GetType() == ThresholdType)
                {
                    return(JNIEnv.CallLongMethod(Handle, id_skip_J, __args));
                }
                else
                {
                    return(JNIEnv.CallNonvirtualLongMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "skip", "(J)J"), __args));
                }
            } finally {
            }
        }
        public virtual unsafe long SetPos(int p0)
        {
            if (id_setPos_I == IntPtr.Zero)
            {
                id_setPos_I = JNIEnv.GetMethodID(class_ref, "setPos", "(I)J");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (((object)this).GetType() == ThresholdType)
                {
                    return(JNIEnv.CallLongMethod(((global::Java.Lang.Object) this).Handle, id_setPos_I, __args));
                }
                else
                {
                    return(JNIEnv.CallNonvirtualLongMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setPos", "(I)J"), __args));
                }
            } finally {
            }
        }
Exemple #17
0
            public virtual unsafe long GetDurationUs(int p0, long p1)
            {
                if (id_getDurationUs_IJ == IntPtr.Zero)
                {
                    id_getDurationUs_IJ = JNIEnv.GetMethodID(class_ref, "getDurationUs", "(IJ)J");
                }
                try {
                    JValue *__args = stackalloc JValue [2];
                    __args [0] = new JValue(p0);
                    __args [1] = new JValue(p1);

                    if (GetType() == ThresholdType)
                    {
                        return(JNIEnv.CallLongMethod(((global::Java.Lang.Object) this).Handle, id_getDurationUs_IJ, __args));
                    }
                    else
                    {
                        return(JNIEnv.CallNonvirtualLongMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getDurationUs", "(IJ)J"), __args));
                    }
                } finally {
                }
            }
Exemple #18
0
        public virtual unsafe long Insert(global::Android.Content.ContentValues p0)
        {
            if (id_insert_Landroid_content_ContentValues_ == IntPtr.Zero)
            {
                id_insert_Landroid_content_ContentValues_ = JNIEnv.GetMethodID(class_ref, "insert", "(Landroid/content/ContentValues;)J");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                long __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallLongMethod(((global::Java.Lang.Object) this).Handle, id_insert_Landroid_content_ContentValues_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualLongMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "insert", "(Landroid/content/ContentValues;)J"), __args);
                }
                return(__ret);
            } finally {
            }
        }
Exemple #19
0
        protected override unsafe long DoWithTimestamp(int p0, long p1, bool p2)
        {
            if (id_doWithTimestamp_IJZ == IntPtr.Zero)
            {
                id_doWithTimestamp_IJZ = JNIEnv.GetMethodID(class_ref, "doWithTimestamp", "(IJZ)J");
            }
            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);

                if (GetType() == ThresholdType)
                {
                    return(JNIEnv.CallLongMethod(((global::Java.Lang.Object) this).Handle, id_doWithTimestamp_IJZ, __args));
                }
                else
                {
                    return(JNIEnv.CallNonvirtualLongMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "doWithTimestamp", "(IJZ)J"), __args));
                }
            } finally {
            }
        }
Exemple #20
0
        public virtual unsafe long Read(global::Okio.Buffer p0, long p1)
        {
            if (id_read_Lokio_Buffer_J == IntPtr.Zero)
            {
                id_read_Lokio_Buffer_J = JNIEnv.GetMethodID(class_ref, "read", "(Lokio/Buffer;J)J");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);

                long __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallLongMethod(Handle, id_read_Lokio_Buffer_J, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualLongMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "read", "(Lokio/Buffer;J)J"), __args);
                }
                return(__ret);
            } finally {
            }
        }