diff options
| author | 2024-06-19 23:43:16 -0700 | |
|---|---|---|
| committer | 2024-06-19 23:47:40 -0700 | |
| commit | 4af97203832d467029744c131b29589e61fd969e (patch) | |
| tree | 50344937da2df6a1a5a8e44b80e8975185589221 /libs/input/PointerControllerContext.cpp | |
| parent | 129cf63b5206b6298cd217bd361fbcac5c85bc30 (diff) | |
| parent | 76fd35ec36f09dd53a15b5586a7b67d2a0998994 (diff) | |
Merge 24Q3 (ab/11976889) to aosp-main-future
Bug: 347831320
Merged-In: I668022c2d567a188917754d1482f227dec84dc46
Change-Id: Ib56de31f39e816581046f39ecb00557e0178f79b
Diffstat (limited to 'libs/input/PointerControllerContext.cpp')
| -rw-r--r-- | libs/input/PointerControllerContext.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/input/PointerControllerContext.cpp b/libs/input/PointerControllerContext.cpp index 15c35176afce..747eb8e5ad1b 100644 --- a/libs/input/PointerControllerContext.cpp +++ b/libs/input/PointerControllerContext.cpp @@ -138,12 +138,12 @@ int PointerControllerContext::LooperCallback::handleEvent(int /* fd */, int even return 1; // keep the callback } -void PointerControllerContext::addAnimationCallback(int32_t displayId, +void PointerControllerContext::addAnimationCallback(ui::LogicalDisplayId displayId, std::function<bool(nsecs_t)> callback) { mAnimator.addCallback(displayId, callback); } -void PointerControllerContext::removeAnimationCallback(int32_t displayId) { +void PointerControllerContext::removeAnimationCallback(ui::LogicalDisplayId displayId) { mAnimator.removeCallback(displayId); } @@ -161,14 +161,14 @@ void PointerControllerContext::PointerAnimator::initializeDisplayEventReceiver() } } -void PointerControllerContext::PointerAnimator::addCallback(int32_t displayId, +void PointerControllerContext::PointerAnimator::addCallback(ui::LogicalDisplayId displayId, std::function<bool(nsecs_t)> callback) { std::scoped_lock lock(mLock); mLocked.callbacks[displayId] = callback; startAnimationLocked(); } -void PointerControllerContext::PointerAnimator::removeCallback(int32_t displayId) { +void PointerControllerContext::PointerAnimator::removeCallback(ui::LogicalDisplayId displayId) { std::scoped_lock lock(mLock); auto it = mLocked.callbacks.find(displayId); if (it == mLocked.callbacks.end()) { |