Home
last modified time | relevance | path

Searched refs:writeValue (Results 1 – 12 of 12) 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_app/src/android/aidl/tests/generic/
DPair.java32 dest.writeValue(mFirst); in writeToParcel()
33 dest.writeValue(mSecond); in writeToParcel()
/system/netd/libnetdbpf/
DBpfNetworkStatsTest.cpp111 EXPECT_RESULT_OK(map.writeValue(key, value, BPF_ANY)); in populateFakeStats()
117 EXPECT_RESULT_OK(mFakeIfaceIndexNameMap.writeValue(ifaceIndex, iface, BPF_ANY)); in updateIfaceMap()
148 EXPECT_RESULT_OK(mFakeCookieTagMap.writeValue(cookie, tag, BPF_ANY)); in TEST_F()
179 EXPECT_RESULT_OK(mFakeCookieTagMap.writeValue(cookie, tag, BPF_ANY)); in TEST_F()
227 ASSERT_RESULT_OK(mFakeAppUidStatsMap.writeValue(TEST_UID1, value1, BPF_ANY)); in TEST_F()
228 ASSERT_RESULT_OK(mFakeAppUidStatsMap.writeValue(TEST_UID2, value2, BPF_ANY)); in TEST_F()
270 EXPECT_RESULT_OK(mFakeIfaceStatsMap.writeValue(ifaceStatsKey, value1, BPF_ANY)); in TEST_F()
272 EXPECT_RESULT_OK(mFakeIfaceStatsMap.writeValue(ifaceStatsKey, value2, BPF_ANY)); in TEST_F()
274 EXPECT_RESULT_OK(mFakeIfaceStatsMap.writeValue(ifaceStatsKey, value1, BPF_ANY)); in TEST_F()
434 EXPECT_RESULT_OK(mFakeIfaceStatsMap.writeValue(ifaceStatsKey, value1, BPF_ANY)); in TEST_F()
[all …]
/system/netd/tests/
Dbpf_base_test.cpp175 EXPECT_RESULT_OK(statsMapB.writeValue(key, statsMapValue, BPF_ANY)); in TEST_F()
177 EXPECT_RESULT_OK(statsMapA.writeValue(key, statsMapValue, BPF_ANY)); in TEST_F()
178 EXPECT_RESULT_OK(appUidStatsMap.writeValue(TEST_UID, statsMapValue, BPF_ANY)); in TEST_F()
Dnetd_test.cpp245 ASSERT_OK(bpfIngressMap.writeValue(key, value, BPF_ANY)); in TEST()
249 ASSERT_OK(bpfStatsMap.writeValue(k, stats, BPF_NOEXIST)); in TEST()
252 ASSERT_OK(bpfLimitMap.writeValue(k, limit, BPF_NOEXIST)); in TEST()
/system/netd/server/
DTrafficController.cpp192 mConfigurationMap.writeValue(UID_RULES_CONFIGURATION_KEY, DEFAULT_CONFIG, BPF_ANY)); in initMaps()
193 RETURN_IF_NOT_OK(mConfigurationMap.writeValue(CURRENT_STATS_MAP_CONFIGURATION_KEY, SELECT_MAP_A, in initMaps()
374 res = mCookieTagMap.writeValue(sock_cookie, newKey, BPF_ANY); in tagSocket()
423 Status res = mUidCounterSetMap.writeValue(uid, tmpCounterSetNum, BPF_ANY); in setCounterSet()
513 Status res = mIfaceIndexNameMap.writeValue(ifaceIndex, iface, BPF_ANY); in addInterface()
556 RETURN_IF_NOT_OK(mUidOwnerMap.writeValue(uid, newMatch, BPF_ANY)); in removeRule()
577 RETURN_IF_NOT_OK(mUidOwnerMap.writeValue(uid, newMatch, BPF_ANY)); in addRule()
583 RETURN_IF_NOT_OK(mUidOwnerMap.writeValue(uid, newMatch, BPF_ANY)); in addRule()
755 res = mConfigurationMap.writeValue(key, newConfiguration, BPF_EXIST); in toggleUidOwnerMap()
785 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.cpp264 auto ret = mClatEgressMap.writeValue(txKey, txValue, BPF_ANY); in maybeStartBpf()
281 ret = mClatIngressMap.writeValue(rxKey, rxValue, BPF_ANY); in maybeStartBpf()
DTetherController.cpp876 return mBpfIngressMap.writeValue(key, value, BPF_ANY); in addOffloadRule()
1069 auto ret = mBpfStatsMap.writeValue(ifIndex, stats, BPF_NOEXIST); in setBpfLimit()
1087 auto ret = mBpfLimitMap.writeValue(ifIndex, newLimit, BPF_ANY); in setBpfLimit()
DTetherControllerTest.cpp101 ASSERT_RESULT_OK(mFakeTetherStatsMap.writeValue(ifaceIndex, tetherStats, BPF_ANY)); in updateMaps()
/system/bpf/libbpf_android/
DBpfMapTest.cpp84 ASSERT_RESULT_OK(map.writeValue(key, value, BPF_ANY)); in writeToMapAndCheck()
98 EXPECT_RESULT_OK(map.writeValue(key, value, BPF_ANY)); in populateMap()
/system/bpf/libbpf_android/include/bpf/
DBpfMap.h81 base::Result<void> writeValue(const Key& key, const Value& value, uint64_t flags) { in writeValue() function