status_t TransactionCallbackInvoker::finalizePendingCallbackHandles(
const std::deque<sp<CallbackHandle>>& handles, const std::vector<JankData>& jankData) {
if (handles.empty()) {
return NO_ERROR;
}
std::lock_guard lock(mMutex);
for (const auto& handle : handles) {
status_t err = finalizeCallbackHandle(handle, jankData);
if (err != NO_ERROR) {
return err;
}
}
return NO_ERROR;
}
handles
调用 TransactionCallbackInvoker::finalizeCallbackHandle()。