diff options
| author | 2023-06-09 23:48:09 +0000 | |
|---|---|---|
| committer | 2023-06-09 23:48:09 +0000 | |
| commit | df0d10da151c62fe2c8a4ef8ff7ca0d1ae100051 (patch) | |
| tree | 4677f56fd92039fa1f1dd0d1111e56de4b8ad76b | |
| parent | ad22bb7bca4f8bca3a135c7f0e7803b5590af263 (diff) | |
| parent | ced952ffe48d0c2b38ee79303c3689dfe18f7204 (diff) | |
[conflict] Merge "InputDispatcher: fix code for clang update" am: 2bde961aeb am: 8e0107a753 am: bca972ba6d am: ced952ffe4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/23643790
Change-Id: I49ce34c8d5ba53ab7ca7213bf868613cb7b05a4b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | services/inputflinger/dispatcher/InputDispatcher.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/services/inputflinger/dispatcher/InputDispatcher.cpp b/services/inputflinger/dispatcher/InputDispatcher.cpp index fbbb38835a..0fb79d59fc 100644 --- a/services/inputflinger/dispatcher/InputDispatcher.cpp +++ b/services/inputflinger/dispatcher/InputDispatcher.cpp @@ -6190,9 +6190,9 @@ void InputDispatcher::onAnrLocked(std::shared_ptr<InputApplicationHandle> applic StringPrintf("%s does not have a focused window", application->getName().c_str()); updateLastAnrStateLocked(*application, reason); - auto command = [this, application = std::move(application)]() REQUIRES(mLock) { + auto command = [this, app = std::move(application)]() REQUIRES(mLock) { scoped_unlock unlock(mLock); - mPolicy.notifyNoFocusedWindowAnr(application); + mPolicy.notifyNoFocusedWindowAnr(app); }; postCommandLocked(std::move(command)); } @@ -6252,9 +6252,9 @@ void InputDispatcher::doInterceptKeyBeforeDispatchingCommand(const sp<IBinder>& void InputDispatcher::sendWindowUnresponsiveCommandLocked(const sp<IBinder>& token, std::optional<int32_t> pid, std::string reason) { - auto command = [this, token, pid, reason = std::move(reason)]() REQUIRES(mLock) { + auto command = [this, token, pid, r = std::move(reason)]() REQUIRES(mLock) { scoped_unlock unlock(mLock); - mPolicy.notifyWindowUnresponsive(token, pid, reason); + mPolicy.notifyWindowUnresponsive(token, pid, r); }; postCommandLocked(std::move(command)); } |