wxr
2024-11-14 66db2477a4855f5452c45f5e5baeae2d8c3e8c05
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
 
#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='AbstractPatch']"
    [global::Android.Runtime.Register ("com/tencent/tinker/lib/patch/AbstractPatch", DoNotGenerateAcw=true)]
    public abstract partial class AbstractPatch : global::Java.Lang.Object {
        static readonly JniPeerMembers _members = new XAPeerMembers ("com/tencent/tinker/lib/patch/AbstractPatch", typeof (AbstractPatch));
 
        internal static 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 AbstractPatch (IntPtr javaReference, JniHandleOwnership transfer) : base (javaReference, transfer)
        {
        }
 
        // Metadata.xml XPath constructor reference: path="/api/package[@name='com.tencent.tinker.lib.patch']/class[@name='AbstractPatch']/constructor[@name='AbstractPatch' and count(parameter)=0]"
        [Register (".ctor", "()V", "")]
        public unsafe AbstractPatch () : 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_p0, IntPtr native_p1, IntPtr native_p2)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Tencent.Tinker.Lib.Patch.AbstractPatch> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            var p0 = global::Java.Lang.Object.GetObject<global::Android.Content.Context> (native_p0, JniHandleOwnership.DoNotTransfer);
            var p1 = JNIEnv.GetString (native_p1, JniHandleOwnership.DoNotTransfer);
            var p2 = global::Java.Lang.Object.GetObject<global::Com.Tencent.Tinker.Lib.Service.PatchResult> (native_p2, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.TryPatch (p0, p1, p2);
            return __ret;
        }
#pragma warning restore 0169
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.tencent.tinker.lib.patch']/class[@name='AbstractPatch']/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 abstract bool TryPatch (global::Android.Content.Context p0, string p1, global::Com.Tencent.Tinker.Lib.Service.PatchResult p2);
 
    }
 
    [global::Android.Runtime.Register ("com/tencent/tinker/lib/patch/AbstractPatch", DoNotGenerateAcw=true)]
    internal partial class AbstractPatchInvoker : AbstractPatch {
        public AbstractPatchInvoker (IntPtr handle, JniHandleOwnership transfer) : base (handle, transfer)
        {
        }
 
        static readonly JniPeerMembers _members = new XAPeerMembers ("com/tencent/tinker/lib/patch/AbstractPatch", typeof (AbstractPatchInvoker));
 
        [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 global::System.Type ThresholdType {
            get { return _members.ManagedPeerType; }
        }
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.tencent.tinker.lib.patch']/class[@name='AbstractPatch']/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 p0, string p1, global::Com.Tencent.Tinker.Lib.Service.PatchResult p2)
        {
            const string __id = "tryPatch.(Landroid/content/Context;Ljava/lang/String;Lcom/tencent/tinker/lib/service/PatchResult;)Z";
            IntPtr native_p1 = JNIEnv.NewString ((string)p1);
            try {
                JniArgumentValue* __args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue ((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object) p0).Handle);
                __args [1] = new JniArgumentValue (native_p1);
                __args [2] = new JniArgumentValue ((p2 == null) ? IntPtr.Zero : ((global::Java.Lang.Object) p2).Handle);
                var __rm = _members.InstanceMethods.InvokeAbstractBooleanMethod (__id, this, __args);
                return __rm;
            } finally {
                JNIEnv.DeleteLocalRef (native_p1);
                global::System.GC.KeepAlive (p0);
                global::System.GC.KeepAlive (p2);
            }
        }
 
    }
}