Lines Matching refs:inputChannel
219 unregisterInputChannel(mConnectionsByFd.valueAt(0)->inputChannel); in ~InputDispatcher()
923 ssize_t connectionIndex = getConnectionIndexLocked(inputTarget.inputChannel); in dispatchEventLocked()
931 inputTarget.inputChannel->getName().string()); in dispatchEventLocked()
1007 const sp<InputChannel>& inputChannel) { in resumeAfterTargetsNotReadyTimeoutLocked() argument
1016 if (inputChannel.get()) { in resumeAfterTargetsNotReadyTimeoutLocked()
1017 ssize_t connectionIndex = getConnectionIndexLocked(inputChannel); in resumeAfterTargetsNotReadyTimeoutLocked()
1600 target.inputChannel = windowInfo->inputChannel; in addWindowTargetLocked()
1613 target.inputChannel = mMonitoringChannels[i]; in addMonitoringTargetsLocked()
2160 d->unregisterInputChannelLocked(connection->inputChannel, notify); in handleReceiveCallback()
2215 sp<InputWindowHandle> windowHandle = getWindowHandleLocked(connection->inputChannel); in synthesizeCancelationEventsForConnectionLocked()
2226 target.inputChannel = connection->inputChannel; in synthesizeCancelationEventsForConnectionLocked()
2775 const sp<InputChannel>& inputChannel) const { in getWindowHandleLocked()
2779 if (windowHandle->getInputChannel() == inputChannel) { in getWindowHandleLocked()
3260 status_t InputDispatcher::registerInputChannel(const sp<InputChannel>& inputChannel, in registerInputChannel() argument
3263 ALOGD("channel '%s' ~ registerInputChannel - monitor=%s", inputChannel->getName().string(), in registerInputChannel()
3270 if (getConnectionIndexLocked(inputChannel) >= 0) { in registerInputChannel()
3272 inputChannel->getName().string()); in registerInputChannel()
3276 sp<Connection> connection = new Connection(inputChannel, inputWindowHandle, monitor); in registerInputChannel()
3278 int fd = inputChannel->getFd(); in registerInputChannel()
3282 mMonitoringChannels.push(inputChannel); in registerInputChannel()
3293 status_t InputDispatcher::unregisterInputChannel(const sp<InputChannel>& inputChannel) { in unregisterInputChannel() argument
3295 ALOGD("channel '%s' ~ unregisterInputChannel", inputChannel->getName().string()); in unregisterInputChannel()
3301 status_t status = unregisterInputChannelLocked(inputChannel, false /*notify*/); in unregisterInputChannel()
3313 status_t InputDispatcher::unregisterInputChannelLocked(const sp<InputChannel>& inputChannel, in unregisterInputChannelLocked() argument
3315 ssize_t connectionIndex = getConnectionIndexLocked(inputChannel); in unregisterInputChannelLocked()
3318 inputChannel->getName().string()); in unregisterInputChannelLocked()
3326 removeMonitorChannelLocked(inputChannel); in unregisterInputChannelLocked()
3329 mLooper->removeFd(inputChannel->getFd()); in unregisterInputChannelLocked()
3338 void InputDispatcher::removeMonitorChannelLocked(const sp<InputChannel>& inputChannel) { in removeMonitorChannelLocked() argument
3340 if (mMonitoringChannels[i] == inputChannel) { in removeMonitorChannelLocked()
3347 ssize_t InputDispatcher::getConnectionIndexLocked(const sp<InputChannel>& inputChannel) { in getConnectionIndexLocked() argument
3348 ssize_t connectionIndex = mConnectionsByFd.indexOfKey(inputChannel->getFd()); in getConnectionIndexLocked()
3351 if (connection->inputChannel.get() == inputChannel.get()) { in getConnectionIndexLocked()
4295 InputDispatcher::Connection::Connection(const sp<InputChannel>& inputChannel, in Connection() argument
4297 status(STATUS_NORMAL), inputChannel(inputChannel), inputWindowHandle(inputWindowHandle), in Connection()
4299 inputPublisher(inputChannel), inputPublisherBlocked(false) { in Connection()