/external/jmonkeyengine/engine/src/lwjgl/com/jme3/input/lwjgl/ |
LwjglKeyInput.java | 44 import org.lwjgl.input.Keyboard; 63 Keyboard.create(); 64 Keyboard.enableRepeatEvents(true); 65 logger.info("Keyboard created."); 67 logger.log(Level.SEVERE, "Error while creating keyboard.", ex); 72 return Keyboard.KEYBOARD_SIZE; 79 Keyboard.poll(); 80 while (Keyboard.next()){ 81 int keyCode = Keyboard.getEventKey(); 82 char keyChar = Keyboard.getEventCharacter() [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
DictAndKeyboard.java | 20 import com.android.inputmethod.keyboard.Keyboard; 21 import com.android.inputmethod.keyboard.KeyboardId; 22 import com.android.inputmethod.keyboard.KeyboardLayoutSet; 23 import com.android.inputmethod.keyboard.ProximityInfo; 26 * A container for a Dictionary and a Keyboard. 30 private final Keyboard mKeyboard; 31 private final Keyboard mManualShiftedKeyboard; 46 public Keyboard getKeyboard(final int codePoint) {
|
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/ |
LatinKeyboardView.java | 20 import android.inputmethodservice.Keyboard; 21 import android.inputmethodservice.Keyboard.Key; 40 if (key.codes[0] == Keyboard.KEYCODE_CANCEL) { 49 final LatinKeyboard keyboard = (LatinKeyboard)getKeyboard(); local 50 keyboard.setSpaceIcon(getResources().getDrawable(subtype.getIconResId()));
|
LatinKeyboard.java | 23 import android.inputmethodservice.Keyboard; 26 public class LatinKeyboard extends Keyboard { 54 * appropriate label on the keyboard's enter key (if it has one). 94 static class LatinKey extends Keyboard.Key { 96 public LatinKey(Resources res, Keyboard.Row parent, int x, int y, XmlResourceParser parser) { 102 * closes the keyboard.
|
SoftKeyboard.java | 20 import android.inputmethodservice.Keyboard; 37 * Example of writing an input method for a soft keyboard. This code is 39 * to be a complete soft keyboard implementation. Its purpose is to provide 52 * a QWERTY keyboard to Chinese), but may not be used for input methods 95 // Configuration changes can happen after the keyboard gets recreated, 159 // Numbers and dates default to the symbols keyboard, with 165 // Phones will also default to the symbols keyboard, though 166 // often you will want to have a dedicated phone keyboard. 172 // normal alphabetic keyboard, and assume that we should 207 // to decide whether our alphabetic keyboard should start ou [all...] |
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/ |
DefaultSoftKeyboardEN.java | 26 import jp.co.omronsoft.openwnn.Keyboard; 31 * The default Software Keyboard class for English IME. 36 /** 12-key keyboard [PHONE MODE] */ 42 * The normal keyboard(KEYMODE_EN_ALPHABET) and the number/symbol 43 * keyboard(KEYMODE_EN_NUMBER) is active. The phone number 44 * keyboard(KEYMODE_EN_PHONE) is disabled. 57 * Dismiss the pop-up keyboard. 59 * Nothing will be done if no pop-up keyboard is displaying. 73 mKeyboard = new Keyboard[3][2][4][2][7][2]; 75 Keyboard[][] keyList 115 Keyboard keyboard = super.getModeChangeKeyboard(keyMode); local [all...] |
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/ |
DefaultSoftKeyboardJAJP.java | 30 import jp.co.omronsoft.openwnn.Keyboard; 39 * The default Software Keyboard class for Japanese IME. 89 /** Max key number of the 12 key keyboard (depends on the definition of keyboards) */ 272 /** KeyIndex of "Moji" key on 12 keyboard (depends on the definition of keyboards) */ 275 /** KeyIndex of "Moji" key on QWERTY keyboard (depends on the definition of keyboards) */ 308 /** {@code SharedPreferences} for save the keyboard type */ 312 private Keyboard.Key mChangeModeKey = null; 330 /* Keyboard[# of Languages][portrait/landscape][# of keyboard type][shift off/on][max # of key-modes][noinput/input] */ 331 mKeyboard = new Keyboard[3][2][4][2][8][2] [all...] |
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
DefaultSoftKeyboard.java | 34 import jp.co.omronsoft.openwnn.Keyboard; 39 * The default software keyboard class. 46 * key codes for a software keyboard 49 /** Change the keyboard language */ 52 /* for Japanese 12-key keyboard */ 53 /** Japanese 12-key keyboard [1] */ 55 /** Japanese 12-key keyboard [2] */ 57 /** Japanese 12-key keyboard [3] */ 59 /** Japanese 12-key keyboard [4] */ 61 /** Japanese 12-key keyboard [5] * 888 Keyboard keyboard = mCurrentKeyboard; local [all...] |
Keyboard.java | 18 * frameworks/base/core/java/android/inputmethodservice/Keyboard.java 43 * Loads an XML description of a keyboard and stores the attributes of the keys. A keyboard 45 * <p>The layout file for a keyboard contains XML that looks like the following snippet:</p> 47 * <Keyboard 57 * </Keyboard> 60 public class Keyboard { 62 static final String TAG = "Keyboard"; 64 private static final String TAG_KEYBOARD = "Keyboard"; 98 /** Keyboard label ** 267 private Keyboard keyboard; field in class:Keyboard.Key [all...] |
KeyboardView.java | 49 import jp.co.omronsoft.openwnn.Keyboard; 50 import jp.co.omronsoft.openwnn.Keyboard.Key; 58 * A view that renders a virtual {@link Keyboard}. It handles rendering of keys and 64 * Listener for virtual keyboard events. 126 boolean onLongPress(Keyboard.Key key); 130 private static final int[] KEY_DELETE = { Keyboard.KEYCODE_DELETE }; 135 private Keyboard mKeyboard; 239 /** Whether the keyboard bitmap needs to be redrawn before it's blitted. **/ 241 /** The dirty region in the keyboard bitmap */ 243 /** The keyboard bitmap for faster updates * 1100 Keyboard keyboard; local [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
KeyDetector.java | 17 package com.android.inputmethod.keyboard; 26 private Keyboard mKeyboard; 54 public void setKeyboard(Keyboard keyboard, float correctionX, float correctionY) { 55 if (keyboard == null) { 60 mKeyboard = keyboard; 77 public Keyboard getKeyboard() { 79 throw new IllegalStateException("keyboard isn't set");
|
Keyboard.java | 17 package com.android.inputmethod.keyboard; 21 import com.android.inputmethod.keyboard.internal.KeyVisualAttributes; 22 import com.android.inputmethod.keyboard.internal.KeyboardIconsSet; 23 import com.android.inputmethod.keyboard.internal.KeyboardParams; 28 * Loads an XML description of a keyboard and stores the attributes of the keys. A keyboard 30 * <p>The layout file for a keyboard contains XML that looks like the following snippet:</p> 32 * <Keyboard 42 * </Keyboard> 45 public class Keyboard { [all...] |
KeyboardLayoutSet.java | 17 package com.android.inputmethod.keyboard; 40 import com.android.inputmethod.keyboard.internal.KeyboardBuilder; 41 import com.android.inputmethod.keyboard.internal.KeyboardParams; 42 import com.android.inputmethod.keyboard.internal.KeysCache; 62 * This class represents a set of keyboard layouts. Each of them represents a different keyboard 63 * specific to a keyboard state, such as alphabet, symbols, and so on. Layouts in the same 82 private static final HashMap<KeyboardId, SoftReference<Keyboard>> sKeyboardCache = 130 public Keyboard getKeyboard(final int baseKeyboardLayoutSetElementId) { 157 // Note: The keyboard for each shift state, and mode are represented as an elementNam 171 Keyboard keyboard = (ref == null) ? null : ref.get(); local [all...] |
/external/jmonkeyengine/engine/src/lwjgl/com/jme3/system/lwjgl/ |
LwjglCanvas.java | 45 import org.lwjgl.input.Keyboard;
239 if (Keyboard.isCreated()){
241 Keyboard.destroy();
278 Keyboard.create();
377 * Destroying keyboard early prevents the error above, triggered
378 * by destroying keyboard in by Display.destroy() or Display.setParent(null).
379 * Therefore Keyboard.destroy() should precede any of these calls.
381 if (Keyboard.isCreated()){
384 Keyboard.destroy();
446 if (Keyboard.isCreated()){ [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
LatinImeLogger.java | 22 import com.android.inputmethod.keyboard.Keyboard; 86 public static void onSetKeyboard(Keyboard kb) {
|
WordComposer.java | 19 import com.android.inputmethod.keyboard.Key; 20 import com.android.inputmethod.keyboard.Keyboard; 215 public void addKeyInfo(final int codePoint, final Keyboard keyboard) { 218 if (keyboard != null && (key = keyboard.getKey(codePoint)) != null) { 230 * This will register NOT_A_COORDINATE for X and Ys, and use the passed keyboard for proximity. 232 public void setComposingWord(final CharSequence word, final Keyboard keyboard) { [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
PasswordEntryKeyboardHelper.java | 21 import android.inputmethodservice.Keyboard; 206 if (primaryCode == Keyboard.KEYCODE_DELETE) { 208 } else if (primaryCode == Keyboard.KEYCODE_SHIFT) { 210 } else if (primaryCode == Keyboard.KEYCODE_CANCEL) { 213 } else if (primaryCode == Keyboard.KEYCODE_MODE_CHANGE && mKeyboardView != null) { 217 // Switch back to old keyboard if we're not in capslock mode 250 final Keyboard current = mKeyboardView.getKeyboard(); 251 Keyboard next = null; 272 Keyboard current = mKeyboardView.getKeyboard();
|
PasswordEntryKeyboard.java | 24 import android.inputmethodservice.Keyboard; 29 * A basic, embed-able keyboard designed for password entry. Allows entry of all Latin-1 characters. 32 * an additional keyboard with symbols. In numeric mode, it shows a 12-key DTMF dialer-like 35 public class PasswordEntryKeyboard extends Keyboard { 207 * Whether or not keyboard is shifted. 208 * @return true if keyboard state is shifted. 219 static class LatinKey extends Keyboard.Key { 223 public LatinKey(Resources res, Keyboard.Row parent, int x, int y, 227 // If there is a keyboard with no keys specified in popupCharacters
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
MoreSuggestionsView.java | 23 import com.android.inputmethod.keyboard.Keyboard; 24 import com.android.inputmethod.keyboard.MoreKeysKeyboardView; 56 // Set vertical correction to zero (Reset more keys keyboard sliding allowance 63 final Keyboard keyboard = getKeyboard(); local 64 if (!(keyboard instanceof MoreSuggestions)) { 65 Log.e(TAG, "Expected keyboard is MoreSuggestions, but found " 66 + keyboard.getClass().getName()); 69 final SuggestedWords suggestedWords = ((MoreSuggestions)keyboard).mSuggestedWords [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
KeyCodeDescriptionMapper.java | 25 import com.android.inputmethod.keyboard.Key; 26 import com.android.inputmethod.keyboard.Keyboard; 27 import com.android.inputmethod.keyboard.KeyboardId; 64 // Special non-character codes defined in Keyboard 82 * key based on the current keyboard state. 93 * @param keyboard The keyboard on which the key resides. 98 public String getDescriptionForKey(final Context context, final Keyboard keyboard, [all...] |
AccessibilityEntityProvider.java | 35 import com.android.inputmethod.keyboard.Key; 36 import com.android.inputmethod.keyboard.Keyboard; 37 import com.android.inputmethod.keyboard.KeyboardView; 71 /** The current keyboard view. */ 83 * Sets the keyboard view represented by this node provider. 85 * @param keyboardView The keyboard view to represent. 97 * Sets the keyboard represented by this node provider. 107 * @param key A key on the host keyboard view. 159 final Keyboard keyboard = mKeyboardView.getKeyboard() local 297 final Keyboard keyboard = mKeyboardView.getKeyboard(); local [all...] |
AccessibleKeyboardViewProxy.java | 31 import com.android.inputmethod.keyboard.Key; 32 import com.android.inputmethod.keyboard.Keyboard; 33 import com.android.inputmethod.keyboard.KeyboardId; 34 import com.android.inputmethod.keyboard.MainKeyboardView; 35 import com.android.inputmethod.keyboard.PointerTracker; 41 /** Map of keyboard modes to resource IDs. */ 63 * Inset in pixels to look for keys when the user's finger exits the keyboard area. 67 /** The most recently set keyboard mode. */ 110 * Called when the keyboard layout changes 347 final Keyboard keyboard = mView.getKeyboard(); local 377 final Keyboard keyboard = mView.getKeyboard(); local [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
KeyboardRow.java | 17 package com.android.inputmethod.keyboard.internal; 23 import com.android.inputmethod.keyboard.Key; 24 import com.android.inputmethod.keyboard.Keyboard; 31 * Container for keys in the keyboard. All keys in a row are at the same Y-coordinate. 32 * Some of the key size defaults can be overridden per row from what the {@link Keyboard} 58 R.styleable.Keyboard); 142 // out the area up to the right edge of the keyboard.
|
/frameworks/base/core/java/android/inputmethodservice/ |
Keyboard.java | 39 * Loads an XML description of a keyboard and stores the attributes of the keys. A keyboard 41 * <p>The layout file for a keyboard contains XML that looks like the following snippet:</p> 43 * <Keyboard 53 * </Keyboard> 60 public class Keyboard { 62 static final String TAG = "Keyboard"; 64 // Keyboard XML Tags 65 private static final String TAG_KEYBOARD = "Keyboard"; 81 /** Keyboard label ** 275 private Keyboard keyboard; field in class:Keyboard.Key [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/resources/manager/ |
ConfigMatchTest.java | 32 import com.android.resources.Keyboard; 106 null, // keyboard state 130 KeyboardState.EXPOSED.getResourceValue(), // keyboard state 154 KeyboardState.HIDDEN.getResourceValue(), // keyboard state 178 null, // keyboard state 202 KeyboardState.EXPOSED.getResourceValue(), // keyboard state 203 Keyboard.QWERTY.getResourceValue(), // text input 234 KeyboardState.EXPOSED.getResourceValue(), // keyboard state 235 Keyboard.QWERTY.getResourceValue(), // text input
|