Package org.robolectric.shadows
Class ShadowKeyCharacterMap
- java.lang.Object
-
- org.robolectric.shadows.ShadowKeyCharacterMap
-
@Implements(android.view.KeyCharacterMap.class) public class ShadowKeyCharacterMap extends Object
-
-
Constructor Summary
Constructors Constructor Description ShadowKeyCharacterMap()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
get(int keyCode, int metaState)
KeyEvent
getDownEvent(char a)
protected KeyEvent[]
getEvents(char[] chars)
protected int
getKeyboardType()
KeyEvent
getUpEvent(char a)
protected static KeyCharacterMap
load(int deviceId)
protected static char
nativeGetNumber(int ptr, int keyCode)
protected static char
nativeGetNumber(long ptr, int keyCode)
-
-
-
Method Detail
-
load
@Implementation protected static KeyCharacterMap load(int deviceId)
-
getEvents
@Implementation protected KeyEvent[] getEvents(char[] chars)
-
getKeyboardType
@Implementation protected int getKeyboardType()
-
get
@Implementation protected int get(int keyCode, int metaState)
-
getDownEvent
public KeyEvent getDownEvent(char a)
-
getUpEvent
public KeyEvent getUpEvent(char a)
-
nativeGetNumber
@Implementation(minSdk=20) protected static char nativeGetNumber(long ptr, int keyCode)
-
nativeGetNumber
@Implementation(maxSdk=19) protected static char nativeGetNumber(int ptr, int keyCode)
-
-