commit | 0e929ddfcdfb2f93291c68bec374f49d8e32fcfc | [log] [tgz] |
---|---|---|
author | Remi NGUYEN VAN <reminv@google.com> | Mon Mar 06 19:46:21 2023 +0900 |
committer | Remi NGUYEN VAN <reminv@google.com> | Mon Mar 06 19:52:53 2023 +0900 |
tree | cd42f1bfe732a37a7440e20d192ae3b43c875810 | |
parent | de5adc4f1fcd412fcb757904ae1d0136c5f4e2b0 [diff] |
Keep case in MdnsServiceInfo attributes Although case should not matter when comparing attributes, converting all keys to lowercase breaks NsdServiceInfo APIs which provide the original case to the caller. Use a TreeMap with a case-insensitive comparator to ignore case when querying keys, while keeping case information in the map. Bug: 270885892 Test: atest MdnsServiceInfoTest Change-Id: Id15947b1e8650eb6b59126c5d2dc8624ae4f8100