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