Home
last modified time | relevance | path

Searched refs:CookieTagMapKey (Results 1 – 9 of 9) sorted by relevance

/packages/modules/Connectivity/Tethering/tests/mts/src/android/tethering/mts/
DSkDestroyListenerTest.java36 import com.android.net.module.util.bpf.CookieTagMapKey;
59 private Map<CookieTagMapKey, CookieTagMapValue> parseBpfRawMap(final String dump) { in parseBpfRawMap()
60 final Map<CookieTagMapKey, CookieTagMapValue> map = new HashMap<>(); in parseBpfRawMap()
62 final Pair<CookieTagMapKey, CookieTagMapValue> keyValue = in parseBpfRawMap()
63 BpfDump.fromBase64EncodedString(CookieTagMapKey.class, in parseBpfRawMap()
72 final Map<CookieTagMapKey, CookieTagMapValue> cookieTagMap = parseBpfRawMap(dump); in countTaggedSocket()
/packages/modules/Connectivity/service-t/src/com/android/server/net/
DSkDestroyListener.java26 import com.android.net.module.util.bpf.CookieTagMapKey;
51 private final IBpfMap<CookieTagMapKey, CookieTagMapValue> mCookieTagMap;
53 SkDestroyListener(final IBpfMap<CookieTagMapKey, CookieTagMapValue> cookieTagMap, in SkDestroyListener() argument
72 mCookieTagMap.deleteEntry(new CookieTagMapKey(sockId.cookie)); in processNetlinkMessage()
DNetworkStatsService.java192 import com.android.net.module.util.bpf.CookieTagMapKey;
452 private final IBpfMap<CookieTagMapKey, CookieTagMapValue> mCookieTagMap;
854 public IBpfMap<CookieTagMapKey, CookieTagMapValue> getCookieTagMap() {
857 CookieTagMapKey.class, CookieTagMapValue.class);
916 IBpfMap<CookieTagMapKey, CookieTagMapValue> cookieTagMap, Handler handler) {
/packages/modules/Connectivity/common/src/com/android/net/module/util/bpf/
DCookieTagMapKey.java26 public class CookieTagMapKey extends Struct { class
30 public CookieTagMapKey(final long socketCookie) { in CookieTagMapKey() method in CookieTagMapKey
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DClatCoordinatorTest.java61 import com.android.net.module.util.bpf.CookieTagMapKey;
134 private static final CookieTagMapKey COOKIE_TAG_KEY = new CookieTagMapKey(RAW_SOCK_COOKIE);
142 private final TestBpfMap<CookieTagMapKey, CookieTagMapValue> mCookieTagMap =
143 spy(new TestBpfMap<>(CookieTagMapKey.class, CookieTagMapValue.class));
344 public IBpfMap<CookieTagMapKey, CookieTagMapValue> getBpfCookieTagMap() { in getBpfCookieTagMap()
635 public IBpfMap<CookieTagMapKey, CookieTagMapValue> getBpfCookieTagMap() { in testNotStartClatWithNativeFailureCreateTunInterface()
653 public IBpfMap<CookieTagMapKey, CookieTagMapValue> getBpfCookieTagMap() { in testNotStartClatWithNativeFailureDetectMtu()
742 public IBpfMap<CookieTagMapKey, CookieTagMapValue> getBpfCookieTagMap() { in testNotStartClatWithNullCookieTagMap()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DClatCoordinator.java54 import com.android.net.module.util.bpf.CookieTagMapKey;
138 private final IBpfMap<CookieTagMapKey, CookieTagMapValue> mCookieTagMap;
282 public IBpfMap<CookieTagMapKey, CookieTagMapValue> getBpfCookieTagMap() { in getBpfCookieTagMap()
286 CookieTagMapKey.class, CookieTagMapValue.class); in getBpfCookieTagMap()
538 final CookieTagMapKey key = new CookieTagMapKey(cookie); in tagSocketAsClat()
558 final CookieTagMapKey key = new CookieTagMapKey(cookie); in untagSocket()
/packages/modules/Connectivity/service/src/com/android/server/
DBpfNetMaps.java80 import com.android.net.module.util.bpf.CookieTagMapKey;
129 private static IBpfMap<CookieTagMapKey, CookieTagMapValue> sCookieTagMap = null;
168 IBpfMap<CookieTagMapKey, CookieTagMapValue> cookieTagMap) { in setCookieTagMapForTest() argument
220 private static IBpfMap<CookieTagMapKey, CookieTagMapValue> getCookieTagMap() { in getCookieTagMap()
224 CookieTagMapKey.class, CookieTagMapValue.class); in getCookieTagMap()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsServiceTest.java159 import com.android.net.module.util.bpf.CookieTagMapKey;
282 private TestBpfMap<CookieTagMapKey, CookieTagMapValue> mCookieTagMap = new TestBpfMap<>(
283 CookieTagMapKey.class, CookieTagMapValue.class);
570 public IBpfMap<CookieTagMapKey, CookieTagMapValue> getCookieTagMap() { in getCookieTagMap()
606 IBpfMap<CookieTagMapKey, CookieTagMapValue> cookieTagMap, Handler handler) { in makeSkDestroyListener() argument
2854 mCookieTagMap.insertEntry(new CookieTagMapKey(1000 + uid), new CookieTagMapValue(uid, 1)); in initBpfMapsWithTagData()
2855 mCookieTagMap.insertEntry(new CookieTagMapKey(2000 + uid), new CookieTagMapValue(uid, 2)); in initBpfMapsWithTagData()
2938 Map<CookieTagMapKey, CookieTagMapValue> cookieTagMap = parseBpfRawMap( in testDumpCookieTagMapBpfRawMap()
2939 CookieTagMapKey.class, CookieTagMapValue.class, dump); in testDumpCookieTagMapBpfRawMap()
2941 final CookieTagMapValue val1 = cookieTagMap.get(new CookieTagMapKey(2002)); in testDumpCookieTagMapBpfRawMap()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DBpfNetMapsTest.java104 import com.android.net.module.util.bpf.CookieTagMapKey;
167 private final IBpfMap<CookieTagMapKey, CookieTagMapValue> mCookieTagMap =
168 spy(new TestBpfMap<>(CookieTagMapKey.class, CookieTagMapValue.class));
896 mCookieTagMap.updateEntry(new CookieTagMapKey(0), new CookieTagMapValue(0, 0)); in testPullBpfMapInfo()
1063 mCookieTagMap.updateEntry(new CookieTagMapKey(123), new CookieTagMapValue(456, 0x789)); in testDumpCookieTagMap()