Lines Matching refs:sp
81 explicit InputDispatcher(const sp<InputDispatcherPolicyInterface>& policy);
99 const std::vector<sp<InputWindowHandle>>& inputWindowHandles, int32_t displayId,
100 const sp<ISetInputWindowsListener>& setInputWindowsListener = nullptr) override;
102 int32_t displayId, const sp<InputApplicationHandle>& inputApplicationHandle) override;
107 virtual bool transferTouchFocus(const sp<IBinder>& fromToken,
108 const sp<IBinder>& toToken) override;
110 virtual status_t registerInputChannel(const sp<InputChannel>& inputChannel,
112 virtual status_t registerInputMonitor(const sp<InputChannel>& inputChannel, int32_t displayId,
114 virtual status_t unregisterInputChannel(const sp<InputChannel>& inputChannel) override;
115 virtual status_t pilferPointers(const sp<IBinder>& token) override;
128 sp<InputDispatcherPolicyInterface> mPolicy;
135 sp<Looper> mLooper;
170 sp<InputWindowHandle> findTouchedWindowAtLocked(int32_t displayId, int32_t x, int32_t y,
175 KeyedVector<int, sp<Connection>> mConnectionsByFd GUARDED_BY(mLock);
178 std::size_t operator()(const sp<IBinder>& b) const { in operator()
182 std::unordered_map<sp<IBinder>, sp<InputChannel>, IBinderHash> mInputChannelsByToken
186 std::optional<int32_t> findGestureMonitorDisplayByTokenLocked(const sp<IBinder>& token)
189 ssize_t getConnectionIndexLocked(const sp<InputChannel>& inputChannel) REQUIRES(mLock);
254 std::unordered_map<int32_t, std::vector<sp<InputWindowHandle>>> mWindowHandlesByDisplay
257 std::vector<sp<InputWindowHandle>> getWindowHandlesLocked(int32_t displayId) const
259 sp<InputWindowHandle> getWindowHandleLocked(const sp<IBinder>& windowHandleToken) const
261 sp<InputChannel> getInputChannelLocked(const sp<IBinder>& windowToken) const REQUIRES(mLock);
262 bool hasWindowHandleLocked(const sp<InputWindowHandle>& windowHandle) const REQUIRES(mLock);
265 std::unordered_map<int32_t, sp<InputWindowHandle>> mFocusedWindowHandlesByDisplay
272 std::unordered_map<int32_t, sp<InputApplicationHandle>> mFocusedApplicationHandlesByDisplay
306 sp<IBinder> mInputTargetWaitApplicationToken GUARDED_BY(mLock);
309 sp<InputWindowHandle> mLastHoverWindowHandle GUARDED_BY(mLock);
313 const sp<InputApplicationHandle>& applicationHandle,
314 const sp<InputWindowHandle>& windowHandle,
318 void removeWindowByTokenLocked(const sp<IBinder>& token) REQUIRES(mLock);
321 const sp<InputChannel>& inputChannel)
335 int32_t displayId, const std::vector<sp<InputWindowHandle>>& portalWindows)
341 void addWindowTargetLocked(const sp<InputWindowHandle>& windowHandle, int32_t targetFlags,
350 bool checkInjectionPermission(const sp<InputWindowHandle>& windowHandle,
352 bool isWindowObscuredAtPointLocked(const sp<InputWindowHandle>& windowHandle, int32_t x,
354 bool isWindowObscuredLocked(const sp<InputWindowHandle>& windowHandle) const REQUIRES(mLock);
355 std::string getApplicationWindowLabel(const sp<InputApplicationHandle>& applicationHandle,
356 const sp<InputWindowHandle>& windowHandle);
359 const sp<InputWindowHandle>& windowHandle,
367 void prepareDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection,
370 void enqueueDispatchEntriesLocked(nsecs_t currentTime, const sp<Connection>& connection,
373 void enqueueDispatchEntryLocked(const sp<Connection>& connection, EventEntry* eventEntry,
376 void startDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection)
378 void finishDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection,
380 void abortBrokenDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection,
387 const sp<IBinder>& newToken) REQUIRES(mLock);
396 void synthesizeCancelationEventsForInputChannelLocked(const sp<InputChannel>& channel,
399 void synthesizeCancelationEventsForConnectionLocked(const sp<Connection>& connection,
415 void removeMonitorChannelLocked(const sp<InputChannel>& inputChannel) REQUIRES(mLock);
417 const sp<InputChannel>& inputChannel,
419 status_t unregisterInputChannelLocked(const sp<InputChannel>& inputChannel, bool notify)
423 void onDispatchCycleFinishedLocked(nsecs_t currentTime, const sp<Connection>& connection,
425 void onDispatchCycleBrokenLocked(nsecs_t currentTime, const sp<Connection>& connection)
427 void onFocusChangedLocked(const sp<InputWindowHandle>& oldFocus,
428 const sp<InputWindowHandle>& newFocus) REQUIRES(mLock);
429 void onANRLocked(nsecs_t currentTime, const sp<InputApplicationHandle>& applicationHandle,
430 const sp<InputWindowHandle>& windowHandle, nsecs_t eventTime,
442 bool afterKeyEventLockedInterruptible(const sp<Connection>& connection,
445 bool afterMotionEventLockedInterruptible(const sp<Connection>& connection,
456 void traceOutboundQueueLength(const sp<Connection>& connection);
457 void traceWaitQueueLength(const sp<Connection>& connection);
459 sp<InputReporterInterface> mReporter;