android_packages_modules_Co.../thread/framework
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
..
java/android/net/thread [Thread] fix SparseArray hash for ActiveOperationalDataset 2025-06-10 21:01:22 +08:00
Android.bp [Thread] add system API setChannelMaxPowers 2024-03-22 10:49:09 +08:00