summaryrefslogtreecommitdiffstats
path: root/include/utils
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-08-11 14:46:32 -0700
committerJeff Brown <jeffbrown@google.com>2010-08-11 14:46:32 -0700
commita41ca77fabe1c7ad12ebb9b69b9e786c07d49fa0 (patch)
tree65d87a9c55c869843540884f0fbced6a69841895 /include/utils
parentc3fc2d03d58a258c53c9265a70143d4af076b764 (diff)
downloadframeworks_base-a41ca77fabe1c7ad12ebb9b69b9e786c07d49fa0.zip
frameworks_base-a41ca77fabe1c7ad12ebb9b69b9e786c07d49fa0.tar.gz
frameworks_base-a41ca77fabe1c7ad12ebb9b69b9e786c07d49fa0.tar.bz2
Add support for the PointerLocation overlay.
This change involves adding a new method to IWindowManager, monitorInput() that returns an InputChannel to receive a copy of all input that is dispatched to applications. The caller must have the READ_INPUT_STATE permission to make this request (similar to other window manager methods such as getKeycodeState). Change-Id: Icd14d810174a5b2928671ef16de73af88302aea0
Diffstat (limited to 'include/utils')
-rw-r--r--include/utils/String8.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/utils/String8.h b/include/utils/String8.h
index 4e41410..ef0b51a 100644
--- a/include/utils/String8.h
+++ b/include/utils/String8.h
@@ -171,7 +171,8 @@ public:
status_t append(const char* other);
status_t append(const char* other, size_t numChars);
- status_t appendFormat(const char* fmt, ...);
+ status_t appendFormat(const char* fmt, ...)
+ __attribute__((format (printf, 2, 3)));
// Note that this function takes O(N) time to calculate the value.
// No cache value is stored.