Home | History | Annotate | Download | only in input

Lines Matching refs:InputDispatcher

17 #define LOG_TAG "InputDispatcher"
46 #include "InputDispatcher.h"
194 // --- InputDispatcher ---
196 InputDispatcher::InputDispatcher(const sp<InputDispatcherPolicyInterface>& policy) :
209 InputDispatcher::~InputDispatcher() {
223 void InputDispatcher::dispatchOnce() {
248 void InputDispatcher::dispatchOnceInnerLocked(nsecs_t* nextWakeupTime) {
400 bool InputDispatcher::enqueueInboundEventLocked(EventEntry* entry) {
460 void InputDispatcher::addRecentEventLocked(EventEntry* entry) {
468 sp<InputWindowHandle> InputDispatcher::findTouchedWindowAtLocked(int32_t displayId,
499 void InputDispatcher::dropInboundEventLocked(EventEntry* entry, DropReason dropReason) {
551 bool InputDispatcher::isAppSwitchKeyCode(int32_t keyCode) {
557 bool InputDispatcher::isAppSwitchKeyEventLocked(KeyEntry* keyEntry) {
564 bool InputDispatcher::isAppSwitchPendingLocked() {
568 void InputDispatcher::resetPendingAppSwitchLocked(bool handled) {
580 bool InputDispatcher::isStaleEventLocked(nsecs_t currentTime, EventEntry* entry) {
584 bool InputDispatcher::haveCommandsLocked() const {
588 bool InputDispatcher::runCommandsLockedInterruptible() {
605 InputDispatcher::CommandEntry* InputDispatcher::postCommandLocked(Command command) {
611 void InputDispatcher::drainInboundQueueLocked() {
619 void InputDispatcher::releasePendingEventLocked() {
627 void InputDispatcher::releaseInboundEventLocked(EventEntry* entry) {
642 void InputDispatcher::resetKeyRepeatLocked() {
649 InputDispatcher::KeyEntry* InputDispatcher::synthesizeKeyRepeatLocked(nsecs_t currentTime) {
681 bool InputDispatcher::dispatchConfigurationChangedLocked(
692 & InputDispatcher::doNotifyConfigurationChangedInterruptible);
697 bool InputDispatcher::dispatchDeviceResetLocked(
710 bool InputDispatcher::dispatchKeyLocked(nsecs_t currentTime, KeyEntry* entry,
765 & InputDispatcher::doInterceptKeyBeforeDispatchingLockedInterruptible);
808 void InputDispatcher::logOutboundKeyDetailsLocked(const char* prefix, const KeyEntry* entry) {
820 bool InputDispatcher::dispatchMotionLocked(
877 void InputDispatcher::logOutboundMotionDetailsLocked(const char* prefix, const MotionEntry* entry) {
910 void InputDispatcher::dispatchEventLocked(nsecs_t currentTime,
937 int32_t InputDispatcher::handleTargetsNotReadyLocked(nsecs_t currentTime,
1006 void InputDispatcher::resumeAfterTargetsNotReadyTimeoutLocked(nsecs_t newTimeout,
1036 nsecs_t InputDispatcher::getTimeSpentWaitingForApplicationLocked(
1044 void InputDispatcher::resetANRTimeoutsLocked() {
1054 int32_t InputDispatcher::findFocusedWindowTargetsLocked(nsecs_t currentTime,
1118 int32_t InputDispatcher::findTouchedWindowTargetsLocked(nsecs_t currentTime,
1594 void InputDispatcher::addWindowTargetLocked(const sp<InputWindowHandle>& windowHandle,
1608 InputDispatcher::addMonitoringTargetsLocked(Vector<InputTarget>& inputTargets) {
1622 bool InputDispatcher::checkInjectionPermission(const sp<InputWindowHandle>& windowHandle,
1643 bool InputDispatcher::isWindowObscuredAtPointLocked(
1663 bool InputDispatcher::isWindowReadyForMoreInputLocked(nsecs_t currentTime,
1710 String8 InputDispatcher::getApplicationWindowLabelLocked(
1729 void InputDispatcher::pokeUserActivityLocked(const EventEntry* eventEntry) {
1764 & InputDispatcher::doPokeUserActivityLockedInterruptible);
1769 void InputDispatcher::prepareDispatchCycleLocked(nsecs_t currentTime,
1817 void InputDispatcher::enqueueDispatchEntriesLocked(nsecs_t currentTime,
1841 void InputDispatcher::enqueueDispatchEntryLocked(
1928 void InputDispatcher::startDispatchCycleLocked(nsecs_t currentTime,
2044 void InputDispatcher::finishDispatchCycleLocked(nsecs_t currentTime,
2062 void InputDispatcher::abortBrokenDispatchCycleLocked(nsecs_t currentTime,
2087 void InputDispatcher::drainDispatchQueueLocked(Queue<DispatchEntry>* queue) {
2094 void InputDispatcher::releaseDispatchEntryLocked(DispatchEntry* dispatchEntry) {
2101 int InputDispatcher::handleReceiveCallback(int fd, int events, void* data) {
2102 InputDispatcher* d = static_cast<InputDispatcher*>(data);
2165 void InputDispatcher::synthesizeCancelationEventsForAllConnectionsLocked(
2173 void InputDispatcher::synthesizeCancelationEventsForInputChannelLocked(
2182 void InputDispatcher::synthesizeCancelationEventsForConnectionLocked(
2239 InputDispatcher::MotionEntry*
2240 InputDispatcher::splitMotionEvent(const MotionEntry* originalMotionEntry, BitSet32 pointerIds) {
2329 void InputDispatcher::notifyConfigurationChanged(const NotifyConfigurationChangedArgs* args) {
2347 void InputDispatcher::notifyKey(const NotifyKeyArgs* args) {
2425 bool InputDispatcher::shouldSendKeyToInputFilterLocked(const NotifyKeyArgs* args) {
2429 void InputDispatcher::notifyMotion(const NotifyMotionArgs* args) {
2502 bool InputDispatcher::shouldSendMotionToInputFilterLocked(const NotifyMotionArgs* args) {
2507 void InputDispatcher::notifySwitch(const NotifySwitchArgs* args) {
2520 void InputDispatcher::notifyDeviceReset(const NotifyDeviceResetArgs* args) {
2539 int32_t InputDispatcher::injectInputEvent(const InputEvent* event,
2718 bool InputDispatcher::hasInjectionPermission(int32_t injectorPid, int32_t injectorUid) {
2723 void InputDispatcher::setInjectionResultLocked(EventEntry* entry, int32_t injectionResult) {
2756 void InputDispatcher::incrementPendingForegroundDispatchesLocked(EventEntry* entry) {
2763 void InputDispatcher::decrementPendingForegroundDispatchesLocked(EventEntry* entry) {
2774 sp<InputWindowHandle> InputDispatcher::getWindowHandleLocked(
2786 bool InputDispatcher::hasWindowHandleLocked(
2797 void InputDispatcher
2888 void InputDispatcher::setFocusedApplication(
2919 void InputDispatcher::setInputDispatchMode(bool enabled, bool frozen) {
2955 void InputDispatcher::setInputFilterEnabled(bool enabled) {
2975 bool InputDispatcher::transferTouchFocus(const sp<InputChannel>& fromChannel,
3053 void InputDispatcher::resetAndDropEverythingLocked(const char* reason) {
3070 void InputDispatcher::logDispatchStateLocked() {
3086 void InputDispatcher::dumpDispatchStateLocked(String8& dump) {
3260 status_t InputDispatcher::registerInputChannel(const sp<InputChannel>& inputChannel,
3293 status_t InputDispatcher::unregisterInputChannel(const sp<InputChannel>& inputChannel) {
3313 status_t InputDispatcher::unregisterInputChannelLocked(const sp<InputChannel>& inputChannel,
3338 void InputDispatcher::removeMonitorChannelLocked(const sp<InputChannel>& inputChannel) {
3347 ssize_t InputDispatcher::getConnectionIndexLocked(const sp<InputChannel>& inputChannel) {
3359 void InputDispatcher::onDispatchCycleFinishedLocked(
3362 & InputDispatcher::doDispatchCycleFinishedLockedInterruptible);
3369 void InputDispatcher::onDispatchCycleBrokenLocked(
3375 & InputDispatcher::doNotifyInputChannelBrokenLockedInterruptible);
3379 void InputDispatcher::onANRLocked(
3390 // Capture a record of the InputDispatcher state at the time of the ANR.
3407 & InputDispatcher::doNotifyANRLockedInterruptible);
3413 void InputDispatcher::doNotifyConfigurationChangedInterruptible(
3422 void InputDispatcher::doNotifyInputChannelBrokenLockedInterruptible(
3435 void InputDispatcher::doNotifyANRLockedInterruptible(
3450 void InputDispatcher::doInterceptKeyBeforeDispatchingLockedInterruptible(
3475 void InputDispatcher::doDispatchCycleFinishedLockedInterruptible(
3527 bool InputDispatcher::afterKeyEventLockedInterruptible(const sp<Connection>& connection,
3699 bool InputDispatcher::afterMotionEventLockedInterruptible(const sp<Connection>& connection,
3704 void InputDispatcher::doPokeUserActivityLockedInterruptible(CommandEntry* commandEntry) {
3712 void InputDispatcher::initializeKeyEvent(KeyEvent* event, const KeyEntry* entry) {
3718 void InputDispatcher::updateDispatchStatisticsLocked(nsecs_t currentTime, const EventEntry* entry,
3723 void InputDispatcher::traceInboundQueueLengthLocked() {
3729 void InputDispatcher::traceOutboundQueueLengthLocked(const sp<Connection>& connection) {
3737 void InputDispatcher::traceWaitQueueLengthLocked(const sp<Connection>& connection) {
3745 void InputDispatcher::dump(String8& dump) {
3757 void InputDispatcher::monitor() {
3766 // --- InputDispatcher::Queue ---
3769 uint32_t InputDispatcher::Queue<T>::count() const {
3778 // --- InputDispatcher::InjectionState ---
3780 InputDispatcher::InjectionState::InjectionState(int32_t injectorPid, int32_t injectorUid) :
3787 InputDispatcher::InjectionState::~InjectionState() {
3790 void InputDispatcher::InjectionState::release() {
3800 // --- InputDispatcher::EventEntry ---
3802 InputDispatcher::EventEntry::EventEntry(int32_t type, nsecs_t eventTime, uint32_t policyFlags) :
3807 InputDispatcher::EventEntry::~EventEntry() {
3811 void InputDispatcher::EventEntry::release() {
3820 void InputDispatcher::EventEntry::releaseInjectionState() {
3828 // --- InputDispatcher::ConfigurationChangedEntry ---
3830 InputDispatcher::ConfigurationChangedEntry::ConfigurationChangedEntry(nsecs_t eventTime) :
3834 InputDispatcher::ConfigurationChangedEntry::~ConfigurationChangedEntry() {
3837 void InputDispatcher::ConfigurationChangedEntry::appendDescription(String8& msg) const {
3843 // --- InputDispatcher::DeviceResetEntry ---
3845 InputDispatcher::DeviceResetEntry::DeviceResetEntry(nsecs_t eventTime, int32_t deviceId) :
3850 InputDispatcher::DeviceResetEntry::~DeviceResetEntry() {
3853 void InputDispatcher::DeviceResetEntry::appendDescription(String8& msg) const {
3859 // --- InputDispatcher::KeyEntry ---
3861 InputDispatcher::KeyEntry::KeyEntry(nsecs_t eventTime,
3873 InputDispatcher::KeyEntry::~KeyEntry() {
3876 void InputDispatcher::KeyEntry::appendDescription(String8& msg) const {
3884 void InputDispatcher::KeyEntry::recycle() {
3894 // --- InputDispatcher::MotionEntry ---
3896 InputDispatcher::MotionEntry::MotionEntry(nsecs_t eventTime,
3914 InputDispatcher::MotionEntry::~MotionEntry() {
3917 void InputDispatcher::MotionEntry::appendDescription(String8& msg) const {
3934 // --- InputDispatcher::DispatchEntry ---
3936 volatile int32_t InputDispatcher::DispatchEntry::sNextSeqAtomic;
3938 InputDispatcher::DispatchEntry::DispatchEntry(EventEntry* eventEntry,
3947 InputDispatcher::DispatchEntry::~DispatchEntry() {
3951 uint32_t InputDispatcher::DispatchEntry::nextSeq() {
3961 // --- InputDispatcher::InputState ---
3963 InputDispatcher::InputState::InputState() {
3966 InputDispatcher::InputState::~InputState() {
3969 bool InputDispatcher::InputState::isNeutral() const {
3973 bool InputDispatcher::InputState::isHovering(int32_t deviceId, uint32_t source,
3987 bool InputDispatcher::InputState::trackKey(const KeyEntry* entry,
4038 bool InputDispatcher::InputState::trackMotion(const MotionEntry* entry,
4117 ssize_t InputDispatcher::InputState::findKeyMemento(const KeyEntry* entry) const {
4130 ssize_t InputDispatcher::InputState::findMotionMemento(const MotionEntry* entry,
4144 void InputDispatcher::InputState::addKeyMemento(const KeyEntry* entry, int32_t flags) {
4157 void InputDispatcher::InputState::addMotionMemento(const MotionEntry* entry,
4173 void InputDispatcher::InputState::MotionMemento::setPointers(const MotionEntry* entry) {
4181 void InputDispatcher::InputState::synthesizeCancelationEvents(nsecs_t currentTime,
4209 void InputDispatcher::InputState::clear() {
4215 void InputDispatcher::InputState::copyPointerStateTo(InputState& other) const {
4234 int32_t InputDispatcher::InputState::getFallbackKey(int32_t originalKeyCode) {
4239 void InputDispatcher::InputState::setFallbackKey(int32_t originalKeyCode,
4249 void InputDispatcher::InputState::removeFallbackKey(int32_t originalKeyCode) {
4253 bool InputDispatcher::InputState::shouldCancelKey(const KeyMemento& memento,
4274 bool InputDispatcher::InputState::shouldCancelMotion(const MotionMemento& memento,
4293 // --- InputDispatcher::Connection ---
4295 InputDispatcher::Connection::Connection(const sp<InputChannel>& inputChannel,
4302 InputDispatcher::Connection::~Connection() {
4305 const char* InputDispatcher::Connection::getWindowName() const {
4315 const char* InputDispatcher::Connection::getStatusLabel() const {
4331 InputDispatcher::DispatchEntry* InputDispatcher::Connection::findWaitQueueEntry(uint32_t seq) {
4341 // --- InputDispatcher::CommandEntry ---
4343 InputDispatcher::CommandEntry::CommandEntry(Command command) :
4348 InputDispatcher::CommandEntry::~CommandEntry() {
4352 // --- InputDispatcher::TouchState ---
4354 InputDispatcher::TouchState::TouchState() :
4358 InputDispatcher::TouchState::~TouchState() {
4361 void InputDispatcher::TouchState::reset() {
4370 void InputDispatcher::TouchState::copyFrom(const TouchState& other) {
4379 void InputDispatcher::TouchState::addOrUpdateWindow(const sp<InputWindowHandle>& windowHandle,
4405 void InputDispatcher::TouchState::removeWindow(const sp<InputWindowHandle>& windowHandle) {
4414 void InputDispatcher::TouchState::filterNonAsIsTouchWindows() {
4428 sp<InputWindowHandle> InputDispatcher::TouchState::getFirstForegroundWindowHandle() const {
4438 bool InputDispatcher::TouchState::isSlippery() const {