From b82a74b07782dbb85db41237a3d673d14b35d7f0 Mon Sep 17 00:00:00 2001 From: Chalard Jean Date: Wed, 31 Mar 2021 22:14:21 +0900 Subject: [PATCH] Expose sendNetworkScore that takes a NetworkScore Bug: 167544279 Test: FrameworksNetTests CTS-Coverage-Bug: 184037351 Change-Id: I5dd9b526c53cb99a5e4ae87f1e3724a7a1870e78 --- framework/api/system-current.txt | 1 + framework/src/android/net/NetworkAgent.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/api/system-current.txt b/framework/api/system-current.txt index 2cae99fbb3..5613ca1562 100644 --- a/framework/api/system-current.txt +++ b/framework/api/system-current.txt @@ -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); diff --git a/framework/src/android/net/NetworkAgent.java b/framework/src/android/net/NetworkAgent.java index c57da53f28..3622c1c669 100644 --- a/framework/src/android/net/NetworkAgent.java +++ b/framework/src/android/net/NetworkAgent.java @@ -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);