From 120eecad7f3dc2d284e77cd27f723579d675f5c5 Mon Sep 17 00:00:00 2001 From: l00520400 Date: Thu, 10 Feb 2022 15:42:10 +0800 Subject: [PATCH] update ipc option Signed-off-by: l00520400 Change-Id: I4a0363f8e37b0aacfdecd0c962a5a3a6c29b27f2 --- .../src/accesstoken_manager_proxy.cpp | 34 +++++++++---------- .../tokensync/src/tokensync_manager_proxy.cpp | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/interfaces/innerkits/accesstoken/src/accesstoken_manager_proxy.cpp b/interfaces/innerkits/accesstoken/src/accesstoken_manager_proxy.cpp index 0f330c8d5..a4f4fb951 100644 --- a/interfaces/innerkits/accesstoken/src/accesstoken_manager_proxy.cpp +++ b/interfaces/innerkits/accesstoken/src/accesstoken_manager_proxy.cpp @@ -48,7 +48,7 @@ int AccessTokenManagerProxy::VerifyAccessToken(AccessTokenID tokenID, const std: } MessageParcel reply; - MessageOption option; + MessageOption option(MessageOption::TF_SYNC); sptr remote = Remote(); if (remote == nullptr) { ACCESSTOKEN_LOG_ERROR(LABEL, "%{public}s: remote service null.", __func__); @@ -77,7 +77,7 @@ int AccessTokenManagerProxy::GetDefPermission( } MessageParcel reply; - MessageOption option; + MessageOption option(MessageOption::TF_SYNC); sptr remote = Remote(); if (remote == nullptr) { ACCESSTOKEN_LOG_ERROR(LABEL, "%{public}s: remote service null.", __func__); @@ -112,7 +112,7 @@ int AccessTokenManagerProxy::GetDefPermissions(AccessTokenID tokenID, } MessageParcel reply; - MessageOption option; + MessageOption option(MessageOption::TF_SYNC); sptr remote = Remote(); if (remote == nullptr) { ACCESSTOKEN_LOG_ERROR(LABEL, "%{public}s: remote service null.", __func__); @@ -152,7 +152,7 @@ int AccessTokenManagerProxy::GetReqPermissions( } MessageParcel reply; - MessageOption option; + MessageOption option(MessageOption::TF_SYNC); sptr remote = Remote(); if (remote == nullptr) { ACCESSTOKEN_LOG_ERROR(LABEL, "%{public}s: remote service null.", __func__); @@ -191,7 +191,7 @@ int AccessTokenManagerProxy::GetPermissionFlag(AccessTokenID tokenID, const std: } MessageParcel reply; - MessageOption option; + MessageOption option(MessageOption::TF_SYNC); sptr remote = Remote(); if (remote == nullptr) { ACCESSTOKEN_LOG_ERROR(LABEL, "%{public}s: remote service null.", __func__); @@ -227,7 +227,7 @@ int AccessTokenManagerProxy::GrantPermission(AccessTokenID tokenID, const std::s } MessageParcel reply; - MessageOption option; + MessageOption option(MessageOption::TF_SYNC); sptr remote = Remote(); if (remote == nullptr) { ACCESSTOKEN_LOG_ERROR(LABEL, "%{public}s: remote service null.", __func__); @@ -263,7 +263,7 @@ int AccessTokenManagerProxy::RevokePermission(AccessTokenID tokenID, const std:: } MessageParcel reply; - MessageOption option; + MessageOption option(MessageOption::TF_SYNC); sptr remote = Remote(); if (remote == nullptr) { ACCESSTOKEN_LOG_ERROR(LABEL, "%{public}s: remote service null.", __func__); @@ -291,7 +291,7 @@ int AccessTokenManagerProxy::ClearUserGrantedPermissionState(AccessTokenID token } MessageParcel reply; - MessageOption option; + MessageOption option(MessageOption::TF_SYNC); sptr remote = Remote(); if (remote == nullptr) { ACCESSTOKEN_LOG_ERROR(LABEL, "%{public}s: remote service null.", __func__); @@ -326,7 +326,7 @@ AccessTokenIDEx AccessTokenManagerProxy::AllocHapToken( } MessageParcel reply; - MessageOption option; + MessageOption option(MessageOption::TF_SYNC); sptr remote = Remote(); if (remote == nullptr) { ACCESSTOKEN_LOG_ERROR(LABEL, "%{public}s: remote service null.", __func__); @@ -358,7 +358,7 @@ int AccessTokenManagerProxy::DeleteToken(AccessTokenID tokenID) } MessageParcel reply; - MessageOption option; + MessageOption option(MessageOption::TF_SYNC); sptr remote = Remote(); if (remote == nullptr) { ACCESSTOKEN_LOG_ERROR(LABEL, "%{public}s: remote service null.", __func__); @@ -387,7 +387,7 @@ int AccessTokenManagerProxy::GetTokenType(AccessTokenID tokenID) } MessageParcel reply; - MessageOption option; + MessageOption option(MessageOption::TF_SYNC); sptr remote = Remote(); if (remote == nullptr) { ACCESSTOKEN_LOG_ERROR(LABEL, "%{public}s: remote service null.", __func__); @@ -419,7 +419,7 @@ int AccessTokenManagerProxy::CheckNativeDCap(AccessTokenID tokenID, const std::s return RET_FAILED; } MessageParcel reply; - MessageOption option; + MessageOption option(MessageOption::TF_SYNC); sptr remote = Remote(); if (remote == nullptr) { ACCESSTOKEN_LOG_ERROR(LABEL, "%{public}s: remote service null.", __func__); @@ -455,7 +455,7 @@ AccessTokenID AccessTokenManagerProxy::GetHapTokenID(int userID, const std::stri return 0; } MessageParcel reply; - MessageOption option; + MessageOption option(MessageOption::TF_SYNC); sptr remote = Remote(); if (remote == nullptr) { ACCESSTOKEN_LOG_ERROR(LABEL, "%{public}s: remote service null.", __func__); @@ -488,7 +488,7 @@ AccessTokenID AccessTokenManagerProxy::AllocLocalTokenID( return 0; } MessageParcel reply; - MessageOption option; + MessageOption option(MessageOption::TF_SYNC); sptr remote = Remote(); if (remote == nullptr) { ACCESSTOKEN_LOG_ERROR(LABEL, "%{public}s: remote service null.", __func__); @@ -516,7 +516,7 @@ int AccessTokenManagerProxy::GetNativeTokenInfo(AccessTokenID tokenID, NativeTok } MessageParcel reply; - MessageOption option; + MessageOption option(MessageOption::TF_SYNC); sptr remote = Remote(); if (remote == nullptr) { ACCESSTOKEN_LOG_ERROR(LABEL, "%{public}s: remote service null.", __func__); @@ -550,7 +550,7 @@ int AccessTokenManagerProxy::GetHapTokenInfo(AccessTokenID tokenID, HapTokenInfo } MessageParcel reply; - MessageOption option; + MessageOption option(MessageOption::TF_SYNC); sptr remote = Remote(); if (remote == nullptr) { ACCESSTOKEN_LOG_ERROR(LABEL, "%{public}s: remote service null.", __func__); @@ -590,7 +590,7 @@ int AccessTokenManagerProxy::UpdateHapToken(AccessTokenID tokenID, } MessageParcel reply; - MessageOption option; + MessageOption option(MessageOption::TF_SYNC); sptr remote = Remote(); if (remote == nullptr) { ACCESSTOKEN_LOG_ERROR(LABEL, "%{public}s: remote service null.", __func__); diff --git a/interfaces/innerkits/tokensync/src/tokensync_manager_proxy.cpp b/interfaces/innerkits/tokensync/src/tokensync_manager_proxy.cpp index f1988a60e..a7963af27 100644 --- a/interfaces/innerkits/tokensync/src/tokensync_manager_proxy.cpp +++ b/interfaces/innerkits/tokensync/src/tokensync_manager_proxy.cpp @@ -52,7 +52,7 @@ int TokenSyncManagerProxy::VerifyPermission( } MessageParcel reply; - MessageOption option; + MessageOption option(MessageOption::TF_SYNC); sptr remote = Remote(); if (remote == nullptr) { ACCESSTOKEN_LOG_ERROR(LABEL, "%{public}s: remote service null.", __func__); -- Gitee