• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
17 package com.android.layoutlib.bridge.android;
18 
19 import com.android.internal.view.IInputContext;
20 import com.android.internal.view.IInputMethodClient;
21 import com.android.internal.view.IInputMethodManager;
22 import com.android.internal.view.InputBindResult;
23 
24 import android.os.IBinder;
25 import android.os.RemoteException;
26 import android.os.ResultReceiver;
27 import android.text.style.SuggestionSpan;
28 import android.view.inputmethod.EditorInfo;
29 import android.view.inputmethod.InputMethodInfo;
30 import android.view.inputmethod.InputMethodSubtype;
31 
32 import java.util.List;
33 
34 /**
35  * Basic implementation of IInputMethodManager that does nothing.
36  *
37  */
38 public class BridgeIInputMethodManager implements IInputMethodManager {
39 
40     @Override
addClient(IInputMethodClient arg0, IInputContext arg1, int arg2, int arg3)41     public void addClient(IInputMethodClient arg0, IInputContext arg1, int arg2, int arg3)
42             throws RemoteException {
43         // TODO Auto-generated method stub
44 
45     }
46 
47     @Override
finishInput(IInputMethodClient arg0)48     public void finishInput(IInputMethodClient arg0) throws RemoteException {
49         // TODO Auto-generated method stub
50 
51     }
52 
53     @Override
getCurrentInputMethodSubtype()54     public InputMethodSubtype getCurrentInputMethodSubtype() throws RemoteException {
55         // TODO Auto-generated method stub
56         return null;
57     }
58 
59     @Override
getEnabledInputMethodList()60     public List<InputMethodInfo> getEnabledInputMethodList() throws RemoteException {
61         // TODO Auto-generated method stub
62         return null;
63     }
64 
65     @Override
getEnabledInputMethodSubtypeList(String arg0, boolean arg1)66     public List<InputMethodSubtype> getEnabledInputMethodSubtypeList(String arg0,
67             boolean arg1) throws RemoteException {
68         // TODO Auto-generated method stub
69         return null;
70     }
71 
72     @Override
getInputMethodList()73     public List<InputMethodInfo> getInputMethodList() throws RemoteException {
74         // TODO Auto-generated method stub
75         return null;
76     }
77 
78     @Override
getLastInputMethodSubtype()79     public InputMethodSubtype getLastInputMethodSubtype() throws RemoteException {
80         // TODO Auto-generated method stub
81         return null;
82     }
83 
84     @Override
getShortcutInputMethodsAndSubtypes()85     public List getShortcutInputMethodsAndSubtypes() throws RemoteException {
86         // TODO Auto-generated method stub
87         return null;
88     }
89 
90     @Override
hideMySoftInput(IBinder arg0, int arg1)91     public void hideMySoftInput(IBinder arg0, int arg1) throws RemoteException {
92         // TODO Auto-generated method stub
93 
94     }
95 
96     @Override
hideSoftInput(IInputMethodClient arg0, int arg1, ResultReceiver arg2)97     public boolean hideSoftInput(IInputMethodClient arg0, int arg1, ResultReceiver arg2)
98             throws RemoteException {
99         // TODO Auto-generated method stub
100         return false;
101     }
102 
103     @Override
notifySuggestionPicked(SuggestionSpan arg0, String arg1, int arg2)104     public boolean notifySuggestionPicked(SuggestionSpan arg0, String arg1, int arg2)
105             throws RemoteException {
106         // TODO Auto-generated method stub
107         return false;
108     }
109 
110     @Override
registerSuggestionSpansForNotification(SuggestionSpan[] arg0)111     public void registerSuggestionSpansForNotification(SuggestionSpan[] arg0)
112             throws RemoteException {
113         // TODO Auto-generated method stub
114 
115     }
116 
117     @Override
removeClient(IInputMethodClient arg0)118     public void removeClient(IInputMethodClient arg0) throws RemoteException {
119         // TODO Auto-generated method stub
120 
121     }
122 
123     @Override
setAdditionalInputMethodSubtypes(String arg0, InputMethodSubtype[] arg1)124     public void setAdditionalInputMethodSubtypes(String arg0, InputMethodSubtype[] arg1)
125             throws RemoteException {
126         // TODO Auto-generated method stub
127     }
128 
129     @Override
setCurrentInputMethodSubtype(InputMethodSubtype arg0)130     public boolean setCurrentInputMethodSubtype(InputMethodSubtype arg0) throws RemoteException {
131         // TODO Auto-generated method stub
132         return false;
133     }
134 
135     @Override
setImeWindowStatus(IBinder arg0, int arg1, int arg2)136     public void setImeWindowStatus(IBinder arg0, int arg1, int arg2) throws RemoteException {
137         // TODO Auto-generated method stub
138     }
139 
140     @Override
setInputMethod(IBinder arg0, String arg1)141     public void setInputMethod(IBinder arg0, String arg1) throws RemoteException {
142         // TODO Auto-generated method stub
143 
144     }
145 
146     @Override
setInputMethodAndSubtype(IBinder arg0, String arg1, InputMethodSubtype arg2)147     public void setInputMethodAndSubtype(IBinder arg0, String arg1, InputMethodSubtype arg2)
148             throws RemoteException {
149         // TODO Auto-generated method stub
150 
151     }
152 
153     @Override
setInputMethodEnabled(String arg0, boolean arg1)154     public boolean setInputMethodEnabled(String arg0, boolean arg1) throws RemoteException {
155         // TODO Auto-generated method stub
156         return false;
157     }
158 
159     @Override
showInputMethodAndSubtypeEnablerFromClient(IInputMethodClient arg0, String arg1)160     public void showInputMethodAndSubtypeEnablerFromClient(IInputMethodClient arg0, String arg1)
161             throws RemoteException {
162         // TODO Auto-generated method stub
163 
164     }
165 
166     @Override
showInputMethodPickerFromClient(IInputMethodClient arg0, int arg1)167     public void showInputMethodPickerFromClient(IInputMethodClient arg0,
168             int arg1) throws RemoteException {
169         // TODO Auto-generated method stub
170 
171     }
172 
173     @Override
showMySoftInput(IBinder arg0, int arg1)174     public void showMySoftInput(IBinder arg0, int arg1) throws RemoteException {
175         // TODO Auto-generated method stub
176 
177     }
178 
179     @Override
showSoftInput(IInputMethodClient arg0, int arg1, ResultReceiver arg2)180     public boolean showSoftInput(IInputMethodClient arg0, int arg1, ResultReceiver arg2)
181             throws RemoteException {
182         // TODO Auto-generated method stub
183         return false;
184     }
185 
186     @Override
switchToLastInputMethod(IBinder arg0)187     public boolean switchToLastInputMethod(IBinder arg0) throws RemoteException {
188         // TODO Auto-generated method stub
189         return false;
190     }
191 
192     @Override
switchToNextInputMethod(IBinder arg0, boolean arg1)193     public boolean switchToNextInputMethod(IBinder arg0, boolean arg1) throws RemoteException {
194         // TODO Auto-generated method stub
195         return false;
196     }
197 
198     @Override
shouldOfferSwitchingToNextInputMethod(IBinder arg0)199     public boolean shouldOfferSwitchingToNextInputMethod(IBinder arg0) throws RemoteException {
200         // TODO Auto-generated method stub
201         return false;
202     }
203 
204     @Override
getInputMethodWindowVisibleHeight()205      public int getInputMethodWindowVisibleHeight() throws RemoteException {
206         // TODO Auto-generated method stub
207         return 0;
208     }
209 
210     @Override
notifyUserAction(int sequenceNumber)211     public void notifyUserAction(int sequenceNumber) throws RemoteException {
212         // TODO Auto-generated method stub
213     }
214 
215     @Override
updateStatusIcon(IBinder arg0, String arg1, int arg2)216     public void updateStatusIcon(IBinder arg0, String arg1, int arg2) throws RemoteException {
217         // TODO Auto-generated method stub
218 
219     }
220 
221     @Override
clearLastInputMethodWindowForTransition(IBinder arg0)222     public void clearLastInputMethodWindowForTransition(IBinder arg0) throws RemoteException {
223         // TODO Auto-generated method stub
224     }
225 
226     @Override
startInputOrWindowGainedFocus( int startInputReason, IInputMethodClient client, IBinder windowToken, int controlFlags, int softInputMode, int windowFlags, EditorInfo attribute, IInputContext inputContext, int missingMethodFlags)227     public InputBindResult startInputOrWindowGainedFocus(
228             /* @InputMethodClient.StartInputReason */ int startInputReason,
229             IInputMethodClient client, IBinder windowToken, int controlFlags, int softInputMode,
230             int windowFlags, EditorInfo attribute, IInputContext inputContext,
231             /* @InputConnectionInspector.MissingMethodFlags */ int missingMethodFlags)
232             throws RemoteException {
233         // TODO Auto-generated method stub
234         return null;
235     }
236 
237     @Override
asBinder()238     public IBinder asBinder() {
239         // TODO Auto-generated method stub
240         return null;
241     }
242 }
243