android_packages_modules_Co.../thread/tests
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
..
cts [Thread] fix SparseArray hash for ActiveOperationalDataset 2025-06-10 21:01:22 +08:00
integration Merge "[Thread] add vendor & model name support for net diag" into main 2025-03-21 03:53:47 -07:00
multidevices Cleanup python version properties 2025-02-28 16:34:06 -08:00
unit Add unit test for ThreadNetworkControllerService#SetEnabled 2025-04-15 09:44:12 +00:00
utils Remove RecorderCallback. 2025-05-19 16:35:53 +09:00