Loading services/input/InputDispatcher.cpp +10 −4 Original line number Diff line number Diff line Loading @@ -998,8 +998,7 @@ void InputDispatcher::dispatchEventToCurrentInputTargetsLocked(nsecs_t currentTi void InputDispatcher::resetTargetsLocked() { mCurrentInputTargetsValid = false; mCurrentInputTargets.clear(); mInputTargetWaitCause = INPUT_TARGET_WAIT_CAUSE_NONE; mInputTargetWaitApplicationHandle.clear(); resetANRTimeoutsLocked(); } void InputDispatcher::commitTargetsLocked() { Loading Loading @@ -1110,6 +1109,7 @@ void InputDispatcher::resetANRTimeoutsLocked() { // Reset input target wait timeout. mInputTargetWaitCause = INPUT_TARGET_WAIT_CAUSE_NONE; mInputTargetWaitApplicationHandle.clear(); } int32_t InputDispatcher::findFocusedWindowTargetsLocked(nsecs_t currentTime, Loading Loading @@ -3226,8 +3226,14 @@ void InputDispatcher::setFocusedApplication( AutoMutex _l(mLock); if (inputApplicationHandle != NULL && inputApplicationHandle->update()) { if (mFocusedApplicationHandle != inputApplicationHandle) { if (mFocusedApplicationHandle != NULL) { resetTargetsLocked(); } mFocusedApplicationHandle = inputApplicationHandle; } else { } } else if (mFocusedApplicationHandle != NULL) { resetTargetsLocked(); mFocusedApplicationHandle.clear(); } Loading Loading
services/input/InputDispatcher.cpp +10 −4 Original line number Diff line number Diff line Loading @@ -998,8 +998,7 @@ void InputDispatcher::dispatchEventToCurrentInputTargetsLocked(nsecs_t currentTi void InputDispatcher::resetTargetsLocked() { mCurrentInputTargetsValid = false; mCurrentInputTargets.clear(); mInputTargetWaitCause = INPUT_TARGET_WAIT_CAUSE_NONE; mInputTargetWaitApplicationHandle.clear(); resetANRTimeoutsLocked(); } void InputDispatcher::commitTargetsLocked() { Loading Loading @@ -1110,6 +1109,7 @@ void InputDispatcher::resetANRTimeoutsLocked() { // Reset input target wait timeout. mInputTargetWaitCause = INPUT_TARGET_WAIT_CAUSE_NONE; mInputTargetWaitApplicationHandle.clear(); } int32_t InputDispatcher::findFocusedWindowTargetsLocked(nsecs_t currentTime, Loading Loading @@ -3226,8 +3226,14 @@ void InputDispatcher::setFocusedApplication( AutoMutex _l(mLock); if (inputApplicationHandle != NULL && inputApplicationHandle->update()) { if (mFocusedApplicationHandle != inputApplicationHandle) { if (mFocusedApplicationHandle != NULL) { resetTargetsLocked(); } mFocusedApplicationHandle = inputApplicationHandle; } else { } } else if (mFocusedApplicationHandle != NULL) { resetTargetsLocked(); mFocusedApplicationHandle.clear(); } Loading