summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2019-12-10 22:18:53 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-12-10 22:18:53 +0000
commitff849d65da2a30643f0d4ed5d3225ce4f2af9608 (patch)
tree68e57ffb6edc107220bb6559be23c9ed176d1afd
parentd9d10dbdf2f20af3dd01376d2130c71c052e42f3 (diff)
parentc2ddb61f37b2f7a1067534fc3a950c7fe4677818 (diff)
downloadnative-ff849d65da2a30643f0d4ed5d3225ce4f2af9608.tar.gz
Merge "Don't leak input events to dumpsys on user builds" into oc-dev
-rw-r--r--services/inputflinger/InputDispatcher.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/services/inputflinger/InputDispatcher.cpp b/services/inputflinger/InputDispatcher.cpp
index 2efb340eba..f4df0a0086 100644
--- a/services/inputflinger/InputDispatcher.cpp
+++ b/services/inputflinger/InputDispatcher.cpp
@@ -3945,11 +3945,7 @@ InputDispatcher::KeyEntry::~KeyEntry() {
}
void InputDispatcher::KeyEntry::appendDescription(String8& msg) const {
- msg.appendFormat("KeyEvent(deviceId=%d, source=0x%08x, action=%d, "
- "flags=0x%08x, keyCode=%d, scanCode=%d, metaState=0x%08x, "
- "repeatCount=%d), policyFlags=0x%08x",
- deviceId, source, action, flags, keyCode, scanCode, metaState,
- repeatCount, policyFlags);
+ msg.appendFormat("KeyEvent");
}
void InputDispatcher::KeyEntry::recycle() {
@@ -3990,19 +3986,7 @@ InputDispatcher::MotionEntry::~MotionEntry() {
}
void InputDispatcher::MotionEntry::appendDescription(String8& msg) const {
- msg.appendFormat("MotionEvent(deviceId=%d, source=0x%08x, action=%d, actionButton=0x%08x, "
- "flags=0x%08x, metaState=0x%08x, buttonState=0x%08x, "
- "edgeFlags=0x%08x, xPrecision=%.1f, yPrecision=%.1f, displayId=%d, pointers=[",
- deviceId, source, action, actionButton, flags, metaState, buttonState, edgeFlags,
- xPrecision, yPrecision, displayId);
- for (uint32_t i = 0; i < pointerCount; i++) {
- if (i) {
- msg.append(", ");
- }
- msg.appendFormat("%d: (%.1f, %.1f)", pointerProperties[i].id,
- pointerCoords[i].getX(), pointerCoords[i].getY());
- }
- msg.appendFormat("]), policyFlags=0x%08x", policyFlags);
+ msg.appendFormat("MotionEvent");
}