commit | eede68f1f36761156b05ea0640097c470666c246 | [log] [tgz] |
---|---|---|
author | Arthur Ishiguro <arthuri@google.com> | Tue Nov 19 00:57:01 2024 +0000 |
committer | Arthur Ishiguro <arthuri@google.com> | Tue Nov 19 01:00:06 2024 +0000 |
tree | 64d66c25f51af8124254715e499d104a8f087c4f | |
parent | 8c9cb5a86344c05ae6216f31cd67507a4acf4e4a [diff] |
Fix IndexOutOfBoundsException in HubEndpointInfo new ArrayList<>(int) only sets the capacity, and add() is needed when adding new elements initially to prevent out of bounds exception. Bug: 378487799 Flag: android.chre.flags.offload_api Test: Run default Context Hub HAL, verify no service crash Change-Id: I650e4dba20e74faf5aed3e7a433b6737f536ab3e