From 0a1c678ca56f5361ca064d18648b2ae0eae8f310 Mon Sep 17 00:00:00 2001 From: lipan Date: Wed, 31 Jul 2024 16:24:21 +0800 Subject: [PATCH] =?UTF-8?q?oaid=E9=87=8D=E7=BD=AE=E4=B8=8A=E6=8A=A5HA?= =?UTF-8?q?=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lipan --- interfaces/kits/js/napi/oaid/src/oaid.cpp | 6 +++--- services/oaid_manager/include/oaid_service_stub.h | 2 +- .../oaid_manager/src/oaid_remote_config_observer_proxy.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/interfaces/kits/js/napi/oaid/src/oaid.cpp b/interfaces/kits/js/napi/oaid/src/oaid.cpp index ec078ef..c5a6a62 100644 --- a/interfaces/kits/js/napi/oaid/src/oaid.cpp +++ b/interfaces/kits/js/napi/oaid/src/oaid.cpp @@ -226,9 +226,9 @@ napi_value ResetOAID(napi_env env, napi_callback_info info) int32_t errorCode = Cloud::OAIDServiceClient::GetInstance()->ResetOAID(); OAID_HILOGI(OHOS::Cloud::OAID_MODULE_JS_NAPI, "ResetOAID code = %{public}d", errorCode); if (errorCode == OAID_ERROR_CODE_NOT_SYSTEM_APP) { - napi_throw_error(env, - std::to_string(errorCode).c_str(), - "Permission verification failed. A non-system application calls a system API."); + napi_throw_error( env, + std::to_string( errorCode).c_str(), + "Permission verification failed. A non-system application calls a system API." ); } if (errorCode == OAID_ERROR_NOT_IN_TRUST_LIST) { diff --git a/services/oaid_manager/include/oaid_service_stub.h b/services/oaid_manager/include/oaid_service_stub.h index 9786a26..43c16d7 100644 --- a/services/oaid_manager/include/oaid_service_stub.h +++ b/services/oaid_manager/include/oaid_service_stub.h @@ -48,7 +48,7 @@ public: private: int32_t OnGetOAID(MessageParcel& data, MessageParcel& reply); int32_t OnResetOAID(MessageParcel& data, MessageParcel& reply); - int32_t sendCode(uint32_t code,MessageParcel& data, MessageParcel& reply); + int32_t sendCode( uint32_t code, MessageParcel& data, MessageParcel& reply); int32_t HandleRegisterControlConfigObserver(MessageParcel& data, MessageParcel& reply); bool CheckPermission(const std::string &permissionName); diff --git a/services/oaid_manager/src/oaid_remote_config_observer_proxy.cpp b/services/oaid_manager/src/oaid_remote_config_observer_proxy.cpp index 46c7e61..96b0acd 100644 --- a/services/oaid_manager/src/oaid_remote_config_observer_proxy.cpp +++ b/services/oaid_manager/src/oaid_remote_config_observer_proxy.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at