Add visibility to net-utils-framework-srcs
Allow framework-connectivity to depend on net-utils-framework-srcs, and add @hide annotations to classes that were missing it. This allows depending on less classes than net-utils-device-common, and avoids transitive dependency on androidx.annotations used by net-utils-device-common (which itself depends on the public SDK). Bug: 183600168 Test: m Merged-In: I89a18bb46311800fd6807dad5785f12648f165d9 Change-Id: I4c37d78198682366f56cde1b2707b0323f2f9e40
This commit is contained in:
parent
f8c12829c6
commit
651faf7610
5 changed files with 8 additions and 1 deletions
|
|
@ -83,7 +83,10 @@ filegroup {
|
|||
name: "net-utils-framework-common-srcs",
|
||||
srcs: ["framework/**/*.java"],
|
||||
path: "framework",
|
||||
visibility: ["//frameworks/base"],
|
||||
visibility: [
|
||||
"//frameworks/base",
|
||||
"//frameworks/base/packages/Connectivity/framework",
|
||||
],
|
||||
}
|
||||
|
||||
java_library {
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ import java.util.function.Predicate;
|
|||
|
||||
/**
|
||||
* Utilities for {@link Collection} and arrays.
|
||||
* @hide
|
||||
*/
|
||||
public final class CollectionUtils {
|
||||
private CollectionUtils() {}
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ import java.net.InetAddress;
|
|||
|
||||
/**
|
||||
* Various utilities used in connectivity code.
|
||||
* @hide
|
||||
*/
|
||||
public final class ConnectivityUtils {
|
||||
private ConnectivityUtils() {}
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ import com.android.internal.annotations.VisibleForTesting;
|
|||
|
||||
/**
|
||||
* Utilities to examine {@link android.net.NetworkCapabilities}.
|
||||
* @hide
|
||||
*/
|
||||
public final class NetworkCapabilitiesUtils {
|
||||
// Transports considered to classify networks in UI, in order of which transport should be
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ import android.annotation.Nullable;
|
|||
|
||||
/**
|
||||
* Utilities to examine {@link android.net.NetworkIdentity}.
|
||||
* @hide
|
||||
*/
|
||||
public class NetworkIdentityUtils {
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue