Expose sendNetworkScore that takes a NetworkScore am: 536a5bac26

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1726730

Change-Id: Id63fba1ea3b4e169559771ba62b8e0bf7a6afa00
This commit is contained in:
Chalard Jean
2021-06-08 23:09:36 +00:00
committed by Automerger Merge Worker
2 changed files with 1 additions and 1 deletions

View File

@@ -232,6 +232,7 @@ package android.net {
method @NonNull public android.net.Network register();
method public final void sendLinkProperties(@NonNull android.net.LinkProperties);
method public final void sendNetworkCapabilities(@NonNull android.net.NetworkCapabilities);
method public final void sendNetworkScore(@NonNull android.net.NetworkScore);
method public final void sendNetworkScore(@IntRange(from=0, to=99) int);
method public final void sendQosCallbackError(int, int);
method public final void sendQosSessionAvailable(int, int, @NonNull android.net.QosSessionAttributes);

View File

@@ -956,7 +956,6 @@ public abstract class NetworkAgent {
* Must be called by the agent to update the score of this network.
*
* @param score the new score.
* @hide TODO : unhide when impl is complete
*/
public final void sendNetworkScore(@NonNull NetworkScore score) {
Objects.requireNonNull(score);