Home
last modified time | relevance | path

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

/system/netd/tests/benchmarks/
Dbpf_benchmark.cpp39 mBpfTestMap.writeValue(state.range(0), state.range(0), BPF_NOEXIST); in BENCHMARK_DEFINE_F()
46 mBpfTestMap.writeValue(i, i, BPF_NOEXIST); in BENCHMARK_DEFINE_F()
50 mBpfTestMap.writeValue(state.range(0), state.range(0) + 1, BPF_EXIST); in BENCHMARK_DEFINE_F()
57 mBpfTestMap.writeValue(i, i, BPF_NOEXIST); in BENCHMARK_DEFINE_F()
63 mBpfTestMap.writeValue(state.range(0), state.range(0) + 1, BPF_NOEXIST); in BENCHMARK_DEFINE_F()
/system/tools/aidl/tests/java/src/android/aidl/tests/generic/
DPair.java32 dest.writeValue(mFirst); in writeToParcel()
33 dest.writeValue(mSecond); in writeToParcel()
/system/netd/libnetdbpf/
DBpfNetworkStatsTest.cpp110 EXPECT_RESULT_OK(map.writeValue(key, value, BPF_ANY)); in populateFakeStats()
116 EXPECT_RESULT_OK(mFakeIfaceIndexNameMap.writeValue(ifaceIndex, iface, BPF_ANY)); in updateIfaceMap()
145 EXPECT_RESULT_OK(mFakeCookieTagMap.writeValue(cookie, tag, BPF_ANY)); in TEST_F()
174 EXPECT_RESULT_OK(mFakeCookieTagMap.writeValue(cookie, tag, BPF_ANY)); in TEST_F()
218 ASSERT_RESULT_OK(mFakeAppUidStatsMap.writeValue(TEST_UID1, value1, BPF_ANY)); in TEST_F()
219 ASSERT_RESULT_OK(mFakeAppUidStatsMap.writeValue(TEST_UID2, value2, BPF_ANY)); in TEST_F()
259 EXPECT_RESULT_OK(mFakeIfaceStatsMap.writeValue(ifaceStatsKey, value1, BPF_ANY)); in TEST_F()
261 EXPECT_RESULT_OK(mFakeIfaceStatsMap.writeValue(ifaceStatsKey, value2, BPF_ANY)); in TEST_F()
263 EXPECT_RESULT_OK(mFakeIfaceStatsMap.writeValue(ifaceStatsKey, value1, BPF_ANY)); in TEST_F()
415 EXPECT_RESULT_OK(mFakeIfaceStatsMap.writeValue(ifaceStatsKey, value1, BPF_ANY)); in TEST_F()
[all …]
/system/netd/tests/
Dbpf_base_test.cpp155 EXPECT_RESULT_OK(statsMapB.writeValue(key, statsMapValue, BPF_ANY)); in TEST_F()
157 EXPECT_RESULT_OK(statsMapA.writeValue(key, statsMapValue, BPF_ANY)); in TEST_F()
158 EXPECT_RESULT_OK(appUidStatsMap.writeValue(TEST_UID, statsMapValue, BPF_ANY)); in TEST_F()
/system/netd/server/
DTrafficController.cpp193 mConfigurationMap.writeValue(UID_RULES_CONFIGURATION_KEY, DEFAULT_CONFIG, BPF_ANY)); in initMaps()
194 RETURN_IF_NOT_OK(mConfigurationMap.writeValue(CURRENT_STATS_MAP_CONFIGURATION_KEY, SELECT_MAP_A, in initMaps()
366 res = mCookieTagMap.writeValue(sock_cookie, newKey, BPF_ANY); in tagSocket()
406 Status res = mUidCounterSetMap.writeValue(uid, tmpCounterSetNum, BPF_ANY); in setCounterSet()
489 Status res = mIfaceIndexNameMap.writeValue(ifaceIndex, iface, BPF_ANY); in addInterface()
521 RETURN_IF_NOT_OK(mUidOwnerMap.writeValue(uid, newMatch, BPF_ANY)); in removeRule()
542 RETURN_IF_NOT_OK(mUidOwnerMap.writeValue(uid, newMatch, BPF_ANY)); in addRule()
548 RETURN_IF_NOT_OK(mUidOwnerMap.writeValue(uid, newMatch, BPF_ANY)); in addRule()
704 res = mConfigurationMap.writeValue(key, newConfiguration, BPF_EXIST); in toggleUidOwnerMap()
726 auto res = mConfigurationMap.writeValue(CURRENT_STATS_MAP_CONFIGURATION_KEY, newConfigure, in swapActiveStatsMap()
[all …]
DTrafficControllerTest.cpp119 ASSERT_RESULT_OK(mTc.mConfigurationMap.writeValue(CURRENT_STATS_MAP_CONFIGURATION_KEY, in SetUp()
153 EXPECT_RESULT_OK(mFakeCookieTagMap.writeValue(cookie, cookieMapkey, BPF_ANY)); in populateFakeStats()
157 EXPECT_RESULT_OK(mFakeUidCounterSetMap.writeValue(uid, counterSet, BPF_ANY)); in populateFakeStats()
158 EXPECT_RESULT_OK(mFakeStatsMapA.writeValue(*key, statsMapValue, BPF_ANY)); in populateFakeStats()
160 EXPECT_RESULT_OK(mFakeStatsMapA.writeValue(*key, statsMapValue, BPF_ANY)); in populateFakeStats()
161 EXPECT_RESULT_OK(mFakeAppUidStatsMap.writeValue(uid, statsMapValue, BPF_ANY)); in populateFakeStats()
DClatdController.cpp234 auto ret = mClatEgress4Map.writeValue(txKey, txValue, BPF_ANY); in maybeStartBpf()
251 ret = mClatIngress6Map.writeValue(rxKey, rxValue, BPF_ANY); in maybeStartBpf()
/system/bpf/libbpf_android/
DBpfMapTest.cpp80 ASSERT_RESULT_OK(map.writeValue(key, value, BPF_ANY)); in writeToMapAndCheck()
94 EXPECT_RESULT_OK(map.writeValue(key, value, BPF_ANY)); in populateMap()
/system/bpf/libbpf_android/include/bpf/
DBpfMap.h80 base::Result<void> writeValue(const Key& key, const Value& value, uint64_t flags) { in writeValue() function