From 4f956270f7b72ec7c792ddda65dd90248ec4b7e5 Mon Sep 17 00:00:00 2001 From: Motomu Utsumi Date: Thu, 15 Feb 2024 15:41:50 +0900 Subject: [PATCH] Update javadoc for NET_CAPABILITY_LOCAL_NETWORK API Bug: 324326824 Test: TH Change-Id: I6d5f9c27b2fc2f2290e27f63b933b9ccacfffa85 --- framework/src/android/net/NetworkCapabilities.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/framework/src/android/net/NetworkCapabilities.java b/framework/src/android/net/NetworkCapabilities.java index 140a63170d..f6ef75ea11 100644 --- a/framework/src/android/net/NetworkCapabilities.java +++ b/framework/src/android/net/NetworkCapabilities.java @@ -720,7 +720,18 @@ public final class NetworkCapabilities implements Parcelable { public static final int NET_CAPABILITY_PRIORITIZE_BANDWIDTH = 35; /** - * Indicates that this network is a local network, e.g. thread network + * Indicates that this network is a local network. + * + * Local networks are networks where the device is not obtaining IP addresses from the + * network, but advertising IP addresses itself. Examples of local networks are: + * + * + * Networks used to obtain Internet access are never local networks. * * Apps that target an SDK before {@link Build.VERSION_CODES.VANILLA_ICE_CREAM} will not see * networks with this capability unless they explicitly set the NET_CAPABILITY_LOCAL_NETWORK