Skip to content

Commit

Permalink
Update generated classes after commit 5021883
Browse files Browse the repository at this point in the history
  • Loading branch information
masesdevelopers authored and github-actions[bot] committed Jun 3, 2024
1 parent 5021883 commit 95ea777
Show file tree
Hide file tree
Showing 8 changed files with 338 additions and 126 deletions.
9 changes: 9 additions & 0 deletions src/net/Netdroid/Generated/Android/Net/Wifi/WifiInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,15 @@ public Android.Net.MacAddress GetApMldMacAddress()
return IExecuteWithSignature<Android.Net.MacAddress>("getApMldMacAddress", "()Landroid/net/MacAddress;");
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/net/wifi/WifiInfo.html#makeCopy(long)"/>
/// </summary>
/// <param name="arg0"><see cref="long"/></param>
/// <returns><see cref="Android.Net.TransportInfo"/></returns>
public Android.Net.TransportInfo MakeCopy(long arg0)
{
return IExecuteWithSignature<Android.Net.TransportInfo>("makeCopy", "(J)Landroid/net/TransportInfo;", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/net/wifi/WifiInfo.html#getSupplicantState()"/>
/// </summary>
/// <returns><see cref="Android.Net.Wifi.SupplicantState"/></returns>
Expand Down
90 changes: 85 additions & 5 deletions src/net/Netdroid/Generated/Android/Widget/AdapterView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -835,12 +835,85 @@ public T GetAdapter()
{
return IExecuteWithSignature<T>("getAdapter", "()Landroid/widget/Adapter;");
}

/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#getAdapter()"/>
/// </summary>
/// <returns><typeparamref name="T"/></returns>
public T GetAdapterDirect()
{
return IExecuteWithSignature<TDirect, T>("getAdapter", "()Landroid/widget/Adapter;");
}

/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#setAdapter(android.widget.Adapter)"/>
/// </summary>
/// <param name="arg0"><typeparamref name="T"/></param>
public void SetAdapter(T arg0)
{
IExecuteWithSignature("setAdapter", "(Landroid/widget/Adapter;)V", arg0);
}


/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#setSelection(int)"/>
/// </summary>
/// <param name="arg0"><see cref="int"/></param>
public void SetSelection(int arg0)
{
IExecuteWithSignature("setSelection", "(I)V", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#getEmptyView()"/>
/// </summary>
/// <returns><see cref="Android.View.View"/></returns>
public Android.View.View GetEmptyView()
{
return IExecuteWithSignature<Android.View.View>("getEmptyView", "()Landroid/view/View;");
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#performItemClick(android.view.View,int,long)"/>
/// </summary>
/// <param name="arg0"><see cref="Android.View.View"/></param>
/// <param name="arg1"><see cref="int"/></param>
/// <param name="arg2"><see cref="long"/></param>
/// <returns><see cref="bool"/></returns>
public bool PerformItemClick(Android.View.View arg0, int arg1, long arg2)
{
return IExecute<bool>("performItemClick", arg0, arg1, arg2);
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#getOnItemClickListener()"/>
/// </summary>
/// <returns><see cref="Android.Widget.AdapterView.OnItemClickListener"/></returns>
public Android.Widget.AdapterView.OnItemClickListener GetOnItemClickListener()
{
return IExecuteWithSignature<Android.Widget.AdapterView.OnItemClickListener>("getOnItemClickListener", "()Landroid/widget/AdapterView$OnItemClickListener;");
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#getOnItemClickListener()"/>
/// </summary>
/// <returns><see cref="Android.Widget.AdapterView.OnItemClickListener"/></returns>
public Android.Widget.AdapterView.OnItemClickListener GetOnItemClickListenerDirect()
{
return IExecuteWithSignature<Android.Widget.AdapterView.OnItemClickListenerDirect, Android.Widget.AdapterView.OnItemClickListener>("getOnItemClickListener", "()Landroid/widget/AdapterView$OnItemClickListener;");
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#getOnItemLongClickListener()"/>
/// </summary>
/// <returns><see cref="Android.Widget.AdapterView.OnItemLongClickListener"/></returns>
public Android.Widget.AdapterView.OnItemLongClickListener GetOnItemLongClickListener()
{
return IExecuteWithSignature<Android.Widget.AdapterView.OnItemLongClickListener>("getOnItemLongClickListener", "()Landroid/widget/AdapterView$OnItemLongClickListener;");
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#getOnItemLongClickListener()"/>
/// </summary>
/// <returns><see cref="Android.Widget.AdapterView.OnItemLongClickListener"/></returns>
public Android.Widget.AdapterView.OnItemLongClickListener GetOnItemLongClickListenerDirect()
{
return IExecuteWithSignature<Android.Widget.AdapterView.OnItemLongClickListenerDirect, Android.Widget.AdapterView.OnItemLongClickListener>("getOnItemLongClickListener", "()Landroid/widget/AdapterView$OnItemLongClickListener;");
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#getOnItemSelectedListener()"/>
/// </summary>
/// <returns><see cref="Android.Widget.AdapterView.OnItemSelectedListener"/></returns>
public Android.Widget.AdapterView.OnItemSelectedListener GetOnItemSelectedListener()
{
return IExecuteWithSignature<Android.Widget.AdapterView.OnItemSelectedListener>("getOnItemSelectedListener", "()Landroid/widget/AdapterView$OnItemSelectedListener;");
Expand All @@ -861,7 +934,14 @@ public int GetCount()
{
return IExecuteWithSignature<int>("getCount", "()I");
}

/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#getFirstVisiblePosition()"/>
/// </summary>
/// <returns><see cref="int"/></returns>
public int GetFirstVisiblePosition()
{
return IExecuteWithSignature<int>("getFirstVisiblePosition", "()I");
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#getLastVisiblePosition()"/>
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public AutoCompleteTextView(Android.Content.Context arg0)
/// </summary>
/// <param name="arg0"><typeparamref name="T"/></param>
/// <typeparam name="T"><see cref="Android.Widget.IListAdapter"/></typeparam>
public void SetAdapter<T>(T arg0) where T : Android.Widget.IListAdapter, Android.Widget.IFilterable, new()
public void SetAdapter<T>(T arg0) where T : Android.Widget.IListAdapter, new(), Android.Widget.IFilterable, new()
{
IExecuteWithSignature("setAdapter", "(Landroid/widget/ListAdapter;)V", arg0);
}
Expand Down
43 changes: 43 additions & 0 deletions src/net/Netdroid/Generated/Java/Lang/AllPackageClasses.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1836,6 +1836,49 @@ public Runnable(params object[] args) : base(args) { }
}
#endregion

#region Runtime
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html"/>
/// </summary>
public partial class Runtime : MASES.JCOBridge.C2JBridge.JVMBridgeBase<Runtime>
{
const string _bridgeClassName = "java.lang.Runtime";
/// <summary>
/// Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
/// </summary>
public Runtime() { }
/// <summary>
/// Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
/// </summary>
public Runtime(params object[] args) : base(args) { }

private static readonly IJavaType LocalBridgeClazz = ClazzOf(_bridgeClassName);

/// <summary>
/// <see href="https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm"/>
/// </summary>
public override string BridgeClassName => _bridgeClassName;
/// <summary>
/// <see href="https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_IsBridgeAbstract.htm"/>
/// </summary>
public override bool IsBridgeAbstract => false;
/// <summary>
/// <see href="https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_IsBridgeCloseable.htm"/>
/// </summary>
public override bool IsBridgeCloseable => false;
/// <summary>
/// <see href="https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_IsBridgeInterface.htm"/>
/// </summary>
public override bool IsBridgeInterface => false;
/// <summary>
/// <see href="https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_IsBridgeStatic.htm"/>
/// </summary>
public override bool IsBridgeStatic => false;

// TODO: complete the class

}
#endregion

#region RuntimePermission
/// <summary>
Expand Down
197 changes: 197 additions & 0 deletions src/net/Netdroid/Generated/Java/Lang/Runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,203 @@

namespace Java.Lang
{
#region Runtime
public partial class Runtime
{
#region Constructors

#endregion

#region Class/Interface conversion operators

#endregion

#region Fields

#endregion

#region Static methods
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#getRuntime()"/>
/// </summary>
/// <returns><see cref="Java.Lang.Runtime"/></returns>
public static Java.Lang.Runtime GetRuntime()
{
return SExecuteWithSignature<Java.Lang.Runtime>(LocalBridgeClazz, "getRuntime", "()Ljava/lang/Runtime;");
}

#endregion

#region Instance methods
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#removeShutdownHook(java.lang.Thread)"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.Thread"/></param>
/// <returns><see cref="bool"/></returns>
public bool RemoveShutdownHook(Java.Lang.Thread arg0)
{
return IExecuteWithSignature<bool>("removeShutdownHook", "(Ljava/lang/Thread;)Z", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#exec(java.lang.String,java.lang.String[],java.io.File)"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.String"/></param>
/// <param name="arg1"><see cref="Java.Lang.String"/></param>
/// <param name="arg2"><see cref="Java.Io.File"/></param>
/// <returns><see cref="Java.Lang.Process"/></returns>
/// <exception cref="Java.Io.IOException"/>
public Java.Lang.Process Exec(Java.Lang.String arg0, Java.Lang.String[] arg1, Java.Io.File arg2)
{
return IExecute<Java.Lang.Process>("exec", arg0, arg1, arg2);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#exec(java.lang.String,java.lang.String[])"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.String"/></param>
/// <param name="arg1"><see cref="Java.Lang.String"/></param>
/// <returns><see cref="Java.Lang.Process"/></returns>
/// <exception cref="Java.Io.IOException"/>
public Java.Lang.Process Exec(Java.Lang.String arg0, Java.Lang.String[] arg1)
{
return IExecute<Java.Lang.Process>("exec", arg0, arg1);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#exec(java.lang.String)"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.String"/></param>
/// <returns><see cref="Java.Lang.Process"/></returns>
/// <exception cref="Java.Io.IOException"/>
public Java.Lang.Process Exec(Java.Lang.String arg0)
{
return IExecuteWithSignature<Java.Lang.Process>("exec", "(Ljava/lang/String;)Ljava/lang/Process;", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#exec(java.lang.String[],java.lang.String[],java.io.File)"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.String"/></param>
/// <param name="arg1"><see cref="Java.Lang.String"/></param>
/// <param name="arg2"><see cref="Java.Io.File"/></param>
/// <returns><see cref="Java.Lang.Process"/></returns>
/// <exception cref="Java.Io.IOException"/>
public Java.Lang.Process Exec(Java.Lang.String[] arg0, Java.Lang.String[] arg1, Java.Io.File arg2)
{
return IExecute<Java.Lang.Process>("exec", arg0, arg1, arg2);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#exec(java.lang.String[],java.lang.String[])"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.String"/></param>
/// <param name="arg1"><see cref="Java.Lang.String"/></param>
/// <returns><see cref="Java.Lang.Process"/></returns>
/// <exception cref="Java.Io.IOException"/>
public Java.Lang.Process Exec(Java.Lang.String[] arg0, Java.Lang.String[] arg1)
{
return IExecute<Java.Lang.Process>("exec", arg0, arg1);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#exec(java.lang.String[])"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.String"/></param>
/// <returns><see cref="Java.Lang.Process"/></returns>
/// <exception cref="Java.Io.IOException"/>
public Java.Lang.Process Exec(Java.Lang.String[] arg0)
{
return IExecuteWithSignature<Java.Lang.Process>("exec", "([Ljava/lang/String;)Ljava/lang/Process;", new object[] { arg0 });
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#availableProcessors()"/>
/// </summary>
/// <returns><see cref="int"/></returns>
public int AvailableProcessors()
{
return IExecuteWithSignature<int>("availableProcessors", "()I");
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#freeMemory()"/>
/// </summary>
/// <returns><see cref="long"/></returns>
public long FreeMemory()
{
return IExecuteWithSignature<long>("freeMemory", "()J");
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#maxMemory()"/>
/// </summary>
/// <returns><see cref="long"/></returns>
public long MaxMemory()
{
return IExecuteWithSignature<long>("maxMemory", "()J");
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#totalMemory()"/>
/// </summary>
/// <returns><see cref="long"/></returns>
public long TotalMemory()
{
return IExecuteWithSignature<long>("totalMemory", "()J");
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#gc()"/>
/// </summary>
public void Gc()
{
IExecuteWithSignature("gc", "()V");
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#addShutdownHook(java.lang.Thread)"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.Thread"/></param>
public void AddShutdownHook(Java.Lang.Thread arg0)
{
IExecuteWithSignature("addShutdownHook", "(Ljava/lang/Thread;)V", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#exit(int)"/>
/// </summary>
/// <param name="arg0"><see cref="int"/></param>
public void Exit(int arg0)
{
IExecuteWithSignature("exit", "(I)V", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#halt(int)"/>
/// </summary>
/// <param name="arg0"><see cref="int"/></param>
public void Halt(int arg0)
{
IExecuteWithSignature("halt", "(I)V", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#load(java.lang.String)"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.String"/></param>
public void Load(Java.Lang.String arg0)
{
IExecuteWithSignature("load", "(Ljava/lang/String;)V", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#loadLibrary(java.lang.String)"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.String"/></param>
public void LoadLibrary(Java.Lang.String arg0)
{
IExecuteWithSignature("loadLibrary", "(Ljava/lang/String;)V", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#runFinalization()"/>
/// </summary>
public void RunFinalization()
{
IExecuteWithSignature("runFinalization", "()V");
}

#endregion

#region Nested classes

#endregion

// TODO: complete the class
}
#endregion
}
Loading

0 comments on commit 95ea777

Please sign in to comment.