Merge "Add dump for UnwantedInteractionBlocker"

This commit is contained in:
Siarhei Vishniakou
2022-01-31 21:38:42 +00:00
committed by Android (Google) Code Review
2 changed files with 5 additions and 0 deletions

View File

@@ -103,6 +103,7 @@ cc_defaults {
"libappfuse",
"libbinder_ndk",
"libbinder",
"libchrome",
"libcutils",
"libcrypto",
"liblog",

View File

@@ -457,6 +457,9 @@ void NativeInputManager::dump(std::string& dump) {
mInputManager->getReader().dump(dump);
dump += "\n";
mInputManager->getUnwantedInteractionBlocker().dump(dump);
dump += "\n";
mInputManager->getClassifier().dump(dump);
dump += "\n";
@@ -704,6 +707,7 @@ void NativeInputManager::ensureSpriteControllerLocked() REQUIRES(mLock) {
void NativeInputManager::notifyInputDevicesChanged(const std::vector<InputDeviceInfo>& inputDevices) {
ATRACE_CALL();
mInputManager->getUnwantedInteractionBlocker().notifyInputDevicesChanged(inputDevices);
JNIEnv* env = jniEnv();
size_t count = inputDevices.size();