Merge "Add comment / logging in NetworkMonitor callbacks" am: 34e9cb2fdc

Change-Id: I8ba92e70462735961ae260234fc53f39e71994c5
This commit is contained in:
Remi NGUYEN VAN
2020-04-27 07:56:55 +00:00
committed by Automerger Merge Worker

View File

@@ -3003,10 +3003,13 @@ public class ConnectivityService extends IConnectivityManager.Stub
// Legacy version of notifyNetworkTestedWithExtras. // Legacy version of notifyNetworkTestedWithExtras.
// Would only be called if the system has a NetworkStack module older than the // Would only be called if the system has a NetworkStack module older than the
// framework, which does not happen in practice. // framework, which does not happen in practice.
Slog.wtf(TAG, "Deprecated notifyNetworkTested called: no action taken");
} }
@Override @Override
public void notifyNetworkTestedWithExtras(NetworkTestResultParcelable p) { public void notifyNetworkTestedWithExtras(NetworkTestResultParcelable p) {
// Notify mTrackerHandler and mConnectivityDiagnosticsHandler of the event. Both use
// the same looper so messages will be processed in sequence.
final Message msg = mTrackerHandler.obtainMessage( final Message msg = mTrackerHandler.obtainMessage(
EVENT_NETWORK_TESTED, EVENT_NETWORK_TESTED,
new NetworkTestedResults( new NetworkTestedResults(