diff options
author | Yohei Yukawa <yukawa@google.com> | 2017-04-18 09:43:05 -0700 |
---|---|---|
committer | Yohei Yukawa <yukawa@google.com> | 2017-04-18 09:43:05 -0700 |
commit | abbe1ac0c56a4e923c5b29b8e099b9b17110c74b (patch) | |
tree | 0356dee58a44215354f60fd900ee3ebcd9c0d4f2 /rs/java/android/renderscript/RenderScript.java | |
parent | eef5d285f954dee81debe520762ca865e134e9d4 (diff) |
Avoid acquiring a lock on the InputReader thread
This is a follow up CL to my previous CL [1], which might have
introduced a possible performance bottleneck because of holding a lock
on the InputReader thread.
With this CL addresses that concern by changing
PhoneWindowManager#mDismissImeOnBackKeyPressed to volatile that is long
used inside PhoneWindowManager.
[1]: I20721547c73360a70b5fc5cbe06824d577d1768a
d6475a682d9651a651f60856baef9b17b4633b13
Bug: 33824860
Test: Manually tested as follows
1. Open dialer and focus in to the text field to show an IME
2. Run 'adb shell dumpsys window policy' to make sure
mDismissImeOnBackKeyPressed=true
3. Tap the back button to dismiss the IME
4. Run 'adb shell dumpsys window policy' to make sure
mDismissImeOnBackKeyPressed=false
Change-Id: I0d0d06b0b848798c0f488b138812d932432b1d4d
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions