Merge "Fix NPE when handling certain kinds of ANRs." into gingerbread
This commit is contained in:
@@ -777,6 +777,7 @@ void InputDispatcher::resumeAfterTargetsNotReadyTimeoutLocked(nsecs_t newTimeout
|
|||||||
mInputTargetWaitTimeoutExpired = true;
|
mInputTargetWaitTimeoutExpired = true;
|
||||||
|
|
||||||
// Input state will not be realistic. Mark it out of sync.
|
// Input state will not be realistic. Mark it out of sync.
|
||||||
|
if (inputChannel.get()) {
|
||||||
ssize_t connectionIndex = getConnectionIndexLocked(inputChannel);
|
ssize_t connectionIndex = getConnectionIndexLocked(inputChannel);
|
||||||
if (connectionIndex >= 0) {
|
if (connectionIndex >= 0) {
|
||||||
sp<Connection> connection = mConnectionsByReceiveFd.valueAt(connectionIndex);
|
sp<Connection> connection = mConnectionsByReceiveFd.valueAt(connectionIndex);
|
||||||
@@ -784,6 +785,7 @@ void InputDispatcher::resumeAfterTargetsNotReadyTimeoutLocked(nsecs_t newTimeout
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
nsecs_t InputDispatcher::getTimeSpentWaitingForApplicationLocked(
|
nsecs_t InputDispatcher::getTimeSpentWaitingForApplicationLocked(
|
||||||
nsecs_t currentTime) {
|
nsecs_t currentTime) {
|
||||||
|
|||||||
Reference in New Issue
Block a user