Lines Matching defs:inputChannel

226         unregisterInputChannel(mConnectionsByFd.valueAt(0)->inputChannel);
934 ssize_t connectionIndex = getConnectionIndexLocked(inputTarget.inputChannel);
942 inputTarget.inputChannel->getName().string());
1018 const sp<InputChannel>& inputChannel) {
1027 if (inputChannel.get()) {
1028 ssize_t connectionIndex = getConnectionIndexLocked(inputChannel);
1571 target.inputChannel = windowInfo->inputChannel;
1584 target.inputChannel = mMonitoringChannels[i];
2164 d->unregisterInputChannelLocked(connection->inputChannel, notify);
2226 sp<InputWindowHandle> windowHandle = getWindowHandleLocked(connection->inputChannel);
2237 target.inputChannel = connection->inputChannel;
2800 const sp<InputChannel>& inputChannel) const {
2804 if (windowHandle->getInputChannel() == inputChannel) {
3311 status_t InputDispatcher::registerInputChannel(const sp<InputChannel>& inputChannel,
3314 ALOGD("channel '%s' ~ registerInputChannel - monitor=%s", inputChannel->getName().string(),
3321 if (getConnectionIndexLocked(inputChannel) >= 0) {
3323 inputChannel->getName().string());
3327 sp<Connection> connection = new Connection(inputChannel, inputWindowHandle, monitor);
3329 int fd = inputChannel->getFd();
3333 mMonitoringChannels.push(inputChannel);
3344 status_t InputDispatcher::unregisterInputChannel(const sp<InputChannel>& inputChannel) {
3346 ALOGD("channel '%s' ~ unregisterInputChannel", inputChannel->getName().string());
3352 status_t status = unregisterInputChannelLocked(inputChannel, false /*notify*/);
3364 status_t InputDispatcher::unregisterInputChannelLocked(const sp<InputChannel>& inputChannel,
3366 ssize_t connectionIndex = getConnectionIndexLocked(inputChannel);
3369 inputChannel->getName().string());
3377 removeMonitorChannelLocked(inputChannel);
3380 mLooper->removeFd(inputChannel->getFd());
3389 void InputDispatcher::removeMonitorChannelLocked(const sp<InputChannel>& inputChannel) {
3391 if (mMonitoringChannels[i] == inputChannel) {
3398 ssize_t InputDispatcher::getConnectionIndexLocked(const sp<InputChannel>& inputChannel) {
3399 ssize_t connectionIndex = mConnectionsByFd.indexOfKey(inputChannel->getFd());
3402 if (connection->inputChannel.get() == inputChannel.get()) {
4360 InputDispatcher::Connection::Connection(const sp<InputChannel>& inputChannel,
4362 status(STATUS_NORMAL), inputChannel(inputChannel), inputWindowHandle(inputWindowHandle),
4364 inputPublisher(inputChannel), inputPublisherBlocked(false) {