commit | 00a16e077a2285bdb1466051ad577de88faffce1 | [log] [tgz] |
---|---|---|
author | Hugo Benichi <hugobenichi@google.com> | Thu Apr 27 14:52:53 2017 +0900 |
committer | Hugo Benichi <hugobenichi@google.com> | Wed May 10 09:14:14 2017 +0900 |
tree | 79fc9a49f79174afc2ecbeade257a1b3bdf66970 | |
parent | e1bb3a14d1ee1aba2f92e5bccf659774699eaffe [diff] |
NetworkStatsFactory: no double looping on stats + stacked interfaces This patch uses the associative structure of the stacked/base interface collection to avoid the two nested for loops over stacked/base interfaces and all stats entries when correcting 464xlat traffic stats. Consequently the list of stats entries is iterated only once. Test: runtest -x frameworks/base/../NetworkStatsFactoryTest.java Bug: 33681750 Change-Id: I84ae997fb693b909f431764697627b9957131732