diff --git a/frameworks/privacy/BUILD.gn b/frameworks/privacy/BUILD.gn index de6e65926f2895ae64f57ed121f145289d4c808f..e0106a79d2849a5394bd962dd8c177b0bba4b6f4 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 e181853dc6d121091d9db4cadce59b6284d988f8..ce8e57ded993fb1143d029b79cc7a01acd576d40 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 dbd2491119040e054b70249f19c56add4f0567ba..8ee5f3fbad385dbff6785acfa5c3531949dea670 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 7e8377160d43bacae6bc3f9d07785310d2b38a45..9282910c8e48dd9d8a8a29c5b2601c6e407d5bea 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 c0d10966a3dd1a0e79379e0c31f0f5b265a18cdd..1cf48993983c941ae24e88e1b964f3e11085fba0 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 0af1a66310ac8b9d99ac3aee4039d4d11b4b6892..5a74e91a6e142f0719d646ff8635e12a53937911 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 460a5d40ea799316f9ddb68f048fe769d133d629..56410d586a55179500f12cc1db7ae16a189219bc 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 f817e1feff9c10d2566183863aecc5af52bc2592..179ea569a939bc4521cc3f944e8777a5d61d34bb 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 021b1435e40afe36bfcdb73727578bcdbfdcf974..a2a7a1e94fa644237b4f45ee7b0299f75406d2cb 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 96915ff03d9804a8ebb4ce354c79e2c09c5621b2..e4eac2bce76576d3ddee9bbfb973df058400566c 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 0ca67c4b14d2c263e50c00ecb7becc72a3f6260c..88f9abf57f1e16cbf9bbf0eaf65497fe54f25470 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 9785cf45b7ca0a90b6e268e2d7218abda94322c8..d59512b675091cd60db6ef59b7011106b1cd2567 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 855fe52ab15f09fdc46aedf262c267c57263fe54..7f88044333e47875412c76c06fde0f333de31ab5 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 8e891aef2c4c225334e3a638142165083a15d5b6..d8fd1e7e8ee0766eddeb392943ce47badb8e877e 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 9cb3efde61ea4fe68fdea08d255944c4ba65f8ac..044a1a6803c2473024879dd8e9e93a66d45aadf5 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 d137770e2a72734d2541f8535dea8215953e736b..acb51194fdcd264f4e76a7a33dea918547132e99 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 9dbda8c35097e697a847d32be916c9c914280180..1fcdd9f2d6f4811f516f805d1c3728bde550adc4 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 48284122df072a19f14ff35adf025b1ca9286bcf..c52a1ccd610a8ff0ebdd6dfb19a199b366029e44 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 d46a6351b238306be5abdb74c0a98349316da33f..b3fb9a4d1e58d5bb63f9857dbc9a35428c29f6f0 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 75ef66a5fd980abf83c36a87c8afaea6e2de4861..1693faa03ee60896845a5fb1dde52001700bdda7 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 306b01786b51c436f931442e9a346be527c062ab..495f5b42a47dbb4a65ca5e769bd7452f84318c77 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 9c838bc9bdc5934949480b8e39f4e45fb879da69..c43bd9dd1fc9bf60b36c6ec648285fa12ff97650 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 214d467e57572cea08da4771d68898f366a14fa2..b8224d258bd3a7eca109c6cb1332b871342b6bea 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 1f5e8c86932b6e76c242b71b1b17f26357353a38..1ed65c1283edd58e8bb5e56df0e40ee619675b1c 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 2fdae0da465e7a5f3b6ebb6954093681c54c7377..b7401c066066f220cef6a27cd64864970fc3b6df 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 f36a4a7b84c38a1577d501e0fc1c14384ca8d95f..03729b70806778f17b3b573a97043b02ef7747a6 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 cdac30fc14d1095dff2e5682c78546a0b1274b9b..2be5556d3645a22f7993b2219fdbf37698f5a2e9 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 adeb0b899afea1f83c07828b4c77c42beb62d018..0fa8eb31e34e8a5ef8c31e6d92584a519f21e83f 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 79c4e40b719d499f6650203eb9c0de22d9cbb8c3..ed72bd2d8f0054ab37a90a964cf8a21b3d820562 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 f42be2191309ceece92ec6621117c78dcd436e92..932c6515bcd81c61cb580ff174d684542333d32f 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 984a4afe27855cc039896f5d5b35049d420b094f..75db819964ff8d011f424b3c8b31a2bf3329db36 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 06396f982fe366eba3142610855259422550f193..f2144a11ae37cc6a7081dd383236b63a95b1ab5b 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 24fcdf6aa432a995b1566958777beea992da9a82..b55f467d23a52bd25bb75c36144429e2f68b3c5a 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 55bcc973d5a59c53457c194a81566df8c2700a59..8d621da61b8ad6fab150eb7a9707739dcad0c39c 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 e8f8a03668cb866e10dac9c08fbd32e081b4c5e1..10bfcdd93887b8db034415828f4360965ff4caf8 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; 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 6f5b1e56739a01f57519f44020af9061302c5bca..9ac41f88c6efd6915af6e798cc5774636306af8c 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 8c7d5f9b371c4a98746b43209c9fed2da6f71a5e..f948fb3720dbc9d44cf64ad147958899d536db38 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 1a83e6a97d7b44e0f857656d59feb2195676f336..b6182a3174fea72996388a535659ab7072e9774d 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 257286a18367bed09899c44e6e25c6ba0f39d785..5a7a0de70d17b628983c55d46e2ba723f4442709 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 3bb25b7730b3910aa4997a524b6e0f3a443fe31f..064e68486d9dd4cfcadc84affbe47c0f146daa6b 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 97c14eda9903c6022b48185272ae7e4b85042460..de6dd9290b58dfca38066e8edd51a9536061c198 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 1dbdfa3c5fe0f4ffa8edb9975b2cabafd294b6f0..60e07037ecad190e5b41d746ccaeaf8905ac67f6 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 10af99a4e36760664576a58e02da25ad5a746f39..059e0082aac7277038e93678e9b64272f580eb33 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 4706e333d90d3292f4db6a1ef2a3bb98c68ca549..3a6975bd064b279622d4956ecad1a97f09e18bd9 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 9dbae35ca385269bf4257b96cec6ab358b17dd9a..b6120fe1b3a26bff9b674dde77fab0e3ff3caba2 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 80013b1eebfd56a0b1864a3521725892f513e214..3c61287dd8a03e461edb5d2f33384431055b9e98 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 d1c2b5f9d93a2162a60b5edfb604793a8e8bbd37..727599d119badad5f773cf53de783e45b9cf33d6 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 f99a37a6ab0d3b061b73fef6636b7175c0f03269..ffda94fb527f1ed4164f39216d641c3ff16bbaa9 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 95b225d8f849605aacfc48c981fd7f9f1c2daa7c..212094c510bd6b2052ccd68f1bada4996d64fae7 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 a0322d4e47f66a44609c39df502c2e0741e118c9..3fdc41159395fabb2b2c03614117bdeb94a4d94e 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 7cf0ab2461d5a7f2f459e604595952b3e777b9d9..d2c89b6cedfecd4194ed0e6e61a8b733eea44cdd 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 2f33773b56b3c3d8b9d2cf34bb0042addb129511..1a8ce60baef75b5b0ae1ddb8ec81cd936a2d7ced 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 af310ef907e02fbcbcb41953339a8d62b4888a97..f6aecb62e88d21ef7cddcdd6c431966068270c62 100644 --- a/services/privacymanager/sa_profile/3505.xml +++ b/services/privacymanager/sa_profile/3505.xml @@ -1,5 +1,5 @@ -