diff options
author | Yohei Yukawa <yukawa@google.com> | 2014-03-05 14:53:01 +0900 |
---|---|---|
committer | Yohei Yukawa <yukawa@google.com> | 2014-03-05 16:16:46 +0900 |
commit | 9e9fbb26395eb983e17a415cf78b3c2ee060ee0e (patch) | |
tree | 5a0aed07a78a5a4134663b35243fcbb01d659376 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 4b131046aa5685112b8f198a989daef13279cadb (diff) |
Preserve the order of InputMethodManager method calls
This CL allows the Framework class InputMethodManager to behave
in a more deterministic way, that is to say, with an I/O barrier.
InputMethodManager#setAdditionalInputMethodSubtypes is internally
implemented as a RPC to the corresponding counterpart in
InputMethodManagerService. The problem here is that this RPC is
marked as "oneway". As a consequence, this public API call
returns immediately without waiting the additional subtypes are
actually added. This behavior is also not documented so far
unfortunately.
See the following demo code:
Final InputMethodManager imm = ...;
imm.setAdditionalInputMethodSubtypes(id, subTypes);
Final List<InputMethodInfo> ims = imm.getInputMethodList();
Currently, it is not guaranteed that the InputMethodInfo returned
from #getInputMethodList reflects the result of the previous call
of #setAdditionalInputMethodSubtypes because of its undocumented
asynchronous nature.
With this CL, InputMethodManager#setAdditionalInputMethodSubtypes
behaves as if it has I/O barrier. This change should make it easy
for IME developers to use additional subtype mechanism.
BUG: 13033954
BUG: 13291370
Change-Id: I0f8d33b0c77129f72581bc43e7f4fdc25469b520
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions