Update ConnectivityDiagnosticsCallback function name.
API Council feedback suggests renaming ConnectivityDiagnosticsCallback 'onConnectivityReport' function to be 'onConnectivityReportAvailable'. Bug: 150598997 Test: atest FrameworksNetTests Change-Id: Ieea727ecee6cf358a53a215fd4b06233dfe967ea Merged-In: Ieea727ecee6cf358a53a215fd4b06233dfe967ea
This commit is contained in:
@@ -233,8 +233,8 @@ public class ConnectivityDiagnosticsManager {
|
||||
* Constructor for ConnectivityReport.
|
||||
*
|
||||
* <p>Apps should obtain instances through {@link
|
||||
* ConnectivityDiagnosticsCallback#onConnectivityReport} instead of instantiating their own
|
||||
* instances (unless for testing purposes).
|
||||
* ConnectivityDiagnosticsCallback#onConnectivityReportAvailable} instead of instantiating
|
||||
* their own instances (unless for testing purposes).
|
||||
*
|
||||
* @param network The Network for which this ConnectivityReport applies
|
||||
* @param reportTimestamp The timestamp for the report
|
||||
@@ -622,10 +622,10 @@ public class ConnectivityDiagnosticsManager {
|
||||
|
||||
/** @hide */
|
||||
@VisibleForTesting
|
||||
public void onConnectivityReport(@NonNull ConnectivityReport report) {
|
||||
public void onConnectivityReportAvailable(@NonNull ConnectivityReport report) {
|
||||
Binder.withCleanCallingIdentity(() -> {
|
||||
mExecutor.execute(() -> {
|
||||
mCb.onConnectivityReport(report);
|
||||
mCb.onConnectivityReportAvailable(report);
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -666,7 +666,7 @@ public class ConnectivityDiagnosticsManager {
|
||||
*
|
||||
* @param report The ConnectivityReport containing information about a connectivity check
|
||||
*/
|
||||
public void onConnectivityReport(@NonNull ConnectivityReport report) {}
|
||||
public void onConnectivityReportAvailable(@NonNull ConnectivityReport report) {}
|
||||
|
||||
/**
|
||||
* Called when the platform suspects a data stall on some Network.
|
||||
|
||||
Reference in New Issue
Block a user