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

@@ -11387,7 +11387,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
public boolean getFirewallChainEnabled(final int chain) {
enforceNetworkStackOrSettingsPermission();
return mBpfNetMaps.getChainEnabled(chain);
return mBpfNetMaps.isChainEnabled(chain);
}
@Override