diff --git a/Tethering/src/com/android/networkstack/tethering/EntitlementManager.java b/Tethering/src/com/android/networkstack/tethering/EntitlementManager.java index 741af5c070..784ebd5cc9 100644 --- a/Tethering/src/com/android/networkstack/tethering/EntitlementManager.java +++ b/Tethering/src/com/android/networkstack/tethering/EntitlementManager.java @@ -296,7 +296,7 @@ public class EntitlementManager { * 4th priority : Checks whether provisioning is required from RRO configuration. * * @param config - * @return integer {@see #TETHERING_PROVISIONING_NOT_REQUIRED, + * @return integer See {@link #TETHERING_PROVISIONING_NOT_REQUIRED, * #TETHERING_PROVISIONING_REQUIRED, * #TETHERING_PROVISIONING_CARRIER_UNSUPPORT} */ diff --git a/framework-t/src/android/net/netstats/provider/NetworkStatsProvider.java b/framework-t/src/android/net/netstats/provider/NetworkStatsProvider.java index d37a53dbf1..66d99a1d8d 100644 --- a/framework-t/src/android/net/netstats/provider/NetworkStatsProvider.java +++ b/framework-t/src/android/net/netstats/provider/NetworkStatsProvider.java @@ -118,7 +118,7 @@ public abstract class NetworkStatsProvider { * * @param token the token under which these stats were gathered. Providers can call this method * with the current token as often as they want, until the token changes. - * {@see NetworkStatsProvider#onRequestStatsUpdate()} + * See {@link NetworkStatsProvider#onRequestStatsUpdate(int)} * @param ifaceStats the {@link NetworkStats} per interface to be reported. * The provider should not include any traffic that is already counted by * kernel interface counters. diff --git a/framework-t/src/android/net/nsd/NsdManager.java b/framework-t/src/android/net/nsd/NsdManager.java index fad63e5afe..3fcc11b6bc 100644 --- a/framework-t/src/android/net/nsd/NsdManager.java +++ b/framework-t/src/android/net/nsd/NsdManager.java @@ -126,7 +126,7 @@ import java.util.concurrent.Executor; * http://www.iana.org/form/ports-service. Existing services can be found at * http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml * - * {@see NsdServiceInfo} + * @see NsdServiceInfo */ @SystemService(Context.NSD_SERVICE) public final class NsdManager { diff --git a/framework-t/src/android/net/nsd/NsdServiceInfo.java b/framework-t/src/android/net/nsd/NsdServiceInfo.java index 200c808565..6438a6054f 100644 --- a/framework-t/src/android/net/nsd/NsdServiceInfo.java +++ b/framework-t/src/android/net/nsd/NsdServiceInfo.java @@ -34,7 +34,7 @@ import java.util.Map; /** * A class representing service information for network service discovery - * {@see NsdManager} + * @see NsdManager */ public final class NsdServiceInfo implements Parcelable { diff --git a/framework/src/android/net/ConnectivityManager.java b/framework/src/android/net/ConnectivityManager.java index c3f640d87b..6ccd77ee15 100644 --- a/framework/src/android/net/ConnectivityManager.java +++ b/framework/src/android/net/ConnectivityManager.java @@ -556,7 +556,7 @@ public class ConnectivityManager { * * @deprecated Applications should instead use {@link NetworkCapabilities#hasTransport} or * {@link #requestNetwork(NetworkRequest, NetworkCallback)} to request an - * appropriate network. {@see NetworkCapabilities} for supported transports. + * appropriate network. See {@link NetworkCapabilities} for supported transports. */ @Deprecated public static final int TYPE_MOBILE = 0; @@ -566,7 +566,7 @@ public class ConnectivityManager { * * @deprecated Applications should instead use {@link NetworkCapabilities#hasTransport} or * {@link #requestNetwork(NetworkRequest, NetworkCallback)} to request an - * appropriate network. {@see NetworkCapabilities} for supported transports. + * appropriate network. See {@link NetworkCapabilities} for supported transports. */ @Deprecated public static final int TYPE_WIFI = 1; @@ -617,7 +617,7 @@ public class ConnectivityManager { * * @deprecated Applications should instead use {@link NetworkCapabilities#hasTransport} or * {@link #requestNetwork(NetworkRequest, NetworkCallback)} to request an - * appropriate network. {@see NetworkCapabilities} for supported transports. + * appropriate network. See {@link NetworkCapabilities} for supported transports. */ @Deprecated public static final int TYPE_MOBILE_HIPRI = 5; @@ -627,7 +627,7 @@ public class ConnectivityManager { * * @deprecated Applications should instead use {@link NetworkCapabilities#hasTransport} or * {@link #requestNetwork(NetworkRequest, NetworkCallback)} to request an - * appropriate network. {@see NetworkCapabilities} for supported transports. + * appropriate network. See {@link NetworkCapabilities} for supported transports. */ @Deprecated public static final int TYPE_WIMAX = 6; @@ -637,7 +637,7 @@ public class ConnectivityManager { * * @deprecated Applications should instead use {@link NetworkCapabilities#hasTransport} or * {@link #requestNetwork(NetworkRequest, NetworkCallback)} to request an - * appropriate network. {@see NetworkCapabilities} for supported transports. + * appropriate network. See {@link NetworkCapabilities} for supported transports. */ @Deprecated public static final int TYPE_BLUETOOTH = 7; @@ -654,7 +654,7 @@ public class ConnectivityManager { * * @deprecated Applications should instead use {@link NetworkCapabilities#hasTransport} or * {@link #requestNetwork(NetworkRequest, NetworkCallback)} to request an - * appropriate network. {@see NetworkCapabilities} for supported transports. + * appropriate network. See {@link NetworkCapabilities} for supported transports. */ @Deprecated public static final int TYPE_ETHERNET = 9; @@ -1204,7 +1204,7 @@ public class ConnectivityManager { /** * Preference for {@link ProfileNetworkPreference#setPreference(int)}. - * {@see #setProfileNetworkPreferences(UserHandle, List, Executor, Runnable)} + * See {@link #setProfileNetworkPreferences(UserHandle, List, Executor, Runnable)} * Specify that the traffic for this user should by follow the default rules. * @hide */ @@ -1213,7 +1213,7 @@ public class ConnectivityManager { /** * Preference for {@link ProfileNetworkPreference#setPreference(int)}. - * {@see #setProfileNetworkPreferences(UserHandle, List, Executor, Runnable)} + * See {@link #setProfileNetworkPreferences(UserHandle, List, Executor, Runnable)} * Specify that the traffic for this user should by default go on a network with * {@link NetworkCapabilities#NET_CAPABILITY_ENTERPRISE}, and on the system default network * if no such network is available. @@ -1224,7 +1224,7 @@ public class ConnectivityManager { /** * Preference for {@link ProfileNetworkPreference#setPreference(int)}. - * {@see #setProfileNetworkPreferences(UserHandle, List, Executor, Runnable)} + * See {@link #setProfileNetworkPreferences(UserHandle, List, Executor, Runnable)} * Specify that the traffic for this user should by default go on a network with * {@link NetworkCapabilities#NET_CAPABILITY_ENTERPRISE} and if no such network is available * should not go on the system default network @@ -3383,8 +3383,8 @@ public class ConnectivityManager { * proxy is likely to break networking on multiple networks. This method is only meant * for device policy clients looking to do general internal filtering or similar use cases. * - * {@see #getGlobalProxy} - * {@see LinkProperties#getHttpProxy} + * @see #getGlobalProxy + * @see LinkProperties#getHttpProxy * * @param p A {@link ProxyInfo} object defining the new global HTTP proxy. Calling this * method with a {@code null} value will clear the global HTTP proxy. @@ -4277,7 +4277,7 @@ public class ConnectivityManager { * network, unless it becomes the best again at some later time. All callbacks are invoked * in order on the same thread, which by default is a thread created by the framework running * in the app. - * {@link #requestNetwork(NetworkRequest, NetworkCallback, Handler)} to change where the + * See {@link #requestNetwork(NetworkRequest, NetworkCallback, Handler)} to change where the * callbacks are invoked. * *
This{@link NetworkRequest} will live until released via
diff --git a/framework/src/android/net/DnsResolver.java b/framework/src/android/net/DnsResolver.java
index 164160f067..5e637f980f 100644
--- a/framework/src/android/net/DnsResolver.java
+++ b/framework/src/android/net/DnsResolver.java
@@ -137,7 +137,7 @@ public final class DnsResolver {
* @param answer
- * {@see Builder#setLinkUpstreamBandwidthKbps}
+ * @see Builder#setLinkUpstreamBandwidthKbps
*
* @param upKbps the estimated first hop upstream (device to network) bandwidth.
* @hide
@@ -1484,7 +1484,7 @@ public final class NetworkCapabilities implements Parcelable {
* Sets the downstream bandwidth for this network in Kbps. This always only refers to
* the estimated first hop transport bandwidth.
*
- * {@see Builder#setLinkUpstreamBandwidthKbps}
+ * @see Builder#setLinkUpstreamBandwidthKbps
*
* @param downKbps the estimated first hop downstream (network to device) bandwidth.
* @hide
@@ -2534,7 +2534,7 @@ public final class NetworkCapabilities implements Parcelable {
/**
* Set the uid and package name of the app causing this network to exist.
*
- * {@see #setRequestorUid} and {@link #setRequestorPackageName}
+ * See {@link #setRequestorUid} and {@link #setRequestorPackageName}
*
* @param uid UID of the app.
* @param packageName package name of the app.
@@ -2719,7 +2719,7 @@ public final class NetworkCapabilities implements Parcelable {
/**
* Removes the given transport type.
*
- * {@see #addTransportType}.
+ * @see #addTransportType
*
* @param transportType the transport type to be added or removed.
* @return this builder
diff --git a/framework/src/android/net/ProfileNetworkPreference.java b/framework/src/android/net/ProfileNetworkPreference.java
index fdcab0226e..8b98721dda 100644
--- a/framework/src/android/net/ProfileNetworkPreference.java
+++ b/framework/src/android/net/ProfileNetworkPreference.java
@@ -79,7 +79,7 @@ public final class ProfileNetworkPreference implements Parcelable {
* if included is not empty, then only included UIDs are applied.
* if excluded is not empty, then it is all uids in the user profile except these UIDs.
* @return Array of uids included for the profile preference.
- * {@see #getExcludedUids()}
+ * @see #getExcludedUids()
*/
public @NonNull int[] getIncludedUids() {
return mIncludedUids.clone();
@@ -93,7 +93,7 @@ public final class ProfileNetworkPreference implements Parcelable {
* If included is not empty, then only included UIDs are applied.
* If excluded is not empty, then it is all uids in the user profile except these UIDs.
* @return Array of uids not included for the profile preference.
- * {@see #getIncludedUids()}
+ * @see #getIncludedUids()
*/
public @NonNull int[] getExcludedUids() {
return mExcludedUids.clone();
@@ -177,7 +177,7 @@ public final class ProfileNetworkPreference implements Parcelable {
/**
* This is a array of uids for which profile perefence is set.
* Empty would mean that this preference applies to all uids in the profile.
- * {@see #setExcludedUids(int[])}
+ * @see #setExcludedUids(int[])
* Included UIDs and Excluded UIDs can't both be non-empty.
* if both are empty, it means this request applies to all uids in the user profile.
* if included is not empty, then only included UIDs are applied.
@@ -195,7 +195,7 @@ public final class ProfileNetworkPreference implements Parcelable {
/**
* This is a array of uids that are excluded for the profile perefence.
- * {@see #setIncludedUids(int[])}
+ * @see #setIncludedUids(int[])
* Included UIDs and Excluded UIDs can't both be non-empty.
* if both are empty, it means this request applies to all uids in the user profile.
* if included is not empty, then only included UIDs are applied.
diff --git a/service-t/src/com/android/server/net/NetworkStatsService.java b/service-t/src/com/android/server/net/NetworkStatsService.java
index e5bd94b891..fef6afbf4f 100644
--- a/service-t/src/com/android/server/net/NetworkStatsService.java
+++ b/service-t/src/com/android/server/net/NetworkStatsService.java
@@ -303,7 +303,7 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
/**
* When enabled, all mobile data is reported under {@link NetworkTemplate#NETWORK_TYPE_ALL}.
* When disabled, mobile data is broken down by a granular ratType representative of the
- * actual ratType. {@see android.app.usage.NetworkStatsManager#getCollapsedRatType}.
+ * actual ratType. See {@link android.app.usage.NetworkStatsManager#getCollapsedRatType}.
* Enabling this decreases the level of detail but saves performance, disk space and
* amount of data logged.
*/
diff --git a/service/src/com/android/server/ConnectivityService.java b/service/src/com/android/server/ConnectivityService.java
index eb8313dd93..7050b426a9 100644
--- a/service/src/com/android/server/ConnectivityService.java
+++ b/service/src/com/android/server/ConnectivityService.java
@@ -453,7 +453,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
* direct device-originated data traffic of the specific UIDs to the correct
* default network for each app.
* Order ints passed to netd must be in the 0~999 range. Larger values code for
- * a lower priority, {@see NativeUidRangeConfig}
+ * a lower priority, see {@link NativeUidRangeConfig}.
*
* Requests that don't code for a per-app preference use PREFERENCE_ORDER_INVALID.
* The default request uses PREFERENCE_ORDER_DEFAULT.
diff --git a/service/src/com/android/server/connectivity/FullScore.java b/service/src/com/android/server/connectivity/FullScore.java
index b13ba9328a..b156045533 100644
--- a/service/src/com/android/server/connectivity/FullScore.java
+++ b/service/src/com/android/server/connectivity/FullScore.java
@@ -76,16 +76,16 @@ public class FullScore {
public static final int POLICY_IS_VPN = 62;
// This network has been selected by the user manually from settings or a 3rd party app
- // at least once. {@see NetworkAgentConfig#explicitlySelected}.
+ // at least once. @see NetworkAgentConfig#explicitlySelected.
/** @hide */
public static final int POLICY_EVER_USER_SELECTED = 61;
// The user has indicated in UI that this network should be used even if it doesn't
- // validate. {@see NetworkAgentConfig#acceptUnvalidated}.
+ // validate. @see NetworkAgentConfig#acceptUnvalidated.
/** @hide */
public static final int POLICY_ACCEPT_UNVALIDATED = 60;
- // This network is unmetered. {@see NetworkCapabilities.NET_CAPABILITY_NOT_METERED}.
+ // This network is unmetered. @see NetworkCapabilities.NET_CAPABILITY_NOT_METERED.
/** @hide */
public static final int POLICY_IS_UNMETERED = 59;