Refactor BpfNetMaps and getChainEnabled

Address comments from aosp/2117045 and aosp/2131752
Rename USE_NETD to PRE_T
Rename getChainEnabled to isChainEnabled
Remove unnecessary parentheses
Fix comment

Bug: 217624062
Test: atest BpfNetMapsTest
Change-Id: Iaff8c9fc5f74de3fe41a7fb010355b1742fbce90
This commit is contained in:
Motomu Utsumi
2022-06-27 08:50:19 +00:00
parent fd6a2d7c8c
commit 25cf86fc95
4 changed files with 43 additions and 43 deletions

View File

@@ -5922,7 +5922,7 @@ public class ConnectivityManager {
}
/**
* Get the specified firewall chain status.
* Get the specified firewall chain's status.
*
* @param chain target chain.
* @return {@code true} if chain is enabled, {@code false} if chain is disabled.