Home
last modified time | relevance | path

Searched refs:TestBpfMap (Results 1 – 11 of 11) sorted by relevance

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DBpfDumpTest.java37 import com.android.testutils.TestBpfMap;
109 new TestBpfMap<>(Struct.S32.class, Struct.S32.class); in testDumpMap()
121 new TestBpfMap<>(Struct.S32.class, Struct.S32.class); in testDumpMapMultipleEntries()
141 new TestBpfMap<>(Struct.S32.class, Struct.S32.class); in testGetMapStatus()
/packages/modules/Connectivity/tests/unit/
Djarjar-rules.txt3 rule com.android.testutils.TestBpfMap* android.net.frameworktests.testutils.TestBpfMap@1
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DTestBpfMap.java43 public class TestBpfMap<K extends Struct, V extends Struct> implements IBpfMap<K, V> { class
46 public TestBpfMap() {} in TestBpfMap() method in TestBpfMap
49 public TestBpfMap(final Class<K> key, final Class<V> value) { in TestBpfMap() method in TestBpfMap
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStackBpfNetMapsTest.kt38 import com.android.testutils.TestBpfMap
60 private val testConfigurationMap: IBpfMap<S32, U32> = TestBpfMap()
61 private val testUidOwnerMap: IBpfMap<S32, UidOwnerValue> = TestBpfMap()
62 private val testDataSaverEnabledMap: IBpfMap<S32, U8> = TestBpfMap()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DClatCoordinatorTest.java65 import com.android.testutils.TestBpfMap;
138 private final TestBpfMap<ClatIngress6Key, ClatIngress6Value> mIngressMap =
139 spy(new TestBpfMap<>(ClatIngress6Key.class, ClatIngress6Value.class));
140 private final TestBpfMap<ClatEgress4Key, ClatEgress4Value> mEgressMap =
141 spy(new TestBpfMap<>(ClatEgress4Key.class, ClatEgress4Value.class));
142 private final TestBpfMap<CookieTagMapKey, CookieTagMapValue> mCookieTagMap =
143 spy(new TestBpfMap<>(CookieTagMapKey.class, CookieTagMapValue.class));
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DBpfInterfaceMapHelperTest.java38 import com.android.testutils.TestBpfMap;
60 spy(new TestBpfMap<>(S32.class, InterfaceMapValue.class));
DNetworkStatsServiceTest.java169 import com.android.testutils.TestBpfMap;
276 private TestBpfMap<S32, U8> mUidCounterSetMap = spy(new TestBpfMap<>(S32.class, U8.class));
282 private TestBpfMap<CookieTagMapKey, CookieTagMapValue> mCookieTagMap = new TestBpfMap<>(
284 private TestBpfMap<StatsMapKey, StatsMapValue> mStatsMapA = new TestBpfMap<>(StatsMapKey.class,
286 private TestBpfMap<StatsMapKey, StatsMapValue> mStatsMapB = new TestBpfMap<>(StatsMapKey.class,
288 private TestBpfMap<UidStatsMapKey, StatsMapValue> mAppUidStatsMap = new TestBpfMap<>(
290 private TestBpfMap<S32, StatsMapValue> mIfaceStatsMap = new TestBpfMap<>(
2842 TestBpfMap<K, V> map, int uid) throws ErrnoException { in statsMapContainsUid()
/packages/modules/Connectivity/Tethering/tests/
Djarjar-rules.txt19 rule com.android.testutils.TestBpfMap* com.android.networkstack.tethering.testutils.TestBpfMap@1
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DBpfNetMapsTest.java112 import com.android.testutils.TestBpfMap;
163 private final IBpfMap<S32, U32> mConfigurationMap = new TestBpfMap<>(S32.class, U32.class);
165 new TestBpfMap<>(S32.class, UidOwnerValue.class);
166 private final IBpfMap<S32, U8> mUidPermissionMap = new TestBpfMap<>(S32.class, U8.class);
168 spy(new TestBpfMap<>(CookieTagMapKey.class, CookieTagMapValue.class));
169 private final IBpfMap<S32, U8> mDataSaverEnabledMap = new TestBpfMap<>(S32.class, U8.class);
171 new TestBpfMap<>(IngressDiscardKey.class, IngressDiscardValue.class);
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java151 import com.android.testutils.TestBpfMap;
477 spy(new TestBpfMap<>(Tether4Key.class, Tether4Value.class));
479 spy(new TestBpfMap<>(Tether4Key.class, Tether4Value.class));
481 spy(new TestBpfMap<>(TetherDownstream6Key.class, Tether6Value.class));
483 spy(new TestBpfMap<>(TetherUpstream6Key.class, Tether6Value.class));
485 spy(new TestBpfMap<>(TetherStatsKey.class, TetherStatsValue.class));
487 spy(new TestBpfMap<>(TetherLimitKey.class, TetherLimitValue.class));
489 spy(new TestBpfMap<>(TetherDevKey.class, TetherDevValue.class));
491 spy(new TestBpfMap<>(S32.class, S32.class));
2065 private void checkRefreshConntrackTimeout(final TestBpfMap<Tether4Key, Tether4Value> bpfMap, in checkRefreshConntrackTimeout()
[all …]
/packages/modules/Connectivity/staticlibs/testutils/
DAndroid.bp32 "net-utils-device-common-bpf", // TestBpfMap extends IBpfMap.