Home | History | Annotate | Download | only in inputflinger

Lines Matching refs:InputDispatcher

17 #define LOG_TAG "InputDispatcher"
46 #include "InputDispatcher.h"
200 // --- InputDispatcher ---
202 InputDispatcher::InputDispatcher(const sp<InputDispatcherPolicyInterface>& policy) :
216 InputDispatcher::~InputDispatcher() {
230 void InputDispatcher::dispatchOnce() {
255 void InputDispatcher::dispatchOnceInnerLocked(nsecs_t* nextWakeupTime) {
408 bool InputDispatcher::enqueueInboundEventLocked(EventEntry* entry) {
468 void InputDispatcher::addRecentEventLocked(EventEntry* entry) {
476 sp<InputWindowHandle> InputDispatcher::findTouchedWindowAtLocked(int32_t displayId,
501 void InputDispatcher::dropInboundEventLocked(EventEntry* entry, DropReason dropReason) {
555 bool InputDispatcher::isAppSwitchKeyCode(int32_t keyCode) {
561 bool InputDispatcher::isAppSwitchKeyEventLocked(KeyEntry* keyEntry) {
568 bool InputDispatcher::isAppSwitchPendingLocked() {
572 void InputDispatcher::resetPendingAppSwitchLocked(bool handled) {
584 bool InputDispatcher::isStaleEventLocked(nsecs_t currentTime, EventEntry* entry) {
588 bool InputDispatcher::haveCommandsLocked() const {
592 bool InputDispatcher::runCommandsLockedInterruptible() {
609 InputDispatcher::CommandEntry* InputDispatcher::postCommandLocked(Command command) {
615 void InputDispatcher::drainInboundQueueLocked() {
623 void InputDispatcher::releasePendingEventLocked() {
631 void InputDispatcher::releaseInboundEventLocked(EventEntry* entry) {
646 void InputDispatcher::resetKeyRepeatLocked() {
653 InputDispatcher::KeyEntry* InputDispatcher::synthesizeKeyRepeatLocked(nsecs_t currentTime) {
685 bool InputDispatcher::dispatchConfigurationChangedLocked(
696 & InputDispatcher::doNotifyConfigurationChangedInterruptible);
701 bool InputDispatcher::dispatchDeviceResetLocked(
714 bool InputDispatcher::dispatchKeyLocked(nsecs_t currentTime, KeyEntry* entry,
769 & InputDispatcher::doInterceptKeyBeforeDispatchingLockedInterruptible);
812 void InputDispatcher::logOutboundKeyDetailsLocked(const char* prefix, const KeyEntry* entry) {
824 bool InputDispatcher::dispatchMotionLocked(
888 InputDispatcher::logOutboundMotionDetailsLocked(const char* prefix, const MotionEntry* entry) {
923 void InputDispatcher::dispatchEventLocked(nsecs_t currentTime,
950 int32_t InputDispatcher::handleTargetsNotReadyLocked(nsecs_t currentTime,
1019 void InputDispatcher::resumeAfterTargetsNotReadyTimeoutLocked(nsecs_t newTimeout,
1056 nsecs_t InputDispatcher::getTimeSpentWaitingForApplicationLocked(
1064 void InputDispatcher::resetANRTimeoutsLocked() {
1074 int32_t InputDispatcher::findFocusedWindowTargetsLocked(nsecs_t currentTime,
1131 int32_t InputDispatcher::findTouchedWindowTargetsLocked(nsecs_t currentTime,
1572 void InputDispatcher::addWindowTargetLocked(const sp<InputWindowHandle>& windowHandle,
1586 void InputDispatcher::addMonitoringTargetsLocked(Vector<InputTarget>& inputTargets) {
1600 bool InputDispatcher::checkInjectionPermission(const sp<InputWindowHandle>& windowHandle,
1621 bool InputDispatcher::isWindowObscuredAtPointLocked(
1642 bool InputDispatcher::isWindowObscuredLocked(const sp<InputWindowHandle>& windowHandle) const {
1662 String8 InputDispatcher::checkWindowReadyForMoreInputLocked(nsecs_t currentTime,
1742 String8 InputDispatcher::getApplicationWindowLabelLocked(
1761 void InputDispatcher::pokeUserActivityLocked(const EventEntry* eventEntry) {
1796 & InputDispatcher::doPokeUserActivityLockedInterruptible);
1801 void InputDispatcher::prepareDispatchCycleLocked(nsecs_t currentTime,
1849 void InputDispatcher::enqueueDispatchEntriesLocked(nsecs_t currentTime,
1873 void InputDispatcher::enqueueDispatchEntryLocked(
1963 void InputDispatcher::startDispatchCycleLocked(nsecs_t currentTime,
2079 void InputDispatcher::finishDispatchCycleLocked(nsecs_t currentTime,
2097 void InputDispatcher::abortBrokenDispatchCycleLocked(nsecs_t currentTime,
2122 void InputDispatcher::drainDispatchQueueLocked(Queue<DispatchEntry>* queue) {
2129 void InputDispatcher::releaseDispatchEntryLocked(DispatchEntry* dispatchEntry) {
2136 int InputDispatcher::handleReceiveCallback(int fd, int events, void* data) {
2137 InputDispatcher* d = static_cast<InputDispatcher*>(data);
2200 void InputDispatcher::synthesizeCancelationEventsForAllConnectionsLocked(
2208 void InputDispatcher::synthesizeCancelationEventsForMonitorsLocked(
2215 void InputDispatcher::synthesizeCancelationEventsForInputChannelLocked(
2224 void InputDispatcher::synthesizeCancelationEventsForConnectionLocked(
2281 InputDispatcher::MotionEntry*
2282 InputDispatcher::splitMotionEvent(const MotionEntry* originalMotionEntry, BitSet32 pointerIds) {
2372 void InputDispatcher::notifyConfigurationChanged(const NotifyConfigurationChangedArgs* args) {
2390 void InputDispatcher::notifyKey(const NotifyKeyArgs* args) {
2481 bool InputDispatcher::shouldSendKeyToInputFilterLocked(const NotifyKeyArgs* args) {
2485 void InputDispatcher::notifyMotion(const NotifyMotionArgs* args) {
2560 bool InputDispatcher::shouldSendMotionToInputFilterLocked(const NotifyMotionArgs* args) {
2565 void InputDispatcher::notifySwitch(const NotifySwitchArgs* args) {
2578 void InputDispatcher::notifyDeviceReset(const NotifyDeviceResetArgs* args) {
2597 int32_t InputDispatcher::injectInputEvent(const InputEvent* event, int32_t displayId,
2774 bool InputDispatcher::hasInjectionPermission(int32_t injectorPid, int32_t injectorUid) {
2779 void InputDispatcher::setInjectionResultLocked(EventEntry* entry, int32_t injectionResult) {
2812 void InputDispatcher::incrementPendingForegroundDispatchesLocked(EventEntry* entry) {
2819 void InputDispatcher::decrementPendingForegroundDispatchesLocked(EventEntry* entry) {
2830 sp<InputWindowHandle> InputDispatcher::getWindowHandleLocked(
2842 bool InputDispatcher::hasWindowHandleLocked(
2853 void InputDispatcher::setInputWindows(const Vector<sp<InputWindowHandle> >& inputWindowHandles) {
2947 void InputDispatcher::setFocusedApplication(
2978 void InputDispatcher::setInputDispatchMode(bool enabled, bool frozen) {
3014 void InputDispatcher::setInputFilterEnabled(bool enabled) {
3034 bool InputDispatcher::transferTouchFocus(const sp<InputChannel>& fromChannel,
3116 void InputDispatcher::resetAndDropEverythingLocked(const char* reason) {
3134 void InputDispatcher::logDispatchStateLocked() {
3150 void InputDispatcher::dumpDispatchStateLocked(String8& dump) {
3342 status_t InputDispatcher::registerInputChannel(const sp<InputChannel>& inputChannel,
3375 status_t InputDispatcher::unregisterInputChannel(const sp<InputChannel>& inputChannel) {
3395 status_t InputDispatcher::unregisterInputChannelLocked(const sp<InputChannel>& inputChannel,
3420 void InputDispatcher::removeMonitorChannelLocked(const sp<InputChannel>& inputChannel) {
3429 ssize_t InputDispatcher::getConnectionIndexLocked(const sp<InputChannel>& inputChannel) {
3441 void InputDispatcher::onDispatchCycleFinishedLocked(
3444 & InputDispatcher::doDispatchCycleFinishedLockedInterruptible);
3451 void InputDispatcher::onDispatchCycleBrokenLocked(
3457 & InputDispatcher::doNotifyInputChannelBrokenLockedInterruptible);
3461 void InputDispatcher::onANRLocked(
3472 // Capture a record of the InputDispatcher state at the time of the ANR.
3489 & InputDispatcher::doNotifyANRLockedInterruptible);
3495 void InputDispatcher::doNotifyConfigurationChangedInterruptible(
3504 void InputDispatcher::doNotifyInputChannelBrokenLockedInterruptible(
3517 void InputDispatcher::doNotifyANRLockedInterruptible(
3532 void InputDispatcher::doInterceptKeyBeforeDispatchingLockedInterruptible(
3557 void InputDispatcher::doDispatchCycleFinishedLockedInterruptible(
3609 InputDispatcher::afterKeyEventLockedInterruptible(const sp<Connection>& connection,
3781 bool InputDispatcher::afterMotionEventLockedInterruptible(const sp<Connection>& connection,
3786 void InputDispatcher::doPokeUserActivityLockedInterruptible(CommandEntry* commandEntry) {
3794 void InputDispatcher::initializeKeyEvent(KeyEvent* event, const KeyEntry* entry) {
3800 void InputDispatcher::updateDispatchStatisticsLocked(nsecs_t currentTime, const EventEntry* entry,
3805 void InputDispatcher::traceInboundQueueLengthLocked() {
3811 void InputDispatcher::traceOutboundQueueLengthLocked(const sp<Connection>& connection) {
3819 void InputDispatcher::traceWaitQueueLengthLocked(const sp<Connection>& connection) {
3827 void InputDispatcher::dump(String8& dump) {
3839 void InputDispatcher::monitor() {
3848 // --- InputDispatcher::InjectionState ---
3850 InputDispatcher::InjectionState::InjectionState(int32_t injectorPid, int32_t injectorUid) :
3857 InputDispatcher::InjectionState::~InjectionState() {
3860 void InputDispatcher::InjectionState::release() {
3870 // --- InputDispatcher::EventEntry ---
3872 InputDispatcher::EventEntry::EventEntry(int32_t type, nsecs_t eventTime, uint32_t policyFlags) :
3877 InputDispatcher::EventEntry::~EventEntry() {
3881 void InputDispatcher::EventEntry::release() {
3890 void InputDispatcher::EventEntry::releaseInjectionState() {
3898 // --- InputDispatcher::ConfigurationChangedEntry ---
3900 InputDispatcher::ConfigurationChangedEntry::ConfigurationChangedEntry(nsecs_t eventTime) :
3904 InputDispatcher::ConfigurationChangedEntry::~ConfigurationChangedEntry() {
3907 void InputDispatcher::ConfigurationChangedEntry::appendDescription(String8& msg) const {
3913 // --- InputDispatcher::DeviceResetEntry ---
3915 InputDispatcher::DeviceResetEntry::DeviceResetEntry(nsecs_t eventTime, int32_t deviceId) :
3920 InputDispatcher::DeviceResetEntry::~DeviceResetEntry() {
3923 void InputDispatcher::DeviceResetEntry::appendDescription(String8& msg) const {
3929 // --- InputDispatcher::KeyEntry ---
3931 InputDispatcher::KeyEntry::KeyEntry(nsecs_t eventTime,
3943 InputDispatcher::KeyEntry::~KeyEntry() {
3946 void InputDispatcher::KeyEntry::appendDescription(String8& msg) const {
3954 void InputDispatcher::KeyEntry::recycle() {
3964 // --- InputDispatcher::MotionEntry ---
3966 InputDispatcher::MotionEntry::MotionEntry(nsecs_t eventTime, int32_t deviceId,
3988 InputDispatcher::MotionEntry::~MotionEntry() {
3991 void InputDispatcher::MotionEntry::appendDescription(String8& msg) const {
4008 // --- InputDispatcher::DispatchEntry ---
4010 volatile int32_t InputDispatcher::DispatchEntry::sNextSeqAtomic;
4012 InputDispatcher::DispatchEntry::DispatchEntry(EventEntry* eventEntry,
4021 InputDispatcher::DispatchEntry::~DispatchEntry() {
4025 uint32_t InputDispatcher::DispatchEntry::nextSeq() {
4035 // --- InputDispatcher::InputState ---
4037 InputDispatcher::InputState::InputState() {
4040 InputDispatcher::InputState::~InputState() {
4043 bool InputDispatcher::InputState::isNeutral() const {
4047 bool InputDispatcher::InputState::isHovering(int32_t deviceId, uint32_t source,
4061 bool InputDispatcher::InputState::trackKey(const KeyEntry* entry,
4112 bool InputDispatcher::InputState::trackMotion(const MotionEntry* entry,
4212 ssize_t InputDispatcher::InputState::findKeyMemento(const KeyEntry* entry) const {
4225 ssize_t InputDispatcher::InputState::findMotionMemento(const MotionEntry* entry,
4239 void InputDispatcher::InputState::addKeyMemento(const KeyEntry* entry, int32_t flags) {
4252 void InputDispatcher::InputState::addMotionMemento(const MotionEntry* entry,
4268 void InputDispatcher::InputState::MotionMemento::setPointers(const MotionEntry* entry) {
4276 void InputDispatcher::InputState::synthesizeCancelationEvents(nsecs_t currentTime,
4305 void InputDispatcher::InputState::clear() {
4311 void InputDispatcher::InputState::copyPointerStateTo(InputState& other) const {
4330 int32_t InputDispatcher::InputState::getFallbackKey(int32_t originalKeyCode) {
4335 void InputDispatcher::InputState::setFallbackKey(int32_t originalKeyCode,
4345 void InputDispatcher::InputState::removeFallbackKey(int32_t originalKeyCode) {
4349 bool InputDispatcher::InputState::shouldCancelKey(const KeyMemento& memento,
4370 bool InputDispatcher::InputState::shouldCancelMotion(const MotionMemento& memento,
4389 // --- InputDispatcher::Connection ---
4391 InputDispatcher::Connection::Connection(const sp<InputChannel>& inputChannel,
4398 InputDispatcher::Connection::~Connection() {
4401 const char* InputDispatcher::Connection::getWindowName() const {
4411 const char* InputDispatcher::Connection::getStatusLabel() const {
4427 InputDispatcher::DispatchEntry* InputDispatcher::Connection::findWaitQueueEntry(uint32_t seq) {
4437 // --- InputDispatcher::CommandEntry ---
4439 InputDispatcher::CommandEntry::CommandEntry(Command command) :
4444 InputDispatcher::CommandEntry::~CommandEntry() {
4448 // --- InputDispatcher::TouchState ---
4450 InputDispatcher::TouchState::TouchState() :
4454 InputDispatcher::TouchState::~TouchState() {
4457 void InputDispatcher::TouchState::reset() {
4466 void InputDispatcher::TouchState::copyFrom(const TouchState& other) {
4475 void InputDispatcher::TouchState::addOrUpdateWindow(const sp<InputWindowHandle>& windowHandle,
4501 void InputDispatcher::TouchState::removeWindow(const sp<InputWindowHandle>& windowHandle) {
4510 void InputDispatcher::TouchState::filterNonAsIsTouchWindows() {
4524 sp<InputWindowHandle> InputDispatcher::TouchState::getFirstForegroundWindowHandle() const {
4534 bool InputDispatcher::TouchState::isSlippery() const {