summaryrefslogtreecommitdiff
path: root/tests/unit/java/com/android/server/BpfNetMapsTest.java
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Remove ConnectivityManager swapActiveStatsMap API"Treehugger Robot2022-03-081-2/+0
|\
| * Remove ConnectivityManager swapActiveStatsMap APImarkchien2022-03-071-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | swapActiveStatsMap is temporary added for the NetworkStatsFactory to call BpfNetMaps#swapActiveStatsMap in tethering mainline module. Now NetworkStatsFactory already be mainlined, calling BpfNetMaps#swapActiveStatsMap directly. Bug: 218494448 Test: atest ConnectivityCoverageTests atest FrameworksNetTests Change-Id: I3358e4ac5fb7ed0964273afdbccd1b4128ca7645
* | Remove dead code in BpfNetMaps.Lorenzo Colitti2022-03-071-16/+0
|/ | | | | | | | | | | | | | | | | | | | Most of the methods in BpfNetMaps are only used on T+ devices, where BpfNetMaps never calls into netd. Remove the code in these methods that calls into netd, because that code can never run. The code was only written in the first place because it was necessary when TrafficController had not yet moved to mainline. The list of methods is: - addNaughtyApp - removeNaughtyApp - addNiceApp - removeNiceApp - setChildChain - replaceUidChain - setUidRule Test: treehugger Change-Id: Ie7d210be2f7983178f5aa550370b9476de66e988
* [NETD-TC#15] Make ConnectivityService and PermissionMonitorWayne Ma2022-01-311-0/+86
calls BpfNetMaps on T Since TrafficController moves to mainline module for T, so some netd binder interfaces revelant to BPF are going to deprecated. Provide JNI APIs to call TrafficController inside mainline module for T. Bug: 209935649 Test: atest CtsHostsideNetworkTests Change-Id: Ib3b43cf2840e02806395af9f1e019ca6fccd032e