commit | b2d54bf98423c3e268eb345ceab6ffe7d79b1c45 | [log] [tgz] |
---|---|---|
author | Yu Shan <shanyu@google.com> | Mon Dec 04 18:35:49 2023 -0800 |
committer | Yu Shan <shanyu@google.com> | Thu Dec 07 15:09:40 2023 -0800 |
tree | 15f99b1810ce8b35a9fedcaf464af69bd2cdfbf5 | |
parent | ffb0704a43b244a8e32fd2b5fef8ef0f4cb31f63 [diff] |
Return config using a copy not a pointer. Introduce VehiclePropertyStore.getPropConfig that returns a copy of the config instead of a constant pointer. If the internal map is updated, the pointer might become invalid, so it is safer to just return a copy. We do not modify the existing API for backward compatibility. Test: atest VehiclePropertyStoreTest Bug: 308202443 Change-Id: I769866a09577cc69d25276349b7688cabcbc0c20