diff options
| author | George Lu <georgelu@google.com> | 2019-07-31 14:26:30 -0700 |
|---|---|---|
| committer | George Lu <georgelu@google.com> | 2019-08-02 11:05:42 -0700 |
| commit | bc2238ebcd318cf453bfea669ce3a1130b7c2106 (patch) | |
| tree | 444503f21636084c72e7dcd6ef9e058b3841b68e /startop/scripts/lib/cmd_utils.py | |
| parent | 7bdc19bacb177ba5fbfd6bb5db6fe4543fe2f220 (diff) | |
Fix RadioMetadata.hashCode().
ag/7063548 implemented RadioMetadata.hashCode() by calling Bundle.hashCode(),
but that function uses the default implementation that uses the address
of the Bundle. As a result, two RadioMetadata objects that were equal
probably had different hash codes.
RadioMetadata now instead lazily computes its hash code based upon the keys and
values in mBundle.
Fixes: 130750904
Test: atest com.android.server.broadcastradio.hal2.StartProgramListUpdatesFanoutTest
Change-Id: Ia49716594744871831bc3734aea37e0f505897bf
Diffstat (limited to 'startop/scripts/lib/cmd_utils.py')
0 files changed, 0 insertions, 0 deletions
