android_packages_modules_Co.../thread/tests/cts
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kangping Dong 2e49f00e29 [Thread] fix SparseArray hash for ActiveOperationalDataset
The existing ActiveOperationalDataset#hashCode has an issue that it's
depending on the SparseArray#hasCode which doesn't override the
Object#hashCode method. The consequence is that when the
ActiveOperationalDataset is used as a key in a container, there will
be a miss even if two ActiveOperationalDataset objects have the same
content.

This commit fixes this issue by using a dedicated
byteArraySparseArrayHasCode() method which computes the content hashcode
with Arrays.deepHashCode(). Also fixes the issue that mUnknownTlvs is
not counted in hashCode().

Flag: EXEMPT trivial bugfix
Change-Id: I085d3bf0bdf4bb73bb995fc28dd3857437f9743e
2025-06-10 21:01:22 +08:00
..
src/android/net/thread/cts [Thread] fix SparseArray hash for ActiveOperationalDataset 2025-06-10 21:01:22 +08:00
Android.bp Remove -stubs-including-flagged 2025-02-28 10:47:40 +00:00
AndroidManifest.xml [mdns] implement NsdPublisher AIDL service 2024-02-04 04:03:36 +00:00
AndroidTest.xml Remove target preparer for epskc_enabled flag 2025-02-24 02:21:54 +00:00
OWNERS [Thread] initial Thread network service 2023-09-12 21:48:57 +08:00