Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16769947 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Add dump for UnwantedInteractionBlocker

The new stage that we are adding will be responsible for blocking
unwanted input interactions.

Bug: 198472780
Test: adb shell dumpsys input
Change-Id: I8e78d873adf866738cd3d7cd1beccebd905812dc
parent 2810da2c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -103,6 +103,7 @@ cc_defaults {
        "libappfuse",
        "libbinder_ndk",
        "libbinder",
        "libchrome",
        "libcutils",
        "libcrypto",
        "liblog",
+4 −0
Original line number Diff line number Diff line
@@ -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();