OSDN Git Service

Properly synchronize interactivity state.
authorMichael Wright <michaelwr@google.com>
Thu, 23 Jul 2015 16:04:40 +0000 (17:04 +0100)
committerMichael Wright <michaelwr@google.com>
Thu, 23 Jul 2015 18:04:33 +0000 (19:04 +0100)
commita405121b5a76d37f29dfa6d95177abbac9cfb101
tree7b8e6aaf8282c4185590b1107915a1ccc147e3f8
parentb2eed1d6e11f38c00ce1776ade14dfa004c6119f
Properly synchronize interactivity state.

Volatile doesn't provide any guarantees with respect to write
visibility, so it's possible that PowerManager will tell InputManager
about a change in interactivity state, but the actual dispatching
thread will never observe it.

Also, add logging about NativeInputManager state.

Bug: 22422588
Change-Id: Ifc3add992b9009d920d80a0315ff89c9574be20d
services/core/jni/com_android_server_input_InputManagerService.cpp