summaryrefslogtreecommitdiff
path: root/core/java/android/view/KeyCharacterMap.java
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-04-05 11:49:26 -0700
committerJeff Brown <jeffbrown@google.com>2012-04-05 14:42:10 -0700
commit9df6e7a926ce480baf70e97ee1b9ea387193f6ad (patch)
treedfe752a296e934467d76d6727b687a8fc8fad586 /core/java/android/view/KeyCharacterMap.java
parentdedf1b2727556223aafcebba1a567ffa816412d2 (diff)
Initial commit of InputManager and keyboard layout API.
Added a new InputManager service for interacting with input devices and configuring them. This will be the focus of an upcoming refactoring. Added an API for registering keyboard layouts with the system based on the use of a broadcast receiver. Applications can register their own keyboard layouts simply by declaring a broadcast receiver in their manifests. Added the skeleton of a package that will ultimately contain the keyboard layouts and other input device related resources that are part of the base system. Bug: 6110399 Change-Id: Ie01b0ef4adbd5198f6f012e73964bdef3c51805c
Diffstat (limited to 'core/java/android/view/KeyCharacterMap.java')
-rw-r--r--core/java/android/view/KeyCharacterMap.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/core/java/android/view/KeyCharacterMap.java b/core/java/android/view/KeyCharacterMap.java
index 575af3bc10e7..98cce5efe68d 100644
--- a/core/java/android/view/KeyCharacterMap.java
+++ b/core/java/android/view/KeyCharacterMap.java
@@ -22,6 +22,7 @@ import android.util.SparseIntArray;
import android.os.RemoteException;
import android.util.SparseArray;
+import java.io.Reader;
import java.lang.Character;
/**
@@ -196,6 +197,14 @@ public class KeyCharacterMap {
}
/**
+ * TODO implement this
+ * @hide
+ */
+ public static KeyCharacterMap load(CharSequence contents) {
+ return null;
+ }
+
+ /**
* Gets the Unicode character generated by the specified key and meta
* key state combination.
* <p>
@@ -456,7 +465,8 @@ public class KeyCharacterMap {
/**
* Gets the keyboard type.
- * Returns {@link #NUMERIC}, {@link #PREDICTIVE}, {@link #ALPHA} or {@link #FULL}.
+ * Returns {@link #NUMERIC}, {@link #PREDICTIVE}, {@link #ALPHA}, {@link #FULL}
+ * or {@link #SPECIAL_FUNCTION}.
* <p>
* Different keyboard types have different semantics. Refer to the documentation
* associated with the keyboard type constants for details.