Home
last modified time | relevance | path

Searched refs:UidTag (Results 1 – 8 of 8) sorted by relevance

/system/netd/tests/
Dnetlink_listener_test.cpp67 BpfMap<uint64_t, UidTag> mCookieTagMap;
79 const auto deleteTestCookieEntries = [](const uint64_t& key, const UidTag& value, in TearDown()
80 BpfMap<uint64_t, UidTag>& map) { in TearDown()
96 const auto checkGarbageTags = [](const uint64_t&, const UidTag& value, in checkNoGarbageTagsExist()
97 const BpfMap<uint64_t, UidTag>&) { in checkNoGarbageTagsExist() argument
Dbpf_base_test.cpp103 BpfMap<uint64_t, UidTag> cookieTagMap(mapRetrieve(COOKIE_TAG_MAP_PATH, 0)); in TEST_F()
110 StatusOr<UidTag> tagResult = cookieTagMap.readValue(cookie); in TEST_F()
123 BpfMap<uint64_t, UidTag> cookieTagMap(mapRetrieve(COOKIE_TAG_MAP_PATH, 0)); in TEST_F()
130 StatusOr<UidTag> tagResult = cookieTagMap.readValue(cookie); in TEST_F()
/system/bpf/libbpf_android/include/bpf/
DBpfUtils.h69 struct UidTag { struct
181 bool operator==(const UidTag& lhs, const UidTag& rhs);
/system/netd/server/
DTrafficController.h38 using android::bpf::UidTag;
141 BpfMap<uint64_t, UidTag> mCookieTagMap GUARDED_BY(mMutex);
DTrafficControllerTest.cpp68 BpfMap<uint64_t, UidTag> mFakeCookieTagMap;
82 sizeof(struct UidTag), TEST_MAP_SIZE, 0)); in SetUp()
144 StatusOr<UidTag> tagResult = mFakeCookieTagMap.readValue(cookie); in expectUidTag()
153 UidTag cookieMapkey = {.uid = (uint32_t)uid, .tag = tag}; in populateFakeStats()
280 StatusOr<UidTag> cookieMapResult = mFakeCookieTagMap.readValue(cookie); in expectFakeStatsUnchanged()
548 StatusOr<UidTag> cookieMapResult = mFakeCookieTagMap.readValue(cookie2); in TEST_F()
DTrafficController.cpp361 UidTag newKey = {.uid = (uint32_t)uid, .tag = tag}; in tagSocket()
480 const auto deleteMatchedCookieEntries = [uid, tag](const uint64_t& key, const UidTag& value, in deleteTagData()
481 BpfMap<uint64_t, UidTag>& map) { in deleteTagData()
977 const auto printCookieTagInfo = [&dw](const uint64_t& key, const UidTag& value, in dump()
978 const BpfMap<uint64_t, UidTag>&) { in dump() argument
/system/netd/libnetdbpf/
DBpfNetworkStatsTest.cpp73 BpfMap<uint64_t, UidTag> mFakeCookieTagMap;
83 mFakeCookieTagMap = BpfMap<uint64_t, UidTag>(createMap( in SetUp()
84 BPF_MAP_TYPE_HASH, sizeof(uint64_t), sizeof(struct UidTag), TEST_MAP_SIZE, 0)); in SetUp()
152 struct UidTag tag = {.uid = TEST_UID1, .tag = TEST_TAG}; in TEST_F()
183 struct UidTag tag = {.uid = TEST_UID1, .tag = TEST_TAG}; in TEST_F()
189 const BpfMap<uint64_t, UidTag>&) { in TEST_F() argument
/system/bpf/libbpf_android/
DBpfUtils.cpp65 bool operator==(const UidTag& lhs, const UidTag& rhs) { in operator ==()