Lines Matching refs:InputDispatcher
17 #define LOG_TAG "InputDispatcher"
54 #include "InputDispatcher.h"
207 // --- InputDispatcher ---
209 InputDispatcher::InputDispatcher(const sp<InputDispatcherPolicyInterface>& policy) :
231 InputDispatcher::~InputDispatcher() {
245 void InputDispatcher::dispatchOnce() {
262 void InputDispatcher::dispatchOnceInnerLocked(nsecs_t* nextWakeupTime) {
470 void InputDispatcher::dispatchIdleLocked() {
480 bool InputDispatcher::enqueueInboundEventLocked(EventEntry* entry) {
538 sp<InputWindowHandle> InputDispatcher::findTouchedWindowAtLocked(int32_t x, int32_t y) {
565 void InputDispatcher::dropInboundEventLocked(EventEntry* entry, DropReason dropReason) {
617 bool InputDispatcher::isAppSwitchKeyCode(int32_t keyCode) {
621 bool InputDispatcher::isAppSwitchKeyEventLocked(KeyEntry* keyEntry) {
628 bool InputDispatcher::isAppSwitchPendingLocked() {
632 void InputDispatcher::resetPendingAppSwitchLocked(bool handled) {
644 bool InputDispatcher::isStaleEventLocked(nsecs_t currentTime, EventEntry* entry) {
648 bool InputDispatcher::runCommandsLockedInterruptible() {
665 InputDispatcher::CommandEntry* InputDispatcher::postCommandLocked(Command command) {
671 void InputDispatcher::drainInboundQueueLocked() {
678 void InputDispatcher::releasePendingEventLocked() {
685 void InputDispatcher::releaseInboundEventLocked(EventEntry* entry) {
699 void InputDispatcher::resetKeyRepeatLocked() {
706 InputDispatcher::KeyEntry* InputDispatcher::synthesizeKeyRepeatLocked(nsecs_t currentTime) {
738 bool InputDispatcher::dispatchConfigurationChangedLocked(
749 & InputDispatcher::doNotifyConfigurationChangedInterruptible);
754 bool InputDispatcher::dispatchDeviceResetLocked(
767 bool InputDispatcher::dispatchKeyLocked(nsecs_t currentTime, KeyEntry* entry,
823 & InputDispatcher::doInterceptKeyBeforeDispatchingLockedInterruptible);
869 void InputDispatcher::logOutboundKeyDetailsLocked(const char* prefix, const KeyEntry* entry) {
881 bool InputDispatcher::dispatchMotionLocked(
975 void InputDispatcher::logOutboundMotionDetailsLocked(const char* prefix, const MotionEntry* entry) {
1020 void InputDispatcher::dispatchEventToCurrentInputTargetsLocked(nsecs_t currentTime,
1050 void InputDispatcher::resetTargetsLocked() {
1056 void InputDispatcher::commitTargetsLocked() {
1060 int32_t InputDispatcher::handleTargetsNotReadyLocked(nsecs_t currentTime,
1128 void InputDispatcher::resumeAfterTargetsNotReadyTimeoutLocked(nsecs_t newTimeout,
1155 nsecs_t InputDispatcher::getTimeSpentWaitingForApplicationLocked(
1163 void InputDispatcher::resetANRTimeoutsLocked() {
1173 int32_t InputDispatcher::findFocusedWindowTargetsLocked(nsecs_t currentTime,
1243 int32_t InputDispatcher::findTouchedWindowTargetsLocked(nsecs_t currentTime,
1746 void InputDispatcher::addWindowTargetLocked(const sp<InputWindowHandle>& windowHandle,
1760 void InputDispatcher::addMonitoringTargetsLocked() {
1774 bool InputDispatcher::checkInjectionPermission(const sp<InputWindowHandle>& windowHandle,
1795 bool InputDispatcher::isWindowObscuredAtPointLocked(
1813 bool InputDispatcher::isWindowFinishedWithPreviousInputLocked(
1824 String8 InputDispatcher::getApplicationWindowLabelLocked(
1843 void InputDispatcher::pokeUserActivityLocked(const EventEntry* eventEntry) {
1868 & InputDispatcher::doPokeUserActivityLockedInterruptible);
1873 void InputDispatcher::prepareDispatchCycleLocked(nsecs_t currentTime,
2043 void InputDispatcher::enqueueDispatchEntryLocked(
2139 void InputDispatcher::startDispatchCycleLocked(nsecs_t currentTime,
2303 void InputDispatcher::finishDispatchCycleLocked(nsecs_t currentTime,
2334 void InputDispatcher::startNextDispatchCycleLocked(nsecs_t currentTime,
2369 void InputDispatcher::abortBrokenDispatchCycleLocked(nsecs_t currentTime,
2391 void InputDispatcher::drainOutboundQueueLocked(Connection* connection) {
2403 int InputDispatcher::handleReceiveCallback(int receiveFd, int events, void* data) {
2404 InputDispatcher* d = static_cast<InputDispatcher*>(data);
2454 void InputDispatcher::synthesizeCancelationEventsForAllConnectionsLocked(
2462 void InputDispatcher::synthesizeCancelationEventsForInputChannelLocked(
2471 void InputDispatcher::synthesizeCancelationEventsForConnectionLocked(
2527 InputDispatcher::MotionEntry*
2528 InputDispatcher::splitMotionEvent(const MotionEntry* originalMotionEntry, BitSet32 pointerIds) {
2628 void InputDispatcher::notifyConfigurationChanged(const NotifyConfigurationChangedArgs* args) {
2646 void InputDispatcher::notifyKey(const NotifyKeyArgs* args) {
2724 void InputDispatcher::notifyMotion(const NotifyMotionArgs* args) {
2953 void InputDispatcher::batchMotionLocked(MotionEntry* entry, nsecs_t eventTime,
2983 void InputDispatcher::notifySwitch(const NotifySwitchArgs* args) {
2996 void InputDispatcher::notifyDeviceReset(const NotifyDeviceResetArgs* args) {
3015 int32_t InputDispatcher::injectInputEvent(const InputEvent* event,
3176 bool InputDispatcher::hasInjectionPermission(int32_t injectorPid, int32_t injectorUid) {
3181 void InputDispatcher::setInjectionResultLocked(EventEntry* entry, int32_t injectionResult) {
3214 void InputDispatcher::incrementPendingForegroundDispatchesLocked(EventEntry* entry) {
3221 void InputDispatcher::decrementPendingForegroundDispatchesLocked(EventEntry* entry) {
3232 sp<InputWindowHandle> InputDispatcher::getWindowHandleLocked(
3244 bool InputDispatcher::hasWindowHandleLocked(
3255 void InputDispatcher::setInputWindows(const Vector<sp<InputWindowHandle> >& inputWindowHandles) {
3346 void InputDispatcher::setFocusedApplication(
3377 void InputDispatcher::setInputDispatchMode(bool enabled, bool frozen) {
3413 void InputDispatcher::setInputFilterEnabled(bool enabled) {
3433 bool InputDispatcher::transferTouchFocus(const sp<InputChannel>& fromChannel,
3505 void InputDispatcher::resetAndDropEverythingLocked(const char* reason) {
3522 void InputDispatcher::logDispatchStateLocked() {
3538 void InputDispatcher::dumpDispatchStateLocked(String8& dump) {
3635 status_t InputDispatcher::registerInputChannel(const sp<InputChannel>& inputChannel,
3673 status_t InputDispatcher::unregisterInputChannel(const sp<InputChannel>& inputChannel) {
3693 status_t InputDispatcher::unregisterInputChannelLocked(const sp<InputChannel>& inputChannel,
3720 void InputDispatcher::removeMonitorChannelLocked(const sp<InputChannel>& inputChannel) {
3729 ssize_t InputDispatcher::getConnectionIndexLocked(const sp<InputChannel>& inputChannel) {
3741 void InputDispatcher::activateConnectionLocked(Connection* connection) {
3750 void InputDispatcher::deactivateConnectionLocked(Connection* connection) {
3759 void InputDispatcher::onDispatchCycleStartedLocked(
3763 void InputDispatcher::onDispatchCycleFinishedLocked(
3766 & InputDispatcher::doDispatchCycleFinishedLockedInterruptible);
3771 void InputDispatcher::onDispatchCycleBrokenLocked(
3777 & InputDispatcher::doNotifyInputChannelBrokenLockedInterruptible);
3781 void InputDispatcher::onANRLocked(
3792 & InputDispatcher::doNotifyANRLockedInterruptible);
3797 void InputDispatcher::doNotifyConfigurationChangedInterruptible(
3806 void InputDispatcher::doNotifyInputChannelBrokenLockedInterruptible(
3819 void InputDispatcher::doNotifyANRLockedInterruptible(
3833 void InputDispatcher::doInterceptKeyBeforeDispatchingLockedInterruptible(
3858 void InputDispatcher::doDispatchCycleFinishedLockedInterruptible(
3884 bool InputDispatcher::afterKeyEventLockedInterruptible(const sp<Connection>& connection,
4040 bool InputDispatcher::afterMotionEventLockedInterruptible(const sp<Connection>& connection,
4045 void InputDispatcher::doPokeUserActivityLockedInterruptible(CommandEntry* commandEntry) {
4053 void InputDispatcher::initializeKeyEvent(KeyEvent* event, const KeyEntry* entry) {
4059 void InputDispatcher::updateDispatchStatisticsLocked(nsecs_t currentTime, const EventEntry* entry,
4064 void InputDispatcher::dump(String8& dump) {
4076 void InputDispatcher::monitor() {
4083 // --- InputDispatcher::Queue ---
4086 uint32_t InputDispatcher::Queue<T>::count() const {
4095 // --- InputDispatcher::InjectionState ---
4097 InputDispatcher::InjectionState::InjectionState(int32_t injectorPid, int32_t injectorUid) :
4104 InputDispatcher::InjectionState::~InjectionState() {
4107 void InputDispatcher::InjectionState::release() {
4117 // --- InputDispatcher::EventEntry ---
4119 InputDispatcher::EventEntry::EventEntry(int32_t type, nsecs_t eventTime, uint32_t policyFlags) :
4124 InputDispatcher::EventEntry::~EventEntry() {
4128 void InputDispatcher::EventEntry::release() {
4137 void InputDispatcher::EventEntry::releaseInjectionState() {
4145 // --- InputDispatcher::ConfigurationChangedEntry ---
4147 InputDispatcher::ConfigurationChangedEntry::ConfigurationChangedEntry(nsecs_t eventTime) :
4151 InputDispatcher::ConfigurationChangedEntry::~ConfigurationChangedEntry() {
4155 // --- InputDispatcher::DeviceResetEntry ---
4157 InputDispatcher::DeviceResetEntry::DeviceResetEntry(nsecs_t eventTime, int32_t deviceId) :
4162 InputDispatcher::DeviceResetEntry::~DeviceResetEntry() {
4166 // --- InputDispatcher::KeyEntry ---
4168 InputDispatcher::KeyEntry::KeyEntry(nsecs_t eventTime,
4180 InputDispatcher::KeyEntry::~KeyEntry() {
4183 void InputDispatcher::KeyEntry::recycle() {
4193 // --- InputDispatcher::MotionSample ---
4195 InputDispatcher::MotionSample::MotionSample(nsecs_t eventTime,
4204 // --- InputDispatcher::MotionEntry ---
4206 InputDispatcher::MotionEntry::MotionEntry(nsecs_t eventTime,
4224 InputDispatcher::MotionEntry::~MotionEntry() {
4232 uint32_t InputDispatcher::MotionEntry::countSamples() const {
4240 bool InputDispatcher::MotionEntry::canAppendSamples(int32_t action, uint32_t pointerCount,
4255 void InputDispatcher::MotionEntry::appendSample(
4264 // --- InputDispatcher::DispatchEntry ---
4266 InputDispatcher::DispatchEntry::DispatchEntry(EventEntry* eventEntry,
4276 InputDispatcher::DispatchEntry::~DispatchEntry() {
4281 // --- InputDispatcher::InputState ---
4283 InputDispatcher::InputState::InputState() {
4286 InputDispatcher::InputState::~InputState() {
4289 bool InputDispatcher::InputState::isNeutral() const {
4293 bool InputDispatcher::InputState::isHovering(int32_t deviceId, uint32_t source) const {
4305 bool InputDispatcher::InputState::trackKey(const KeyEntry* entry,
4345 bool InputDispatcher::InputState::trackMotion(const MotionEntry* entry,
4424 ssize_t InputDispatcher::InputState::findKeyMemento(const KeyEntry* entry) const {
4437 ssize_t InputDispatcher::InputState::findMotionMemento(const MotionEntry* entry,
4450 void InputDispatcher::InputState::addKeyMemento(const KeyEntry* entry, int32_t flags) {
4461 void InputDispatcher::InputState::addMotionMemento(const MotionEntry* entry,
4475 void InputDispatcher::InputState::MotionMemento::setPointers(const MotionEntry* entry) {
4483 void InputDispatcher::InputState::synthesizeCancelationEvents(nsecs_t currentTime,
4510 void InputDispatcher::InputState::clear() {
4516 void InputDispatcher::InputState::copyPointerStateTo(InputState& other) const {
4534 int32_t InputDispatcher::InputState::getFallbackKey(int32_t originalKeyCode) {
4539 void InputDispatcher::InputState::setFallbackKey(int32_t originalKeyCode,
4549 void InputDispatcher::InputState::removeFallbackKey(int32_t originalKeyCode) {
4553 bool InputDispatcher::InputState::shouldCancelKey(const KeyMemento& memento,
4574 bool InputDispatcher::InputState::shouldCancelMotion(const MotionMemento& memento,
4593 // --- InputDispatcher::Connection ---
4595 InputDispatcher::Connection::Connection(const sp<InputChannel>& inputChannel,
4603 InputDispatcher::Connection::~Connection() {
4606 status_t InputDispatcher::Connection::initialize() {
4610 const char* InputDispatcher::Connection::getStatusLabel() const {
4626 InputDispatcher::DispatchEntry* InputDispatcher::Connection::findQueuedDispatchEntryForEvent(
4638 // --- InputDispatcher::CommandEntry ---
4640 InputDispatcher::CommandEntry::CommandEntry(Command command) :
4644 InputDispatcher::CommandEntry::~CommandEntry() {
4648 // --- InputDispatcher::TouchState ---
4650 InputDispatcher::TouchState::TouchState() :
4654 InputDispatcher::TouchState::~TouchState() {
4657 void InputDispatcher::TouchState::reset() {
4665 void InputDispatcher::TouchState::copyFrom(const TouchState& other) {
4673 void InputDispatcher::TouchState::addOrUpdateWindow(const sp<InputWindowHandle>& windowHandle,
4699 void InputDispatcher::TouchState::filterNonAsIsTouchWindows() {
4713 sp<InputWindowHandle> InputDispatcher::TouchState::getFirstForegroundWindowHandle() const {
4723 bool InputDispatcher::TouchState::isSlippery() const {