From 219cefec53a6367aced2deae3f94229704953230 Mon Sep 17 00:00:00 2001 From: chennian Date: Thu, 30 Jun 2022 12:41:00 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=89=B9=E6=88=98=E9=98=9F=E6=A3=80?= =?UTF-8?q?=E8=A7=86=E6=84=8F=E8=A7=81=E4=BF=AE=E6=94=B9=20Signed-off-by:c?= =?UTF-8?q?hennian?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chennian --- frameworks/privacy/BUILD.gn | 2 +- .../include/bundle_used_record_parcel.h | 2 +- .../privacy/include/i_privacy_manager.h | 2 +- .../include/permission_used_record_parcel.h | 2 +- .../include/permission_used_request_parcel.h | 2 +- .../include/permission_used_result_parcel.h | 2 +- .../include/used_record_detail_parcel.h | 2 +- .../privacy/src/bundle_used_record_parcel.cpp | 4 ++-- .../src/permission_used_record_parcel.cpp | 6 ++--- .../src/permission_used_request_parcel.cpp | 4 ++-- .../src/permission_used_result_parcel.cpp | 4 ++-- .../privacy/src/used_record_detail_parcel.cpp | 2 +- .../src/accesstoken_manager_client.cpp | 10 ++++----- .../src/accesstoken_manager_proxy.cpp | 4 ++-- interfaces/innerkits/privacy/BUILD.gn | 2 +- .../on_permission_used_record_callback.h | 2 +- .../privacy/include/permission_used_request.h | 2 +- .../privacy/include/permission_used_result.h | 2 +- .../innerkits/privacy/include/privacy_kit.h | 2 +- .../innerkits/privacy/src/privacy_kit.cpp | 2 +- .../privacy/src/privacy_manager_client.cpp | 2 +- .../privacy/src/privacy_manager_client.h | 2 +- .../privacy/src/privacy_manager_proxy.cpp | 2 +- .../privacy/src/privacy_manager_proxy.h | 2 +- interfaces/innerkits/privacy/test/BUILD.gn | 2 +- .../test/unittest/src/privacy_kit_test.h | 2 +- interfaces/kits/privacy/BUILD.gn | 2 +- .../include/permission_record_manager_napi.h | 2 +- .../main/cpp/src/database/sqlite_storage.cpp | 16 +++++++------- .../permission_definition_cache.cpp | 2 +- .../cpp/src/permission/permission_manager.cpp | 6 ++--- .../src/permission/permission_policy_set.cpp | 12 +++++----- .../service/accesstoken_manager_service.cpp | 8 +++---- .../src/service/accesstoken_manager_stub.cpp | 8 +++---- .../src/token/accesstoken_info_manager.cpp | 4 ++-- .../accesstoken_remote_token_manager.cpp | 4 ++-- .../cpp/src/token/native_token_receptor.cpp | 2 +- services/privacymanager/BUILD.gn | 2 +- .../privacymanager/include/common/constant.h | 2 +- .../privacymanager/include/common/time_util.h | 2 +- .../privacymanager/include/common/to_string.h | 2 +- .../include/database/data_translator.h | 2 +- .../database/permission_used_record_db.h | 2 +- ...on_permission_used_record_callback_proxy.h | 2 +- .../on_permission_used_record_callback_stub.h | 2 +- .../include/record/permission_record.h | 2 +- .../record/permission_record_manager.h | 2 +- .../record/permission_record_repository.h | 2 +- .../include/record/permission_visitor.h | 2 +- .../record/permission_visitor_repository.h | 2 +- .../include/service/privacy_manager_service.h | 2 +- .../include/service/privacy_manager_stub.h | 2 +- services/privacymanager/sa_profile/3505.xml | 2 +- services/privacymanager/sa_profile/BUILD.gn | 2 +- .../privacymanager/src/common/constant.cpp | 2 +- .../privacymanager/src/common/time_util.cpp | 4 ++-- .../privacymanager/src/common/to_string.cpp | 8 +++---- .../src/database/data_translator.cpp | 4 ++-- .../database/permission_used_record_db.cpp | 22 +++++++++---------- ..._permission_used_record_callback_proxy.cpp | 2 +- ...n_permission_used_record_callback_stub.cpp | 2 +- .../src/record/permission_record.cpp | 2 +- .../src/record/permission_record_manager.cpp | 14 ++++++------ .../record/permission_record_repository.cpp | 2 +- .../src/record/permission_visitor.cpp | 2 +- .../record/permission_visitor_repository.cpp | 2 +- .../src/service/privacy_manager_service.cpp | 2 +- .../src/service/privacy_manager_stub.cpp | 2 +- .../add_permission_used_record_test.h | 2 +- .../src/command/base_remote_command.cpp | 10 ++++----- .../sync_remote_native_token_command.cpp | 4 ++-- .../src/remote/remote_command_executor.cpp | 2 +- .../soft_bus_device_connection_listener.cpp | 2 +- .../src/remote/soft_bus_manager.cpp | 2 +- .../service/token_sync_manager_service.cpp | 4 ++-- 75 files changed, 134 insertions(+), 134 deletions(-) diff --git a/frameworks/privacy/BUILD.gn b/frameworks/privacy/BUILD.gn index de6e65926..e0106a79d 100644 --- a/frameworks/privacy/BUILD.gn +++ b/frameworks/privacy/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2022 Huawei Device Co., Ltd. +# Copyright (c) 2022 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 diff --git a/frameworks/privacy/include/bundle_used_record_parcel.h b/frameworks/privacy/include/bundle_used_record_parcel.h index e181853dc..ce8e57ded 100644 --- a/frameworks/privacy/include/bundle_used_record_parcel.h +++ b/frameworks/privacy/include/bundle_used_record_parcel.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/frameworks/privacy/include/i_privacy_manager.h b/frameworks/privacy/include/i_privacy_manager.h index dbd249111..8ee5f3fba 100644 --- a/frameworks/privacy/include/i_privacy_manager.h +++ b/frameworks/privacy/include/i_privacy_manager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/frameworks/privacy/include/permission_used_record_parcel.h b/frameworks/privacy/include/permission_used_record_parcel.h index 7e8377160..9282910c8 100644 --- a/frameworks/privacy/include/permission_used_record_parcel.h +++ b/frameworks/privacy/include/permission_used_record_parcel.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/frameworks/privacy/include/permission_used_request_parcel.h b/frameworks/privacy/include/permission_used_request_parcel.h index c0d10966a..1cf489939 100644 --- a/frameworks/privacy/include/permission_used_request_parcel.h +++ b/frameworks/privacy/include/permission_used_request_parcel.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/frameworks/privacy/include/permission_used_result_parcel.h b/frameworks/privacy/include/permission_used_result_parcel.h index 0af1a6631..5a74e91a6 100644 --- a/frameworks/privacy/include/permission_used_result_parcel.h +++ b/frameworks/privacy/include/permission_used_result_parcel.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/frameworks/privacy/include/used_record_detail_parcel.h b/frameworks/privacy/include/used_record_detail_parcel.h index 460a5d40e..56410d586 100644 --- a/frameworks/privacy/include/used_record_detail_parcel.h +++ b/frameworks/privacy/include/used_record_detail_parcel.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/frameworks/privacy/src/bundle_used_record_parcel.cpp b/frameworks/privacy/src/bundle_used_record_parcel.cpp index f817e1fef..179ea569a 100644 --- a/frameworks/privacy/src/bundle_used_record_parcel.cpp +++ b/frameworks/privacy/src/bundle_used_record_parcel.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 @@ -28,7 +28,7 @@ bool BundleUsedRecordParcel::Marshalling(Parcel& out) const RETURN_IF_FALSE(out.WriteString(this->bundleRecord.bundleName)); RETURN_IF_FALSE(out.WriteInt32((int32_t)(this->bundleRecord.permissionRecords.size()))); - for (auto permRecord : this->bundleRecord.permissionRecords) { + for (const auto& permRecord : this->bundleRecord.permissionRecords) { PermissionUsedRecordParcel permRecordParcel; permRecordParcel.permissionRecord = permRecord; out.WriteParcelable(&permRecordParcel); diff --git a/frameworks/privacy/src/permission_used_record_parcel.cpp b/frameworks/privacy/src/permission_used_record_parcel.cpp index 021b1435e..a2a7a1e94 100644 --- a/frameworks/privacy/src/permission_used_record_parcel.cpp +++ b/frameworks/privacy/src/permission_used_record_parcel.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 @@ -30,14 +30,14 @@ bool PermissionUsedRecordParcel::Marshalling(Parcel& out) const RETURN_IF_FALSE(out.WriteInt64(this->permissionRecord.lastAccessDuration)); RETURN_IF_FALSE(out.WriteInt32((int32_t)(this->permissionRecord.accessRecords.size()))); - for (auto accRecord : this->permissionRecord.accessRecords) { + for (const auto& accRecord : this->permissionRecord.accessRecords) { UsedRecordDetailParcel detailParcel; detailParcel.detail = accRecord; out.WriteParcelable(&detailParcel); } RETURN_IF_FALSE(out.WriteInt32((int32_t)(this->permissionRecord.rejectRecords.size()))); - for (auto rejRecord : this->permissionRecord.rejectRecords) { + for (const auto& rejRecord : this->permissionRecord.rejectRecords) { UsedRecordDetailParcel detailParcel; detailParcel.detail = rejRecord; out.WriteParcelable(&detailParcel); diff --git a/frameworks/privacy/src/permission_used_request_parcel.cpp b/frameworks/privacy/src/permission_used_request_parcel.cpp index 96915ff03..e4eac2bce 100644 --- a/frameworks/privacy/src/permission_used_request_parcel.cpp +++ b/frameworks/privacy/src/permission_used_request_parcel.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 @@ -27,7 +27,7 @@ bool PermissionUsedRequestParcel::Marshalling(Parcel& out) const RETURN_IF_FALSE(out.WriteString(this->request.bundleName)); RETURN_IF_FALSE(out.WriteInt32((int32_t)(this->request.permissionList.size()))); - for (auto perm : this->request.permissionList) { + for (const auto& perm : this->request.permissionList) { RETURN_IF_FALSE(out.WriteString(perm)); } RETURN_IF_FALSE(out.WriteInt64(this->request.beginTimeMillis)); diff --git a/frameworks/privacy/src/permission_used_result_parcel.cpp b/frameworks/privacy/src/permission_used_result_parcel.cpp index 0ca67c4b1..88f9abf57 100644 --- a/frameworks/privacy/src/permission_used_result_parcel.cpp +++ b/frameworks/privacy/src/permission_used_result_parcel.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 @@ -26,7 +26,7 @@ bool PermissionUsedResultParcel::Marshalling(Parcel& out) const RETURN_IF_FALSE(out.WriteInt64(this->result.endTimeMillis)); RETURN_IF_FALSE(out.WriteInt32((int32_t)(this->result.bundleRecords.size()))); - for (auto bundRecord : this->result.bundleRecords) { + for (const auto& bundRecord : this->result.bundleRecords) { BundleUsedRecordParcel bundleParcel; bundleParcel.bundleRecord = bundRecord; out.WriteParcelable(&bundleParcel); diff --git a/frameworks/privacy/src/used_record_detail_parcel.cpp b/frameworks/privacy/src/used_record_detail_parcel.cpp index 9785cf45b..d59512b67 100644 --- a/frameworks/privacy/src/used_record_detail_parcel.cpp +++ b/frameworks/privacy/src/used_record_detail_parcel.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/interfaces/innerkits/accesstoken/src/accesstoken_manager_client.cpp b/interfaces/innerkits/accesstoken/src/accesstoken_manager_client.cpp index 855fe52ab..7f8804433 100644 --- a/interfaces/innerkits/accesstoken/src/accesstoken_manager_client.cpp +++ b/interfaces/innerkits/accesstoken/src/accesstoken_manager_client.cpp @@ -91,7 +91,7 @@ int AccessTokenManagerClient::GetDefPermissions(AccessTokenID tokenID, std::vect } std::vector parcelList; int result = proxy->GetDefPermissions(tokenID, parcelList); - for (auto permParcel : parcelList) { + for (const auto& permParcel : parcelList) { PermissionDef perm = permParcel.permissionDef; permList.emplace_back(perm); } @@ -109,7 +109,7 @@ int AccessTokenManagerClient::GetReqPermissions( } std::vector parcelList; int result = proxy->GetReqPermissions(tokenID, parcelList, isSystemGrant); - for (auto permParcel : parcelList) { + for (const auto& permParcel : parcelList) { PermissionStateFull perm = permParcel.permStatFull; reqPermList.emplace_back(perm); } @@ -145,7 +145,7 @@ PermissionOper AccessTokenManagerClient::GetSelfPermissionsState( std::vector parcelList; - for (auto perm : permList) { + for (const auto& perm : permList) { PermissionListStateParcel permParcel; permParcel.permsState = perm; parcelList.emplace_back(permParcel); @@ -338,7 +338,7 @@ int AccessTokenManagerClient::GetAllNativeTokenInfo(std::vector parcelList; int result = proxy->GetAllNativeTokenInfo(parcelList); - for (auto nativeTokenParcel : parcelList) { + for (const auto& nativeTokenParcel : parcelList) { NativeTokenInfoForSync native = nativeTokenParcel.nativeTokenInfoForSyncParams; nativeTokenInfosRes.emplace_back(native); } @@ -372,7 +372,7 @@ int AccessTokenManagerClient::SetRemoteNativeTokenInfo(const std::string& device return RET_FAILED; } std::vector nativeTokenInfoParcels; - for (auto native : nativeTokenInfoList) { + for (const auto& native : nativeTokenInfoList) { NativeTokenInfoForSyncParcel nativeTokenInfoForSyncParcel; nativeTokenInfoForSyncParcel.nativeTokenInfoForSyncParams = native; nativeTokenInfoParcels.emplace_back(nativeTokenInfoForSyncParcel); diff --git a/interfaces/innerkits/accesstoken/src/accesstoken_manager_proxy.cpp b/interfaces/innerkits/accesstoken/src/accesstoken_manager_proxy.cpp index 8e891aef2..d8fd1e7e8 100644 --- a/interfaces/innerkits/accesstoken/src/accesstoken_manager_proxy.cpp +++ b/interfaces/innerkits/accesstoken/src/accesstoken_manager_proxy.cpp @@ -258,7 +258,7 @@ PermissionOper AccessTokenManagerProxy::GetSelfPermissionsState( ACCESSTOKEN_LOG_ERROR(LABEL, "Failed to write permListParcel size."); return INVALID_OPER; } - for (auto permission : permListParcel) { + for (const auto& permission : permListParcel) { if (!data.WriteParcelable(&permission)) { ACCESSTOKEN_LOG_ERROR(LABEL, "Failed to write permListParcel."); return INVALID_OPER; @@ -814,7 +814,7 @@ int AccessTokenManagerProxy::SetRemoteNativeTokenInfo(const std::string& deviceI if (!data.WriteUint32(nativeTokenInfoForSyncParcel.size())) { return RET_FAILED; } - for (NativeTokenInfoForSyncParcel& parcel : nativeTokenInfoForSyncParcel) { + for (const NativeTokenInfoForSyncParcel& parcel : nativeTokenInfoForSyncParcel) { if (!data.WriteParcelable(&parcel)) { return RET_FAILED; } diff --git a/interfaces/innerkits/privacy/BUILD.gn b/interfaces/innerkits/privacy/BUILD.gn index 9cb3efde6..044a1a680 100644 --- a/interfaces/innerkits/privacy/BUILD.gn +++ b/interfaces/innerkits/privacy/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2022 Huawei Device Co., Ltd. +# Copyright (c) 2022 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 diff --git a/interfaces/innerkits/privacy/include/on_permission_used_record_callback.h b/interfaces/innerkits/privacy/include/on_permission_used_record_callback.h index d137770e2..acb51194f 100644 --- a/interfaces/innerkits/privacy/include/on_permission_used_record_callback.h +++ b/interfaces/innerkits/privacy/include/on_permission_used_record_callback.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/interfaces/innerkits/privacy/include/permission_used_request.h b/interfaces/innerkits/privacy/include/permission_used_request.h index 9dbda8c35..1fcdd9f2d 100644 --- a/interfaces/innerkits/privacy/include/permission_used_request.h +++ b/interfaces/innerkits/privacy/include/permission_used_request.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/interfaces/innerkits/privacy/include/permission_used_result.h b/interfaces/innerkits/privacy/include/permission_used_result.h index 48284122d..c52a1ccd6 100644 --- a/interfaces/innerkits/privacy/include/permission_used_result.h +++ b/interfaces/innerkits/privacy/include/permission_used_result.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/interfaces/innerkits/privacy/include/privacy_kit.h b/interfaces/innerkits/privacy/include/privacy_kit.h index d46a6351b..b3fb9a4d1 100644 --- a/interfaces/innerkits/privacy/include/privacy_kit.h +++ b/interfaces/innerkits/privacy/include/privacy_kit.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/interfaces/innerkits/privacy/src/privacy_kit.cpp b/interfaces/innerkits/privacy/src/privacy_kit.cpp index 75ef66a5f..1693faa03 100644 --- a/interfaces/innerkits/privacy/src/privacy_kit.cpp +++ b/interfaces/innerkits/privacy/src/privacy_kit.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/interfaces/innerkits/privacy/src/privacy_manager_client.cpp b/interfaces/innerkits/privacy/src/privacy_manager_client.cpp index 306b01786..495f5b42a 100644 --- a/interfaces/innerkits/privacy/src/privacy_manager_client.cpp +++ b/interfaces/innerkits/privacy/src/privacy_manager_client.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/interfaces/innerkits/privacy/src/privacy_manager_client.h b/interfaces/innerkits/privacy/src/privacy_manager_client.h index 9c838bc9b..c43bd9dd1 100644 --- a/interfaces/innerkits/privacy/src/privacy_manager_client.h +++ b/interfaces/innerkits/privacy/src/privacy_manager_client.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/interfaces/innerkits/privacy/src/privacy_manager_proxy.cpp b/interfaces/innerkits/privacy/src/privacy_manager_proxy.cpp index 214d467e5..b8224d258 100644 --- a/interfaces/innerkits/privacy/src/privacy_manager_proxy.cpp +++ b/interfaces/innerkits/privacy/src/privacy_manager_proxy.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/interfaces/innerkits/privacy/src/privacy_manager_proxy.h b/interfaces/innerkits/privacy/src/privacy_manager_proxy.h index 1f5e8c869..1ed65c128 100644 --- a/interfaces/innerkits/privacy/src/privacy_manager_proxy.h +++ b/interfaces/innerkits/privacy/src/privacy_manager_proxy.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/interfaces/innerkits/privacy/test/BUILD.gn b/interfaces/innerkits/privacy/test/BUILD.gn index 2fdae0da4..b7401c066 100644 --- a/interfaces/innerkits/privacy/test/BUILD.gn +++ b/interfaces/innerkits/privacy/test/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2022 Huawei Device Co., Ltd. +# Copyright (c) 2022 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 diff --git a/interfaces/innerkits/privacy/test/unittest/src/privacy_kit_test.h b/interfaces/innerkits/privacy/test/unittest/src/privacy_kit_test.h index f36a4a7b8..03729b708 100644 --- a/interfaces/innerkits/privacy/test/unittest/src/privacy_kit_test.h +++ b/interfaces/innerkits/privacy/test/unittest/src/privacy_kit_test.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/interfaces/kits/privacy/BUILD.gn b/interfaces/kits/privacy/BUILD.gn index cdac30fc1..2be5556d3 100644 --- a/interfaces/kits/privacy/BUILD.gn +++ b/interfaces/kits/privacy/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2022 Huawei Device Co., Ltd. +# Copyright (c) 2022 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 diff --git a/interfaces/kits/privacy/napi/include/permission_record_manager_napi.h b/interfaces/kits/privacy/napi/include/permission_record_manager_napi.h index adeb0b899..0fa8eb31e 100644 --- a/interfaces/kits/privacy/napi/include/permission_record_manager_napi.h +++ b/interfaces/kits/privacy/napi/include/permission_record_manager_napi.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/services/accesstokenmanager/main/cpp/src/database/sqlite_storage.cpp b/services/accesstokenmanager/main/cpp/src/database/sqlite_storage.cpp index 79c4e40b7..ed72bd2d8 100644 --- a/services/accesstokenmanager/main/cpp/src/database/sqlite_storage.cpp +++ b/services/accesstokenmanager/main/cpp/src/database/sqlite_storage.cpp @@ -105,9 +105,9 @@ int SqliteStorage::Add(const DataType type, const std::vector& va auto statement = Prepare(prepareSql); BeginTransaction(); bool isExecuteSuccessfully = true; - for (auto value : values) { + for (const auto& value : values) { std::vector columnNames = value.GetAllKeys(); - for (auto columnName : columnNames) { + for (const auto& columnName : columnNames) { statement.Bind(columnName, value.Get(columnName)); } int ret = statement.Step(); @@ -133,7 +133,7 @@ int SqliteStorage::Remove(const DataType type, const GenericValues& conditions) std::vector columnNames = conditions.GetAllKeys(); std::string prepareSql = CreateDeletePrepareSqlCmd(type, columnNames); auto statement = Prepare(prepareSql); - for (auto columnName : columnNames) { + for (const auto& columnName : columnNames) { statement.Bind(columnName, conditions.Get(columnName)); } int ret = statement.Step(); @@ -147,10 +147,10 @@ int SqliteStorage::Modify(const DataType type, const GenericValues& modifyValues std::vector conditionColumns = conditions.GetAllKeys(); std::string prepareSql = CreateUpdatePrepareSqlCmd(type, modifyColumns, conditionColumns); auto statement = Prepare(prepareSql); - for (auto columnName : modifyColumns) { + for (const auto& columnName : modifyColumns) { statement.Bind(columnName, modifyValues.Get(columnName)); } - for (auto columnName : conditionColumns) { + for (const auto& columnName : conditionColumns) { statement.Bind(columnName, conditions.Get(columnName)); } int ret = statement.Step(); @@ -182,9 +182,9 @@ int SqliteStorage::RefreshAll(const DataType type, const std::vector columnNames = value.GetAllKeys(); - for (auto columnName : columnNames) { + for (const auto& columnName : columnNames) { insertStatement.Bind(columnName, value.Get(columnName)); } int ret = insertStatement.Step(); @@ -232,7 +232,7 @@ std::string SqliteStorage::CreateDeletePrepareSqlCmd( return std::string(); } std::string sql = "delete from " + it->second.tableName_ + " where 1 = 1"; - for (auto columnName : columnNames) { + for (const auto& columnName : columnNames) { sql.append(" and "); sql.append(columnName + "=:" + columnName); } diff --git a/services/accesstokenmanager/main/cpp/src/permission/permission_definition_cache.cpp b/services/accesstokenmanager/main/cpp/src/permission/permission_definition_cache.cpp index f42be2191..932c6515b 100644 --- a/services/accesstokenmanager/main/cpp/src/permission/permission_definition_cache.cpp +++ b/services/accesstokenmanager/main/cpp/src/permission/permission_definition_cache.cpp @@ -150,7 +150,7 @@ void PermissionDefinitionCache::GetDefPermissionsByTokenId(std::vector& permDefRes) { std::vector permDataList; - for (GenericValues& defValue : permDefRes) { + for (const GenericValues& defValue : permDefRes) { PermissionDef def; AccessTokenID tokenId = (AccessTokenID)defValue.GetInt(FIELD_TOKEN_ID); int32_t ret = DataTranslator::TranslationIntoPermissionDef(defValue, def); diff --git a/services/accesstokenmanager/main/cpp/src/permission/permission_manager.cpp b/services/accesstokenmanager/main/cpp/src/permission/permission_manager.cpp index 984a4afe2..75db81996 100644 --- a/services/accesstokenmanager/main/cpp/src/permission/permission_manager.cpp +++ b/services/accesstokenmanager/main/cpp/src/permission/permission_manager.cpp @@ -51,7 +51,7 @@ void PermissionManager::AddDefPermissions(const std::vector& perm std::vector permFilterList; PermissionValidator::FilterInvalidPermissionDef(permList, permFilterList); - for (auto perm : permFilterList) { + for (const auto& perm : permFilterList) { if (!PermissionValidator::IsPermissionDefValid(perm)) { ACCESSTOKEN_LOG_INFO(LABEL, "invalid permission definition info: %{public}s", TransferPermissionDefToString(perm).c_str()); @@ -224,7 +224,7 @@ int PermissionManager::GetReqPermissions( GrantMode mode = isSystemGrant ? SYSTEM_GRANT : USER_GRANT; std::vector tmpList; permPolicySet->GetPermissionStateFulls(tmpList); - for (auto perm : tmpList) { + for (const auto& perm : tmpList) { PermissionDef permDef; GetDefPermission(perm.permissionName, permDef); if (permDef.grantMode == mode) { @@ -240,7 +240,7 @@ void PermissionManager::GetSelfPermissionState(std::vector bool foundGoal = false; int32_t goalGrantStatus; uint32_t goalGrantFlags; - for (auto& perm : permsList) { + for (const auto& perm : permsList) { if (perm.permissionName == permState.permissionName) { ACCESSTOKEN_LOG_INFO(LABEL, "find goal permission: %{public}s!", permState.permissionName.c_str()); diff --git a/services/accesstokenmanager/main/cpp/src/permission/permission_policy_set.cpp b/services/accesstokenmanager/main/cpp/src/permission/permission_policy_set.cpp index 06396f982..f2144a11a 100644 --- a/services/accesstokenmanager/main/cpp/src/permission/permission_policy_set.cpp +++ b/services/accesstokenmanager/main/cpp/src/permission/permission_policy_set.cpp @@ -82,7 +82,7 @@ std::shared_ptr PermissionPolicySet::RestorePermissionPolic } policySet->tokenId_ = tokenId; - for (GenericValues stateValue : permStateRes) { + for (const GenericValues& stateValue : permStateRes) { if ((AccessTokenID)stateValue.GetInt(FIELD_TOKEN_ID) == tokenId) { PermissionStateFull state; int ret = DataTranslator::TranslationIntoPermissionStateFull(stateValue, state); @@ -112,7 +112,7 @@ void PermissionPolicySet::MergePermissionStateFull(std::vector& valueList) const { - for (auto permissionState : permStateList_) { + for (const auto& permissionState : permStateList_) { if (permissionState.isGeneral) { GenericValues genericValues; genericValues.Put(FIELD_TOKEN_ID, (int)tokenId_); @@ -140,7 +140,7 @@ void PermissionPolicySet::StorePermissionPolicySet(std::vector& p int PermissionPolicySet::VerifyPermissStatus(const std::string& permissionName) { Utils::UniqueReadGuard infoGuard(this->permPolicySetLock_); - for (auto perm : permStateList_) { + for (const auto& perm : permStateList_) { if (perm.permissionName == permissionName) { if (perm.isGeneral) { return perm.grantStatus[0]; @@ -166,7 +166,7 @@ void PermissionPolicySet::GetPermissionStateFulls(std::vector infoGuard(this->permPolicySetLock_); - for (auto perm : permStateList_) { + for (const auto& perm : permStateList_) { if (perm.permissionName == permissionName) { if (perm.isGeneral) { uint32_t oldFlag = static_cast(perm.grantFlags[0]); @@ -222,7 +222,7 @@ void PermissionPolicySet::ResetUserGrantPermissionStatus(void) void PermissionPolicySet::GetPermissionStateList(std::vector& stateList) { Utils::UniqueReadGuard infoGuard(this->permPolicySetLock_); - for (auto& state : permStateList_) { + for (const auto& state : permStateList_) { stateList.emplace_back(state); } } @@ -349,7 +349,7 @@ void PermissionPolicySet::PermStateToString(int32_t tokenApl, } info.append("\n ]\n"); - if (invalidPermList.size() == 0) { + if (invalidPermList.empty()) { return; } diff --git a/services/accesstokenmanager/main/cpp/src/service/accesstoken_manager_service.cpp b/services/accesstokenmanager/main/cpp/src/service/accesstoken_manager_service.cpp index 24fcdf6aa..b55f467d2 100644 --- a/services/accesstokenmanager/main/cpp/src/service/accesstoken_manager_service.cpp +++ b/services/accesstokenmanager/main/cpp/src/service/accesstoken_manager_service.cpp @@ -112,7 +112,7 @@ int AccessTokenManagerService::GetDefPermissions(AccessTokenID tokenID, std::vec ACCESSTOKEN_LOG_INFO(LABEL, "called, tokenID: 0x%{public}x", tokenID); std::vector permVec; int ret = PermissionManager::GetInstance().GetDefPermissions(tokenID, permVec); - for (auto perm : permVec) { + for (const auto& perm : permVec) { PermissionDefParcel permPrcel; permPrcel.permissionDef = perm; permList.emplace_back(permPrcel); @@ -128,7 +128,7 @@ int AccessTokenManagerService::GetReqPermissions( std::vector permList; int ret = PermissionManager::GetInstance().GetReqPermissions(tokenID, permList, isSystemGrant); - for (auto& perm : permList) { + for (const auto& perm : permList) { PermissionStateFullParcel permPrcel; permPrcel.permStatFull = perm; reqPermList.emplace_back(permPrcel); @@ -291,7 +291,7 @@ int AccessTokenManagerService::GetAllNativeTokenInfo(std::vector nativeVec; AccessTokenInfoManager::GetInstance().GetAllNativeTokenInfo(nativeVec); - for (auto& native : nativeVec) { + for (const auto& native : nativeVec) { NativeTokenInfoForSyncParcel nativeParcel; nativeParcel.nativeTokenInfoForSyncParams = native; nativeTokenInfosRes.emplace_back(nativeParcel); @@ -316,7 +316,7 @@ int AccessTokenManagerService::SetRemoteNativeTokenInfo(const std::string& devic std::vector nativeList; - for (auto& nativeParcel : nativeTokenInfoForSyncParcel) { + for (const auto& nativeParcel : nativeTokenInfoForSyncParcel) { nativeList.emplace_back(nativeParcel.nativeTokenInfoForSyncParams); } diff --git a/services/accesstokenmanager/main/cpp/src/service/accesstoken_manager_stub.cpp b/services/accesstokenmanager/main/cpp/src/service/accesstoken_manager_stub.cpp index 55bcc973d..8d621da61 100644 --- a/services/accesstokenmanager/main/cpp/src/service/accesstoken_manager_stub.cpp +++ b/services/accesstokenmanager/main/cpp/src/service/accesstoken_manager_stub.cpp @@ -94,7 +94,7 @@ void AccessTokenManagerStub::GetDefPermissionsInner(MessageParcel& data, Message int result = this->GetDefPermissions(tokenID, permList); ACCESSTOKEN_LOG_INFO(LABEL, "%{public}s called, permList size: %{public}d", __func__, (int) permList.size()); reply.WriteInt32((int32_t)permList.size()); - for (auto permDef : permList) { + for (const auto& permDef : permList) { reply.WriteParcelable(&permDef); } reply.WriteInt32(result); @@ -109,7 +109,7 @@ void AccessTokenManagerStub::GetReqPermissionsInner(MessageParcel& data, Message int result = this->GetReqPermissions(tokenID, permList, isSystemGrant); ACCESSTOKEN_LOG_INFO(LABEL, "permList size: %{public}d", (int) permList.size()); reply.WriteInt32((int32_t)permList.size()); - for (auto permDef : permList) { + for (const auto& permDef : permList) { reply.WriteParcelable(&permDef); } reply.WriteInt32(result); @@ -137,7 +137,7 @@ void AccessTokenManagerStub::GetSelfPermissionsStateInner(MessageParcel& data, M reply.WriteInt32(result); reply.WriteUint32(permList.size()); - for (auto perm : permList) { + for (const auto& perm : permList) { reply.WriteParcelable(&perm); } } @@ -346,7 +346,7 @@ void AccessTokenManagerStub::GetAllNativeTokenInfoInner(MessageParcel& data, Mes std::vector nativeTokenInfosRes; int result = this->GetAllNativeTokenInfo(nativeTokenInfosRes); reply.WriteUint32(nativeTokenInfosRes.size()); - for (auto native : nativeTokenInfosRes) { + for (const auto& native : nativeTokenInfosRes) { reply.WriteParcelable(&native); } reply.WriteInt32(result); diff --git a/services/accesstokenmanager/main/cpp/src/token/accesstoken_info_manager.cpp b/services/accesstokenmanager/main/cpp/src/token/accesstoken_info_manager.cpp index e8f8a0366..cf1ac36d8 100644 --- a/services/accesstokenmanager/main/cpp/src/token/accesstoken_info_manager.cpp +++ b/services/accesstokenmanager/main/cpp/src/token/accesstoken_info_manager.cpp @@ -480,7 +480,7 @@ bool AccessTokenInfoManager::TryUpdateExistNativeToken(const std::shared_ptr>& tokenInfos) { - for (auto& infoPtr: tokenInfos) { + for (const auto& infoPtr: tokenInfos) { if (infoPtr == nullptr) { ACCESSTOKEN_LOG_WARN(LABEL, "token info from libat is null"); continue; @@ -692,7 +692,7 @@ int AccessTokenInfoManager::SetRemoteNativeTokenInfo(const std::string& deviceID return RET_FAILED; } - for (NativeTokenInfoForSync& nativeToken : nativeTokenInfoList) { + for (const NativeTokenInfoForSync& nativeToken : nativeTokenInfoList) { if (!DataValidator::IsAplNumValid(nativeToken.baseInfo.apl) || nativeToken.baseInfo.ver != DEFAULT_TOKEN_VERSION || !DataValidator::IsProcessNameValid(nativeToken.baseInfo.processName) || diff --git a/services/accesstokenmanager/main/cpp/src/token/accesstoken_remote_token_manager.cpp b/services/accesstokenmanager/main/cpp/src/token/accesstoken_remote_token_manager.cpp index 6f5b1e567..9ac41f88c 100644 --- a/services/accesstokenmanager/main/cpp/src/token/accesstoken_remote_token_manager.cpp +++ b/services/accesstokenmanager/main/cpp/src/token/accesstoken_remote_token_manager.cpp @@ -99,7 +99,7 @@ int AccessTokenRemoteTokenManager::GetDeviceAllRemoteTokenID(const std::string& return RET_FAILED; } - for (auto mapEntry : remoteDeviceMap_[deviceID].MappingTokenIDPairMap_) { + for (const auto& mapEntry : remoteDeviceMap_[deviceID].MappingTokenIDPairMap_) { remoteIDs.emplace_back(mapEntry.first); } return RET_SUCCESS; @@ -145,7 +145,7 @@ int AccessTokenRemoteTokenManager::RemoveDeviceMappingTokenID(const std::string& remoteDeviceMap_[deviceID].MappingTokenIDPairMap_.erase(remoteID); - if (remoteDeviceMap_[deviceID].MappingTokenIDPairMap_.size() == 0) { + if (remoteDeviceMap_[deviceID].MappingTokenIDPairMap_.empty()) { remoteDeviceMap_.erase(deviceID); } return RET_SUCCESS; diff --git a/services/accesstokenmanager/main/cpp/src/token/native_token_receptor.cpp b/services/accesstokenmanager/main/cpp/src/token/native_token_receptor.cpp index 8c7d5f9b3..f948fb372 100644 --- a/services/accesstokenmanager/main/cpp/src/token/native_token_receptor.cpp +++ b/services/accesstokenmanager/main/cpp/src/token/native_token_receptor.cpp @@ -43,7 +43,7 @@ int32_t NativeReqPermsGet( if (permReqList.size() > MAX_REQ_PERM_NUM) { return RET_FAILED; } - for (auto permReq : permReqList) { + for (const auto& permReq : permReqList) { PermissionStateFull permState; permState.permissionName = permReq; permState.isGeneral = true; diff --git a/services/privacymanager/BUILD.gn b/services/privacymanager/BUILD.gn index 1a83e6a97..b6182a317 100644 --- a/services/privacymanager/BUILD.gn +++ b/services/privacymanager/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2022 Huawei Device Co., Ltd. +# Copyright (c) 2022 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 diff --git a/services/privacymanager/include/common/constant.h b/services/privacymanager/include/common/constant.h index 257286a18..5a7a0de70 100644 --- a/services/privacymanager/include/common/constant.h +++ b/services/privacymanager/include/common/constant.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/services/privacymanager/include/common/time_util.h b/services/privacymanager/include/common/time_util.h index 3bb25b773..064e68486 100644 --- a/services/privacymanager/include/common/time_util.h +++ b/services/privacymanager/include/common/time_util.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/services/privacymanager/include/common/to_string.h b/services/privacymanager/include/common/to_string.h index 97c14eda9..de6dd9290 100644 --- a/services/privacymanager/include/common/to_string.h +++ b/services/privacymanager/include/common/to_string.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/services/privacymanager/include/database/data_translator.h b/services/privacymanager/include/database/data_translator.h index 1dbdfa3c5..60e07037e 100644 --- a/services/privacymanager/include/database/data_translator.h +++ b/services/privacymanager/include/database/data_translator.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/services/privacymanager/include/database/permission_used_record_db.h b/services/privacymanager/include/database/permission_used_record_db.h index 10af99a4e..059e0082a 100644 --- a/services/privacymanager/include/database/permission_used_record_db.h +++ b/services/privacymanager/include/database/permission_used_record_db.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/services/privacymanager/include/record/on_permission_used_record_callback_proxy.h b/services/privacymanager/include/record/on_permission_used_record_callback_proxy.h index 4706e333d..3a6975bd0 100644 --- a/services/privacymanager/include/record/on_permission_used_record_callback_proxy.h +++ b/services/privacymanager/include/record/on_permission_used_record_callback_proxy.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/services/privacymanager/include/record/on_permission_used_record_callback_stub.h b/services/privacymanager/include/record/on_permission_used_record_callback_stub.h index 9dbae35ca..b6120fe1b 100644 --- a/services/privacymanager/include/record/on_permission_used_record_callback_stub.h +++ b/services/privacymanager/include/record/on_permission_used_record_callback_stub.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/services/privacymanager/include/record/permission_record.h b/services/privacymanager/include/record/permission_record.h index 80013b1ee..3c61287dd 100644 --- a/services/privacymanager/include/record/permission_record.h +++ b/services/privacymanager/include/record/permission_record.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/services/privacymanager/include/record/permission_record_manager.h b/services/privacymanager/include/record/permission_record_manager.h index d1c2b5f9d..727599d11 100644 --- a/services/privacymanager/include/record/permission_record_manager.h +++ b/services/privacymanager/include/record/permission_record_manager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/services/privacymanager/include/record/permission_record_repository.h b/services/privacymanager/include/record/permission_record_repository.h index f99a37a6a..ffda94fb5 100644 --- a/services/privacymanager/include/record/permission_record_repository.h +++ b/services/privacymanager/include/record/permission_record_repository.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/services/privacymanager/include/record/permission_visitor.h b/services/privacymanager/include/record/permission_visitor.h index 95b225d8f..212094c51 100644 --- a/services/privacymanager/include/record/permission_visitor.h +++ b/services/privacymanager/include/record/permission_visitor.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/services/privacymanager/include/record/permission_visitor_repository.h b/services/privacymanager/include/record/permission_visitor_repository.h index a0322d4e4..3fdc41159 100644 --- a/services/privacymanager/include/record/permission_visitor_repository.h +++ b/services/privacymanager/include/record/permission_visitor_repository.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/services/privacymanager/include/service/privacy_manager_service.h b/services/privacymanager/include/service/privacy_manager_service.h index 7cf0ab246..d2c89b6ce 100644 --- a/services/privacymanager/include/service/privacy_manager_service.h +++ b/services/privacymanager/include/service/privacy_manager_service.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/services/privacymanager/include/service/privacy_manager_stub.h b/services/privacymanager/include/service/privacy_manager_stub.h index 2f33773b5..1a8ce60ba 100644 --- a/services/privacymanager/include/service/privacy_manager_stub.h +++ b/services/privacymanager/include/service/privacy_manager_stub.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2022 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 diff --git a/services/privacymanager/sa_profile/3505.xml b/services/privacymanager/sa_profile/3505.xml index af310ef90..f6aecb62e 100644 --- a/services/privacymanager/sa_profile/3505.xml +++ b/services/privacymanager/sa_profile/3505.xml @@ -1,5 +1,5 @@ -