wxr
2023-07-31 27cb19320ed4ac5552c17a263d0887a7cb88edc9
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
using System;
using System.Collections.Generic;
using Android.Runtime;
using Java.Interop;
 
namespace Com.Tencent.Tinker.Lib.Util {
 
    // Metadata.xml XPath class reference: path="/api/package[@name='com.tencent.tinker.lib.util']/class[@name='UpgradePatchRetry']"
    [global::Android.Runtime.Register ("com/tencent/tinker/lib/util/UpgradePatchRetry", DoNotGenerateAcw=true)]
    public partial class UpgradePatchRetry : global::Java.Lang.Object {
        static readonly JniPeerMembers _members = new XAPeerMembers ("com/tencent/tinker/lib/util/UpgradePatchRetry", typeof (UpgradePatchRetry));
 
        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 UpgradePatchRetry (IntPtr javaReference, JniHandleOwnership transfer) : base (javaReference, transfer)
        {
        }
 
        // Metadata.xml XPath constructor reference: path="/api/package[@name='com.tencent.tinker.lib.util']/class[@name='UpgradePatchRetry']/constructor[@name='UpgradePatchRetry' and count(parameter)=1 and parameter[1][@type='android.content.Context']]"
        [Register (".ctor", "(Landroid/content/Context;)V", "")]
        public unsafe UpgradePatchRetry (global::Android.Content.Context context) : base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Landroid/content/Context;)V";
 
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
                return;
 
            try {
                JniArgumentValue* __args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue ((context == null) ? IntPtr.Zero : ((global::Java.Lang.Object) context).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance (__id, ((object) this).GetType (), __args);
                SetHandle (__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance (__id, this, __args);
            } finally {
                global::System.GC.KeepAlive (context);
            }
        }
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.tencent.tinker.lib.util']/class[@name='UpgradePatchRetry']/method[@name='getInstance' and count(parameter)=1 and parameter[1][@type='android.content.Context']]"
        [Register ("getInstance", "(Landroid/content/Context;)Lcom/tencent/tinker/lib/util/UpgradePatchRetry;", "")]
        public static unsafe global::Com.Tencent.Tinker.Lib.Util.UpgradePatchRetry GetInstance (global::Android.Content.Context context)
        {
            const string __id = "getInstance.(Landroid/content/Context;)Lcom/tencent/tinker/lib/util/UpgradePatchRetry;";
            try {
                JniArgumentValue* __args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue ((context == null) ? IntPtr.Zero : ((global::Java.Lang.Object) context).Handle);
                var __rm = _members.StaticMethods.InvokeObjectMethod (__id, __args);
                return global::Java.Lang.Object.GetObject<global::Com.Tencent.Tinker.Lib.Util.UpgradePatchRetry> (__rm.Handle, JniHandleOwnership.TransferLocalRef);
            } finally {
                global::System.GC.KeepAlive (context);
            }
        }
 
        static Delegate cb_onPatchListenerCheck_Ljava_lang_String_;
#pragma warning disable 0169
        static Delegate GetOnPatchListenerCheck_Ljava_lang_String_Handler ()
        {
            if (cb_onPatchListenerCheck_Ljava_lang_String_ == null)
                cb_onPatchListenerCheck_Ljava_lang_String_ = JNINativeWrapper.CreateDelegate ((_JniMarshal_PPL_Z) n_OnPatchListenerCheck_Ljava_lang_String_);
            return cb_onPatchListenerCheck_Ljava_lang_String_;
        }
 
        static bool n_OnPatchListenerCheck_Ljava_lang_String_ (IntPtr jnienv, IntPtr native__this, IntPtr native_md5)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Tencent.Tinker.Lib.Util.UpgradePatchRetry> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            var md5 = JNIEnv.GetString (native_md5, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.OnPatchListenerCheck (md5);
            return __ret;
        }
#pragma warning restore 0169
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.tencent.tinker.lib.util']/class[@name='UpgradePatchRetry']/method[@name='onPatchListenerCheck' and count(parameter)=1 and parameter[1][@type='java.lang.String']]"
        [Register ("onPatchListenerCheck", "(Ljava/lang/String;)Z", "GetOnPatchListenerCheck_Ljava_lang_String_Handler")]
        public virtual unsafe bool OnPatchListenerCheck (string md5)
        {
            const string __id = "onPatchListenerCheck.(Ljava/lang/String;)Z";
            IntPtr native_md5 = JNIEnv.NewString (md5);
            try {
                JniArgumentValue* __args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue (native_md5);
                var __rm = _members.InstanceMethods.InvokeVirtualBooleanMethod (__id, this, __args);
                return __rm;
            } finally {
                JNIEnv.DeleteLocalRef (native_md5);
            }
        }
 
        static Delegate cb_onPatchResetMaxCheck_Ljava_lang_String_;
#pragma warning disable 0169
        static Delegate GetOnPatchResetMaxCheck_Ljava_lang_String_Handler ()
        {
            if (cb_onPatchResetMaxCheck_Ljava_lang_String_ == null)
                cb_onPatchResetMaxCheck_Ljava_lang_String_ = JNINativeWrapper.CreateDelegate ((_JniMarshal_PPL_Z) n_OnPatchResetMaxCheck_Ljava_lang_String_);
            return cb_onPatchResetMaxCheck_Ljava_lang_String_;
        }
 
        static bool n_OnPatchResetMaxCheck_Ljava_lang_String_ (IntPtr jnienv, IntPtr native__this, IntPtr native_md5)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Tencent.Tinker.Lib.Util.UpgradePatchRetry> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            var md5 = JNIEnv.GetString (native_md5, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.OnPatchResetMaxCheck (md5);
            return __ret;
        }
#pragma warning restore 0169
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.tencent.tinker.lib.util']/class[@name='UpgradePatchRetry']/method[@name='onPatchResetMaxCheck' and count(parameter)=1 and parameter[1][@type='java.lang.String']]"
        [Register ("onPatchResetMaxCheck", "(Ljava/lang/String;)Z", "GetOnPatchResetMaxCheck_Ljava_lang_String_Handler")]
        public virtual unsafe bool OnPatchResetMaxCheck (string md5)
        {
            const string __id = "onPatchResetMaxCheck.(Ljava/lang/String;)Z";
            IntPtr native_md5 = JNIEnv.NewString (md5);
            try {
                JniArgumentValue* __args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue (native_md5);
                var __rm = _members.InstanceMethods.InvokeVirtualBooleanMethod (__id, this, __args);
                return __rm;
            } finally {
                JNIEnv.DeleteLocalRef (native_md5);
            }
        }
 
        static Delegate cb_onPatchRetryLoad;
#pragma warning disable 0169
        static Delegate GetOnPatchRetryLoadHandler ()
        {
            if (cb_onPatchRetryLoad == null)
                cb_onPatchRetryLoad = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_Z) n_OnPatchRetryLoad);
            return cb_onPatchRetryLoad;
        }
 
        static bool n_OnPatchRetryLoad (IntPtr jnienv, IntPtr native__this)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Tencent.Tinker.Lib.Util.UpgradePatchRetry> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            return __this.OnPatchRetryLoad ();
        }
