diff options
| author | Jeff Brown <jeffbrown@google.com> | 2012-05-18 14:41:19 -0700 |
|---|---|---|
| committer | Jeff Brown <jeffbrown@google.com> | 2012-05-20 14:56:22 -0700 |
| commit | cf39bdf3dff5e29447f6ce734b76dc3490385e58 (patch) | |
| tree | 90900366888a32fbfa769f541b0bd8dbbcec748a /core/java/android/view/WindowManagerPolicy.java | |
| parent | 51f2430217a377bc2913862d98a97d0087914540 (diff) | |
Add support for switching between multiple keyboard layouts.
Also show a notification when an external keyboard is connected
and does not have a keyboard layout selected yet.
Bug: 6405203
Change-Id: Id0ac6d83b3b381f8a236b2244a04c9acb203db3c
Diffstat (limited to 'core/java/android/view/WindowManagerPolicy.java')
| -rw-r--r-- | core/java/android/view/WindowManagerPolicy.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/view/WindowManagerPolicy.java b/core/java/android/view/WindowManagerPolicy.java index 0c5d6ea8e904..ceb9fe6781ce 100644 --- a/core/java/android/view/WindowManagerPolicy.java +++ b/core/java/android/view/WindowManagerPolicy.java @@ -386,6 +386,12 @@ public interface WindowManagerPolicy { */ public InputChannel monitorInput(String name); + /** + * Switch the keyboard layout for the given device. + * Direction should be +1 or -1 to go to the next or previous keyboard layout. + */ + public void switchKeyboardLayout(int deviceId, int direction); + public void shutdown(); public void rebootSafeMode(); } |
