diff --git a/frameworks/ans/core/include/ans_image_util.h b/frameworks/ans/core/include/ans_image_util.h index 57a5de94c4e3fc2609f8e0dbe6a3b573319917f9..8478efabe385a9a7db1bdbcd40722911ac1c4cdd 100644 --- a/frameworks/ans/core/include/ans_image_util.h +++ b/frameworks/ans/core/include/ans_image_util.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/ans/core/include/ans_notification.h b/frameworks/ans/core/include/ans_notification.h index afd9e53408b8f8909d4621a0250554691a540947..0aaa4d4ab9b2a6ba016554a7b8c060755a3f4053 100644 --- a/frameworks/ans/core/include/ans_notification.h +++ b/frameworks/ans/core/include/ans_notification.h @@ -764,6 +764,13 @@ private: */ ErrCode CheckImageSize(const NotificationRequest &request); + /** + * Check whether the notification doesn't support distribution + * + * @return Returns true if the notification doesn't support distribution; returns false otherwise. + */ + bool IsNonDistributedNotificationType(const NotificationContent::Type &type); + private: std::mutex mutex_; sptr ansManagerProxy_; diff --git a/frameworks/ans/core/src/ans_image_util.cpp b/frameworks/ans/core/src/ans_image_util.cpp index d58b0158d30ea282c17ceb7bbd26e11f7201df97..46b212b531778d015dba9af0e0ad35cbdda343d8 100644 --- a/frameworks/ans/core/src/ans_image_util.cpp +++ b/frameworks/ans/core/src/ans_image_util.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/ans/core/src/ans_notification.cpp b/frameworks/ans/core/src/ans_notification.cpp index ea4fc3ccf60aab64e999be97ba59185557ab9fd3..0e32f05897b6949baecaeedadafea2b69e5282f4 100644 --- a/frameworks/ans/core/src/ans_notification.cpp +++ b/frameworks/ans/core/src/ans_notification.cpp @@ -210,8 +210,7 @@ ErrCode AnsNotification::PublishNotification(const std::string &label, const Not ANS_LOGE("Failed to create NotificationRequest ptr"); return ERR_ANS_NO_MEMORY; } - if ((reqPtr->GetNotificationType() == NotificationContent::Type::CONVERSATION) || - (reqPtr->GetNotificationType() == NotificationContent::Type::PICTURE)) { + if (IsNonDistributedNotificationType(reqPtr->GetNotificationType())) { reqPtr->SetDistributed(false); } return ansManagerProxy_->Publish(label, reqPtr); @@ -225,8 +224,7 @@ ErrCode AnsNotification::PublishNotification(const NotificationRequest &request, } if (!deviceId.empty() && - ((request.GetNotificationType() == NotificationContent::Type::CONVERSATION) || - (request.GetNotificationType() == NotificationContent::Type::PICTURE))) { + (IsNonDistributedNotificationType(request.GetNotificationType()))) { ANS_LOGE("Refuse to publish the conversational and picture notification to the remote device"); return ERR_ANS_INVALID_PARAM; } @@ -373,8 +371,7 @@ ErrCode AnsNotification::PublishNotificationAsBundle( ANS_LOGE("Failed to create NotificationRequest ptr"); return ERR_ANS_NO_MEMORY; } - if ((reqPtr->GetNotificationType() == NotificationContent::Type::CONVERSATION) || - (reqPtr->GetNotificationType() == NotificationContent::Type::PICTURE)) { + if (IsNonDistributedNotificationType(reqPtr->GetNotificationType())) { reqPtr->SetDistributed(false); } return ansManagerProxy_->PublishAsBundle(reqPtr, representativeBundle); @@ -864,8 +861,7 @@ ErrCode AnsNotification::PublishContinuousTaskNotification(const NotificationReq } sptr sptrReq(pReq); - if ((sptrReq->GetNotificationType() == NotificationContent::Type::CONVERSATION) || - (sptrReq->GetNotificationType() == NotificationContent::Type::PICTURE)) { + if (IsNonDistributedNotificationType(sptrReq->GetNotificationType())) { sptrReq->SetDistributed(false); } return ansManagerProxy_->PublishContinuousTaskNotification(sptrReq); @@ -1197,5 +1193,14 @@ ErrCode AnsNotification::IsSupportTemplate(const std::string &templateName, bool return ansManagerProxy_->IsSupportTemplate(templateName, support); } + +bool AnsNotification::IsNonDistributedNotificationType(const NotificationContent::Type &type) +{ + if ((type == NotificationContent::Type::CONVERSATION) || + (type == NotificationContent::Type::PICTURE)) { + return true; + } + return false; +} } // namespace Notification } // namespace OHOS \ No newline at end of file diff --git a/frameworks/ans/native/BUILD.gn b/frameworks/ans/native/BUILD.gn index 04783c8e3e8efd7494038bc3fe3e92db057ee21d..6be024c76756a6692980329088ec6f02814cc01f 100644 --- a/frameworks/ans/native/BUILD.gn +++ b/frameworks/ans/native/BUILD.gn @@ -25,12 +25,6 @@ config("ans_innerkits_public_config") { "${interfaces_path}/ans/native/include", "${frameworks_path}/ans/core/common/include", "${frameworks_path}/ans/core/include", - "//foundation/aafwk/standard/frameworks/kits/content/cpp/src/ohos/aafwk/content/", - "//foundation/aafwk/standard/interfaces/innerkits/want/include/ohos/aafwk/content", - "//foundation/multimedia/image_standard/interfaces/innerkits/include", - "//third_party/json/single_include", - "//third_party/jsoncpp/include", - "//utils/system/safwk/native/include", ] configs = [ "${frameworks_path}/wantagent:wantagent_innerkits_public_config" ] } diff --git a/frameworks/ans/native/src/notification_distributed_options.cpp b/frameworks/ans/native/src/notification_distributed_options.cpp index dceabd5344f926deb3b3b191ab882c65c76fbec0..dbfb26a275de63819df7b2262afed6180f288f69 100644 --- a/frameworks/ans/native/src/notification_distributed_options.cpp +++ b/frameworks/ans/native/src/notification_distributed_options.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/ans/test/moduletest/mock/mock_change_notification.cpp b/frameworks/ans/test/moduletest/mock/mock_change_notification.cpp index e0767998da819ce277b9c49b615d0e0c80ba6d54..c255d13cb3e20870fa5235f574b302c93d0db4ce 100644 --- a/frameworks/ans/test/moduletest/mock/mock_change_notification.cpp +++ b/frameworks/ans/test/moduletest/mock/mock_change_notification.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/ans/test/moduletest/mock/mock_common_event_data.cpp b/frameworks/ans/test/moduletest/mock/mock_common_event_data.cpp index 335ae006741d14624e80b2de88b9f00210a08023..c03942bed7a21621bf1439552cf38c1299224839 100644 --- a/frameworks/ans/test/moduletest/mock/mock_common_event_data.cpp +++ b/frameworks/ans/test/moduletest/mock/mock_common_event_data.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/ans/test/moduletest/mock/mock_common_event_manager.cpp b/frameworks/ans/test/moduletest/mock/mock_common_event_manager.cpp index 590297e6a289220fd3d2262c566e378245444f31..852a174701b3097ab9bd30184aef77cef82abe86 100644 --- a/frameworks/ans/test/moduletest/mock/mock_common_event_manager.cpp +++ b/frameworks/ans/test/moduletest/mock/mock_common_event_manager.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/ans/native/include/notification_distributed_options.h b/interfaces/innerkits/ans/native/include/notification_distributed_options.h index 132986c02c1a82a4bebdbaa720224fe26eebab97..56d9e65029dc002407362e75c07e88cdc12d21f3 100644 --- a/interfaces/innerkits/ans/native/include/notification_distributed_options.h +++ b/interfaces/innerkits/ans/native/include/notification_distributed_options.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/ans/native/include/notification_json_convert.h b/interfaces/innerkits/ans/native/include/notification_json_convert.h index 0162f1b43f4924b27211751e22da9f5b8dd3c09b..2a6fb1683bcc312619b78acd7ee8851049432dd2 100644 --- a/interfaces/innerkits/ans/native/include/notification_json_convert.h +++ b/interfaces/innerkits/ans/native/include/notification_json_convert.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/napi/ans/include/distributed.h b/interfaces/kits/napi/ans/include/distributed.h index 02bb9d7a3baf2dcea1aadf4d9ec5cad6139a4f3b..2beab5b76992627fde0907fdb05265687e34ac9d 100644 --- a/interfaces/kits/napi/ans/include/distributed.h +++ b/interfaces/kits/napi/ans/include/distributed.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/napi/ans/src/distributed.cpp b/interfaces/kits/napi/ans/src/distributed.cpp index b002a11743b9135099484ca4a558dae057c4b0db..5739891f18a8b905c2e091edbe93ae8172835fce 100644 --- a/interfaces/kits/napi/ans/src/distributed.cpp +++ b/interfaces/kits/napi/ans/src/distributed.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/include/distributed_database.h b/services/distributed/include/distributed_database.h index 7782e0f4334c23ac28d7be32d75eda7163846fc7..6286769a00ce929d2d378975bb0a5148bc771d2d 100644 --- a/services/distributed/include/distributed_database.h +++ b/services/distributed/include/distributed_database.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/include/distributed_database_callback.h b/services/distributed/include/distributed_database_callback.h index f6fcdc12fe073319ea127225426198319b0a4a3b..672b55617faa0e51359b599f86ec7175aaaff824 100644 --- a/services/distributed/include/distributed_database_callback.h +++ b/services/distributed/include/distributed_database_callback.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/include/distributed_device_callback.h b/services/distributed/include/distributed_device_callback.h index 3d7f0896beb434cbf22608ff7176b02560b19caa..33000b45604becf489bb938bade6d95f8339346f 100644 --- a/services/distributed/include/distributed_device_callback.h +++ b/services/distributed/include/distributed_device_callback.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/include/distributed_flow_control.h b/services/distributed/include/distributed_flow_control.h index af28ed2bff86cd5520044510a963f5a0998553d8..435381491d58798e95af0b2718034071acecc74e 100644 --- a/services/distributed/include/distributed_flow_control.h +++ b/services/distributed/include/distributed_flow_control.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/include/distributed_notification_manager.h b/services/distributed/include/distributed_notification_manager.h index c960937ffe303623659e0d05893412fefb04a56c..edcc0a973a0436d4b231befbd1b239f26c6bfa0d 100644 --- a/services/distributed/include/distributed_notification_manager.h +++ b/services/distributed/include/distributed_notification_manager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/include/distributed_preferences.h b/services/distributed/include/distributed_preferences.h index deafccf10330e94e122aa589ac8d5d1392b8089e..c86dbc2a8ed28e0a13b177ed4e918619259cdf06 100644 --- a/services/distributed/include/distributed_preferences.h +++ b/services/distributed/include/distributed_preferences.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/include/distributed_preferences_database.h b/services/distributed/include/distributed_preferences_database.h index e9300705db258b115ad0dfa9b10fa9a6b9244039..74f6c210c1f8f216c44da769ffef48ff44803ec0 100644 --- a/services/distributed/include/distributed_preferences_database.h +++ b/services/distributed/include/distributed_preferences_database.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/include/distributed_preferences_info.h b/services/distributed/include/distributed_preferences_info.h index feea944a701efd6ecf304748cc938284352345d6..860e08871a4eb5abb8ad6963820f8c619247ffd7 100644 --- a/services/distributed/include/distributed_preferences_info.h +++ b/services/distributed/include/distributed_preferences_info.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/src/distributed_database.cpp b/services/distributed/src/distributed_database.cpp index b763e6deb17c227dbef4812f9382f5b327469e12..4b60727714d2f98101373a90123b666f4bdbf5ca 100644 --- a/services/distributed/src/distributed_database.cpp +++ b/services/distributed/src/distributed_database.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/src/distributed_database_callback.cpp b/services/distributed/src/distributed_database_callback.cpp index c42ee6bb3bf01bea36dbf01375ae8d15421e891a..53bab4807e9034fde3c293f43d2a7a85b3eee165 100644 --- a/services/distributed/src/distributed_database_callback.cpp +++ b/services/distributed/src/distributed_database_callback.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/src/distributed_device_callback.cpp b/services/distributed/src/distributed_device_callback.cpp index 9742f3eb4e6e94315560117ed922ad914a1a9d5e..6a556ec8a0b1cb420f1215a39d02aa21f8944cb4 100644 --- a/services/distributed/src/distributed_device_callback.cpp +++ b/services/distributed/src/distributed_device_callback.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/src/distributed_flow_control.cpp b/services/distributed/src/distributed_flow_control.cpp index fa7524d610a266f19afcaf32528558b49dde65d8..fabe5b589777f392bc4f4ac568a45253657f65a7 100644 --- a/services/distributed/src/distributed_flow_control.cpp +++ b/services/distributed/src/distributed_flow_control.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/src/distributed_notification_manager.cpp b/services/distributed/src/distributed_notification_manager.cpp index 6134bed11d3ea4f0de6dbb3cded57bcf1d34cb27..be2dba32af65c19d111c4783ef1904f6560a2528 100644 --- a/services/distributed/src/distributed_notification_manager.cpp +++ b/services/distributed/src/distributed_notification_manager.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/src/distributed_preferences.cpp b/services/distributed/src/distributed_preferences.cpp index 07838e98c533c4b9a6622913a4e839c7ad96b145..767ee909a58409b29d58d54899edcd184884e3b2 100644 --- a/services/distributed/src/distributed_preferences.cpp +++ b/services/distributed/src/distributed_preferences.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/src/distributed_preferences_database.cpp b/services/distributed/src/distributed_preferences_database.cpp index dc861ebb69590bd1ab0ad58b8f3aac96b24365a5..9da4c0a75b97afe2f129bcf0c023d46babed9fb6 100644 --- a/services/distributed/src/distributed_preferences_database.cpp +++ b/services/distributed/src/distributed_preferences_database.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/src/distributed_preferences_info.cpp b/services/distributed/src/distributed_preferences_info.cpp index b3572252ca2699a3c21243e7c2a6f9a7aad02b73..11f2d28b70c2508ced0e9bde3f0ab0b5d7fd6211 100644 --- a/services/distributed/src/distributed_preferences_info.cpp +++ b/services/distributed/src/distributed_preferences_info.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/test/unittest/distributed_database_test.cpp b/services/distributed/test/unittest/distributed_database_test.cpp index 4d1dac7408433da9f1c4c76c4d70690a44ae3689..f94a86995b037121c46699b1fb0f8f63033e66d5 100644 --- a/services/distributed/test/unittest/distributed_database_test.cpp +++ b/services/distributed/test/unittest/distributed_database_test.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/test/unittest/distributed_notification_manager_test.cpp b/services/distributed/test/unittest/distributed_notification_manager_test.cpp index db3f367cbf26281bc75d7c88a7cf9b0e42da6410..c6cac5a4cf871d27f50b2b6dd7ace51a1b93ca8d 100644 --- a/services/distributed/test/unittest/distributed_notification_manager_test.cpp +++ b/services/distributed/test/unittest/distributed_notification_manager_test.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/test/unittest/distributed_preferences_test.cpp b/services/distributed/test/unittest/distributed_preferences_test.cpp index 92d9806466413790721b0ceb0f55ff0b4eb80d7b..05a4ab73401c8769e0d1cad74915963bdd780003 100644 --- a/services/distributed/test/unittest/distributed_preferences_test.cpp +++ b/services/distributed/test/unittest/distributed_preferences_test.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/test/unittest/mock/ans_test_single_kv_store.cpp b/services/distributed/test/unittest/mock/ans_test_single_kv_store.cpp index 9e682416999910c12b3a0925755e8b0f1a883c7e..dd8c5c5cbb8d9621eaedf3c7ac1fa0093c87236d 100644 --- a/services/distributed/test/unittest/mock/ans_test_single_kv_store.cpp +++ b/services/distributed/test/unittest/mock/ans_test_single_kv_store.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/test/unittest/mock/ans_test_single_kv_store.h b/services/distributed/test/unittest/mock/ans_test_single_kv_store.h index 094eb977d6ec21a10790dbc2d42511c5f68cc155..dd099a7a7a8a276865df2b9624d90793d4d373e3 100644 --- a/services/distributed/test/unittest/mock/ans_test_single_kv_store.h +++ b/services/distributed/test/unittest/mock/ans_test_single_kv_store.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/test/unittest/mock/mock_blob.cpp b/services/distributed/test/unittest/mock/mock_blob.cpp index a92cb92ed33cddcf6244f421f601bfb5ef4d4f9f..d55add0bd2799e9014613be509014c0b60be6dae 100644 --- a/services/distributed/test/unittest/mock/mock_blob.cpp +++ b/services/distributed/test/unittest/mock/mock_blob.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/test/unittest/mock/mock_changeNotification.cpp b/services/distributed/test/unittest/mock/mock_changeNotification.cpp index 33373b4173e2bdf64bca5371be8e76c8cb79ccdf..15ab9c823c8357b701cdf5a96cb044f170f49c1e 100644 --- a/services/distributed/test/unittest/mock/mock_changeNotification.cpp +++ b/services/distributed/test/unittest/mock/mock_changeNotification.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/test/unittest/mock/mock_change_notification.cpp b/services/distributed/test/unittest/mock/mock_change_notification.cpp index 9c87cb257c40d83b74698efd9a7e39ce9ddd0ebd..b06f3c1a60d787fdfa87758ffa003129424b47c4 100644 --- a/services/distributed/test/unittest/mock/mock_change_notification.cpp +++ b/services/distributed/test/unittest/mock/mock_change_notification.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/test/unittest/mock/mock_distributed_kv_data_manager.cpp b/services/distributed/test/unittest/mock/mock_distributed_kv_data_manager.cpp index f7daf5268838952e53e20da65ad19c577186c897..7d4c860131275d6bf92f5076ced6c28c7a808bd4 100644 --- a/services/distributed/test/unittest/mock/mock_distributed_kv_data_manager.cpp +++ b/services/distributed/test/unittest/mock/mock_distributed_kv_data_manager.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/test/unittest/mock/mock_event_handler.cpp b/services/distributed/test/unittest/mock/mock_event_handler.cpp index 265205fb0d007368494c697b78cd91158fe4e301..1dff51f9e1b6638a2c5a04e404369d70eaa27bf1 100644 --- a/services/distributed/test/unittest/mock/mock_event_handler.cpp +++ b/services/distributed/test/unittest/mock/mock_event_handler.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/test/unittest/mock/mock_event_runner.cpp b/services/distributed/test/unittest/mock/mock_event_runner.cpp index d3e4fc3c9f82eb9cb015bef91c14ab12105f454f..d8890d21f8cd8f71f320479aba7204c7921b8224 100644 --- a/services/distributed/test/unittest/mock/mock_event_runner.cpp +++ b/services/distributed/test/unittest/mock/mock_event_runner.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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/distributed/test/unittest/mock/mock_inner_event.cpp b/services/distributed/test/unittest/mock/mock_inner_event.cpp index b8d100d85c7c5a02c11936a49d14d5cfe8e92bc8..857a69c73e490dce1d0a2bc840fcfcb3b747bb3b 100644 --- a/services/distributed/test/unittest/mock/mock_inner_event.cpp +++ b/services/distributed/test/unittest/mock/mock_inner_event.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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