#pragma warning restore 0169
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.tencent.tinker.lib.util']/class[@name='UpgradePatchRetry']/method[@name='onPatchRetryLoad' and count(parameter)=0]"
        [Register ("onPatchRetryLoad", "()Z", "GetOnPatchRetryLoadHandler")]
        public virtual unsafe bool OnPatchRetryLoad ()
        {
            const string __id = "onPatchRetryLoad.()Z";
            try {
                var __rm = _members.InstanceMethods.InvokeVirtualBooleanMethod (__id, this, null);
                return __rm;
            } finally {
            }
        }
 
        static Delegate cb_onPatchServiceResult;
#pragma warning disable 0169
        static Delegate GetOnPatchServiceResultHandler ()
        {
            if (cb_onPatchServiceResult == null)
                cb_onPatchServiceResult = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_OnPatchServiceResult);
            return cb_onPatchServiceResult;
        }
 
        static void n_OnPatchServiceResult (IntPtr jnienv, IntPtr native__this)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Tencent.Tinker.Lib.Util.UpgradePatchRetry> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            __this.OnPatchServiceResult ();
        }
#pragma warning restore 0169
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.tencent.tinker.lib.util']/class[@name='UpgradePatchRetry']/method[@name='onPatchServiceResult' and count(parameter)=0]"
        [Register ("onPatchServiceResult", "()V", "GetOnPatchServiceResultHandler")]
        public virtual unsafe void OnPatchServiceResult ()
        {
            const string __id = "onPatchServiceResult.()V";
            try {
                _members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
            } finally {
            }
        }
 
        static Delegate cb_onPatchServiceStart_Landroid_content_Intent_;
