/packages/modules/Connectivity/staticlibs/native/bpf_headers/ |
D | BpfMapTest.cpp | 70 void checkMapInvalid(BpfMap<uint32_t, uint32_t>& map) { in checkMapInvalid() 75 void checkMapValid(BpfMap<uint32_t, uint32_t>& map) { in checkMapValid() 80 void writeToMapAndCheck(BpfMap<uint32_t, uint32_t>& map, uint32_t key, uint32_t value) { in writeToMapAndCheck() 92 void populateMap(uint32_t total, BpfMap<uint32_t, uint32_t>& map) { in populateMap() 99 void expectMapEmpty(BpfMap<uint32_t, uint32_t>& map) { in expectMapEmpty() 107 BpfMap<uint32_t, uint32_t> testMap1; in TEST_F() 110 BpfMap<uint32_t, uint32_t> testMap2; in TEST_F() 116 BpfMap<uint32_t, uint32_t> testMap; in TEST_F() 131 BpfMap<uint32_t, uint32_t> testMap; in TEST_F() 144 BpfMap<uint32_t, uint32_t> testMap1; in TEST_F() [all …]
|
/packages/modules/Connectivity/Tethering/tests/privileged/src/com/android/networkstack/tethering/ |
D | BpfMapTest.java | 41 import com.android.net.module.util.BpfMap; 79 private BpfMap<TetherDownstream6Key, Tether6Value> mTestMap; 113 private BpfMap<TetherDownstream6Key, Tether6Value> openTestMap() throws Exception { in openTestMap() 117 : new BpfMap<>(TETHER_DOWNSTREAM6_FS_PATH, TetherDownstream6Key.class, in openTestMap() 151 try (BpfMap readOnlyMap = new BpfMap<>(TETHER_DOWNSTREAM6_FS_PATH, BpfMap.BPF_F_RDONLY, in testGetFd() 161 try (BpfMap writeOnlyMap = new BpfMap<>(TETHER3_DOWNSTREAM6_FS_PATH, BpfMap.BPF_F_WRONLY, in testGetFd() 171 try (BpfMap readWriteMap = new BpfMap<>(TETHER_DOWNSTREAM6_FS_PATH, in testGetFd() 394 final BpfMap<TetherDownstream6Key, Tether6Value> map1, map2; in testMapContentsCorrectOnOpen() 443 final BpfMap<TetherDownstream6Key, Tether6Value> nonexistentMap = new BpfMap<>( in testOpenNonexistentMap() 473 try (BpfMap<TetherDownstream6Key, Tether6Value> map = new BpfMap<>( in testNoFdLeaks() [all …]
|
/packages/modules/Connectivity/staticlibs/native/bpf_headers/include/bpf/ |
D | BpfMap.h | 224 class BpfMap : public BpfMapRO<Key, Value> { 234 BpfMap<Key, Value>() {}; 236 explicit BpfMap<Key, Value>(const char* pathname) { 295 const BpfMap<Key, Value>& map)>& filter) const; 301 const BpfMap<Key, Value>& map)>& filter) const; 306 BpfMap<Key, Value>& map)>& filter); 312 BpfMap<Key, Value>& map)>& filter); 317 Result<void> BpfMap<Key, Value>::iterate( in iterate() 319 const BpfMap<Key, Value>& map)>& filter) const { in iterate() 332 Result<void> BpfMap<Key, Value>::iterateWithValue( in iterateWithValue() [all …]
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | NetworkStackBpfNetMaps.java | 31 import com.android.net.module.util.BpfMap; 97 return new BpfMap<>(CONFIGURATION_MAP_PATH, BpfMap.BPF_F_RDONLY, in getConfigurationMap() 107 return new BpfMap<>(UID_OWNER_MAP_PATH, BpfMap.BPF_F_RDONLY, in getUidOwnerMap() 117 return new BpfMap<>(DATA_SAVER_ENABLED_MAP_PATH, BpfMap.BPF_F_RDONLY, S32.class, in getDataSaverEnabledMap()
|
/packages/modules/Connectivity/tests/native/utilities/ |
D | firewall.h | 26 using android::bpf::BpfMap; 40 BpfMap<uint32_t, uint32_t> mConfigurationMap GUARDED_BY(mMutex); 41 BpfMap<uint32_t, UidOwnerValue> mUidOwnerMap GUARDED_BY(mMutex); 42 BpfMap<uint32_t, bool> mDataSaverEnabledMap GUARDED_BY(mMutex);
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/ |
D | BpfMap.java | 46 public class BpfMap<K extends Struct, V extends Struct> implements IBpfMap<K, V> { class 48 System.loadLibrary(JniUtil.getJniLibraryName(BpfMap.class.getPackage())); in JniUtil.getJniLibraryName() 94 synchronized (BpfMap.class) { in cachedBpfFdGet() 112 public BpfMap(@NonNull final String path, final int flag, final Class<K> key, in BpfMap() method in BpfMap 127 public BpfMap(@NonNull final String path, final Class<K> key, in BpfMap() method in BpfMap
|
D | BpfBitmap.java | 33 private BpfMap<Struct.S32, Struct.S64> mBpfMap; 41 mBpfMap = new BpfMap<>(path, Struct.S32.class, Struct.S64.class); in BpfBitmap()
|
D | SingleWriterBpfMap.java | 61 public class SingleWriterBpfMap<K extends Struct, V extends Struct> extends BpfMap<K, V> {
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | DscpPolicyTracker.java | 33 import com.android.net.module.util.BpfMap; 71 private final BpfMap<Struct.S32, DscpPolicyValue> mBpfDscpIpv4Policies; 72 private final BpfMap<Struct.S32, DscpPolicyValue> mBpfDscpIpv6Policies; 90 mBpfDscpIpv4Policies = new BpfMap<>(IPV4_POLICY_MAP_PATH, in DscpPolicyTracker() 92 mBpfDscpIpv6Policies = new BpfMap<>(IPV6_POLICY_MAP_PATH, in DscpPolicyTracker()
|
D | ClatCoordinator.java | 45 import com.android.net.module.util.BpfMap; 285 return new BpfMap<>(COOKIE_TAG_MAP_PATH, in getBpfCookieTagMap()
|
/packages/modules/Connectivity/netd/ |
D | BpfHandlerTest.cpp | 50 BpfMap<uint64_t, UidTagValue> mFakeCookieTagMap; 51 BpfMap<StatsKey, StatsValue> mFakeStatsMapA; 52 BpfMap<uint32_t, uint32_t> mFakeConfigurationMap; 53 BpfMap<uint32_t, uint8_t> mFakeUidPermissionMap; 115 void expectMapEmpty(BpfMap<Key, Value>& map) { in expectMapEmpty()
|
D | BpfHandler.h | 23 using android::bpf::BpfMap; 61 BpfMap<uint64_t, UidTagValue> mCookieTagMap;
|
D | BpfBaseTest.cpp | 65 BpfMap<uint64_t, UidTagValue> cookieTagMap(COOKIE_TAG_MAP_PATH); in TEST_F() 83 BpfMap<uint64_t, UidTagValue> cookieTagMap(COOKIE_TAG_MAP_PATH); in TEST_F()
|
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/ |
D | BpfNetworkStats.cpp | 43 BpfMap<uint32_t, IfaceValue>& getIfaceIndexNameMap() { in getIfaceIndexNameMap() 44 static BpfMap<uint32_t, IfaceValue> ifaceIndexNameMap(IFACE_INDEX_NAME_MAP_PATH); in getIfaceIndexNameMap() 196 static BpfMap<StatsKey, StatsValue> statsMapA(STATS_MAP_A_PATH); in parseBpfNetworkStatsDetail() 197 static BpfMap<StatsKey, StatsValue> statsMapB(STATS_MAP_B_PATH); in parseBpfNetworkStatsDetail() 206 BpfMap<StatsKey, StatsValue> *inactiveStatsMap; in parseBpfNetworkStatsDetail()
|
D | BpfNetworkStatsTest.cpp | 74 BpfMap<uint64_t, UidTagValue> mFakeCookieTagMap; 75 BpfMap<uint32_t, StatsValue> mFakeAppUidStatsMap; 76 BpfMap<StatsKey, StatsValue> mFakeStatsMap; 77 BpfMap<uint32_t, IfaceValue> mFakeIfaceIndexNameMap; 78 BpfMap<uint32_t, StatsValue> mFakeIfaceStatsMap; 111 StatsValue value, BpfMap<StatsKey, StatsValue>& map) { in populateFakeStats() 183 [&totalCount, &totalSum](const uint64_t& key, const BpfMap<uint64_t, UidTagValue>&) { in TEST_F()
|
/packages/modules/Connectivity/tests/common/ |
D | tethering-jni-jarjar-rules.txt | 8 rule com.android.net.module.util.BpfMap* com.android.networkstack.tethering.util.BpfMap@1
|
/packages/modules/Connectivity/service-t/src/com/android/server/net/ |
D | BpfInterfaceMapHelper.java | 27 import com.android.net.module.util.BpfMap; 59 return new BpfMap<>(IFACE_INDEX_NAME_MAP_PATH, in getInterfaceMap()
|
D | NetworkStatsService.java | 181 import com.android.net.module.util.BpfMap; 846 return new BpfMap<>(UID_COUNTERSET_MAP_PATH, S32.class, U8.class); 856 return new BpfMap<>(COOKIE_TAG_MAP_PATH, 867 return new BpfMap<>(STATS_MAP_A_PATH, StatsMapKey.class, StatsMapValue.class); 877 return new BpfMap<>(STATS_MAP_B_PATH, StatsMapKey.class, StatsMapValue.class); 887 return new BpfMap<>(APP_UID_STATS_MAP_PATH, 898 return new BpfMap<>(IFACE_STATS_MAP_PATH, S32.class, StatsMapValue.class);
|
/packages/modules/Connectivity/DnsResolver/ |
D | DnsBpfHelperTest.cpp | 35 BpfMap<uint32_t, uint32_t> mFakeConfigurationMap; 36 BpfMap<uint32_t, UidOwnerValue> mFakeUidOwnerMap; 37 BpfMap<uint32_t, bool> mFakeDataSaverEnabledMap;
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | BpfCoordinator.java | 66 import com.android.net.module.util.BpfMap; 380 return new BpfMap<>(TETHER_DOWNSTREAM4_MAP_PATH, in getBpfDownstream4Map() 392 return new BpfMap<>(TETHER_UPSTREAM4_MAP_PATH, in getBpfUpstream4Map() 404 return new BpfMap<>(TETHER_DOWNSTREAM6_FS_PATH, in getBpfDownstream6Map() 416 return new BpfMap<>(TETHER_UPSTREAM6_FS_PATH, in getBpfUpstream6Map() 428 return new BpfMap<>(TETHER_STATS_MAP_PATH, in getBpfStatsMap() 440 return new BpfMap<>(TETHER_LIMIT_MAP_PATH, in getBpfLimitMap() 452 return new BpfMap<>(TETHER_DEV_MAP_PATH, in getBpfDevMap() 464 return new BpfMap<>(TETHER_ERROR_MAP_PATH, in getBpfErrorMap() 465 BpfMap.BPF_F_RDONLY, S32.class, S32.class); in getBpfErrorMap()
|
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/include/netdbpf/ |
D | NetworkTracePoller.h | 87 BpfMap<uint32_t, bool> mConfigurationMap GUARDED_BY(mMutex);
|
/packages/modules/Connectivity/Tethering/ |
D | proguard.flags | 10 -keep class com.android.networkstack.tethering.util.BpfMap {
|
/packages/modules/Connectivity/staticlibs/native/ |
D | README.md | 11 * provide a common java library in frameworks/libs/net with the Java class (e.g. BpfMap.java).
|
/packages/modules/Connectivity/service/src/com/android/server/ |
D | BpfNetMaps.java | 73 import com.android.net.module.util.BpfMap; 223 return new BpfMap<>(COOKIE_TAG_MAP_PATH, in getCookieTagMap() 340 BpfMap.synchronizeKernelRCU(); in synchronizeKernelRCU()
|
/packages/modules/Connectivity/staticlibs/ |
D | Android.bp | 134 "device/com/android/net/module/util/BpfMap.java",
|