From a1bd9c97f20f4a6e8080b8701cfb13793e98dade Mon Sep 17 00:00:00 2001 From: XKK Date: Mon, 17 Jul 2023 16:30:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: XKK --- frameworks/ans/src/push_callback_stub.cpp | 3 ++- frameworks/core/src/ans_manager_stub.cpp | 1 - services/ans/src/notification_subscriber_manager.cpp | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frameworks/ans/src/push_callback_stub.cpp b/frameworks/ans/src/push_callback_stub.cpp index 76e179507..1cfcae389 100644 --- a/frameworks/ans/src/push_callback_stub.cpp +++ b/frameworks/ans/src/push_callback_stub.cpp @@ -88,7 +88,8 @@ bool PushCallBackProxy::OnCheckNotification(const std::string ¬ificationData) return false; } - int error = remote->SendRequest(static_cast(NotificationInterfaceCode::ON_CHECK_NOTIFICATION), data, reply, option); + int error = remote->SendRequest(static_cast(NotificationInterfaceCode::ON_CHECK_NOTIFICATION), + data, reply, option); if (error != NO_ERROR) { ANS_LOGE("Connect done fail, error: %{public}d", error); return false; diff --git a/frameworks/core/src/ans_manager_stub.cpp b/frameworks/core/src/ans_manager_stub.cpp index 1ac0f75a4..7fd70d812 100644 --- a/frameworks/core/src/ans_manager_stub.cpp +++ b/frameworks/core/src/ans_manager_stub.cpp @@ -797,7 +797,6 @@ ErrCode AnsManagerStub::HandleRemoveAllNotifications(MessageParcel &data, Messag ErrCode AnsManagerStub::HandleRemoveNotifications(MessageParcel &data, MessageParcel &reply) { - int32_t keysSize = 0; if (!data.ReadInt32(keysSize)) { ANS_LOGE("read keys size failed."); diff --git a/services/ans/src/notification_subscriber_manager.cpp b/services/ans/src/notification_subscriber_manager.cpp index 65590d92f..1d641b3c2 100644 --- a/services/ans/src/notification_subscriber_manager.cpp +++ b/services/ans/src/notification_subscriber_manager.cpp @@ -89,7 +89,7 @@ ErrCode NotificationSubscriberManager::AddSubscriber( ffrt::task_handle handler = notificationSubQueue_->submit_h(std::bind([this, &subscriber, &subInfo, &result]() { ANS_LOGE("ffrt enter!"); result = this->AddSubscriberInner(subscriber, subInfo); - }));/*, AppExecFwk::EventQueue::Priority::HIGH*/ + })); notificationSubQueue_->wait(handler); ANS_LOGE("ffrt end!"); return result; @@ -114,7 +114,7 @@ ErrCode NotificationSubscriberManager::RemoveSubscriber( &subscribeInfo, &result]() { ANS_LOGE("ffrt enter!"); result = this->RemoveSubscriberInner(subscriber, subscribeInfo); - }));/*, AppExecFwk::EventQueue::Priority::HIGH*/ + })); notificationSubQueue_->wait(handler); ANS_LOGE("ffrt end!"); return result; @@ -225,7 +225,7 @@ void NotificationSubscriberManager::OnRemoteDied(const wptr &obje ANS_LOGW("subscriber removed."); subscriberRecordList_.remove(record); } - }));/*, AppExecFwk::EventQueue::Priority::HIGH*/ + })); ANS_LOGE("ffrt start!"); notificationSubQueue_->wait(handler); ANS_LOGE("ffrt end!"); -- Gitee