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

Commit d43a6541 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge changes from topics "NotifyInputDevicesChangedArgs", "dump-from-inputmanager" into udc-dev

* changes:
  Dump all native input components from InputManager
  Notify InputListener when there an changes to input devices
parents 2297912e 7a82f9ab
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -485,17 +485,7 @@ void NativeInputManager::dump(std::string& dump) {
    }
    dump += "\n";

    mInputManager->getReader().dump(dump);
    dump += "\n";

    mInputManager->getBlocker().dump(dump);
    dump += "\n";

    mInputManager->getProcessor().dump(dump);
    dump += "\n";

    mInputManager->getDispatcher().dump(dump);
    dump += "\n";
    mInputManager->dump(dump);
}

bool NativeInputManager::checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) {
@@ -760,7 +750,6 @@ void NativeInputManager::ensureSpriteControllerLocked() REQUIRES(mLock) {

void NativeInputManager::notifyInputDevicesChanged(const std::vector<InputDeviceInfo>& inputDevices) {
    ATRACE_CALL();
    mInputManager->getBlocker().notifyInputDevicesChanged(inputDevices);
    JNIEnv* env = jniEnv();

    size_t count = inputDevices.size();