summaryrefslogtreecommitdiffstats
path: root/libs/ui/tests
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-11-18 20:53:46 -0800
committerJeff Brown <jeffbrown@google.com>2010-11-30 18:50:17 -0800
commit53c16642e2f8176b26f61b98328051f6dd1234ae (patch)
treeaad37749d50f5e3bdd41946934aec27284cc4b77 /libs/ui/tests
parent6688837ff6a959b4f59d9a4249aac1504f590a4b (diff)
downloadframeworks_native-53c16642e2f8176b26f61b98328051f6dd1234ae.zip
frameworks_native-53c16642e2f8176b26f61b98328051f6dd1234ae.tar.gz
frameworks_native-53c16642e2f8176b26f61b98328051f6dd1234ae.tar.bz2
Ensure the ShortcutManager uses the correct key character map.
The ShortcutManager used to only receive the key code of the key event that triggered the shortcut. This change now provides the shortcut manager with the whole key event so it can look up the associated character using the correct key character map. To make this more efficient, added a mechanism for recycling key events. At the moment it is only used by key events owned by the system process, since clients of the existing API (such as Views) might continue to hold on to key events after dispatch has finished so they would break if the key event were recycled by the framework. Deprecated KeyCharacterMap.BUILT_IN_KEYBOARD. Change-Id: I4313725dd63f2be01c350c005a41c7fde9bc67e8
Diffstat (limited to 'libs/ui/tests')
-rw-r--r--libs/ui/tests/InputDispatcher_test.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/ui/tests/InputDispatcher_test.cpp b/libs/ui/tests/InputDispatcher_test.cpp
index f352dbf..68f9037 100644
--- a/libs/ui/tests/InputDispatcher_test.cpp
+++ b/libs/ui/tests/InputDispatcher_test.cpp
@@ -54,9 +54,7 @@ private:
return 60;
}
- virtual void interceptKeyBeforeQueueing(nsecs_t when, int32_t deviceId,
- int32_t action, int32_t& flags, int32_t keyCode, int32_t scanCode,
- uint32_t& policyFlags) {
+ virtual void interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags) {
}
virtual void interceptGenericBeforeQueueing(nsecs_t when, uint32_t& policyFlags) {