Exemple #1
0
        public static unsafe bool IsEmpty(global::Java.Lang.ICharSequence cs)
        {
            if (id_isEmpty_Ljava_lang_CharSequence_ == IntPtr.Zero)
            {
                id_isEmpty_Ljava_lang_CharSequence_ = JNIEnv.GetStaticMethodID(class_ref, "isEmpty", "(Ljava/lang/CharSequence;)Z");
            }
            IntPtr native_cs = CharSequence.ToLocalJniHandle(cs);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_cs);
                bool __ret = JNIEnv.CallStaticBooleanMethod(class_ref, id_isEmpty_Ljava_lang_CharSequence_, __args);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_cs);
            }
        }
        public static unsafe void WriteCharSequenceAsReturnValue(global::Android.OS.Parcel parcel, global::Java.Lang.ICharSequence charSequence)
        {
            if (id_writeCharSequenceAsReturnValue_Landroid_os_Parcel_Ljava_lang_CharSequence_ == IntPtr.Zero)
            {
                id_writeCharSequenceAsReturnValue_Landroid_os_Parcel_Ljava_lang_CharSequence_ = JNIEnv.GetStaticMethodID(class_ref, "writeCharSequenceAsReturnValue", "(Landroid/os/Parcel;Ljava/lang/CharSequence;)V");
            }
            IntPtr native_charSequence = CharSequence.ToLocalJniHandle(charSequence);

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(parcel);
                __args [1] = new JValue(native_charSequence);
                JNIEnv.CallStaticVoidMethod(class_ref, id_writeCharSequenceAsReturnValue_Landroid_os_Parcel_Ljava_lang_CharSequence_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_charSequence);
            }
        }
        public static unsafe bool ContainsAny(global::Java.Lang.ICharSequence cs, global::Java.Lang.ICharSequence searchChars)
        {
            const string __id               = "containsAny.(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z";
            IntPtr       native_cs          = CharSequence.ToLocalJniHandle(cs);
            IntPtr       native_searchChars = CharSequence.ToLocalJniHandle(searchChars);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue(native_cs);
                __args [1] = new JniArgumentValue(native_searchChars);
                var __rm = _members.StaticMethods.InvokeBooleanMethod(__id, __args);
                return(__rm);
            } finally {
                JNIEnv.DeleteLocalRef(native_cs);
                JNIEnv.DeleteLocalRef(native_searchChars);
            }
        }
