summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorYohei Yukawa <yukawa@google.com>2017-02-10 00:40:51 -0800
committerYohei Yukawa <yukawa@google.com>2017-02-10 10:50:32 -0800
commit0d7aff8ab22b25e4215bee1a1f1da830a4d8fbfe (patch)
tree5e0b6d35b10ee0e90dc627302634ab3844104cc2 /tools/aapt2/java/JavaClassGenerator_test.cpp
parente073306d7788dd14aa8b6bd24304a18dece7c084 (diff)
Inline IMMS#resetAllInternalStateLocked()
Currently IMMS#resetAllInternalStateLocked(boolean, boolean) has only two call sites, and the first parameter is the constant for each call site. We can get much simpler code by inlining the method in question into those two call sites. It actually revealed that UNBIND_REASON_RESET_IME should have been called UNBIND_REASON_SWITCH_USER. Test: no behavior change Test: adb shell dumpsys input_method | grep "mMethodMapUpdateCount=" to make sure that switching users can cause the same count increase. Test: adb shell dumpsys input_method | grep "mMethodMapUpdateCount=" to make sure that switching the device locale can cause the same count increase. Bug: 35079353 Change-Id: I63388402369f58d11fdb21b508eb2051ff39fa5b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions