Lines Matching refs:InputDispatcher
241 InputDispatcher::InputDispatcher(const sp<InputDispatcherPolicyInterface>& policy) : in InputDispatcher() function in android::InputDispatcher
255 InputDispatcher::~InputDispatcher() { in ~InputDispatcher()
269 void InputDispatcher::dispatchOnce() { in dispatchOnce()
294 void InputDispatcher::dispatchOnceInnerLocked(nsecs_t* nextWakeupTime) { in dispatchOnceInnerLocked()
447 bool InputDispatcher::enqueueInboundEventLocked(EventEntry* entry) { in enqueueInboundEventLocked()
507 void InputDispatcher::addRecentEventLocked(EventEntry* entry) { in addRecentEventLocked()
515 sp<InputWindowHandle> InputDispatcher::findTouchedWindowAtLocked(int32_t displayId, in findTouchedWindowAtLocked()
540 void InputDispatcher::dropInboundEventLocked(EventEntry* entry, DropReason dropReason) { in dropInboundEventLocked()
594 bool InputDispatcher::isAppSwitchKeyCode(int32_t keyCode) { in isAppSwitchKeyCode()
600 bool InputDispatcher::isAppSwitchKeyEventLocked(KeyEntry* keyEntry) { in isAppSwitchKeyEventLocked()
607 bool InputDispatcher::isAppSwitchPendingLocked() { in isAppSwitchPendingLocked()
611 void InputDispatcher::resetPendingAppSwitchLocked(bool handled) { in resetPendingAppSwitchLocked()
623 bool InputDispatcher::isStaleEventLocked(nsecs_t currentTime, EventEntry* entry) { in isStaleEventLocked()
627 bool InputDispatcher::haveCommandsLocked() const { in haveCommandsLocked()
631 bool InputDispatcher::runCommandsLockedInterruptible() { in runCommandsLockedInterruptible()
648 InputDispatcher::CommandEntry* InputDispatcher::postCommandLocked(Command command) { in postCommandLocked()
654 void InputDispatcher::drainInboundQueueLocked() { in drainInboundQueueLocked()
662 void InputDispatcher::releasePendingEventLocked() { in releasePendingEventLocked()
670 void InputDispatcher::releaseInboundEventLocked(EventEntry* entry) { in releaseInboundEventLocked()
685 void InputDispatcher::resetKeyRepeatLocked() { in resetKeyRepeatLocked()
692 InputDispatcher::KeyEntry* InputDispatcher::synthesizeKeyRepeatLocked(nsecs_t currentTime) { in synthesizeKeyRepeatLocked()
724 bool InputDispatcher::dispatchConfigurationChangedLocked( in dispatchConfigurationChangedLocked()
735 & InputDispatcher::doNotifyConfigurationChangedInterruptible); in dispatchConfigurationChangedLocked()
740 bool InputDispatcher::dispatchDeviceResetLocked( in dispatchDeviceResetLocked()
754 bool InputDispatcher::dispatchKeyLocked(nsecs_t currentTime, KeyEntry* entry, in dispatchKeyLocked()
809 & InputDispatcher::doInterceptKeyBeforeDispatchingLockedInterruptible); in dispatchKeyLocked()
852 void InputDispatcher::logOutboundKeyDetailsLocked(const char* prefix, const KeyEntry* entry) { in logOutboundKeyDetailsLocked()
864 bool InputDispatcher::dispatchMotionLocked( in dispatchMotionLocked()
925 void InputDispatcher::logOutboundMotionDetailsLocked(const char* prefix, const MotionEntry* entry) { in logOutboundMotionDetailsLocked()
958 void InputDispatcher::dispatchEventLocked(nsecs_t currentTime, in dispatchEventLocked()
985 int32_t InputDispatcher::handleTargetsNotReadyLocked(nsecs_t currentTime, in handleTargetsNotReadyLocked()
1054 void InputDispatcher::resumeAfterTargetsNotReadyTimeoutLocked(nsecs_t newTimeout, in resumeAfterTargetsNotReadyTimeoutLocked()
1091 nsecs_t InputDispatcher::getTimeSpentWaitingForApplicationLocked( in getTimeSpentWaitingForApplicationLocked()
1099 void InputDispatcher::resetANRTimeoutsLocked() { in resetANRTimeoutsLocked()
1109 int32_t InputDispatcher::findFocusedWindowTargetsLocked(nsecs_t currentTime, in findFocusedWindowTargetsLocked()
1166 int32_t InputDispatcher::findTouchedWindowTargetsLocked(nsecs_t currentTime, in findTouchedWindowTargetsLocked()
1608 void InputDispatcher::addWindowTargetLocked(const sp<InputWindowHandle>& windowHandle, in addWindowTargetLocked()
1622 void InputDispatcher::addMonitoringTargetsLocked(Vector<InputTarget>& inputTargets) { in addMonitoringTargetsLocked()
1636 bool InputDispatcher::checkInjectionPermission(const sp<InputWindowHandle>& windowHandle, in checkInjectionPermission()
1657 bool InputDispatcher::isWindowObscuredAtPointLocked( in isWindowObscuredAtPointLocked()
1678 bool InputDispatcher::isWindowObscuredLocked(const sp<InputWindowHandle>& windowHandle) const { in isWindowObscuredLocked()
1698 std::string InputDispatcher::checkWindowReadyForMoreInputLocked(nsecs_t currentTime, in checkWindowReadyForMoreInputLocked()
1778 std::string InputDispatcher::getApplicationWindowLabelLocked( in getApplicationWindowLabelLocked()
1797 void InputDispatcher::pokeUserActivityLocked(const EventEntry* eventEntry) { in pokeUserActivityLocked()
1832 & InputDispatcher::doPokeUserActivityLockedInterruptible); in pokeUserActivityLocked()
1837 void InputDispatcher::prepareDispatchCycleLocked(nsecs_t currentTime, in prepareDispatchCycleLocked()
1885 void InputDispatcher::enqueueDispatchEntriesLocked(nsecs_t currentTime, in enqueueDispatchEntriesLocked()
1909 void InputDispatcher::enqueueDispatchEntryLocked( in enqueueDispatchEntryLocked()
1999 void InputDispatcher::startDispatchCycleLocked(nsecs_t currentTime, in startDispatchCycleLocked()
2115 void InputDispatcher::finishDispatchCycleLocked(nsecs_t currentTime, in finishDispatchCycleLocked()
2133 void InputDispatcher::abortBrokenDispatchCycleLocked(nsecs_t currentTime, in abortBrokenDispatchCycleLocked()
2158 void InputDispatcher::drainDispatchQueueLocked(Queue<DispatchEntry>* queue) { in drainDispatchQueueLocked()
2165 void InputDispatcher::releaseDispatchEntryLocked(DispatchEntry* dispatchEntry) { in releaseDispatchEntryLocked()
2172 int InputDispatcher::handleReceiveCallback(int fd, int events, void* data) { in handleReceiveCallback()
2173 InputDispatcher* d = static_cast<InputDispatcher*>(data); in handleReceiveCallback()
2236 void InputDispatcher::synthesizeCancelationEventsForAllConnectionsLocked( in synthesizeCancelationEventsForAllConnectionsLocked()
2244 void InputDispatcher::synthesizeCancelationEventsForMonitorsLocked( in synthesizeCancelationEventsForMonitorsLocked()
2251 void InputDispatcher::synthesizeCancelationEventsForInputChannelLocked( in synthesizeCancelationEventsForInputChannelLocked()
2260 void InputDispatcher::synthesizeCancelationEventsForConnectionLocked( in synthesizeCancelationEventsForConnectionLocked()
2317 InputDispatcher::MotionEntry*
2318 InputDispatcher::splitMotionEvent(const MotionEntry* originalMotionEntry, BitSet32 pointerIds) { in splitMotionEvent()
2408 void InputDispatcher::notifyConfigurationChanged(const NotifyConfigurationChangedArgs* args) { in notifyConfigurationChanged()
2426 void InputDispatcher::notifyKey(const NotifyKeyArgs* args) { in notifyKey()
2523 bool InputDispatcher::shouldSendKeyToInputFilterLocked(const NotifyKeyArgs* args) { in shouldSendKeyToInputFilterLocked()
2527 void InputDispatcher::notifyMotion(const NotifyMotionArgs* args) { in notifyMotion()
2608 bool InputDispatcher::shouldSendMotionToInputFilterLocked(const NotifyMotionArgs* args) { in shouldSendMotionToInputFilterLocked()
2613 void InputDispatcher::notifySwitch(const NotifySwitchArgs* args) { in notifySwitch()
2626 void InputDispatcher::notifyDeviceReset(const NotifyDeviceResetArgs* args) { in notifyDeviceReset()
2645 int32_t InputDispatcher::injectInputEvent(const InputEvent* event, int32_t displayId, in injectInputEvent()
2833 bool InputDispatcher::hasInjectionPermission(int32_t injectorPid, int32_t injectorUid) { in hasInjectionPermission()
2838 void InputDispatcher::setInjectionResultLocked(EventEntry* entry, int32_t injectionResult) { in setInjectionResultLocked()
2871 void InputDispatcher::incrementPendingForegroundDispatchesLocked(EventEntry* entry) { in incrementPendingForegroundDispatchesLocked()
2878 void InputDispatcher::decrementPendingForegroundDispatchesLocked(EventEntry* entry) { in decrementPendingForegroundDispatchesLocked()
2889 sp<InputWindowHandle> InputDispatcher::getWindowHandleLocked( in getWindowHandleLocked()
2901 bool InputDispatcher::hasWindowHandleLocked( in hasWindowHandleLocked()
2912 void InputDispatcher::setInputWindows(const Vector<sp<InputWindowHandle> >& inputWindowHandles) { in setInputWindows()
3008 void InputDispatcher::setFocusedApplication( in setFocusedApplication()
3039 void InputDispatcher::setInputDispatchMode(bool enabled, bool frozen) { in setInputDispatchMode()
3075 void InputDispatcher::setInputFilterEnabled(bool enabled) { in setInputFilterEnabled()
3095 bool InputDispatcher::transferTouchFocus(const sp<InputChannel>& fromChannel, in transferTouchFocus()
3177 void InputDispatcher::resetAndDropEverythingLocked(const char* reason) { in resetAndDropEverythingLocked()
3195 void InputDispatcher::logDispatchStateLocked() { in logDispatchStateLocked()
3207 void InputDispatcher::dumpDispatchStateLocked(std::string& dump) { in dumpDispatchStateLocked()
3400 status_t InputDispatcher::registerInputChannel(const sp<InputChannel>& inputChannel, in registerInputChannel()
3433 status_t InputDispatcher::unregisterInputChannel(const sp<InputChannel>& inputChannel) { in unregisterInputChannel()
3453 status_t InputDispatcher::unregisterInputChannelLocked(const sp<InputChannel>& inputChannel, in unregisterInputChannelLocked()
3478 void InputDispatcher::removeMonitorChannelLocked(const sp<InputChannel>& inputChannel) { in removeMonitorChannelLocked()
3487 ssize_t InputDispatcher::getConnectionIndexLocked(const sp<InputChannel>& inputChannel) { in getConnectionIndexLocked()
3499 void InputDispatcher::onDispatchCycleFinishedLocked( in onDispatchCycleFinishedLocked()
3502 & InputDispatcher::doDispatchCycleFinishedLockedInterruptible); in onDispatchCycleFinishedLocked()
3509 void InputDispatcher::onDispatchCycleBrokenLocked( in onDispatchCycleBrokenLocked()
3515 & InputDispatcher::doNotifyInputChannelBrokenLockedInterruptible); in onDispatchCycleBrokenLocked()
3519 void InputDispatcher::onANRLocked( in onANRLocked()
3547 & InputDispatcher::doNotifyANRLockedInterruptible); in onANRLocked()
3553 void InputDispatcher::doNotifyConfigurationChangedInterruptible( in doNotifyConfigurationChangedInterruptible()
3562 void InputDispatcher::doNotifyInputChannelBrokenLockedInterruptible( in doNotifyInputChannelBrokenLockedInterruptible()
3575 void InputDispatcher::doNotifyANRLockedInterruptible( in doNotifyANRLockedInterruptible()
3590 void InputDispatcher::doInterceptKeyBeforeDispatchingLockedInterruptible( in doInterceptKeyBeforeDispatchingLockedInterruptible()
3620 void InputDispatcher::doDispatchCycleFinishedLockedInterruptible( in doDispatchCycleFinishedLockedInterruptible()
3672 bool InputDispatcher::afterKeyEventLockedInterruptible(const sp<Connection>& connection, in afterKeyEventLockedInterruptible()
3844 bool InputDispatcher::afterMotionEventLockedInterruptible(const sp<Connection>& connection, in afterMotionEventLockedInterruptible()
3849 void InputDispatcher::doPokeUserActivityLockedInterruptible(CommandEntry* commandEntry) { in doPokeUserActivityLockedInterruptible()
3857 void InputDispatcher::initializeKeyEvent(KeyEvent* event, const KeyEntry* entry) { in initializeKeyEvent()
3863 void InputDispatcher::updateDispatchStatisticsLocked(nsecs_t currentTime, const EventEntry* entry, in updateDispatchStatisticsLocked()
3868 void InputDispatcher::traceInboundQueueLengthLocked() { in traceInboundQueueLengthLocked()
3874 void InputDispatcher::traceOutboundQueueLengthLocked(const sp<Connection>& connection) { in traceOutboundQueueLengthLocked()
3882 void InputDispatcher::traceWaitQueueLengthLocked(const sp<Connection>& connection) { in traceWaitQueueLengthLocked()
3890 void InputDispatcher::dump(std::string& dump) { in dump()
3902 void InputDispatcher::monitor() { in monitor()
3913 InputDispatcher::InjectionState::InjectionState(int32_t injectorPid, int32_t injectorUid) : in InjectionState()
3920 InputDispatcher::InjectionState::~InjectionState() { in ~InjectionState()
3923 void InputDispatcher::InjectionState::release() { in release()
3935 InputDispatcher::EventEntry::EventEntry(int32_t type, nsecs_t eventTime, uint32_t policyFlags) : in EventEntry()
3940 InputDispatcher::EventEntry::~EventEntry() { in ~EventEntry()
3944 void InputDispatcher::EventEntry::release() { in release()
3953 void InputDispatcher::EventEntry::releaseInjectionState() { in releaseInjectionState()
3963 InputDispatcher::ConfigurationChangedEntry::ConfigurationChangedEntry(nsecs_t eventTime) : in ConfigurationChangedEntry()
3967 InputDispatcher::ConfigurationChangedEntry::~ConfigurationChangedEntry() { in ~ConfigurationChangedEntry()
3970 void InputDispatcher::ConfigurationChangedEntry::appendDescription(std::string& msg) const { in appendDescription()
3977 InputDispatcher::DeviceResetEntry::DeviceResetEntry(nsecs_t eventTime, int32_t deviceId) : in DeviceResetEntry()
3982 InputDispatcher::DeviceResetEntry::~DeviceResetEntry() { in ~DeviceResetEntry()
3985 void InputDispatcher::DeviceResetEntry::appendDescription(std::string& msg) const { in appendDescription()
3993 InputDispatcher::KeyEntry::KeyEntry(nsecs_t eventTime, in KeyEntry()
4005 InputDispatcher::KeyEntry::~KeyEntry() { in ~KeyEntry()
4008 void InputDispatcher::KeyEntry::appendDescription(std::string& msg) const { in appendDescription()
4016 void InputDispatcher::KeyEntry::recycle() { in recycle()
4028 InputDispatcher::MotionEntry::MotionEntry(nsecs_t eventTime, int32_t deviceId, in MotionEntry()
4050 InputDispatcher::MotionEntry::~MotionEntry() { in ~MotionEntry()
4053 void InputDispatcher::MotionEntry::appendDescription(std::string& msg) const { in appendDescription()
4072 volatile int32_t InputDispatcher::DispatchEntry::sNextSeqAtomic;
4074 InputDispatcher::DispatchEntry::DispatchEntry(EventEntry* eventEntry, in DispatchEntry()
4083 InputDispatcher::DispatchEntry::~DispatchEntry() { in ~DispatchEntry()
4087 uint32_t InputDispatcher::DispatchEntry::nextSeq() { in nextSeq()
4099 InputDispatcher::InputState::InputState() { in InputState()
4102 InputDispatcher::InputState::~InputState() { in ~InputState()
4105 bool InputDispatcher::InputState::isNeutral() const { in isNeutral()
4109 bool InputDispatcher::InputState::isHovering(int32_t deviceId, uint32_t source, in isHovering()
4123 bool InputDispatcher::InputState::trackKey(const KeyEntry* entry, in trackKey()
4174 bool InputDispatcher::InputState::trackMotion(const MotionEntry* entry, in trackMotion()
4274 ssize_t InputDispatcher::InputState::findKeyMemento(const KeyEntry* entry) const { in findKeyMemento()
4287 ssize_t InputDispatcher::InputState::findMotionMemento(const MotionEntry* entry, in findMotionMemento()
4301 void InputDispatcher::InputState::addKeyMemento(const KeyEntry* entry, int32_t flags) { in addKeyMemento()
4314 void InputDispatcher::InputState::addMotionMemento(const MotionEntry* entry, in addMotionMemento()
4330 void InputDispatcher::InputState::MotionMemento::setPointers(const MotionEntry* entry) { in setPointers()
4338 void InputDispatcher::InputState::synthesizeCancelationEvents(nsecs_t currentTime, in synthesizeCancelationEvents()
4367 void InputDispatcher::InputState::clear() { in clear()
4373 void InputDispatcher::InputState::copyPointerStateTo(InputState& other) const { in copyPointerStateTo()
4392 int32_t InputDispatcher::InputState::getFallbackKey(int32_t originalKeyCode) { in getFallbackKey()
4397 void InputDispatcher::InputState::setFallbackKey(int32_t originalKeyCode, in setFallbackKey()
4407 void InputDispatcher::InputState::removeFallbackKey(int32_t originalKeyCode) { in removeFallbackKey()
4411 bool InputDispatcher::InputState::shouldCancelKey(const KeyMemento& memento, in shouldCancelKey()
4432 bool InputDispatcher::InputState::shouldCancelMotion(const MotionMemento& memento, in shouldCancelMotion()
4453 InputDispatcher::Connection::Connection(const sp<InputChannel>& inputChannel, in Connection()
4460 InputDispatcher::Connection::~Connection() { in ~Connection()
4463 const std::string InputDispatcher::Connection::getWindowName() const { in getWindowName()
4473 const char* InputDispatcher::Connection::getStatusLabel() const { in getStatusLabel()
4489 InputDispatcher::DispatchEntry* InputDispatcher::Connection::findWaitQueueEntry(uint32_t seq) { in findWaitQueueEntry()
4501 InputDispatcher::CommandEntry::CommandEntry(Command command) : in CommandEntry()
4506 InputDispatcher::CommandEntry::~CommandEntry() { in ~CommandEntry()
4512 InputDispatcher::TouchState::TouchState() : in TouchState()
4516 InputDispatcher::TouchState::~TouchState() { in ~TouchState()
4519 void InputDispatcher::TouchState::reset() { in reset()
4528 void InputDispatcher::TouchState::copyFrom(const TouchState& other) { in copyFrom()
4537 void InputDispatcher::TouchState::addOrUpdateWindow(const sp<InputWindowHandle>& windowHandle, in addOrUpdateWindow()
4563 void InputDispatcher::TouchState::removeWindow(const sp<InputWindowHandle>& windowHandle) { in removeWindow()
4572 void InputDispatcher::TouchState::filterNonAsIsTouchWindows() { in filterNonAsIsTouchWindows()
4586 sp<InputWindowHandle> InputDispatcher::TouchState::getFirstForegroundWindowHandle() const { in getFirstForegroundWindowHandle()
4596 bool InputDispatcher::TouchState::isSlippery() const { in isSlippery()