Exemple #4
0
        public override unsafe global::Java.Lang.ICharSequence IdentityFormatted(global::Java.Lang.ICharSequence value)
        {
            if (id_identity_Ljava_lang_CharSequence_ == IntPtr.Zero)
            {
                id_identity_Ljava_lang_CharSequence_ = JNIEnv.GetMethodID(class_ref, "identity", "(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;");
            }
            IntPtr native_value = CharSequence.ToLocalJniHandle(value);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_value);
                global::Java.Lang.ICharSequence __ret = global::Java.Lang.Object.GetObject <Java.Lang.ICharSequence> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_identity_Ljava_lang_CharSequence_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_value);
            }
        }
        public static unsafe int CountMatches(global::Java.Lang.ICharSequence str, global::Java.Lang.ICharSequence sub)
        {
            const string __id       = "countMatches.(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)I";
            IntPtr       native_str = CharSequence.ToLocalJniHandle(str);
            IntPtr       native_sub = CharSequence.ToLocalJniHandle(sub);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue(native_str);
                __args [1] = new JniArgumentValue(native_sub);
                var __rm = _members.StaticMethods.InvokeInt32Method(__id, __args);
                return(__rm);
            } finally {
                JNIEnv.DeleteLocalRef(native_str);
                JNIEnv.DeleteLocalRef(native_sub);
            }
        }
        public unsafe bool Filter(global::Java.Lang.Object p0, global::Java.Lang.ICharSequence p1)
        {
            if (id_filter_Lcom_mikepenz_fastadapter_IItem_Ljava_lang_CharSequence_ == IntPtr.Zero)
            {
                id_filter_Lcom_mikepenz_fastadapter_IItem_Ljava_lang_CharSequence_ = JNIEnv.GetMethodID(class_ref, "filter", "(Lcom/mikepenz/fastadapter/IItem;Ljava/lang/CharSequence;)Z");
            }
            IntPtr  native_p0 = JNIEnv.ToLocalJniHandle(p0);
            IntPtr  native_p1 = CharSequence.ToLocalJniHandle(p1);
            JValue *__args    = stackalloc JValue [2];

            __args [0] = new JValue(native_p0);
            __args [1] = new JValue(native_p1);
            bool __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_filter_Lcom_mikepenz_fastadapter_IItem_Ljava_lang_CharSequence_, __args);

            JNIEnv.DeleteLocalRef(native_p0);
            JNIEnv.DeleteLocalRef(native_p1);
            return(__ret);
        }
        public static unsafe global::Android.Text.ISpannable GetSmiledText(global::Android.Content.Context p0, global::Java.Lang.ICharSequence p1, global::Com.Applozic.Mobicommons.Emoticon.IEmojiconHandler p2)
        {
            if (id_getSmiledText_Landroid_content_Context_Ljava_lang_CharSequence_Lcom_applozic_mobicommons_emoticon_EmojiconHandler_ == IntPtr.Zero)
            {
                id_getSmiledText_Landroid_content_Context_Ljava_lang_CharSequence_Lcom_applozic_mobicommons_emoticon_EmojiconHandler_ = JNIEnv.GetStaticMethodID(class_ref, "getSmiledText", "(Landroid/content/Context;Ljava/lang/CharSequence;Lcom/applozic/mobicommons/emoticon/EmojiconHandler;)Landroid/text/Spannable;");
            }
            IntPtr native_p1 = CharSequence.ToLocalJniHandle(p1);

            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(p2);
                global::Android.Text.ISpannable __ret = global::Java.Lang.Object.GetObject <global::Android.Text.ISpannable> (JNIEnv.CallStaticObjectMethod(class_ref, id_getSmiledText_Landroid_content_Context_Ljava_lang_CharSequence_Lcom_applozic_mobicommons_emoticon_EmojiconHandler_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
Exemple #8
0
        public static unsafe int CountMatches(global::Java.Lang.ICharSequence str, global::Java.Lang.ICharSequence sub)
        {
            if (id_countMatches_Ljava_lang_CharSequence_Ljava_lang_CharSequence_ == IntPtr.Zero)
            {
                id_countMatches_Ljava_lang_CharSequence_Ljava_lang_CharSequence_ = JNIEnv.GetStaticMethodID(class_ref, "countMatches", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)I");
            }
            IntPtr native_str = CharSequence.ToLocalJniHandle(str);
            IntPtr native_sub = CharSequence.ToLocalJniHandle(sub);

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(native_str);
                __args [1] = new JValue(native_sub);
                int __ret = JNIEnv.CallStaticIntMethod(class_ref, id_countMatches_Ljava_lang_CharSequence_Ljava_lang_CharSequence_, __args);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_str);
                JNIEnv.DeleteLocalRef(native_sub);
            }
        }
        public static unsafe bool ContainsAny(global::Java.Lang.ICharSequence p0, global::Java.Lang.ICharSequence p1)
        {
            if (id_containsAny_Ljava_lang_CharSequence_Ljava_lang_CharSequence_ == IntPtr.Zero)
            {
                id_containsAny_Ljava_lang_CharSequence_Ljava_lang_CharSequence_ = JNIEnv.GetStaticMethodID(class_ref, "containsAny", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z");
            }
            IntPtr native_p0 = CharSequence.ToLocalJniHandle(p0);
            IntPtr native_p1 = CharSequence.ToLocalJniHandle(p1);

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(native_p1);
                bool __ret = JNIEnv.CallStaticBooleanMethod(class_ref, id_containsAny_Ljava_lang_CharSequence_Ljava_lang_CharSequence_, __args);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
        public unsafe SliderPage(string title = null, string description = null, int imageDrawable = 0, int backgroundColor = 0, int titleColor = 0, int descriptionColor = 0, int titleTypefaceFontRes = 0, int descriptionTypefaceFontRes = 0, string titleTypeface = null, string descriptionTypeface = null, int backgroundDrawable = 0)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;IIIIIILjava/lang/String;Ljava/lang/String;I)V";

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

            IntPtr native_title               = CharSequence.ToLocalJniHandle(title);
            IntPtr native_description         = CharSequence.ToLocalJniHandle(description);
            IntPtr native_titleTypeface       = JNIEnv.NewString(titleTypeface);
            IntPtr native_descriptionTypeface = JNIEnv.NewString(descriptionTypeface);

            try
            {
                JniArgumentValue *__args = stackalloc JniArgumentValue[11];
                __args[0]  = new JniArgumentValue(native_title);
                __args[1]  = new JniArgumentValue(native_description);
                __args[2]  = new JniArgumentValue(imageDrawable);
                __args[3]  = new JniArgumentValue(backgroundColor);
                __args[4]  = new JniArgumentValue(titleColor);
                __args[5]  = new JniArgumentValue(descriptionColor);
                __args[6]  = new JniArgumentValue(titleTypefaceFontRes);
                __args[7]  = new JniArgumentValue(descriptionTypefaceFontRes);
                __args[8]  = new JniArgumentValue(native_titleTypeface);
                __args[9]  = new JniArgumentValue(native_descriptionTypeface);
                __args[10] = new JniArgumentValue(backgroundDrawable);
                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_title);
                JNIEnv.DeleteLocalRef(native_description);
                JNIEnv.DeleteLocalRef(native_titleTypeface);
                JNIEnv.DeleteLocalRef(native_descriptionTypeface);
            }
        }
