Lines Matching refs:inputChannel

244         unregisterInputChannel(mConnectionsByFd.valueAt(0)->inputChannel);  in ~InputDispatcher()
829 commandEntry->inputChannel = getInputChannelLocked(focusedWindowHandle->getToken()); in dispatchKeyLocked()
1007 ssize_t connectionIndex = getConnectionIndexLocked(inputTarget.inputChannel); in dispatchEventLocked()
1015 inputTarget.inputChannel->getName().c_str()); in dispatchEventLocked()
1096 nsecs_t newTimeout, const sp<InputChannel>& inputChannel) { in resumeAfterTargetsNotReadyTimeoutLocked() argument
1105 if (inputChannel.get()) { in resumeAfterTargetsNotReadyTimeoutLocked()
1106 ssize_t connectionIndex = getConnectionIndexLocked(inputChannel); in resumeAfterTargetsNotReadyTimeoutLocked()
1109 sp<IBinder> token = connection->inputChannel->getToken(); in resumeAfterTargetsNotReadyTimeoutLocked()
1682 sp<InputChannel> inputChannel = getInputChannelLocked(windowHandle->getToken()); in addWindowTargetLocked() local
1683 if (inputChannel == nullptr) { in addWindowTargetLocked()
1690 target.inputChannel = inputChannel; in addWindowTargetLocked()
1719 target.inputChannel = monitor.inputChannel; in addMonitoringTargetLocked()
2111 inputTarget->inputChannel->getToken()); in enqueueDispatchEntryLocked()
2405 d->unregisterInputChannelLocked(connection->inputChannel, notify); in handleReceiveCallback()
2429 synthesizeCancelationEventsForInputChannelLocked(monitor.inputChannel, options); in synthesizeCancelationEventsForMonitorsLocked()
2475 getWindowHandleLocked(connection->inputChannel->getToken()); in synthesizeCancelationEventsForConnectionLocked()
2488 target.inputChannel = connection->inputChannel; in synthesizeCancelationEventsForConnectionLocked()
3368 sp<InputChannel> inputChannel = in setFocusedDisplay() local
3370 if (inputChannel != nullptr) { in setFocusedDisplay()
3375 synthesizeCancelationEventsForInputChannelLocked(inputChannel, options); in setFocusedDisplay()
3816 const sp<InputChannel>& channel = monitor.inputChannel; in dumpMonitors()
3822 status_t InputDispatcher::registerInputChannel(const sp<InputChannel>& inputChannel, in registerInputChannel() argument
3826 inputChannel->getName().c_str(), displayId); in registerInputChannel()
3832 if (getConnectionIndexLocked(inputChannel) >= 0) { in registerInputChannel()
3834 inputChannel->getName().c_str()); in registerInputChannel()
3838 sp<Connection> connection = new Connection(inputChannel, false /*monitor*/); in registerInputChannel()
3840 int fd = inputChannel->getFd(); in registerInputChannel()
3842 mInputChannelsByToken[inputChannel->getToken()] = inputChannel; in registerInputChannel()
3852 status_t InputDispatcher::registerInputMonitor(const sp<InputChannel>& inputChannel, in registerInputMonitor() argument
3862 if (inputChannel->getToken() == nullptr) { in registerInputMonitor()
3867 sp<Connection> connection = new Connection(inputChannel, true /*monitor*/); in registerInputMonitor()
3869 const int fd = inputChannel->getFd(); in registerInputMonitor()
3871 mInputChannelsByToken[inputChannel->getToken()] = inputChannel; in registerInputMonitor()
3875 monitorsByDisplay[displayId].emplace_back(inputChannel); in registerInputMonitor()
3884 status_t InputDispatcher::unregisterInputChannel(const sp<InputChannel>& inputChannel) { in unregisterInputChannel() argument
3886 ALOGD("channel '%s' ~ unregisterInputChannel", inputChannel->getName().c_str()); in unregisterInputChannel()
3892 status_t status = unregisterInputChannelLocked(inputChannel, false /*notify*/); in unregisterInputChannel()
3904 status_t InputDispatcher::unregisterInputChannelLocked(const sp<InputChannel>& inputChannel, in unregisterInputChannelLocked() argument
3906 ssize_t connectionIndex = getConnectionIndexLocked(inputChannel); in unregisterInputChannelLocked()
3909 inputChannel->getName().c_str()); in unregisterInputChannelLocked()
3916 mInputChannelsByToken.erase(inputChannel->getToken()); in unregisterInputChannelLocked()
3919 removeMonitorChannelLocked(inputChannel); in unregisterInputChannelLocked()
3922 mLooper->removeFd(inputChannel->getFd()); in unregisterInputChannelLocked()
3931 void InputDispatcher::removeMonitorChannelLocked(const sp<InputChannel>& inputChannel) { in removeMonitorChannelLocked() argument
3932 removeMonitorChannelLocked(inputChannel, mGlobalMonitorsByDisplay); in removeMonitorChannelLocked()
3933 removeMonitorChannelLocked(inputChannel, mGestureMonitorsByDisplay); in removeMonitorChannelLocked()
3937 const sp<InputChannel>& inputChannel, in removeMonitorChannelLocked() argument
3943 if (monitors[i].inputChannel == inputChannel) { in removeMonitorChannelLocked()
3976 if (touchedMonitor.monitor.inputChannel->getToken() == token) { in pilferPointers()
4007 if (monitor.inputChannel->getToken() == token) { in findGestureMonitorDisplayByTokenLocked()
4015 ssize_t InputDispatcher::getConnectionIndexLocked(const sp<InputChannel>& inputChannel) { in getConnectionIndexLocked() argument
4016 if (inputChannel == nullptr) { in getConnectionIndexLocked()
4022 if (connection->inputChannel->getToken() == inputChannel->getToken()) { in getConnectionIndexLocked()
4092 commandEntry->inputChannel = in onANRLocked()
4111 mPolicy->notifyInputChannelBroken(connection->inputChannel->getToken()); in doNotifyInputChannelBrokenLockedInterruptible()
4130 commandEntry->inputChannel ? commandEntry->inputChannel->getToken() in doNotifyANRLockedInterruptible()
4136 resumeAfterTargetsNotReadyTimeoutLocked(newTimeout, commandEntry->inputChannel); in doNotifyANRLockedInterruptible()
4149 sp<IBinder> token = commandEntry->inputChannel != nullptr in doInterceptKeyBeforeDispatchingLockedInterruptible()
4150 ? commandEntry->inputChannel->getToken() in doInterceptKeyBeforeDispatchingLockedInterruptible()
4265 mPolicy->dispatchUnhandledKey(connection->inputChannel->getToken(), &event, in afterKeyEventLockedInterruptible()
4307 bool fallback = mPolicy->dispatchUnhandledKey(connection->inputChannel->getToken(), &event, in afterKeyEventLockedInterruptible()