Home
last modified time | relevance | path

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

/packages/modules/Connectivity/service-t/src/com/android/server/net/
DSkDestroyListener.java51 private final IBpfMap<CookieTagMapKey, CookieTagMapValue> mCookieTagMap; field in SkDestroyListener
61 mCookieTagMap = cookieTagMap; in SkDestroyListener()
72 mCookieTagMap.deleteEntry(new CookieTagMapKey(sockId.cookie)); in processNetlinkMessage()
DNetworkStatsService.java452 private final IBpfMap<CookieTagMapKey, CookieTagMapValue> mCookieTagMap; field in NetworkStatsService
657 mCookieTagMap = mDeps.getCookieTagMap(); in NetworkStatsService()
688 mSkDestroyListener = mDeps.makeSkDestroyListener(mCookieTagMap, mHandler); in NetworkStatsService()
2763 mCookieTagMap.forEach((key, value) -> {
2772 mCookieTagMap.deleteEntry(key);
3158 dumpRawMap(mCookieTagMap, pw);
3179 BpfDump.dumpMapStatus(mCookieTagMap, pw, "mCookieTagMap", COOKIE_TAG_MAP_PATH);
3190 if (mCookieTagMap == null) {
3193 BpfDump.dumpMap(mCookieTagMap, pw, "mCookieTagMap",
/packages/modules/Connectivity/netd/
DBpfHandler.cpp279 RETURN_IF_NOT_OK(mCookieTagMap.init(COOKIE_TAG_MAP_PATH)); in initMaps()
297 if (!mCookieTagMap.isValid()) return -EPERM; in tagSocket()
392 res = mCookieTagMap.writeValue(sock_cookie, newKey, BPF_ANY); in tagSocket()
406 if (!mCookieTagMap.isValid()) return -EPERM; in untagSocket()
407 base::Result<void> res = mCookieTagMap.deleteValue(sock_cookie); in untagSocket()
DBpfHandler.h61 BpfMap<uint64_t, UidTagValue> mCookieTagMap; variable
DBpfHandlerTest.cpp70 mBh.mCookieTagMap = mFakeCookieTagMap; in SetUp()
71 ASSERT_VALID(mBh.mCookieTagMap); in SetUp()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DClatCoordinatorTest.java142 private final TestBpfMap<CookieTagMapKey, CookieTagMapValue> mCookieTagMap = field in ClatCoordinatorTest
345 return mCookieTagMap; in getBpfCookieTagMap()
402 final InOrder inOrder = inOrder(mNetd, mDeps, mIngressMap, mEgressMap, mCookieTagMap); in testStartStopClatd()
403 clearInvocations(mNetd, mDeps, mIngressMap, mEgressMap, mCookieTagMap); in testStartStopClatd()
433 inOrder.verify(mCookieTagMap).insertEntry(eq(COOKIE_TAG_KEY), eq(COOKIE_TAG_VALUE)); in testStartStopClatd()
483 inOrder.verify(mCookieTagMap).deleteEntry(eq(COOKIE_TAG_KEY)); in testStartStopClatd()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DClatCoordinator.java138 private final IBpfMap<CookieTagMapKey, CookieTagMapValue> mCookieTagMap; field in ClatCoordinator
402 mCookieTagMap = mDeps.getBpfCookieTagMap(); in ClatCoordinator()
531 if (mCookieTagMap == null) { in tagSocketAsClat()
541 mCookieTagMap.insertEntry(key, value); in tagSocketAsClat()
550 if (mCookieTagMap == null) { in untagSocket()
560 mCookieTagMap.deleteEntry(key); in untagSocket()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DBpfNetMapsTest.java167 private final IBpfMap<CookieTagMapKey, CookieTagMapValue> mCookieTagMap = field in BpfNetMapsTest
185 BpfNetMaps.setCookieTagMapForTest(mCookieTagMap); in setUp()
896 mCookieTagMap.updateEntry(new CookieTagMapKey(0), new CookieTagMapValue(0, 0)); in testPullBpfMapInfo()
916 doThrow(new ErrnoException("", EINVAL)).when(mCookieTagMap).forEach(any()); in testPullBpfMapInfoGetMapSizeFailure()
1063 mCookieTagMap.updateEntry(new CookieTagMapKey(123), new CookieTagMapValue(456, 0x789)); in testDumpCookieTagMap()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsServiceTest.java282 private TestBpfMap<CookieTagMapKey, CookieTagMapValue> mCookieTagMap = new TestBpfMap<>( field in NetworkStatsServiceTest
571 return mCookieTagMap; in getCookieTagMap()
2833 mCookieTagMap.forEach((k, v) -> { in cookieTagMapContainsUid()
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()