Exemple #11
0
        protected virtual int NextEscapeIndex(global::Java.Lang.ICharSequence p0, int p1, int p2)
        {
            if (id_nextEscapeIndex_Ljava_lang_CharSequence_II == IntPtr.Zero)
            {
                id_nextEscapeIndex_Ljava_lang_CharSequence_II = JNIEnv.GetMethodID(class_ref, "nextEscapeIndex", "(Ljava/lang/CharSequence;II)I");
            }
            IntPtr native_p0 = CharSequence.ToLocalJniHandle(p0);

            int __ret;

            if (GetType() == ThresholdType)
            {
                __ret = JNIEnv.CallIntMethod(Handle, id_nextEscapeIndex_Ljava_lang_CharSequence_II, new JValue(native_p0), new JValue(p1), new JValue(p2));
            }
            else
            {
                __ret = JNIEnv.CallNonvirtualIntMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "nextEscapeIndex", "(Ljava/lang/CharSequence;II)I"), new JValue(native_p0), new JValue(p1), new JValue(p2));
            }
            JNIEnv.DeleteLocalRef(native_p0);
            return(__ret);
        }
        public static unsafe bool EqualsAny(global::Java.Lang.ICharSequence cs, global::Java.Lang.ICharSequence[] strs)
        {
            const string __id        = "equalsAny.(Ljava/lang/CharSequence;[Ljava/lang/CharSequence;)Z";
            IntPtr       native_cs   = CharSequence.ToLocalJniHandle(cs);
            IntPtr       native_strs = JNIEnv.NewArray(strs);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue(native_cs);
                __args [1] = new JniArgumentValue(native_strs);
                var __rm = _members.StaticMethods.InvokeBooleanMethod(__id, __args);
                return(__rm);
            } finally {
                JNIEnv.DeleteLocalRef(native_cs);
                if (strs != null)
                {
                    JNIEnv.CopyArray(native_strs, strs);
                    JNIEnv.DeleteLocalRef(native_strs);
                }
            }
        }
Exemple #13
0
        public unsafe SpannableString(string source)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Ljava/lang/CharSequence;)V";

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

            IntPtr native_source = CharSequence.ToLocalJniHandle(source);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue(native_source);
                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_source);
            }
        }
Exemple #14
0
        public unsafe SpannableString(string source) : base(ref *InvalidJniObjectReference, JniObjectReferenceOptions.None)
        {
            const string __id = "(Ljava/lang/CharSequence;)V";

            if (PeerReference.IsValid)
            {
                return;
            }

            IntPtr native_source = CharSequence.ToLocalJniHandle(source);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue(native_source);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                Construct(ref __r, JniObjectReferenceOptions.CopyAndDispose);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_source);
                global::System.GC.KeepAlive(source);
            }
        }
Exemple #15
0
        public static unsafe bool ContainsAny(global::Java.Lang.ICharSequence cs, char[] searchChars)
        {
            if (id_containsAny_Ljava_lang_CharSequence_arrayC == IntPtr.Zero)
            {
                id_containsAny_Ljava_lang_CharSequence_arrayC = JNIEnv.GetStaticMethodID(class_ref, "containsAny", "(Ljava/lang/CharSequence;[C)Z");
            }
            IntPtr native_cs          = CharSequence.ToLocalJniHandle(cs);
            IntPtr native_searchChars = JNIEnv.NewArray(searchChars);

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(native_cs);
                __args [1] = new JValue(native_searchChars);
                bool __ret = JNIEnv.CallStaticBooleanMethod(class_ref, id_containsAny_Ljava_lang_CharSequence_arrayC, __args);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_cs);
                if (searchChars != null)
                {
                    JNIEnv.CopyArray(native_searchChars, searchChars);
                    JNIEnv.DeleteLocalRef(native_searchChars);
                }
            }
        }
Exemple #16
0
        public unsafe void SetTitle(global::Java.Lang.ICharSequence title)
        {
            if (id_setTitle_Ljava_lang_CharSequence_ == IntPtr.Zero)
            {
                id_setTitle_Ljava_lang_CharSequence_ = JNIEnv.GetMethodID(class_ref, "setTitle", "(Ljava/lang/CharSequence;)V");
            }
            IntPtr native_title = CharSequence.ToLocalJniHandle(title);

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

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_setTitle_Ljava_lang_CharSequence_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setTitle", "(Ljava/lang/CharSequence;)V"), __args);
                }
            } finally {
                JNIEnv.DeleteLocalRef(native_title);
            }
        }
Exemple #17
0
        static IntPtr n_GetTitle(IntPtr jnienv, IntPtr native__this)
        {
            ActionMode __this = Java.Lang.Object.GetObject <ActionMode> (native__this, JniHandleOwnership.DoNotTransfer);

            return(CharSequence.ToLocalJniHandle(__this.TitleFormatted));
        }
Exemple #18
0
 static IntPtr n_GetValue(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Adw.Library.Widgets.Discreteseekbar.Internal.Marker __this = global::Java.Lang.Object.GetObject <global::Org.Adw.Library.Widgets.Discreteseekbar.Internal.Marker> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(CharSequence.ToLocalJniHandle(__this.ValueFormatted));
 }
Exemple #19
0
 static IntPtr n_GetTitle(IntPtr jnienv, IntPtr native__this)
 {
     global::Android.Support.V7.View.SupportActionModeWrapper __this = global::Java.Lang.Object.GetObject <global::Android.Support.V7.View.SupportActionModeWrapper> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(CharSequence.ToLocalJniHandle(__this.TitleFormatted));
 }