From 68cfadc52371b21bb7e7f247916717a154a06a98 Mon Sep 17 00:00:00 2001 From: markchien Date: Fri, 14 Jan 2022 13:39:54 +0800 Subject: [PATCH] Fix some typos in comments This is CL just fix comments without changing behavior. Bug: 209935649 Test: m Change-Id: Iac40477bd2a3c48ba2a3f75a9cdf1174bcc89c3c --- framework/src/android/net/ConnectivityManager.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/framework/src/android/net/ConnectivityManager.java b/framework/src/android/net/ConnectivityManager.java index b870d93e13..a94db27505 100644 --- a/framework/src/android/net/ConnectivityManager.java +++ b/framework/src/android/net/ConnectivityManager.java @@ -5598,7 +5598,7 @@ public class ConnectivityManager { * background data is restricted. * * @param uid uid of target app - * @throws IllegalStateException if update allow list failed. + * @throws IllegalStateException if updating allow list failed. * @hide */ @SystemApi(client = MODULE_LIBRARIES) @@ -5620,7 +5620,7 @@ public class ConnectivityManager { * Takes precedence over {@link #updateMeteredNetworkAllowList}. * * @param uid uid of target app - * @throws IllegalStateException if update deny list failed. + * @throws IllegalStateException if updating deny list failed. * @hide */ @SystemApi(client = MODULE_LIBRARIES) @@ -5642,8 +5642,8 @@ public class ConnectivityManager { * * @param chain target chain. * @param uid uid to allow/deny. - * @param allow either add or remove rule. - * @throws IllegalStateException if update firewall rule failed. + * @param allow whether networking is allowed or denied. + * @throws IllegalStateException if updating firewall rule failed. * @hide */ @SystemApi(client = MODULE_LIBRARIES) @@ -5666,7 +5666,7 @@ public class ConnectivityManager { * * @param chain target chain. * @param enable whether the chain should be enabled. - * @throws IllegalStateException if set firewall chain failed. + * @throws IllegalStateException if enabling or disabling the firewall chain failed. * @hide */ @SystemApi(client = MODULE_LIBRARIES) @@ -5688,7 +5688,7 @@ public class ConnectivityManager { * * @param chain target chain to replace. * @param uids The list of UIDs to be placed into chain. - * @throws IllegalStateException if replace firewall chain failed. + * @throws IllegalStateException if replacing the firewall chain failed. * @throws IllegalArgumentException if {@code chain} is not a valid chain. * @hide */ @@ -5713,7 +5713,7 @@ public class ConnectivityManager { * NetworkStatsFactory which is platform code but will be moved into connectivity (tethering) * mainline module. * - * @throws IllegalStateException if swap active stats map failed. + * @throws IllegalStateException if swapping active stats map failed. * @hide */ @SystemApi(client = MODULE_LIBRARIES)