public class InputMethodManagerService extends IInputMethodManager.Stub implements ServiceConnection, Handler.Callback
Modifier and Type | Class and Description |
---|---|
static class |
InputMethodManagerService.Lifecycle |
Constructor and Description |
---|
InputMethodManagerService(Context context) |
Modifier and Type | Method and Description |
---|---|
void |
addClient(IInputMethodClient client,
IInputContext inputContext,
int uid,
int pid) |
void |
clearLastInputMethodWindowForTransition(IBinder token) |
IInputContentUriToken |
createInputContentUriToken(IBinder token,
Uri contentUri,
String packageName) |
protected void |
dump(FileDescriptor fd,
PrintWriter pw,
String[] args) |
void |
finishInput(IInputMethodClient client) |
InputMethodSubtype |
getCurrentInputMethodSubtype() |
List<InputMethodInfo> |
getEnabledInputMethodList() |
List<InputMethodSubtype> |
getEnabledInputMethodSubtypeList(String imiId,
boolean allowsImplicitlySelectedSubtypes) |
List<InputMethodInfo> |
getInputMethodList() |
int |
getInputMethodWindowVisibleHeight() |
InputMethodSubtype |
getLastInputMethodSubtype() |
List |
getShortcutInputMethodsAndSubtypes() |
boolean |
handleMessage(Message msg) |
void |
hideMySoftInput(IBinder token,
int flags) |
boolean |
hideSoftInput(IInputMethodClient client,
int flags,
ResultReceiver resultReceiver) |
boolean |
notifySuggestionPicked(SuggestionSpan span,
String originalString,
int index) |
void |
notifyUserAction(int sequenceNumber) |
void |
onServiceConnected(ComponentName name,
IBinder service)
Called when a connection to the Service has been established, with
the
IBinder of the communication channel to the
Service. |
void |
onServiceDisconnected(ComponentName name)
Called when a connection to the Service has been lost.
|
boolean |
onTransact(int code,
Parcel data,
Parcel reply,
int flags) |
void |
registerSuggestionSpansForNotification(SuggestionSpan[] spans) |
void |
removeClient(IInputMethodClient client) |
void |
setAdditionalInputMethodSubtypes(String imiId,
InputMethodSubtype[] subtypes) |
boolean |
setCurrentInputMethodSubtype(InputMethodSubtype subtype) |
void |
setImeWindowStatus(IBinder token,
int vis,
int backDisposition) |
void |
setInputMethod(IBinder token,
String id) |
void |
setInputMethodAndSubtype(IBinder token,
String id,
InputMethodSubtype subtype) |
boolean |
setInputMethodEnabled(String id,
boolean enabled) |
boolean |
shouldOfferSwitchingToNextInputMethod(IBinder token) |
void |
showInputMethodAndSubtypeEnablerFromClient(IInputMethodClient client,
String inputMethodId) |
void |
showInputMethodPickerFromClient(IInputMethodClient client,
int auxiliarySubtypeMode) |
void |
showMySoftInput(IBinder token,
int flags) |
boolean |
showSoftInput(IInputMethodClient client,
int flags,
ResultReceiver resultReceiver) |
InputBindResult |
startInputOrWindowGainedFocus(int startInputReason,
IInputMethodClient client,
IBinder windowToken,
int controlFlags,
int softInputMode,
int windowFlags,
EditorInfo attribute,
IInputContext inputContext,
int missingMethods) |
boolean |
switchToLastInputMethod(IBinder token) |
boolean |
switchToNextInputMethod(IBinder token,
boolean onlyCurrentIme) |
void |
systemRunning(StatusBarManagerService statusBar) |
void |
updateKeyboardFromSettingsLocked() |
void |
updateStatusIcon(IBinder token,
String packageName,
int iconId) |
public InputMethodManagerService(Context context)
public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException
RemoteException
public void systemRunning(StatusBarManagerService statusBar)
public List<InputMethodInfo> getInputMethodList()
public List<InputMethodInfo> getEnabledInputMethodList()
public List<InputMethodSubtype> getEnabledInputMethodSubtypeList(String imiId, boolean allowsImplicitlySelectedSubtypes)
imiId
- if null, returns enabled subtypes for the current imipublic void addClient(IInputMethodClient client, IInputContext inputContext, int uid, int pid)
public void removeClient(IInputMethodClient client)
public void finishInput(IInputMethodClient client)
public void onServiceConnected(ComponentName name, IBinder service)
ServiceConnection
IBinder
of the communication channel to the
Service.onServiceConnected
in interface ServiceConnection
name
- The concrete component name of the service that has
been connected.service
- The IBinder of the Service's communication channel,
which you can now make calls on.public void onServiceDisconnected(ComponentName name)
ServiceConnection
ServiceConnection.onServiceConnected(android.content.ComponentName, android.os.IBinder)
when the Service is next running.onServiceDisconnected
in interface ServiceConnection
name
- The concrete component name of the service whose
connection has been lost.public void setImeWindowStatus(IBinder token, int vis, int backDisposition)
public void registerSuggestionSpansForNotification(SuggestionSpan[] spans)
public boolean notifySuggestionPicked(SuggestionSpan span, String originalString, int index)
public void updateKeyboardFromSettingsLocked()
public boolean showSoftInput(IInputMethodClient client, int flags, ResultReceiver resultReceiver)
public boolean hideSoftInput(IInputMethodClient client, int flags, ResultReceiver resultReceiver)
public InputBindResult startInputOrWindowGainedFocus(int startInputReason, IInputMethodClient client, IBinder windowToken, int controlFlags, int softInputMode, int windowFlags, EditorInfo attribute, IInputContext inputContext, int missingMethods)
public void showInputMethodPickerFromClient(IInputMethodClient client, int auxiliarySubtypeMode)
public void setInputMethodAndSubtype(IBinder token, String id, InputMethodSubtype subtype)
public void showInputMethodAndSubtypeEnablerFromClient(IInputMethodClient client, String inputMethodId)
public boolean switchToLastInputMethod(IBinder token)
public boolean switchToNextInputMethod(IBinder token, boolean onlyCurrentIme)
public boolean shouldOfferSwitchingToNextInputMethod(IBinder token)
public InputMethodSubtype getLastInputMethodSubtype()
public void setAdditionalInputMethodSubtypes(String imiId, InputMethodSubtype[] subtypes)
public int getInputMethodWindowVisibleHeight()
public void clearLastInputMethodWindowForTransition(IBinder token)
public void notifyUserAction(int sequenceNumber)
public void hideMySoftInput(IBinder token, int flags)
public void showMySoftInput(IBinder token, int flags)
public boolean handleMessage(Message msg)
handleMessage
in interface Handler.Callback
public boolean setInputMethodEnabled(String id, boolean enabled)
public InputMethodSubtype getCurrentInputMethodSubtype()
public List getShortcutInputMethodsAndSubtypes()
public boolean setCurrentInputMethodSubtype(InputMethodSubtype subtype)
public IInputContentUriToken createInputContentUriToken(IBinder token, Uri contentUri, String packageName)
protected void dump(FileDescriptor fd, PrintWriter pw, String[] args)