android_packages_modules_Co.../service
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Yang Sun 4e7baadc71 Use helper function getIndexForValue in MulticastRoutingCoordinator.
The SparseArray.indexOfValue() uses == to compare values,
MulticastRoutingCoordinator uses SparseArray with String type values,
and the indexOfValue function would sometimes return -1 when looking for
a value in the SparseArray.

Added a helper function getIndexForValue in CollectionUtils to get index
by comparing values with equals, and used this function in MulticastRoutingCoordinator.

Updated
MulticastRoutingCoordinatorServiceTest#testMulticastRouting_applyConfigNone_removesMfc
test case to use copies of interface names when updating the multicast
configs, so the test would fail without this fix.

Test: atest NetworkStaticLibTests:com.android.net.moduletests.util.CollectionUtilsTest#testGetIndexForValue
atest android.net.connectivity.com.android.server.connectivity.MulticastRoutingCoordinatorServiceTest#testMulticastRouting_applyConfigNone_removesMfc

Change-Id: I862242d6be01b8552cdd6af6c9691948a9f0bfe0
2024-04-23 17:22:15 +08:00
..
aidl_api/connectivity_native_aidl_interface Vendor AIDL interface for port blocking via eBPF 2022-03-25 09:14:48 -07:00
binder/android/net/connectivity/aidl Vendor AIDL interface for port blocking via eBPF 2022-03-25 09:14:48 -07:00
jni NetBpfLoad: rework mainline bpf execution codepath 2024-03-19 21:45:21 +00:00
libconnectivity [DON'T BLOCK] Test ownership migration rules 2024-01-31 12:34:50 +00:00
native/libs/libclat [DON'T BLOCK] Test ownership migration rules 2024-01-31 12:34:50 +00:00
proto Add SystemMessages protos to Connectivity 2021-03-18 20:04:52 +09:00
ServiceConnectivityResources [Thread] add resourceoverlay config for vendor and model name 2024-03-18 20:13:37 +08:00
src/com/android Use helper function getIndexForValue in MulticastRoutingCoordinator. 2024-04-23 17:22:15 +08:00
Android.bp Separate Struct.java into its own lib. 2024-03-27 20:15:17 +08:00
jarjar-excludes.txt Allow jarjar com.android.server* 2023-02-14 15:43:43 +00:00
lint-baseline.xml Prepare for @RequiresApi class retention 2024-02-02 12:04:05 -08:00
proguard.flags Move the Thread proguard flags to ConnectivityService's proguard.flags 2024-01-26 09:14:53 +00:00