OSDN Git Service

Have unified setter/getter for Secure Settings.
authorYohei Yukawa <yukawa@google.com>
Sat, 13 Feb 2016 03:37:08 +0000 (19:37 -0800)
committerYohei Yukawa <yukawa@google.com>
Sat, 13 Feb 2016 03:37:08 +0000 (19:37 -0800)
commit8752367042cb690f78953557433c16ac77eeea45
tree90f4c39c5876fb5782d14875e9da29325a3fc296
parent94e3330e639e1b96f5bd000f4c0f743b3cc174fc
Have unified setter/getter for Secure Settings.

In order to make InputMethodManagerService encryption-aware, we are
going to introduce a new state where any read/write access to Secure
Settings from IMMS is virtualized so that we can temporarily enable
only encryption-aware IMEs until the user unlocks the device then revert
any changes made before the device enters into an unlocked state.

To do that, it would be convenient if InputMethodUtils has unified
getter/setter methods to access (Secure) settings.  In subsequent CLs we
will rely on those getter/setter methods to switch between the on-memory
data store and the actual Secure Settings.  Note that because of
multi-user support such a switch can occur multiple times.

This is still a preparation code.  Behavior change is not intended yet
in this CL.

Bug: 26279466
Change-Id: I0f79243e5cc1556764da37fa38078e075a27d42b
core/java/com/android/internal/inputmethod/InputMethodUtils.java