Lines Matching refs:InputDispatcher

908 InputDispatcher::InputDispatcher(InputDispatcherPolicyInterface& policy)  in InputDispatcher()  function in android::inputdispatcher::InputDispatcher
909 : InputDispatcher(policy, createInputTracingBackendIfEnabled()) {} in InputDispatcher()
911 InputDispatcher::InputDispatcher(InputDispatcherPolicyInterface& policy, in InputDispatcher() function in android::inputdispatcher::InputDispatcher
945 InputDispatcher::~InputDispatcher() { in ~InputDispatcher()
959 status_t InputDispatcher::start() { in start()
968 status_t InputDispatcher::stop() { in stop()
977 void InputDispatcher::dispatchOnce() { in dispatchOnce()
1019 void InputDispatcher::processNoFocusedWindowAnrLocked() { in processNoFocusedWindowAnrLocked()
1045 nsecs_t InputDispatcher::processAnrsLocked() { in processAnrsLocked()
1080 std::chrono::nanoseconds InputDispatcher::getDispatchingTimeoutLocked( in getDispatchingTimeoutLocked()
1092 void InputDispatcher::dispatchOnceInnerLocked(nsecs_t& nextWakeupTime) { in dispatchOnceInnerLocked()
1276 bool InputDispatcher::isStaleEvent(nsecs_t currentTime, const EventEntry& entry) { in isStaleEvent()
1284 bool InputDispatcher::shouldPruneInboundQueueLocked(const MotionEntry& motionEntry) const { in shouldPruneInboundQueueLocked()
1329 bool InputDispatcher::enqueueInboundEventLocked(std::unique_ptr<EventEntry> newEntry) { in enqueueInboundEventLocked()
1408 void InputDispatcher::addRecentEventLocked(std::shared_ptr<const EventEntry> entry) { in addRecentEventLocked()
1418 sp<WindowInfoHandle> InputDispatcher::findTouchedWindowAtLocked(ui::LogicalDisplayId displayId, in findTouchedWindowAtLocked()
1437 std::vector<InputTarget> InputDispatcher::findOutsideTargetsLocked( in findOutsideTargetsLocked()
1465 std::vector<sp<WindowInfoHandle>> InputDispatcher::findTouchedSpyWindowsAtLocked( in findTouchedSpyWindowsAtLocked()
1485 void InputDispatcher::dropInboundEventLocked(const EventEntry& entry, DropReason dropReason) { in dropInboundEventLocked()
1565 bool InputDispatcher::haveCommandsLocked() const { in haveCommandsLocked()
1569 bool InputDispatcher::runCommandsLockedInterruptable() { in runCommandsLockedInterruptable()
1583 void InputDispatcher::postCommandLocked(Command&& command) { in postCommandLocked()
1587 void InputDispatcher::drainInboundQueueLocked() { in drainInboundQueueLocked()
1596 void InputDispatcher::releasePendingEventLocked() { in releasePendingEventLocked()
1603 void InputDispatcher::releaseInboundEventLocked(std::shared_ptr<const EventEntry> entry) { in releaseInboundEventLocked()
1617 void InputDispatcher::resetKeyRepeatLocked() { in resetKeyRepeatLocked()
1623 std::shared_ptr<KeyEntry> InputDispatcher::synthesizeKeyRepeatLocked(nsecs_t currentTime) { in synthesizeKeyRepeatLocked()
1646 bool InputDispatcher::dispatchConfigurationChangedLocked(nsecs_t currentTime, in dispatchConfigurationChangedLocked()
1664 bool InputDispatcher::dispatchDeviceResetLocked(nsecs_t currentTime, in dispatchDeviceResetLocked()
1689 void InputDispatcher::enqueueFocusEventLocked(const sp<IBinder>& windowToken, bool hasFocus, in enqueueFocusEventLocked()
1713 void InputDispatcher::dispatchFocusLocked(nsecs_t currentTime, in dispatchFocusLocked()
1727 void InputDispatcher::dispatchPointerCaptureChangedLocked( in dispatchPointerCaptureChangedLocked()
1798 void InputDispatcher::dispatchTouchModeChangeLocked( in dispatchTouchModeChangeLocked()
1814 std::vector<InputTarget> InputDispatcher::getInputTargetsFromWindowHandlesLocked( in getInputTargetsFromWindowHandlesLocked()
1831 bool InputDispatcher::dispatchKeyLocked(nsecs_t currentTime, std::shared_ptr<const KeyEntry> entry, in dispatchKeyLocked()
1959 void InputDispatcher::logOutboundKeyDetails(const char* prefix, const KeyEntry& entry) { in logOutboundKeyDetails()
1970 void InputDispatcher::dispatchSensorLocked(nsecs_t currentTime, in dispatchSensorLocked()
1991 bool InputDispatcher::flushSensor(int deviceId, InputDeviceSensorType sensorType) { in flushSensor()
2010 bool InputDispatcher::dispatchMotionLocked(nsecs_t currentTime, in dispatchMotionLocked()
2092 void InputDispatcher::enqueueDragEventLocked(const sp<WindowInfoHandle>& windowHandle, in enqueueDragEventLocked()
2103 void InputDispatcher::dispatchDragLocked(nsecs_t currentTime, in dispatchDragLocked()
2113 void InputDispatcher::logOutboundMotionDetails(const char* prefix, const MotionEntry& entry) { in logOutboundMotionDetails()
2145 void InputDispatcher::dispatchEventLocked(nsecs_t currentTime, in dispatchEventLocked()
2165 void InputDispatcher::cancelEventsForAnrLocked(const std::shared_ptr<Connection>& connection) { in cancelEventsForAnrLocked()
2193 void InputDispatcher::resetNoFocusedWindowTimeoutLocked() { in resetNoFocusedWindowTimeoutLocked()
2208 ui::LogicalDisplayId InputDispatcher::getTargetDisplayId(const EventEntry& entry) { in getTargetDisplayId()
2235 bool InputDispatcher::shouldWaitToSendKeyLocked(nsecs_t currentTime, in shouldWaitToSendKeyLocked()
2266 sp<WindowInfoHandle> InputDispatcher::findFocusedWindowTargetLocked( in findFocusedWindowTargetLocked()
2365 std::vector<Monitor> InputDispatcher::selectResponsiveMonitorsLocked( in selectResponsiveMonitorsLocked()
2381 std::vector<InputTarget> InputDispatcher::findTouchedWindowTargetsLocked( in findTouchedWindowTargetsLocked()
2852 void InputDispatcher::finishDragAndDrop(ui::LogicalDisplayId displayId, float x, float y) { in finishDragAndDrop()
2869 void InputDispatcher::addDragEventLocked(const MotionEntry& entry) { in addDragEventLocked()
2948 std::optional<InputTarget> InputDispatcher::createInputTargetLocked( in createInputTargetLocked()
2973 void InputDispatcher::addWindowTargetLocked(const sp<WindowInfoHandle>& windowHandle, in addWindowTargetLocked()
3006 void InputDispatcher::addPointerWindowTargetLocked( in addPointerWindowTargetLocked()
3068 void InputDispatcher::addGlobalMonitoringTargetsLocked(std::vector<InputTarget>& inputTargets, in addGlobalMonitoringTargetsLocked()
3138 InputDispatcher::TouchOcclusionInfo InputDispatcher::computeTouchOcclusionInfoLocked( in computeTouchOcclusionInfoLocked()
3191 std::string InputDispatcher::dumpWindowForTouchOcclusion(const WindowInfo* info, in dumpWindowForTouchOcclusion()
3207 bool InputDispatcher::isTouchTrustedLocked(const TouchOcclusionInfo& occlusionInfo) const { in isTouchTrustedLocked()
3223 bool InputDispatcher::isWindowObscuredAtPointLocked(const sp<WindowInfoHandle>& windowHandle, in isWindowObscuredAtPointLocked()
3240 bool InputDispatcher::isWindowObscuredLocked(const sp<WindowInfoHandle>& windowHandle) const { in isWindowObscuredLocked()
3256 std::string InputDispatcher::getApplicationWindowLabel( in getApplicationWindowLabel()
3271 void InputDispatcher::pokeUserActivityLocked(const EventEntry& eventEntry) { in pokeUserActivityLocked()
3349 void InputDispatcher::prepareDispatchCycleLocked(nsecs_t currentTime, in prepareDispatchCycleLocked()
3418 void InputDispatcher::enqueueDispatchEntryAndStartDispatchCycleLocked( in enqueueDispatchEntryAndStartDispatchCycleLocked()
3436 void InputDispatcher::enqueueDispatchEntryLocked(const std::shared_ptr<Connection>& connection, in enqueueDispatchEntryLocked()
3657 void InputDispatcher::processInteractionsLocked(const EventEntry& entry, in processInteractionsLocked()
3721 void InputDispatcher::dispatchPointerDownOutsideFocus(uint32_t source, int32_t action, in dispatchPointerDownOutsideFocus()
3742 status_t InputDispatcher::publishMotionEvent(Connection& connection, in publishMotionEvent()
3784 void InputDispatcher::startDispatchCycleLocked(nsecs_t currentTime, in startDispatchCycleLocked()
3929 std::array<uint8_t, 32> InputDispatcher::sign(const VerifiedInputEvent& event) const { in sign()
3945 const std::array<uint8_t, 32> InputDispatcher::getSignature( in getSignature()
3961 const std::array<uint8_t, 32> InputDispatcher::getSignature( in getSignature()
3968 void InputDispatcher::finishDispatchCycleLocked(nsecs_t currentTime, in finishDispatchCycleLocked()
3987 void InputDispatcher::abortBrokenDispatchCycleLocked(nsecs_t currentTime, in abortBrokenDispatchCycleLocked()
4020 void InputDispatcher::drainDispatchQueue(std::deque<std::unique_ptr<DispatchEntry>>& queue) { in drainDispatchQueue()
4027 void InputDispatcher::releaseDispatchEntry(std::unique_ptr<DispatchEntry> dispatchEntry) { in releaseDispatchEntry()
4033 int InputDispatcher::handleReceiveCallback(int events, sp<IBinder> connectionToken) { in handleReceiveCallback()
4107 void InputDispatcher::synthesizeCancelationEventsForAllConnectionsLocked( in synthesizeCancelationEventsForAllConnectionsLocked()
4140 void InputDispatcher::synthesizeCancelationEventsForMonitorsLocked( in synthesizeCancelationEventsForMonitorsLocked()
4150 void InputDispatcher::synthesizeCancelationEventsForWindowLocked( in synthesizeCancelationEventsForWindowLocked()
4173 void InputDispatcher::synthesizeCancelationEventsForConnectionLocked( in synthesizeCancelationEventsForConnectionLocked()
4296 void InputDispatcher::synthesizePointerDownEventsForConnectionLocked( in synthesizePointerDownEventsForConnectionLocked()
4381 std::unique_ptr<MotionEntry> InputDispatcher::splitMotionEvent( in splitMotionEvent()
4441 void InputDispatcher::notifyInputDevicesChanged(const NotifyInputDevicesChangedArgs& args) { in notifyInputDevicesChanged()
4446 void InputDispatcher::notifyConfigurationChanged(const NotifyConfigurationChangedArgs& args) { in notifyConfigurationChanged()
4465 void InputDispatcher::notifyKey(const NotifyKeyArgs& args) { in notifyKey()
4543 bool InputDispatcher::shouldSendKeyToInputFilterLocked(const NotifyKeyArgs& args) { in shouldSendKeyToInputFilterLocked()
4547 void InputDispatcher::notifyMotion(const NotifyMotionArgs& args) { in notifyMotion()
4682 void InputDispatcher::notifySensor(const NotifySensorArgs& args) { in notifySensor()
4709 void InputDispatcher::notifyVibratorState(const NotifyVibratorStateArgs& args) { in notifyVibratorState()
4717 bool InputDispatcher::shouldSendMotionToInputFilterLocked(const NotifyMotionArgs& args) { in shouldSendMotionToInputFilterLocked()
4721 void InputDispatcher::notifySwitch(const NotifySwitchArgs& args) { in notifySwitch()
4733 void InputDispatcher::notifyDeviceReset(const NotifyDeviceResetArgs& args) { in notifyDeviceReset()
4758 void InputDispatcher::notifyPointerCaptureChanged(const NotifyPointerCaptureChangedArgs& args) { in notifyPointerCaptureChanged()
4777 InputEventInjectionResult InputDispatcher::injectInputEvent(const InputEvent* event, in injectInputEvent()
5046 std::unique_ptr<VerifiedInputEvent> InputDispatcher::verifyInputEvent(const InputEvent& event) { in verifyInputEvent()
5079 void InputDispatcher::setInjectionResult(const EventEntry& entry, in setInjectionResult()
5117 void InputDispatcher::transformMotionEntryForInjectionLocked( in transformMotionEntryForInjectionLocked()
5140 void InputDispatcher::incrementPendingForegroundDispatches(const EventEntry& entry) { in incrementPendingForegroundDispatches()
5146 void InputDispatcher::decrementPendingForegroundDispatches(const EventEntry& entry) { in decrementPendingForegroundDispatches()
5156 const std::vector<sp<WindowInfoHandle>>& InputDispatcher::getWindowHandlesLocked( in getWindowHandlesLocked()
5163 sp<WindowInfoHandle> InputDispatcher::getWindowHandleLocked( in getWindowHandleLocked()
5190 sp<WindowInfoHandle> InputDispatcher::getWindowHandleLocked( in getWindowHandleLocked()
5209 sp<WindowInfoHandle> InputDispatcher::getFocusedWindowHandleLocked( in getFocusedWindowHandleLocked()
5215 ui::Transform InputDispatcher::getTransformLocked(ui::LogicalDisplayId displayId) const { in getTransformLocked()
5221 bool InputDispatcher::canWindowReceiveMotionLocked(const sp<WindowInfoHandle>& window, in canWindowReceiveMotionLocked()
5283 void InputDispatcher::updateWindowHandlesForDisplayLocked( in updateWindowHandlesForDisplayLocked()
5344 void InputDispatcher::setInputWindowsLocked( in setInputWindowsLocked()
5450 void InputDispatcher::setFocusedApplication( in setFocusedApplication()
5466 void InputDispatcher::setFocusedApplicationLocked( in setFocusedApplicationLocked()
5488 void InputDispatcher::setMinTimeBetweenUserActivityPokes(std::chrono::milliseconds interval) { in setMinTimeBetweenUserActivityPokes()
5505 void InputDispatcher::setFocusedDisplay(ui::LogicalDisplayId displayId) { in setFocusedDisplay()
5561 void InputDispatcher::setInputDispatchMode(bool enabled, bool frozen) { in setInputDispatchMode()
5593 void InputDispatcher::setInputFilterEnabled(bool enabled) { in setInputFilterEnabled()
5613 bool InputDispatcher::setInTouchMode(bool inTouchMode, gui::Pid pid, gui::Uid uid, in setInTouchMode()
5652 bool InputDispatcher::focusedWindowIsOwnedByLocked(gui::Pid pid, gui::Uid uid) { in focusedWindowIsOwnedByLocked()
5661 bool InputDispatcher::recentWindowsAreOwnedByLocked(gui::Pid pid, gui::Uid uid) { in recentWindowsAreOwnedByLocked()
5670 void InputDispatcher::setMaximumObscuringOpacityForTouch(float opacity) { in setMaximumObscuringOpacityForTouch()
5681 InputDispatcher::findTouchStateWindowAndDisplayLocked(const sp<IBinder>& token) { in findTouchStateWindowAndDisplayLocked()
5692 bool InputDispatcher::transferTouchGesture(const sp<IBinder>& fromToken, const sp<IBinder>& toToken, in transferTouchGesture()
5796 sp<WindowInfoHandle> InputDispatcher::findTouchedForegroundWindowLocked( in findTouchedForegroundWindowLocked()
5822 bool InputDispatcher::transferTouchOnDisplay(const sp<IBinder>& destChannelToken, in transferTouchOnDisplay()
5846 void InputDispatcher::resetAndDropEverythingLocked(const char* reason) { in resetAndDropEverythingLocked()
5865 void InputDispatcher::logDispatchStateLocked() const { in logDispatchStateLocked()
5877 std::string InputDispatcher::dumpPointerCaptureStateLocked() const { in dumpPointerCaptureStateLocked()
5895 void InputDispatcher::dumpDispatchStateLocked(std::string& dump) const { in dumpDispatchStateLocked()
6070 void InputDispatcher::dumpMonitors(std::string& dump, const std::vector<Monitor>& monitors) const { in dumpMonitors()
6089 Result<std::unique_ptr<InputChannel>> InputDispatcher::createInputChannel(const std::string& name) { in createInputChannel()
6115 std::function<int(int events)> callback = std::bind(&InputDispatcher::handleReceiveCallback, in createInputChannel()
6127 Result<std::unique_ptr<InputChannel>> InputDispatcher::createInputMonitor( in createInputMonitor()
6155 std::function<int(int events)> callback = std::bind(&InputDispatcher::handleReceiveCallback, in createInputMonitor()
6169 status_t InputDispatcher::removeInputChannel(const sp<IBinder>& connectionToken) { in removeInputChannel()
6185 status_t InputDispatcher::removeInputChannelLocked(const sp<IBinder>& connectionToken, in removeInputChannelLocked()
6208 void InputDispatcher::removeMonitorChannelLocked(const sp<IBinder>& connectionToken) { in removeMonitorChannelLocked()
6223 status_t InputDispatcher::pilferPointers(const sp<IBinder>& token) { in pilferPointers()
6228 status_t InputDispatcher::pilferPointersLocked(const sp<IBinder>& token) { in pilferPointersLocked()
6284 void InputDispatcher::requestPointerCapture(const sp<IBinder>& windowToken, bool enabled) { in requestPointerCapture()
6324 void InputDispatcher::setDisplayEligibilityForPointerCapture(ui::LogicalDisplayId displayId, in setDisplayEligibilityForPointerCapture()
6335 std::optional<gui::Pid> InputDispatcher::findMonitorPidByTokenLocked(const sp<IBinder>& token) { in findMonitorPidByTokenLocked()
6346 std::shared_ptr<Connection> InputDispatcher::getConnectionLocked( in getConnectionLocked()
6361 std::string InputDispatcher::getConnectionNameLocked(const sp<IBinder>& connectionToken) const { in getConnectionNameLocked()
6369 void InputDispatcher::removeConnectionLocked(const std::shared_ptr<Connection>& connection) { in removeConnectionLocked()
6374 void InputDispatcher::doDispatchCycleFinishedCommand(nsecs_t finishTime, in doDispatchCycleFinishedCommand()
6448 void InputDispatcher::sendFocusChangedCommandLocked(const sp<IBinder>& oldToken, in sendFocusChangedCommandLocked()
6457 void InputDispatcher::sendDropWindowCommandLocked(const sp<IBinder>& token, float x, float y) { in sendDropWindowCommandLocked()
6465 void InputDispatcher::onAnrLocked(const std::shared_ptr<Connection>& connection) { in onAnrLocked()
6500 void InputDispatcher::onAnrLocked(std::shared_ptr<InputApplicationHandle> application) { in onAnrLocked()
6512 void InputDispatcher::updateLastAnrStateLocked(const sp<WindowInfoHandle>& window, in updateLastAnrStateLocked()
6518 void InputDispatcher::updateLastAnrStateLocked(const InputApplicationHandle& application, in updateLastAnrStateLocked()
6524 void InputDispatcher::updateLastAnrStateLocked(const std::string& windowLabel, in updateLastAnrStateLocked()
6540 void InputDispatcher::doInterceptKeyBeforeDispatchingCommand(const sp<IBinder>& focusedWindowToken, in doInterceptKeyBeforeDispatchingCommand()
6564 void InputDispatcher::sendWindowUnresponsiveCommandLocked(const sp<IBinder>& token, in sendWindowUnresponsiveCommandLocked()
6574 void InputDispatcher::sendWindowResponsiveCommandLocked(const sp<IBinder>& token, in sendWindowResponsiveCommandLocked()
6588 void InputDispatcher::processConnectionUnresponsiveLocked(const Connection& connection, in processConnectionUnresponsiveLocked()
6611 void InputDispatcher::processConnectionResponsiveLocked(const Connection& connection) { in processConnectionResponsiveLocked()
6626 std::unique_ptr<const KeyEntry> InputDispatcher::afterKeyEventLockedInterruptable( in afterKeyEventLockedInterruptable()
6830 void InputDispatcher::traceInboundQueueLengthLocked() { in traceInboundQueueLengthLocked()
6836 void InputDispatcher::traceOutboundQueueLength(const Connection& connection) { in traceOutboundQueueLength()
6845 void InputDispatcher::traceWaitQueueLength(const Connection& connection) { in traceWaitQueueLength()
6854 void InputDispatcher::dump(std::string& dump) const { in dump()
6866 void InputDispatcher::monitor() { in monitor()
6879 bool InputDispatcher::waitForIdle() const { in waitForIdle()
6905 void InputDispatcher::setFocusedWindow(const FocusRequest& request) { in setFocusedWindow()
6921 void InputDispatcher::onFocusChangedLocked( in onFocusChangedLocked()
6957 void InputDispatcher::disablePointerCaptureForcedLocked() { in disablePointerCaptureForcedLocked()
6985 void InputDispatcher::setPointerCaptureLocked(const sp<IBinder>& windowToken) { in setPointerCaptureLocked()
6995 void InputDispatcher::displayRemoved(ui::LogicalDisplayId displayId) { in displayRemoved()
7016 void InputDispatcher::onWindowInfosChanged(const gui::WindowInfosUpdate& update) { in onWindowInfosChanged()
7063 bool InputDispatcher::shouldDropInput( in shouldDropInput()
7079 void InputDispatcher::DispatcherWindowListener::onWindowInfosChanged( in onWindowInfosChanged()
7084 void InputDispatcher::cancelCurrentTouch() { in cancelCurrentTouch()
7099 void InputDispatcher::setMonitorDispatchingTimeoutForTest(std::chrono::nanoseconds timeout) { in setMonitorDispatchingTimeoutForTest()
7104 void InputDispatcher::slipWallpaperTouch(ftl::Flags<InputTarget::Flags> targetFlags, in slipWallpaperTouch()
7140 void InputDispatcher::transferWallpaperTouch( in transferWallpaperTouch()
7188 sp<WindowInfoHandle> InputDispatcher::findWallpaperWindowBelow( in findWallpaperWindowBelow()
7209 void InputDispatcher::setKeyRepeatConfiguration(std::chrono::nanoseconds timeout, in setKeyRepeatConfiguration()
7217 bool InputDispatcher::isPointerInWindow(const sp<android::IBinder>& token, in isPointerInWindow()
7235 void InputDispatcher::setInputMethodConnectionIsActive(bool isActive) { in setInputMethodConnectionIsActive()