summaryrefslogtreecommitdiff
path: root/tests/common/java/android/net/LinkPropertiesTest.java
diff options
context:
space:
mode:
authorJunyu Lai <junyulai@google.com>2022-05-25 22:28:19 +0800
committerJunyu Lai <junyulai@google.com>2022-05-26 22:04:43 +0800
commit25c6d60f8a7d9f280144c92e5ddc0b9cb9f9745d (patch)
tree9dc4e4e8e17efe71399f70727251b3501732b31f /tests/common/java/android/net/LinkPropertiesTest.java
parent903e1e49ab2791eb19ae308daefdae5b9b521b9f (diff)
Return sorted NetworkStatsHistory
NetworkStatsHistory internally assumes that bucketStart is sorted at all times. However, in the fields, we've found there are some buckets of NetworkStatsHistory do not preserve the order of timestamp, which is caught by the IAE when addEntry is called. In order to provide backward compatibility, return sorted items instead of throwing IAE when adding entry into NetworkStatsHistory instance. Ignore-AOSP-First: Base change not in AOSP, will cherry-pick immediately after Test: atest android.net.netstats.NetworkStatsHistoryTest#testBuilder Bug: 233825704 Change-Id: If3187384bd1e90770ca5873b8ec73e852fff543d
Diffstat (limited to 'tests/common/java/android/net/LinkPropertiesTest.java')
0 files changed, 0 insertions, 0 deletions