Lines Matching defs:inputChannel

217         unregisterInputChannel(mConnectionsByFd.valueAt(0)->inputChannel);
911 ssize_t connectionIndex = getConnectionIndexLocked(inputTarget.inputChannel);
919 inputTarget.inputChannel->getName().string());
995 const sp<InputChannel>& inputChannel) {
1004 if (inputChannel.get()) {
1005 ssize_t connectionIndex = getConnectionIndexLocked(inputChannel);
1601 target.inputChannel = windowInfo->inputChannel;
1614 target.inputChannel = mMonitoringChannels[i];
2161 d->unregisterInputChannelLocked(connection->inputChannel, notify);
2216 sp<InputWindowHandle> windowHandle = getWindowHandleLocked(connection->inputChannel);
2227 target.inputChannel = connection->inputChannel;
2776 const sp<InputChannel>& inputChannel) const {
2780 if (windowHandle->getInputChannel() == inputChannel) {
3236 status_t InputDispatcher::registerInputChannel(const sp<InputChannel>& inputChannel,
3239 ALOGD("channel '%s' ~ registerInputChannel - monitor=%s", inputChannel->getName().string(),
3246 if (getConnectionIndexLocked(inputChannel) >= 0) {
3248 inputChannel->getName().string());
3252 sp<Connection> connection = new Connection(inputChannel, inputWindowHandle, monitor);
3254 int fd = inputChannel->getFd();
3258 mMonitoringChannels.push(inputChannel);
3269 status_t InputDispatcher::unregisterInputChannel(const sp<InputChannel>& inputChannel) {
3271 ALOGD("channel '%s' ~ unregisterInputChannel", inputChannel->getName().string());
3277 status_t status = unregisterInputChannelLocked(inputChannel, false /*notify*/);
3289 status_t InputDispatcher::unregisterInputChannelLocked(const sp<InputChannel>& inputChannel,
3291 ssize_t connectionIndex = getConnectionIndexLocked(inputChannel);
3294 inputChannel->getName().string());
3302 removeMonitorChannelLocked(inputChannel);
3305 mLooper->removeFd(inputChannel->getFd());
3314 void InputDispatcher::removeMonitorChannelLocked(const sp<InputChannel>& inputChannel) {
3316 if (mMonitoringChannels[i] == inputChannel) {
3323 ssize_t InputDispatcher::getConnectionIndexLocked(const sp<InputChannel>& inputChannel) {
3324 ssize_t connectionIndex = mConnectionsByFd.indexOfKey(inputChannel->getFd());
3327 if (connection->inputChannel.get() == inputChannel.get()) {
4253 InputDispatcher::Connection::Connection(const sp<InputChannel>& inputChannel,
4255 status(STATUS_NORMAL), inputChannel(inputChannel), inputWindowHandle(inputWindowHandle),
4257 inputPublisher(inputChannel), inputPublisherBlocked(false) {