From b125776009896b7f99dddf44978c0cc92ca03645 Mon Sep 17 00:00:00 2001 From: Cody Kesting Date: Tue, 17 Dec 2019 17:21:40 -0800 Subject: Add ConnectivityDiagnosticsManager to System Server. ConnectivityDiagnosticsManager should be accessed through Context#getService. In order for this to be possible, it needs to be defined as a service inside SystemServiceRegistry. Bug: 146444622 Test: compiles. Test: CTS testing in aosp/1211164 Change-Id: I6fe29441ecc9967a04ceb394b3bbe54830bef079 --- core/java/android/content/Context.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'core/java/android/content/Context.java') diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index cd4af968ebfc..725fd0531911 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -3879,6 +3879,16 @@ public abstract class Context { */ public static final String IPSEC_SERVICE = "ipsec"; + /** + * Use with {@link #getSystemService(String)} to retrieve a {@link + * android.net.ConnectivityDiagnosticsManager} for performing network connectivity diagnostics + * as well as receiving network connectivity information from the system. + * + * @see #getSystemService(String) + * @see android.net.ConnectivityDiagnosticsManager + */ + public static final String CONNECTIVITY_DIAGNOSTICS_SERVICE = "connectivity_diagnostics"; + /** * Use with {@link #getSystemService(String)} to retrieve a {@link * android.net.TestNetworkManager} for building TUNs and limited-use Networks -- cgit v1.2.3