#pragma warning disable 0169
        static Delegate GetOnPatchServiceStart_Landroid_content_Intent_Handler ()
        {
            if (cb_onPatchServiceStart_Landroid_content_Intent_ == null)
                cb_onPatchServiceStart_Landroid_content_Intent_ = JNINativeWrapper.CreateDelegate ((_JniMarshal_PPL_V) n_OnPatchServiceStart_Landroid_content_Intent_);
            return cb_onPatchServiceStart_Landroid_content_Intent_;
        }
 
        static void n_OnPatchServiceStart_Landroid_content_Intent_ (IntPtr jnienv, IntPtr native__this, IntPtr native_intent)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Tencent.Tinker.Lib.Util.UpgradePatchRetry> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            var intent = global::Java.Lang.Object.GetObject<global::Android.Content.Intent> (native_intent, JniHandleOwnership.DoNotTransfer);
            __this.OnPatchServiceStart (intent);
        }
#pragma warning restore 0169
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.tencent.tinker.lib.util']/class[@name='UpgradePatchRetry']/method[@name='onPatchServiceStart' and count(parameter)=1 and parameter[1][@type='android.content.Intent']]"
        [Register ("onPatchServiceStart", "(Landroid/content/Intent;)V", "GetOnPatchServiceStart_Landroid_content_Intent_Handler")]
        public virtual unsafe void OnPatchServiceStart (global::Android.Content.Intent intent)
        {
            const string __id = "onPatchServiceStart.(Landroid/content/Intent;)V";
            try {
                JniArgumentValue* __args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue ((intent == null) ? IntPtr.Zero : ((global::Java.Lang.Object) intent).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, __args);
            } finally {
                global::System.GC.KeepAlive (intent);
            }
        }
 
        static Delegate cb_setMaxRetryCount_I;
#pragma warning disable 0169
        static Delegate GetSetMaxRetryCount_IHandler ()
        {
            if (cb_setMaxRetryCount_I == null)
                cb_setMaxRetryCount_I = JNINativeWrapper.CreateDelegate ((_JniMarshal_PPI_V) n_SetMaxRetryCount_I);
            return cb_setMaxRetryCount_I;
        }
 
        static void n_SetMaxRetryCount_I (IntPtr jnienv, IntPtr native__this, int count)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Tencent.Tinker.Lib.Util.UpgradePatchRetry> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            __this.SetMaxRetryCount (count);
        }
#pragma warning restore 0169
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.tencent.tinker.lib.util']/class[@name='UpgradePatchRetry']/method[@name='setMaxRetryCount' and count(parameter)=1 and parameter[1][@type='int']]"
        [Register ("setMaxRetryCount", "(I)V", "GetSetMaxRetryCount_IHandler")]
        public virtual unsafe void SetMaxRetryCount (int count)
        {
            const string __id = "setMaxRetryCount.(I)V";
            try {
                JniArgumentValue* __args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue (count);
                _members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, __args);
            } finally {
            }
        }
 
        static Delegate cb_setRetryEnable_Z;
#pragma warning disable 0169
        static Delegate GetSetRetryEnable_ZHandler ()
        {
            if (cb_setRetryEnable_Z == null)
                cb_setRetryEnable_Z = JNINativeWrapper.CreateDelegate ((_JniMarshal_PPZ_V) n_SetRetryEnable_Z);
            return cb_setRetryEnable_Z;
        }
 
        static void n_SetRetryEnable_Z (IntPtr jnienv, IntPtr native__this, bool enable)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Tencent.Tinker.Lib.Util.UpgradePatchRetry> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            __this.SetRetryEnable (enable);
        }
#pragma warning restore 0169
 
        // Metadata.xml XPath method reference: path="/api/package[@name='com.tencent.tinker.lib.util']/class[@name='UpgradePatchRetry']/method[@name='setRetryEnable' and count(parameter)=1 and parameter[1][@type='boolean']]"
        [Register ("setRetryEnable", "(Z)V", "GetSetRetryEnable_ZHandler")]
        public virtual unsafe void SetRetryEnable (bool enable)
        {
            const string __id = "setRetryEnable.(Z)V";
            try {
                JniArgumentValue* __args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue (enable);
                _members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, __args);
            } finally {
            }
        }
 
    }
}