summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorSuprabh Shukla <suprabh@google.com>2018-03-27 15:39:52 -0700
committerSuprabh Shukla <suprabh@google.com>2018-03-27 16:30:56 -0700
commita2cf00a011e634f98b7e86ee025bfe489ec15f4f (patch)
treec0437b1cb221deeda7abbbfcd24d7103e35cbea1 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent452ae34af55cba26e6597fd3708f9e2bd5b0485f (diff)
Optimizing TimeSparseArray#put in case of collisions
Adding a linear check instead of binary searching everytime. Logging only when the displacement is greater than 10 millis. Test: python system/extras/boottime_tools/bootanalyze/bootanalyze.py\ -r -c system/extras/boottime_tools/bootanalyze/config.yaml -n 10 and atest android.app.usage.TimeSparseArrayTest Bug: 76435713 Change-Id: I8f4df59e84fc196d0f63f9433d01ebc759f104c4
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions