BridgeIInputMethodManager.java revision ee5e77cafec2eae70890abdcc1646ed39b06eddd
1/* 2 * Copyright (C) 2011 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package com.android.layoutlib.bridge.android; 18 19import com.android.internal.view.IInputContext; 20import com.android.internal.view.IInputMethodClient; 21import com.android.internal.view.IInputMethodManager; 22import com.android.internal.view.InputBindResult; 23 24import android.os.IBinder; 25import android.os.RemoteException; 26import android.os.ResultReceiver; 27import android.text.style.SuggestionSpan; 28import android.view.inputmethod.EditorInfo; 29import android.view.inputmethod.InputMethodInfo; 30import android.view.inputmethod.InputMethodSubtype; 31 32import java.util.List; 33 34/** 35 * Basic implementation of IInputMethodManager that does nothing. 36 * 37 */ 38public class BridgeIInputMethodManager implements IInputMethodManager { 39 40 public void addClient(IInputMethodClient arg0, IInputContext arg1, int arg2, int arg3) 41 throws RemoteException { 42 // TODO Auto-generated method stub 43 44 } 45 46 public void finishInput(IInputMethodClient arg0) throws RemoteException { 47 // TODO Auto-generated method stub 48 49 } 50 51 public InputMethodSubtype getCurrentInputMethodSubtype() throws RemoteException { 52 // TODO Auto-generated method stub 53 return null; 54 } 55 56 public List<InputMethodInfo> getEnabledInputMethodList() throws RemoteException { 57 // TODO Auto-generated method stub 58 return null; 59 } 60 61 public List<InputMethodSubtype> getEnabledInputMethodSubtypeList(InputMethodInfo arg0, 62 boolean arg1) throws RemoteException { 63 // TODO Auto-generated method stub 64 return null; 65 } 66 67 public List<InputMethodInfo> getInputMethodList() throws RemoteException { 68 // TODO Auto-generated method stub 69 return null; 70 } 71 72 public InputMethodSubtype getLastInputMethodSubtype() throws RemoteException { 73 // TODO Auto-generated method stub 74 return null; 75 } 76 77 public List getShortcutInputMethodsAndSubtypes() throws RemoteException { 78 // TODO Auto-generated method stub 79 return null; 80 } 81 82 public void hideMySoftInput(IBinder arg0, int arg1) throws RemoteException { 83 // TODO Auto-generated method stub 84 85 } 86 87 public boolean hideSoftInput(IInputMethodClient arg0, int arg1, ResultReceiver arg2) 88 throws RemoteException { 89 // TODO Auto-generated method stub 90 return false; 91 } 92 93 public boolean notifySuggestionPicked(SuggestionSpan arg0, String arg1, int arg2) 94 throws RemoteException { 95 // TODO Auto-generated method stub 96 return false; 97 } 98 99 public void registerSuggestionSpansForNotification(SuggestionSpan[] arg0) 100 throws RemoteException { 101 // TODO Auto-generated method stub 102 103 } 104 105 public void removeClient(IInputMethodClient arg0) throws RemoteException { 106 // TODO Auto-generated method stub 107 108 } 109 110 public void setAdditionalInputMethodSubtypes(String arg0, InputMethodSubtype[] arg1) 111 throws RemoteException { 112 // TODO Auto-generated method stub 113 } 114 115 public boolean setCurrentInputMethodSubtype(InputMethodSubtype arg0) throws RemoteException { 116 // TODO Auto-generated method stub 117 return false; 118 } 119 120 public void setImeWindowStatus(IBinder arg0, int arg1, int arg2) throws RemoteException { 121 // TODO Auto-generated method stub 122 123 } 124 125 public void setInputMethod(IBinder arg0, String arg1) throws RemoteException { 126 // TODO Auto-generated method stub 127 128 } 129 130 public void setInputMethodAndSubtype(IBinder arg0, String arg1, InputMethodSubtype arg2) 131 throws RemoteException { 132 // TODO Auto-generated method stub 133 134 } 135 136 public boolean setInputMethodEnabled(String arg0, boolean arg1) throws RemoteException { 137 // TODO Auto-generated method stub 138 return false; 139 } 140 141 public void showInputMethodAndSubtypeEnablerFromClient(IInputMethodClient arg0, String arg1) 142 throws RemoteException { 143 // TODO Auto-generated method stub 144 145 } 146 147 public void showInputMethodPickerFromClient(IInputMethodClient arg0) throws RemoteException { 148 // TODO Auto-generated method stub 149 150 } 151 152 public void showMySoftInput(IBinder arg0, int arg1) throws RemoteException { 153 // TODO Auto-generated method stub 154 155 } 156 157 public boolean showSoftInput(IInputMethodClient arg0, int arg1, ResultReceiver arg2) 158 throws RemoteException { 159 // TODO Auto-generated method stub 160 return false; 161 } 162 163 public InputBindResult startInput(IInputMethodClient arg0, IInputContext arg1, EditorInfo arg2, 164 boolean arg3, boolean arg4) throws RemoteException { 165 // TODO Auto-generated method stub 166 return null; 167 } 168 169 public boolean switchToLastInputMethod(IBinder arg0) throws RemoteException { 170 // TODO Auto-generated method stub 171 return false; 172 } 173 174 public void updateStatusIcon(IBinder arg0, String arg1, int arg2) throws RemoteException { 175 // TODO Auto-generated method stub 176 177 } 178 179 public void windowGainedFocus(IInputMethodClient arg0, IBinder arg1, boolean arg2, 180 boolean arg3, int arg4, boolean arg5, int arg6) throws RemoteException { 181 // TODO Auto-generated method stub 182 183 } 184 185 public IBinder asBinder() { 186 // TODO Auto-generated method stub 187 return null; 188 } 189} 190