//------------------------------------------------------------------------------ // // 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='DexDiffPatchInternal']" [global::Android.Runtime.Register ("com/tencent/tinker/lib/patch/DexDiffPatchInternal", DoNotGenerateAcw=true)] public partial class DexDiffPatchInternal : global::Com.Tencent.Tinker.Lib.Patch.BasePatchInternal { // Metadata.xml XPath field reference: path="/api/package[@name='com.tencent.tinker.lib.patch']/class[@name='DexDiffPatchInternal']/field[@name='MAX_WAIT_COUNT']" [Register ("MAX_WAIT_COUNT")] protected const int MaxWaitCount = (int) 30; // Metadata.xml XPath field reference: path="/api/package[@name='com.tencent.tinker.lib.patch']/class[@name='DexDiffPatchInternal']/field[@name='TAG']" [Register ("TAG")] protected const string Tag = (string) "Tinker.DexDiffPatchInternal"; // Metadata.xml XPath field reference: path="/api/package[@name='com.tencent.tinker.lib.patch']/class[@name='DexDiffPatchInternal']/field[@name='WAIT_ASYN_OAT_TIME']" [Register ("WAIT_ASYN_OAT_TIME")] protected const int WaitAsynOatTime = (int) 15000; static readonly JniPeerMembers _members = new XAPeerMembers ("com/tencent/tinker/lib/patch/DexDiffPatchInternal", typeof (DexDiffPatchInternal)); 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 DexDiffPatchInternal (IntPtr javaReference, JniHandleOwnership transfer) : base (javaReference, transfer) { } // Metadata.xml XPath constructor reference: path="/api/package[@name='com.tencent.tinker.lib.patch']/class[@name='DexDiffPatchInternal']/constructor[@name='DexDiffPatchInternal' and count(parameter)=0]" [Register (".ctor", "()V", "")] public unsafe DexDiffPatchInternal () : 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 { } } // Metadata.xml XPath method reference: path="/api/package[@name='com.tencent.tinker.lib.patch']/class[@name='DexDiffPatchInternal']/method[@name='waitAndCheckDexOptFile' and count(parameter)=2 and parameter[1][@type='java.io.File'] and parameter[2][@type='com.tencent.tinker.lib.tinker.Tinker']]" [Register ("waitAndCheckDexOptFile", "(Ljava/io/File;Lcom/tencent/tinker/lib/tinker/Tinker;)Z", "")] protected static unsafe bool WaitAndCheckDexOptFile (global::Java.IO.File patchFile, global::Com.Tencent.Tinker.Lib.Tinker.Tinker manager) { const string __id = "waitAndCheckDexOptFile.(Ljava/io/File;Lcom/tencent/tinker/lib/tinker/Tinker;)Z"; try { JniArgumentValue* __args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue ((patchFile == null) ? IntPtr.Zero : ((global::Java.Lang.Object) patchFile).Handle); __args [1] = new JniArgumentValue ((manager == null) ? IntPtr.Zero : ((global::Java.Lang.Object) manager).Handle); var __rm = _members.StaticMethods.InvokeBooleanMethod (__id, __args); return __rm; } finally { global::System.GC.KeepAlive (patchFile); global::System.GC.KeepAlive (manager); } } } }