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

Commit a98575f8 authored by Arpit Singh's avatar Arpit Singh Committed by Android (Google) Code Review
Browse files

Merge "Add method to retrieve focused display from the Dispatcher" into main

parents c4535bc7 a9d7ebe9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -362,6 +362,7 @@ public:
    void notifyDropWindow(const sp<IBinder>& token, float x, float y) override;
    void notifyDeviceInteraction(int32_t deviceId, nsecs_t timestamp,
                                 const std::set<gui::Uid>& uids) override;
    void notifyFocusedDisplayChanged(ui::LogicalDisplayId displayId) override;

    /* --- PointerControllerPolicyInterface implementation --- */

@@ -1108,6 +1109,10 @@ void NativeInputManager::notifyVibratorState(int32_t deviceId, bool isOn) {
    checkAndClearExceptionFromCallback(env, "notifyVibratorState");
}

void NativeInputManager::notifyFocusedDisplayChanged(ui::LogicalDisplayId displayId) {
    mInputManager->getChoreographer().setFocusedDisplay(displayId);
}

void NativeInputManager::displayRemoved(JNIEnv* env, ui::LogicalDisplayId displayId) {
    mInputManager->getDispatcher().displayRemoved(displayId);
}