Esempio n. 1
0
        public static global::Org.Android.Spdy.SpdyVersion ValueOf(string p0)
        {
            if (id_valueOf_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_valueOf_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "valueOf", "(Ljava/lang/String;)Lorg/android/spdy/SpdyVersion;");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            global::Org.Android.Spdy.SpdyVersion __ret = global::Java.Lang.Object.GetObject <global::Org.Android.Spdy.SpdyVersion> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, new JValue(native_p0)), JniHandleOwnership.TransferLocalRef);
            JNIEnv.DeleteLocalRef(native_p0);
            return(__ret);
        }
 public static unsafe global::Org.Android.Spdy.SpdyAgent GetInstance(global::Android.Content.Context p0, global::Org.Android.Spdy.SpdyVersion p1, global::Org.Android.Spdy.SpdySessionKind p2, global::Org.Android.Spdy.IAccsSSLCallback p3)
 {
     if (id_getInstance_Landroid_content_Context_Lorg_android_spdy_SpdyVersion_Lorg_android_spdy_SpdySessionKind_Lorg_android_spdy_AccsSSLCallback_ == IntPtr.Zero)
     {
         id_getInstance_Landroid_content_Context_Lorg_android_spdy_SpdyVersion_Lorg_android_spdy_SpdySessionKind_Lorg_android_spdy_AccsSSLCallback_ = JNIEnv.GetStaticMethodID(class_ref, "getInstance", "(Landroid/content/Context;Lorg/android/spdy/SpdyVersion;Lorg/android/spdy/SpdySessionKind;Lorg/android/spdy/AccsSSLCallback;)Lorg/android/spdy/SpdyAgent;");
     }
     try {
         JValue *__args = stackalloc JValue [4];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         __args [2] = new JValue(p2);
         __args [3] = new JValue(p3);
         global::Org.Android.Spdy.SpdyAgent __ret = global::Java.Lang.Object.GetObject <global::Org.Android.Spdy.SpdyAgent> (JNIEnv.CallStaticObjectMethod(class_ref, id_getInstance_Landroid_content_Context_Lorg_android_spdy_SpdyVersion_Lorg_android_spdy_SpdySessionKind_Lorg_android_spdy_AccsSSLCallback_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
 public static global::Org.Android.Spdy.SpdyAgent GetInstance(global::Android.Content.Context p0, global::Org.Android.Spdy.SpdyVersion p1, global::Org.Android.Spdy.SpdySessionKind p2)
 {
     if (id_getInstance_Landroid_content_Context_Lorg_android_spdy_SpdyVersion_Lorg_android_spdy_SpdySessionKind_ == IntPtr.Zero)
     {
         id_getInstance_Landroid_content_Context_Lorg_android_spdy_SpdyVersion_Lorg_android_spdy_SpdySessionKind_ = JNIEnv.GetStaticMethodID(class_ref, "getInstance", "(Landroid/content/Context;Lorg/android/spdy/SpdyVersion;Lorg/android/spdy/SpdySessionKind;)Lorg/android/spdy/SpdyAgent;");
     }
     global::Org.Android.Spdy.SpdyAgent __ret = global::Java.Lang.Object.GetObject <global::Org.Android.Spdy.SpdyAgent> (JNIEnv.CallStaticObjectMethod(class_ref, id_getInstance_Landroid_content_Context_Lorg_android_spdy_SpdyVersion_Lorg_android_spdy_SpdySessionKind_, new JValue(p0), new JValue(p1), new JValue(p2)), JniHandleOwnership.TransferLocalRef);
     return(__ret);
 }