summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Yohei Yukawa <yukawa@google.com> 2022-10-05 16:08:30 -0700
committer Yohei Yukawa <yukawa@google.com> 2022-10-05 16:08:30 -0700
commitb179389164152754fc11f18dff51cc70bd0dd3d7 (patch)
tree317d8ece6208d59c643362d22921598c6a43c928 /libs/androidfw/StringPool.cpp
parentfc48388a5bd359bff444799b2013f6f069183a27 (diff)
Use String[] for IMMS#mNonPreemptibleInputMethods
This is a safe optimization for our previous CL [1], which introduced InputMethodManagerService#mNonPreemptibleInputMethods as HashSet. Since it is almost always empty for phones and is expected to have only a few entries for certain form factors such as TV, using HashSet is most likely overkill. Let's just use String[] and ArrayUtils.contains() for simplicity. There should be no observable behavior change in this CL. [1]: Id0aaa496ee46532d0e97c236df7e073947ababcd 76a3c8c9b3a4971fab8fac544e49dfe8631f6059 Bug: 216618758 Test: presubmit Change-Id: I7269306f56df4d083de31a2d9d5b49856f9a9f5d
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions