Java Code Examples for android.view.inputmethod.InputMethodManager#getInstance()
The following examples show how to use
android.view.inputmethod.InputMethodManager#getInstance() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WindowManagerGlobal.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
public static IWindowSession getWindowSession() { synchronized (WindowManagerGlobal.class) { if (sWindowSession == null) { try { // 获取 IMM 代理对象 InputMethodManager imm = InputMethodManager.getInstance(); // 获取 WMS 代理对象 IWindowManager windowManager = getWindowManagerService(); // Binder 调用 WMS 的 openSession() 方法 sWindowSession = windowManager.openSession( new IWindowSessionCallback.Stub() { @Override public void onAnimatorScaleChanged(float scale) { ValueAnimator.setDurationScale(scale); } }, imm.getClient(), imm.getInputContext()); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } return sWindowSession; } }
Example 2
Source File: WindowManagerGlobal.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
private void removeViewLocked(int index, boolean immediate) { ViewRootImpl root = mRoots.get(index); View view = root.getView(); if (view != null) { InputMethodManager imm = InputMethodManager.getInstance(); if (imm != null) { imm.windowDismissed(mViews.get(index).getWindowToken()); } } boolean deferred = root.die(immediate); if (view != null) { view.assignParent(null); if (deferred) { mDyingViews.add(view); } } }
Example 3
Source File: ContextImpl.java From AndroidComponentPlugin with Apache License 2.0 | 4 votes |
public Object createService(ContextImpl ctx) { return InputMethodManager.getInstance(ctx); }
Example 4
Source File: ContextImpl.java From AndroidComponentPlugin with Apache License 2.0 | 4 votes |
public Object createService(ContextImpl ctx) { return InputMethodManager.getInstance(ctx); }
Example 5
Source File: ContextImpl.java From AndroidComponentPlugin with Apache License 2.0 | 4 votes |
public Object createStaticService() { return InputMethodManager.getInstance(); }
Example 6
Source File: ContextImpl.java From AndroidComponentPlugin with Apache License 2.0 | 4 votes |
public Object createStaticService() { return InputMethodManager.getInstance(); }
Example 7
Source File: ContextImpl.java From AndroidComponentPlugin with Apache License 2.0 | 4 votes |
public Object createService(ContextImpl ctx) { return InputMethodManager.getInstance(ctx); }
Example 8
Source File: ContextImpl.java From AndroidComponentPlugin with Apache License 2.0 | 4 votes |
public Object createStaticService() { return InputMethodManager.getInstance(); }
Example 9
Source File: ContextImpl.java From AndroidComponentPlugin with Apache License 2.0 | 4 votes |
public Object createStaticService() { return InputMethodManager.getInstance(); }
Example 10
Source File: SystemServiceRegistry.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
@Override public InputMethodManager createService() { return InputMethodManager.getInstance(); }