Home
last modified time | relevance | path

Searched refs:symbolicName (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/view/
DMotionEvent.java3236 String symbolicName = nativeAxisToString(axis); in axisToString() local
3237 return symbolicName != null ? LABEL_PREFIX + symbolicName : Integer.toString(axis); in axisToString()
3248 public static int axisFromString(String symbolicName) { in axisFromString() argument
3249 if (symbolicName.startsWith(LABEL_PREFIX)) { in axisFromString()
3250 symbolicName = symbolicName.substring(LABEL_PREFIX.length()); in axisFromString()
3251 int axis = nativeAxisFromString(symbolicName); in axisFromString()
3257 return Integer.parseInt(symbolicName, 10); in axisFromString()
3308 String symbolicName = TOOL_TYPE_SYMBOLIC_NAMES.get(toolType); in toolTypeToString() local
3309 return symbolicName != null ? symbolicName : Integer.toString(toolType); in toolTypeToString()
DKeyEvent.java2880 String symbolicName = nativeKeyCodeToString(keyCode); in keyCodeToString() local
2881 return symbolicName != null ? LABEL_PREFIX + symbolicName : Integer.toString(keyCode); in keyCodeToString()
2892 public static int keyCodeFromString(String symbolicName) { in keyCodeFromString() argument
2893 if (symbolicName.startsWith(LABEL_PREFIX)) { in keyCodeFromString()
2894 symbolicName = symbolicName.substring(LABEL_PREFIX.length()); in keyCodeFromString()
2895 int keyCode = nativeKeyCodeFromString(symbolicName); in keyCodeFromString()
2901 return Integer.parseInt(symbolicName, 10); in keyCodeFromString()