summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2019-12-10 22:55:49 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2019-12-10 22:55:49 +0000
commitd2a3e9b37e8175e69ade22e8cdd600421b71fb87 (patch)
tree915a345871b39989626ab285e42885b2528ee46b
parent0546a8e7ebf87588f8a2614634c1c4eef7d3fee1 (diff)
parent99b292950f123f497229921e3b885d98354d33db (diff)
downloadnative-d2a3e9b37e8175e69ade22e8cdd600421b71fb87.tar.gz
Merge "Don't leak input events to dumpsys on user builds" into oc-dev am: ff849d65da am: 99b292950f
Change-Id: I07ffda92bd50d2f6f366ec9c2742825812e7195c
-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 69067d225b..3a0198b79b 100644
--- a/services/inputflinger/InputDispatcher.cpp
+++ b/services/inputflinger/InputDispatcher.cpp
@@ -3943,11 +3943,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() {
@@ -3988,19 +3984,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");
}