//------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ #nullable restore using System; using System.Collections.Generic; using Android.Runtime; using Java.Interop; namespace Com.Tencent.Tinker.Lib.Patch { // Metadata.xml XPath class reference: path="/api/package[@name='com.tencent.tinker.lib.patch']/class[@name='UpgradePatch']" [global::Android.Runtime.Register ("com/tencent/tinker/lib/patch/UpgradePatch", DoNotGenerateAcw=true)] public partial class UpgradePatch : global::Com.Tencent.Tinker.Lib.Patch.AbstractPatch { static readonly JniPeerMembers _members = new XAPeerMembers ("com/tencent/tinker/lib/patch/UpgradePatch", typeof (UpgradePatch)); internal static new IntPtr class_ref { get { return _members.JniPeerType.PeerReference.Handle; } } [global::System.Diagnostics.DebuggerBrowsable (global::System.Diagnostics.DebuggerBrowsableState.Never)] [global::System.ComponentModel.EditorBrowsable (global::System.ComponentModel.EditorBrowsableState.Never)] public override global::Java.Interop.JniPeerMembers JniPeerMembers { get { return _members; } } [global::System.Diagnostics.DebuggerBrowsable (global::System.Diagnostics.DebuggerBrowsableState.Never)] [global::System.ComponentModel.EditorBrowsable (global::System.ComponentModel.EditorBrowsableState.Never)] protected override IntPtr ThresholdClass { get { return _members.JniPeerType.PeerReference.Handle; } } [global::System.Diagnostics.DebuggerBrowsable (global::System.Diagnostics.DebuggerBrowsableState.Never)] [global::System.ComponentModel.EditorBrowsable (global::System.ComponentModel.EditorBrowsableState.Never)] protected override global::System.Type ThresholdType { get { return _members.ManagedPeerType; } } protected UpgradePatch (IntPtr javaReference, JniHandleOwnership transfer) : base (javaReference, transfer) { } // Metadata.xml XPath constructor reference: path="/api/package[@name='com.tencent.tinker.lib.patch']/class[@name='UpgradePatch']/constructor[@name='UpgradePatch' and count(parameter)=0]" [Register (".ctor", "()V", "")] public unsafe UpgradePatch () : base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { const string __id = "()V"; if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) return; try { var __r = _members.InstanceMethods.StartCreateInstance (__id, ((object) this).GetType (), null); SetHandle (__r.Handle, JniHandleOwnership.TransferLocalRef); _members.InstanceMethods.FinishCreateInstance (__id, this, null); } finally { } } static Delegate cb_tryPatch_Landroid_content_Context_Ljava_lang_String_Lcom_tencent_tinker_lib_service_PatchResult_; #pragma warning disable 0169 static Delegate GetTryPatch_Landroid_content_Context_Ljava_lang_String_Lcom_tencent_tinker_lib_service_PatchResult_Handler () { if (cb_tryPatch_Landroid_content_Context_Ljava_lang_String_Lcom_tencent_tinker_lib_service_PatchResult_ == null) cb_tryPatch_Landroid_content_Context_Ljava_lang_String_Lcom_tencent_tinker_lib_service_PatchResult_ = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPLLL_Z (n_TryPatch_Landroid_content_Context_Ljava_lang_String_Lcom_tencent_tinker_lib_service_PatchResult_)); return cb_tryPatch_Landroid_content_Context_Ljava_lang_String_Lcom_tencent_tinker_lib_service_PatchResult_; } static bool n_TryPatch_Landroid_content_Context_Ljava_lang_String_Lcom_tencent_tinker_lib_service_PatchResult_ (IntPtr jnienv, IntPtr native__this, IntPtr native_context, IntPtr native_tempPatchPath, IntPtr native_patchResult) { var __this = global::Java.Lang.Object.GetObject (jnienv, native__this, JniHandleOwnership.DoNotTransfer); var context = global::Java.Lang.Object.GetObject (native_context, JniHandleOwnership.DoNotTransfer); var tempPatchPath = JNIEnv.GetString (native_tempPatchPath, JniHandleOwnership.DoNotTransfer); var patchResult = global::Java.Lang.Object.GetObject (native_patchResult, JniHandleOwnership.DoNotTransfer); bool __ret = __this.TryPatch (context, tempPatchPath, patchResult); return __ret; } #pragma warning restore 0169 // Metadata.xml XPath method reference: path="/api/package[@name='com.tencent.tinker.lib.patch']/class[@name='UpgradePatch']/method[@name='tryPatch' and count(parameter)=3 and parameter[1][@type='android.content.Context'] and parameter[2][@type='java.lang.String'] and parameter[3][@type='com.tencent.tinker.lib.service.PatchResult']]" [Register ("tryPatch", "(Landroid/content/Context;Ljava/lang/String;Lcom/tencent/tinker/lib/service/PatchResult;)Z", "GetTryPatch_Landroid_content_Context_Ljava_lang_String_Lcom_tencent_tinker_lib_service_PatchResult_Handler")] public override unsafe bool TryPatch (global::Android.Content.Context context, string tempPatchPath, global::Com.Tencent.Tinker.Lib.Service.PatchResult patchResult) { const string __id = "tryPatch.(Landroid/content/Context;Ljava/lang/String;Lcom/tencent/tinker/lib/service/PatchResult;)Z"; IntPtr native_tempPatchPath = JNIEnv.NewString ((string)tempPatchPath); try { JniArgumentValue* __args = stackalloc JniArgumentValue [3]; __args [0] = new JniArgumentValue ((context == null) ? IntPtr.Zero : ((global::Java.Lang.Object) context).Handle); __args [1] = new JniArgumentValue (native_tempPatchPath); __args [2] = new JniArgumentValue ((patchResult == null) ? IntPtr.Zero : ((global::Java.Lang.Object) patchResult).Handle); var __rm = _members.InstanceMethods.InvokeVirtualBooleanMethod (__id, this, __args); return __rm; } finally { JNIEnv.DeleteLocalRef (native_tempPatchPath); global::System.GC.KeepAlive (context); global::System.GC.KeepAlive (patchResult); } } } }