diff --git a/common/include/constants_dinput.h b/common/include/constants_dinput.h index 4441f5e..640e306 100644 --- a/common/include/constants_dinput.h +++ b/common/include/constants_dinput.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,9 +16,9 @@ #ifndef OHOS_DISTRIBUTED_INPUT_CONSTANTS_H #define OHOS_DISTRIBUTED_INPUT_CONSTANTS_H +#include #include #include -#include namespace OHOS { namespace DistributedHardware { diff --git a/common/include/dinput_errcode.h b/common/include/dinput_errcode.h index fb1e6f4..d377dc8 100644 --- a/common/include/dinput_errcode.h +++ b/common/include/dinput_errcode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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/common/include/input_hub.cpp b/common/include/input_hub.cpp index 44e4572..0fcb5c0 100644 --- a/common/include/input_hub.cpp +++ b/common/include/input_hub.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -17,18 +17,21 @@ #include #include +#include +#include + #include #include -#include #include #include -#include +#include #include #include +#include "anonymous_string.h" #include "distributed_hardware_log.h" + #include "dinput_errcode.h" -#include "sys/stat.h" namespace OHOS { namespace DistributedHardware { diff --git a/common/include/input_hub.h b/common/include/input_hub.h index 1ea7845..b2de039 100644 --- a/common/include/input_hub.h +++ b/common/include/input_hub.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -18,9 +18,12 @@ #include #include + #include #include + #include + #include "constants_dinput.h" namespace OHOS { diff --git a/common/include/test/BUILD.gn b/common/include/test/BUILD.gn index 04a25d1..c4446c3 100644 --- a/common/include/test/BUILD.gn +++ b/common/include/test/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2021-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/common/include/test/whitelistunittest/BUILD.gn b/common/include/test/whitelistunittest/BUILD.gn index 234b99e..570a9b8 100644 --- a/common/include/test/whitelistunittest/BUILD.gn +++ b/common/include/test/whitelistunittest/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2021-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/common/include/test/whitelistunittest/white_list_test.cpp b/common/include/test/whitelistunittest/white_list_test.cpp index db80140..a90492c 100644 --- a/common/include/test/whitelistunittest/white_list_test.cpp +++ b/common/include/test/whitelistunittest/white_list_test.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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/common/include/test/whitelistunittest/white_list_test.h b/common/include/test/whitelistunittest/white_list_test.h index d43b81e..4cdea36 100644 --- a/common/include/test/whitelistunittest/white_list_test.h +++ b/common/include/test/whitelistunittest/white_list_test.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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/common/include/white_list_util.cpp b/common/include/white_list_util.cpp index b93d0f5..fde5f6a 100644 --- a/common/include/white_list_util.cpp +++ b/common/include/white_list_util.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -20,6 +20,7 @@ #include #include "distributed_hardware_log.h" + #include "dinput_errcode.h" namespace OHOS { diff --git a/common/include/white_list_util.h b/common/include/white_list_util.h index 4c362f2..c6ebc73 100644 --- a/common/include/white_list_util.h +++ b/common/include/white_list_util.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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/distributedinput.gni b/distributedinput.gni index a65cc24..5b8420f 100644 --- a/distributedinput.gni +++ b/distributedinput.gni @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2021-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/include/i_add_white_list_infos_call_back.h b/frameworks/include/i_add_white_list_infos_call_back.h index 1cc37b4..5229bb8 100644 --- a/frameworks/include/i_add_white_list_infos_call_back.h +++ b/frameworks/include/i_add_white_list_infos_call_back.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,9 +16,10 @@ #ifndef I_ADD_WHITE_LIST_INFOS_CALL_BACK_H #define I_ADD_WHITE_LIST_INFOS_CALL_BACK_H -#include #include +#include + namespace OHOS { namespace DistributedHardware { namespace DistributedInput { diff --git a/frameworks/include/i_del_white_list_infos_call_back.h b/frameworks/include/i_del_white_list_infos_call_back.h index 19497fb..f225080 100644 --- a/frameworks/include/i_del_white_list_infos_call_back.h +++ b/frameworks/include/i_del_white_list_infos_call_back.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,9 +16,10 @@ #ifndef I_DEL_WHITE_LIST_INFOS_CALL_BACK_H #define I_DEL_WHITE_LIST_INFOS_CALL_BACK_H -#include #include +#include + namespace OHOS { namespace DistributedHardware { namespace DistributedInput { diff --git a/frameworks/include/i_distributed_sink_input.h b/frameworks/include/i_distributed_sink_input.h index c6ab18f..189aef5 100644 --- a/frameworks/include/i_distributed_sink_input.h +++ b/frameworks/include/i_distributed_sink_input.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -15,11 +15,14 @@ #ifndef I_DISTRIBUTED_SINK_INPUT_H #define I_DISTRIBUTED_SINK_INPUT_H + #include -#include "../../common/include/constants_dinput.h" + #include "iremote_broker.h" #include "iremote_object.h" + #include "i_start_d_input_server_call_back.h" +#include "constants_dinput.h" namespace OHOS { namespace DistributedHardware { diff --git a/frameworks/include/i_distributed_source_input.h b/frameworks/include/i_distributed_source_input.h index 67e4659..d603454 100644 --- a/frameworks/include/i_distributed_source_input.h +++ b/frameworks/include/i_distributed_source_input.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -15,19 +15,22 @@ #ifndef I_DISTRIBUTED_INPUT_H #define I_DISTRIBUTED_INPUT_H + #include -#include "../../common/include/constants_dinput.h" + #include "iremote_broker.h" #include "iremote_object.h" -#include "i_register_d_input_call_back.h" -#include "i_unregister_d_input_call_back.h" -#include "i_prepare_d_input_call_back.h" -#include "i_unprepare_d_input_call_back.h" -#include "i_start_d_input_call_back.h" -#include "i_stop_d_input_call_back.h" -#include "i_start_d_input_server_call_back.h" + +#include "constants_dinput.h" #include "i_add_white_list_infos_call_back.h" #include "i_del_white_list_infos_call_back.h" +#include "i_prepare_d_input_call_back.h" +#include "i_register_d_input_call_back.h" +#include "i_start_d_input_call_back.h" +#include "i_start_d_input_server_call_back.h" +#include "i_stop_d_input_call_back.h" +#include "i_unprepare_d_input_call_back.h" +#include "i_unregister_d_input_call_back.h" namespace OHOS { namespace DistributedHardware { diff --git a/frameworks/include/i_prepare_d_input_call_back.h b/frameworks/include/i_prepare_d_input_call_back.h index 2d45212..61debd2 100644 --- a/frameworks/include/i_prepare_d_input_call_back.h +++ b/frameworks/include/i_prepare_d_input_call_back.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,9 +16,10 @@ #ifndef I_PREPARE_D_INPUT_CALL_BACK_H #define I_PREPARE_D_INPUT_CALL_BACK_H -#include #include +#include + namespace OHOS { namespace DistributedHardware { namespace DistributedInput { diff --git a/frameworks/include/i_register_d_input_call_back.h b/frameworks/include/i_register_d_input_call_back.h index d79f222..ed15795 100644 --- a/frameworks/include/i_register_d_input_call_back.h +++ b/frameworks/include/i_register_d_input_call_back.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,9 +16,10 @@ #ifndef I_REGIST_D_INPUT_CALL_BACK_H #define I_REGIST_D_INPUT_CALL_BACK_H -#include #include +#include + namespace OHOS { namespace DistributedHardware { namespace DistributedInput { diff --git a/frameworks/include/i_start_d_input_call_back.h b/frameworks/include/i_start_d_input_call_back.h index 7638aec..fac26b9 100644 --- a/frameworks/include/i_start_d_input_call_back.h +++ b/frameworks/include/i_start_d_input_call_back.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,9 +16,10 @@ #ifndef I_START_D_INPUT_CALL_BACK_H #define I_START_D_INPUT_CALL_BACK_H -#include #include +#include + namespace OHOS { namespace DistributedHardware { namespace DistributedInput { diff --git a/frameworks/include/i_start_d_input_server_call_back.h b/frameworks/include/i_start_d_input_server_call_back.h index 2ab1a0d..d300268 100644 --- a/frameworks/include/i_start_d_input_server_call_back.h +++ b/frameworks/include/i_start_d_input_server_call_back.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,10 +16,11 @@ #ifndef I_START_D_INPUT_SERVER_CALL_BACK_H #define I_START_D_INPUT_SERVER_CALL_BACK_H -#include "../../common/include/constants_dinput.h" +#include #include -#include + +#include "constants_dinput.h" namespace OHOS { namespace DistributedHardware { diff --git a/frameworks/include/i_stop_d_input_call_back.h b/frameworks/include/i_stop_d_input_call_back.h index 757acc6..b612131 100644 --- a/frameworks/include/i_stop_d_input_call_back.h +++ b/frameworks/include/i_stop_d_input_call_back.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,9 +16,10 @@ #ifndef I_STOP_D_INPUT_CALL_BACK_H #define I_STOP_D_INPUT_CALL_BACK_H -#include #include +#include + namespace OHOS { namespace DistributedHardware { namespace DistributedInput { diff --git a/frameworks/include/i_unprepare_d_input_call_back.h b/frameworks/include/i_unprepare_d_input_call_back.h index 181c76e..e26f4b2 100644 --- a/frameworks/include/i_unprepare_d_input_call_back.h +++ b/frameworks/include/i_unprepare_d_input_call_back.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,9 +16,10 @@ #ifndef I_UNPREPARE_D_INPUT_CALL_BACK_H #define I_UNPREPARE_D_INPUT_CALL_BACK_H -#include #include +#include + namespace OHOS { namespace DistributedHardware { namespace DistributedInput { diff --git a/frameworks/include/i_unregister_d_input_call_back.h b/frameworks/include/i_unregister_d_input_call_back.h index bbdeaf1..a7d7fa5 100644 --- a/frameworks/include/i_unregister_d_input_call_back.h +++ b/frameworks/include/i_unregister_d_input_call_back.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,9 +16,10 @@ #ifndef I_UNREGIST_D_INPUT_CALL_BACK_H #define I_UNREGIST_D_INPUT_CALL_BACK_H -#include #include +#include + namespace OHOS { namespace DistributedHardware { namespace DistributedInput { diff --git a/inputdevicehandler/BUILD.gn b/inputdevicehandler/BUILD.gn index 1450568..98d9ce6 100644 --- a/inputdevicehandler/BUILD.gn +++ b/inputdevicehandler/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2021-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/inputdevicehandler/include/distributed_input_handler.h b/inputdevicehandler/include/distributed_input_handler.h index ccb6ed8..179eee6 100644 --- a/inputdevicehandler/include/distributed_input_handler.h +++ b/inputdevicehandler/include/distributed_input_handler.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,16 +16,19 @@ #ifndef DISTRIBUTED_INPUT_HANDLER_H #define DISTRIBUTED_INPUT_HANDLER_H -#include -#include -#include -#include #include +#include +#include +#include + +#include #include + #include "ihardware_handler.h" #include "single_instance.h" -#include "input_hub.h" + #include "constants_dinput.h" +#include "input_hub.h" namespace OHOS { namespace DistributedHardware { diff --git a/inputdevicehandler/src/distributed_input_handler.cpp b/inputdevicehandler/src/distributed_input_handler.cpp index 4129a00..5338a9c 100644 --- a/inputdevicehandler/src/distributed_input_handler.cpp +++ b/inputdevicehandler/src/distributed_input_handler.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,21 +14,26 @@ */ #include "distributed_input_handler.h" -#include + #include #include #include -#include #include +#include +#include + #include +#include #include #include -#include "softbus_bus_center.h" -#include "constants_dinput.h" -#include "nlohmann/json.hpp" -#include "sys/stat.h" + +#include "anonymous_string.h" #include "distributed_hardware_log.h" +#include "nlohmann/json.hpp" + +#include "constants_dinput.h" #include "dinput_errcode.h" +#include "softbus_bus_center.h" namespace OHOS { namespace DistributedHardware { diff --git a/interfaces/inner_kits/BUILD.gn b/interfaces/inner_kits/BUILD.gn index 6bd7c6d..8436005 100644 --- a/interfaces/inner_kits/BUILD.gn +++ b/interfaces/inner_kits/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2021-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/inner_kits/include/distributed_input_kit.h b/interfaces/inner_kits/include/distributed_input_kit.h index c45a1ac..45c9761 100644 --- a/interfaces/inner_kits/include/distributed_input_kit.h +++ b/interfaces/inner_kits/include/distributed_input_kit.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -17,15 +17,17 @@ #define DISTRIBUTED_INPUT_KIT_H #include + +#include "distributed_hardware_log.h" + #include "constants_dinput.h" #include "distributed_input_client.h" #include "i_register_d_input_call_back.h" -#include "i_unregister_d_input_call_back.h" -#include "i_prepare_d_input_call_back.h" -#include "i_unprepare_d_input_call_back.h" #include "i_start_d_input_call_back.h" #include "i_stop_d_input_call_back.h" -#include "distributed_hardware_log.h" +#include "i_unregister_d_input_call_back.h" +#include "i_prepare_d_input_call_back.h" +#include "i_unprepare_d_input_call_back.h namespace OHOS { namespace DistributedHardware { diff --git a/interfaces/inner_kits/src/distributed_input_kit.cpp b/interfaces/inner_kits/src/distributed_input_kit.cpp index a101a11..3382e34 100644 --- a/interfaces/inner_kits/src/distributed_input_kit.cpp +++ b/interfaces/inner_kits/src/distributed_input_kit.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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/inner_kits/test/BUILD.gn b/interfaces/inner_kits/test/BUILD.gn index d29faeb..e75f084 100644 --- a/interfaces/inner_kits/test/BUILD.gn +++ b/interfaces/inner_kits/test/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2021-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/inner_kits/test/unittest/BUILD.gn b/interfaces/inner_kits/test/unittest/BUILD.gn index 304432a..5309dd2 100644 --- a/interfaces/inner_kits/test/unittest/BUILD.gn +++ b/interfaces/inner_kits/test/unittest/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2021-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/inner_kits/test/unittest/distributed_input_inner_test.cpp b/interfaces/inner_kits/test/unittest/distributed_input_inner_test.cpp index fbccffa..83c1244 100644 --- a/interfaces/inner_kits/test/unittest/distributed_input_inner_test.cpp +++ b/interfaces/inner_kits/test/unittest/distributed_input_inner_test.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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/inner_kits/test/unittest/distributed_input_inner_test.h b/interfaces/inner_kits/test/unittest/distributed_input_inner_test.h index 5410f16..04283ec 100644 --- a/interfaces/inner_kits/test/unittest/distributed_input_inner_test.h +++ b/interfaces/inner_kits/test/unittest/distributed_input_inner_test.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,24 +16,24 @@ #ifndef DISRIBUTED_INPUT_INNER_TEST_H #define DISRIBUTED_INPUT_INNER_TEST_H -#include #include #include -#include #include +#include +#include +#include "ipc_skeleton.h" +#include "iservice_registry.h" +#include "system_ability_definition.h" + +#include "constants_dinput.h" #include "distributed_input_kit.h" #include "i_distributed_sink_input.h" #include "i_distributed_source_input.h" #include "prepare_d_input_call_back_stub.h" -#include "unprepare_d_input_call_back_stub.h" #include "start_d_input_call_back_stub.h" #include "stop_d_input_call_back_stub.h" -#include "constants_dinput.h" - -#include "iservice_registry.h" -#include "ipc_skeleton.h" -#include "system_ability_definition.h" +#include "unprepare_d_input_call_back_stub.h" namespace OHOS { namespace DistributedHardware { diff --git a/interfaces/inner_kits/test/unittest/mock/mock_distributed_input_client.cpp b/interfaces/inner_kits/test/unittest/mock/mock_distributed_input_client.cpp index 677018d..0836fad 100644 --- a/interfaces/inner_kits/test/unittest/mock/mock_distributed_input_client.cpp +++ b/interfaces/inner_kits/test/unittest/mock/mock_distributed_input_client.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,10 +14,12 @@ */ #include "distributed_input_client.h" + +#include "distributed_hardware_log.h" +#include "nlohmann/json.hpp" + #include "constants_dinput.h" #include "white_list_util.h" -#include "nlohmann/json.hpp" -#include "distributed_hardware_log.h" namespace OHOS { namespace DistributedHardware { diff --git a/interfaces/ipc/include/add_white_list_infos_call_back_proxy.h b/interfaces/ipc/include/add_white_list_infos_call_back_proxy.h index e6d6725..3a98d44 100644 --- a/interfaces/ipc/include/add_white_list_infos_call_back_proxy.h +++ b/interfaces/ipc/include/add_white_list_infos_call_back_proxy.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,8 +16,10 @@ #ifndef ADD_WHITE_LIST_INFOS_CALL_BACK_PROXY_H #define ADD_WHITE_LIST_INFOS_CALL_BACK_PROXY_H -#include #include "i_add_white_list_infos_call_back.h" + +#include + #include "iremote_proxy.h" namespace OHOS { diff --git a/interfaces/ipc/include/add_white_list_infos_call_back_stub.h b/interfaces/ipc/include/add_white_list_infos_call_back_stub.h index b50e554..a17c1fb 100644 --- a/interfaces/ipc/include/add_white_list_infos_call_back_stub.h +++ b/interfaces/ipc/include/add_white_list_infos_call_back_stub.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,8 +16,10 @@ #ifndef ADD_WHITE_LIST_INFOS_CALL_BACK_STUB_H #define ADD_WHITE_LIST_INFOS_CALL_BACK_STUB_H -#include #include "i_add_white_list_infos_call_back.h" + +#include + #include "iremote_stub.h" namespace OHOS { diff --git a/interfaces/ipc/include/del_white_list_infos_call_back_proxy.h b/interfaces/ipc/include/del_white_list_infos_call_back_proxy.h index fbbc75d..c7474a8 100644 --- a/interfaces/ipc/include/del_white_list_infos_call_back_proxy.h +++ b/interfaces/ipc/include/del_white_list_infos_call_back_proxy.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,8 +16,10 @@ #ifndef DEL_WHITE_LIST_INFOS_CALL_BACK_PROXY_H #define DEL_WHITE_LIST_INFOS_CALL_BACK_PROXY_H -#include #include "i_del_white_list_infos_call_back.h" + +#include + #include "iremote_proxy.h" namespace OHOS { diff --git a/interfaces/ipc/include/del_white_list_infos_call_back_stub.h b/interfaces/ipc/include/del_white_list_infos_call_back_stub.h index dd6dc63..c1aa55f 100644 --- a/interfaces/ipc/include/del_white_list_infos_call_back_stub.h +++ b/interfaces/ipc/include/del_white_list_infos_call_back_stub.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,8 +16,10 @@ #ifndef DEL_WHITE_LIST_INFOS_CALL_BACK_STUB_H #define DEL_WHITE_LIST_INFOS_CALL_BACK_STUB_H -#include #include "i_del_white_list_infos_call_back.h" + +#include + #include "iremote_stub.h" namespace OHOS { diff --git a/interfaces/ipc/include/distributed_input_client.h b/interfaces/ipc/include/distributed_input_client.h index e675776..44ac6b4 100644 --- a/interfaces/ipc/include/distributed_input_client.h +++ b/interfaces/ipc/include/distributed_input_client.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,17 +16,17 @@ #ifndef DISTRIBUTED_INPUT_CLIENT_H #define DISTRIBUTED_INPUT_CLIENT_H -#include -#include #include +#include +#include +#include "add_white_list_infos_call_back_stub.h" +#include "del_white_list_infos_call_back_stub.h" #include "i_distributed_source_input.h" #include "i_distributed_sink_input.h" #include "register_d_input_call_back_stub.h" -#include "unregister_d_input_call_back_stub.h" #include "start_d_input_server_call_back_stub.h" -#include "add_white_list_infos_call_back_stub.h" -#include "del_white_list_infos_call_back_stub.h" +#include "unregister_d_input_call_back_stub.h" #include "idistributed_hardware_source.h" #include "idistributed_hardware_sink.h" diff --git a/interfaces/ipc/include/distributed_input_sink_proxy.h b/interfaces/ipc/include/distributed_input_sink_proxy.h index 4294e54..38b568e 100644 --- a/interfaces/ipc/include/distributed_input_sink_proxy.h +++ b/interfaces/ipc/include/distributed_input_sink_proxy.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,8 +16,10 @@ #ifndef DISTRIBUTED_INPUT_SINK_PROXY_H #define DISTRIBUTED_INPUT_SINK_PROXY_H -#include #include "i_distributed_sink_input.h" + +#include + #include "iremote_proxy.h" namespace OHOS { diff --git a/interfaces/ipc/include/distributed_input_sink_stub.h b/interfaces/ipc/include/distributed_input_sink_stub.h index 916087e..221d8d4 100644 --- a/interfaces/ipc/include/distributed_input_sink_stub.h +++ b/interfaces/ipc/include/distributed_input_sink_stub.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,8 +16,10 @@ #ifndef DISRIBUTED_INPUT_SINK_STUB_H #define DISRIBUTED_INPUT_SINK_STUB_H -#include #include "i_distributed_sink_input.h" + +#include + #include "iremote_stub.h" namespace OHOS { diff --git a/interfaces/ipc/include/distributed_input_source_proxy.h b/interfaces/ipc/include/distributed_input_source_proxy.h index bfc9767..b51e739 100644 --- a/interfaces/ipc/include/distributed_input_source_proxy.h +++ b/interfaces/ipc/include/distributed_input_source_proxy.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,8 +16,10 @@ #ifndef DISTRIBUTED_INPUT_SOURCE_PROXY_H #define DISTRIBUTED_INPUT_SOURCE_PROXY_H -#include #include "i_distributed_source_input.h" + +#include + #include "iremote_proxy.h" namespace OHOS { diff --git a/interfaces/ipc/include/distributed_input_source_stub.h b/interfaces/ipc/include/distributed_input_source_stub.h index f0011be..2805b8b 100644 --- a/interfaces/ipc/include/distributed_input_source_stub.h +++ b/interfaces/ipc/include/distributed_input_source_stub.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,8 +16,10 @@ #ifndef DISRIBUTED_INPUT_SOURCE_STUB_H #define DISRIBUTED_INPUT_SOURCE_STUB_H -#include #include "i_distributed_source_input.h" + +#include + #include "iremote_stub.h" namespace OHOS { diff --git a/interfaces/ipc/include/prepare_d_input_call_back_proxy.h b/interfaces/ipc/include/prepare_d_input_call_back_proxy.h index 802430d..c75ff4c 100644 --- a/interfaces/ipc/include/prepare_d_input_call_back_proxy.h +++ b/interfaces/ipc/include/prepare_d_input_call_back_proxy.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,8 +16,10 @@ #ifndef PREPARE_D_INPUT_CALL_BACK_PROXY_H #define PREPARE_D_INPUT_CALL_BACK_PROXY_H -#include #include "i_prepare_d_input_call_back.h" + +#include + #include "iremote_proxy.h" namespace OHOS { diff --git a/interfaces/ipc/include/prepare_d_input_call_back_stub.h b/interfaces/ipc/include/prepare_d_input_call_back_stub.h index a35892b..2a1cb32 100644 --- a/interfaces/ipc/include/prepare_d_input_call_back_stub.h +++ b/interfaces/ipc/include/prepare_d_input_call_back_stub.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,8 +16,10 @@ #ifndef PREPARE_D_INPUT_CALL_BACK_STUB_H #define PREPARE_D_INPUT_CALL_BACK_STUB_H -#include #include "i_prepare_d_input_call_back.h" + +#include + #include "iremote_stub.h" namespace OHOS { diff --git a/interfaces/ipc/include/register_d_input_call_back_proxy.h b/interfaces/ipc/include/register_d_input_call_back_proxy.h index d919b48..d5abb1e 100644 --- a/interfaces/ipc/include/register_d_input_call_back_proxy.h +++ b/interfaces/ipc/include/register_d_input_call_back_proxy.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,8 +16,10 @@ #ifndef REGIST_D_INPUT_CALL_BACK_PROXY_H #define REGIST_D_INPUT_CALL_BACK_PROXY_H -#include #include "i_register_d_input_call_back.h" + +#include + #include "iremote_proxy.h" namespace OHOS { diff --git a/interfaces/ipc/include/register_d_input_call_back_stub.h b/interfaces/ipc/include/register_d_input_call_back_stub.h index d68f570..65a6e33 100644 --- a/interfaces/ipc/include/register_d_input_call_back_stub.h +++ b/interfaces/ipc/include/register_d_input_call_back_stub.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,10 +16,12 @@ #ifndef REGIST_D_INPUT_CALL_BACK_STUB_H #define REGIST_D_INPUT_CALL_BACK_STUB_H -#include -#include "iremote_stub.h" #include "i_register_d_input_call_back.h" +#include + +#include "iremote_stub.h" + namespace OHOS { namespace DistributedHardware { namespace DistributedInput { diff --git a/interfaces/ipc/include/start_d_input_call_back_proxy.h b/interfaces/ipc/include/start_d_input_call_back_proxy.h index a7d34f2..39c5697 100644 --- a/interfaces/ipc/include/start_d_input_call_back_proxy.h +++ b/interfaces/ipc/include/start_d_input_call_back_proxy.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,8 +16,10 @@ #ifndef START_D_INPUT_CALL_BACK_PROXY_H #define START_D_INPUT_CALL_BACK_PROXY_H -#include #include "i_start_d_input_call_back.h" + +#include + #include "iremote_proxy.h" namespace OHOS { diff --git a/interfaces/ipc/include/start_d_input_call_back_stub.h b/interfaces/ipc/include/start_d_input_call_back_stub.h index 38bc044..a907c30 100644 --- a/interfaces/ipc/include/start_d_input_call_back_stub.h +++ b/interfaces/ipc/include/start_d_input_call_back_stub.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,8 +16,10 @@ #ifndef START_D_INPUT_CALL_BACK_STUB_H #define START_D_INPUT_CALL_BACK_STUB_H -#include #include "i_start_d_input_call_back.h" + +#include + #include "iremote_stub.h" namespace OHOS { diff --git a/interfaces/ipc/include/start_d_input_server_call_back_proxy.h b/interfaces/ipc/include/start_d_input_server_call_back_proxy.h index d4ea040..bbffd0c 100644 --- a/interfaces/ipc/include/start_d_input_server_call_back_proxy.h +++ b/interfaces/ipc/include/start_d_input_server_call_back_proxy.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,8 +16,10 @@ #ifndef START_D_INPUT_SERVER_CALL_BACK_PROXY_H #define START_D_INPUT_SERVER_CALL_BACK_PROXY_H -#include #include "i_start_d_input_server_call_back.h" + +#include + #include "iremote_proxy.h" namespace OHOS { diff --git a/interfaces/ipc/include/start_d_input_server_call_back_stub.h b/interfaces/ipc/include/start_d_input_server_call_back_stub.h index a528dda..2e4a055 100644 --- a/interfaces/ipc/include/start_d_input_server_call_back_stub.h +++ b/interfaces/ipc/include/start_d_input_server_call_back_stub.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,10 +16,12 @@ #ifndef START_D_INPUT_SERVER_CALL_BACK_STUB_H #define START_D_INPUT_SERVER_CALL_BACK_STUB_H -#include -#include "iremote_stub.h" #include "i_start_d_input_server_call_back.h" +#include + +#include "iremote_stub.h" + namespace OHOS { namespace DistributedHardware { namespace DistributedInput { diff --git a/interfaces/ipc/include/stop_d_input_call_back_proxy.h b/interfaces/ipc/include/stop_d_input_call_back_proxy.h index 51e59e4..355755e 100644 --- a/interfaces/ipc/include/stop_d_input_call_back_proxy.h +++ b/interfaces/ipc/include/stop_d_input_call_back_proxy.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,8 +16,10 @@ #ifndef STOP_D_INPUT_CALL_BACK_PROXY_H #define STOP_D_INPUT_CALL_BACK_PROXY_H -#include #include "i_stop_d_input_call_back.h" + +#include + #include "iremote_proxy.h" namespace OHOS { diff --git a/interfaces/ipc/include/stop_d_input_call_back_stub.h b/interfaces/ipc/include/stop_d_input_call_back_stub.h index de8ed7f..7d2c246 100644 --- a/interfaces/ipc/include/stop_d_input_call_back_stub.h +++ b/interfaces/ipc/include/stop_d_input_call_back_stub.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,8 +16,10 @@ #ifndef STOP_D_INPUT_CALL_BACK_STUB_H #define STOP_D_INPUT_CALL_BACK_STUB_H -#include #include "i_stop_d_input_call_back.h" + +#include + #include "iremote_stub.h" namespace OHOS { diff --git a/interfaces/ipc/include/unprepare_d_input_call_back_proxy.h b/interfaces/ipc/include/unprepare_d_input_call_back_proxy.h index 04e6fe1..b512280 100644 --- a/interfaces/ipc/include/unprepare_d_input_call_back_proxy.h +++ b/interfaces/ipc/include/unprepare_d_input_call_back_proxy.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,8 +16,10 @@ #ifndef UNPREPARE_D_INPUT_CALL_BACK_PROXY_H #define UNPREPARE_D_INPUT_CALL_BACK_PROXY_H -#include #include "i_unprepare_d_input_call_back.h" + +#include + #include "iremote_proxy.h" namespace OHOS { diff --git a/interfaces/ipc/include/unprepare_d_input_call_back_stub.h b/interfaces/ipc/include/unprepare_d_input_call_back_stub.h index 68125d9..d2888a3 100644 --- a/interfaces/ipc/include/unprepare_d_input_call_back_stub.h +++ b/interfaces/ipc/include/unprepare_d_input_call_back_stub.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,10 +16,12 @@ #ifndef UNPREPARE_D_INPUT_CALL_BACK_STUB_H #define UNPREPARE_D_INPUT_CALL_BACK_STUB_H -#include -#include "iremote_stub.h" #include "i_unprepare_d_input_call_back.h" +#include + +#include "iremote_stub.h" + namespace OHOS { namespace DistributedHardware { namespace DistributedInput { diff --git a/interfaces/ipc/include/unregister_d_input_call_back_proxy.h b/interfaces/ipc/include/unregister_d_input_call_back_proxy.h index e36ae14..3fd6180 100644 --- a/interfaces/ipc/include/unregister_d_input_call_back_proxy.h +++ b/interfaces/ipc/include/unregister_d_input_call_back_proxy.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,8 +16,10 @@ #ifndef UNREGIST_D_INPUT_CALL_BACK_PROXY_H #define UNREGIST_D_INPUT_CALL_BACK_PROXY_H -#include #include "i_unregister_d_input_call_back.h" + +#include + #include "iremote_proxy.h" namespace OHOS { diff --git a/interfaces/ipc/include/unregister_d_input_call_back_stub.h b/interfaces/ipc/include/unregister_d_input_call_back_stub.h index b9e38ac..7e41581 100644 --- a/interfaces/ipc/include/unregister_d_input_call_back_stub.h +++ b/interfaces/ipc/include/unregister_d_input_call_back_stub.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -16,8 +16,10 @@ #ifndef UNREGIST_D_INPUT_CALL_BACK_STUB_H #define UNREGIST_D_INPUT_CALL_BACK_STUB_H -#include #include "i_unregister_d_input_call_back.h" + +#include + #include "iremote_stub.h" namespace OHOS { diff --git a/interfaces/ipc/src/add_white_list_infos_call_back_proxy.cpp b/interfaces/ipc/src/add_white_list_infos_call_back_proxy.cpp index ee00c76..43134ce 100644 --- a/interfaces/ipc/src/add_white_list_infos_call_back_proxy.cpp +++ b/interfaces/ipc/src/add_white_list_infos_call_back_proxy.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,6 +14,7 @@ */ #include "add_white_list_infos_call_back_proxy.h" + #include "ipc_types.h" #include "parcel.h" diff --git a/interfaces/ipc/src/add_white_list_infos_call_back_stub.cpp b/interfaces/ipc/src/add_white_list_infos_call_back_stub.cpp index a8be7d8..41d9a82 100644 --- a/interfaces/ipc/src/add_white_list_infos_call_back_stub.cpp +++ b/interfaces/ipc/src/add_white_list_infos_call_back_stub.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,7 +14,9 @@ */ #include "add_white_list_infos_call_back_stub.h" + #include "string_ex.h" + #include "constants_dinput.h" #include "dinput_errcode.h" diff --git a/interfaces/ipc/src/del_white_list_infos_call_back_proxy.cpp b/interfaces/ipc/src/del_white_list_infos_call_back_proxy.cpp index 066089a..8004c43 100644 --- a/interfaces/ipc/src/del_white_list_infos_call_back_proxy.cpp +++ b/interfaces/ipc/src/del_white_list_infos_call_back_proxy.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,6 +14,7 @@ */ #include "del_white_list_infos_call_back_proxy.h" + #include "ipc_types.h" #include "parcel.h" diff --git a/interfaces/ipc/src/del_white_list_infos_call_back_stub.cpp b/interfaces/ipc/src/del_white_list_infos_call_back_stub.cpp index f36bc80..a659100 100644 --- a/interfaces/ipc/src/del_white_list_infos_call_back_stub.cpp +++ b/interfaces/ipc/src/del_white_list_infos_call_back_stub.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,7 +14,9 @@ */ #include "del_white_list_infos_call_back_stub.h" + #include "string_ex.h" + #include "constants_dinput.h" #include "dinput_errcode.h" diff --git a/interfaces/ipc/src/distributed_input_client.cpp b/interfaces/ipc/src/distributed_input_client.cpp index c12d9f6..1d63387 100644 --- a/interfaces/ipc/src/distributed_input_client.cpp +++ b/interfaces/ipc/src/distributed_input_client.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,14 +14,17 @@ */ #include "distributed_input_client.h" -#include -#include -#include "constants_dinput.h" -#include "white_list_util.h" + +#include "anonymous_string.h" #include "distributed_hardware_log.h" -#include "dinput_errcode.h" +#include "iservice_registry.h" #include "nlohmann/json.hpp" +#include "system_ability_definition.h" + +#include "constants_dinput.h" +#include "dinput_errcode.h" #include "softbus_bus_center.h" +#include "white_list_util.h" namespace OHOS { namespace DistributedHardware { diff --git a/interfaces/ipc/src/distributed_input_sink_proxy.cpp b/interfaces/ipc/src/distributed_input_sink_proxy.cpp index a8184a5..8f3dfaa 100644 --- a/interfaces/ipc/src/distributed_input_sink_proxy.cpp +++ b/interfaces/ipc/src/distributed_input_sink_proxy.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,6 +14,7 @@ */ #include "distributed_input_sink_proxy.h" + #include "dinput_errcode.h" namespace OHOS { diff --git a/interfaces/ipc/src/distributed_input_sink_stub.cpp b/interfaces/ipc/src/distributed_input_sink_stub.cpp index 71483f3..7b546d7 100644 --- a/interfaces/ipc/src/distributed_input_sink_stub.cpp +++ b/interfaces/ipc/src/distributed_input_sink_stub.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,6 +14,7 @@ */ #include "distributed_input_sink_stub.h" + #include "constants_dinput.h" #include "dinput_errcode.h" diff --git a/interfaces/ipc/src/distributed_input_source_proxy.cpp b/interfaces/ipc/src/distributed_input_source_proxy.cpp index 29ed686..49e6418 100644 --- a/interfaces/ipc/src/distributed_input_source_proxy.cpp +++ b/interfaces/ipc/src/distributed_input_source_proxy.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,6 +14,7 @@ */ #include "distributed_input_source_proxy.h" + #include "dinput_errcode.h" namespace OHOS { diff --git a/interfaces/ipc/src/distributed_input_source_stub.cpp b/interfaces/ipc/src/distributed_input_source_stub.cpp index f7c5414..30359f0 100644 --- a/interfaces/ipc/src/distributed_input_source_stub.cpp +++ b/interfaces/ipc/src/distributed_input_source_stub.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,6 +14,7 @@ */ #include "distributed_input_source_stub.h" + #include "constants_dinput.h" #include "dinput_errcode.h" diff --git a/interfaces/ipc/src/prepare_d_input_call_back_proxy.cpp b/interfaces/ipc/src/prepare_d_input_call_back_proxy.cpp index 805a053..b4f8642 100644 --- a/interfaces/ipc/src/prepare_d_input_call_back_proxy.cpp +++ b/interfaces/ipc/src/prepare_d_input_call_back_proxy.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,6 +14,7 @@ */ #include "prepare_d_input_call_back_proxy.h" + #include "ipc_types.h" #include "parcel.h" diff --git a/interfaces/ipc/src/prepare_d_input_call_back_stub.cpp b/interfaces/ipc/src/prepare_d_input_call_back_stub.cpp index aa7cbe3..ea2c7e4 100644 --- a/interfaces/ipc/src/prepare_d_input_call_back_stub.cpp +++ b/interfaces/ipc/src/prepare_d_input_call_back_stub.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,7 +14,9 @@ */ #include "prepare_d_input_call_back_stub.h" + #include "string_ex.h" + #include "constants_dinput.h" #include "dinput_errcode.h" diff --git a/interfaces/ipc/src/register_d_input_call_back_proxy.cpp b/interfaces/ipc/src/register_d_input_call_back_proxy.cpp index 8874c04..7a876ea 100644 --- a/interfaces/ipc/src/register_d_input_call_back_proxy.cpp +++ b/interfaces/ipc/src/register_d_input_call_back_proxy.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,6 +14,7 @@ */ #include "register_d_input_call_back_proxy.h" + #include "ipc_types.h" #include "parcel.h" diff --git a/interfaces/ipc/src/register_d_input_call_back_stub.cpp b/interfaces/ipc/src/register_d_input_call_back_stub.cpp index 0037010..2a27581 100644 --- a/interfaces/ipc/src/register_d_input_call_back_stub.cpp +++ b/interfaces/ipc/src/register_d_input_call_back_stub.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,7 +14,9 @@ */ #include "register_d_input_call_back_stub.h" + #include "string_ex.h" + #include "constants_dinput.h" #include "dinput_errcode.h" diff --git a/interfaces/ipc/src/start_d_input_call_back_proxy.cpp b/interfaces/ipc/src/start_d_input_call_back_proxy.cpp index d8eeceb..e7b5f44 100644 --- a/interfaces/ipc/src/start_d_input_call_back_proxy.cpp +++ b/interfaces/ipc/src/start_d_input_call_back_proxy.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,6 +14,7 @@ */ #include "start_d_input_call_back_proxy.h" + #include "ipc_types.h" #include "parcel.h" diff --git a/interfaces/ipc/src/start_d_input_call_back_stub.cpp b/interfaces/ipc/src/start_d_input_call_back_stub.cpp index 9d67364..31ba8dd 100644 --- a/interfaces/ipc/src/start_d_input_call_back_stub.cpp +++ b/interfaces/ipc/src/start_d_input_call_back_stub.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,7 +14,9 @@ */ #include "start_d_input_call_back_stub.h" + #include "string_ex.h" + #include "constants_dinput.h" #include "dinput_errcode.h" diff --git a/interfaces/ipc/src/start_d_input_server_call_back_proxy.cpp b/interfaces/ipc/src/start_d_input_server_call_back_proxy.cpp index fa20da1..4c9ffb7 100644 --- a/interfaces/ipc/src/start_d_input_server_call_back_proxy.cpp +++ b/interfaces/ipc/src/start_d_input_server_call_back_proxy.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,6 +14,7 @@ */ #include "start_d_input_server_call_back_proxy.h" + #include "ipc_types.h" #include "parcel.h" diff --git a/interfaces/ipc/src/start_d_input_server_call_back_stub.cpp b/interfaces/ipc/src/start_d_input_server_call_back_stub.cpp index 0cbfa14..8667ee1 100644 --- a/interfaces/ipc/src/start_d_input_server_call_back_stub.cpp +++ b/interfaces/ipc/src/start_d_input_server_call_back_stub.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,7 +14,9 @@ */ #include "start_d_input_server_call_back_stub.h" + #include "string_ex.h" + #include "constants_dinput.h" #include "dinput_errcode.h" diff --git a/interfaces/ipc/src/stop_d_input_call_back_proxy.cpp b/interfaces/ipc/src/stop_d_input_call_back_proxy.cpp index b028713..1d303eb 100644 --- a/interfaces/ipc/src/stop_d_input_call_back_proxy.cpp +++ b/interfaces/ipc/src/stop_d_input_call_back_proxy.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,6 +14,7 @@ */ #include "stop_d_input_call_back_proxy.h" + #include "ipc_types.h" #include "parcel.h" diff --git a/interfaces/ipc/src/stop_d_input_call_back_stub.cpp b/interfaces/ipc/src/stop_d_input_call_back_stub.cpp index fb3ec2d..6581dfa 100644 --- a/interfaces/ipc/src/stop_d_input_call_back_stub.cpp +++ b/interfaces/ipc/src/stop_d_input_call_back_stub.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,7 +14,9 @@ */ #include "stop_d_input_call_back_stub.h" + #include "string_ex.h" + #include "constants_dinput.h" #include "dinput_errcode.h" diff --git a/interfaces/ipc/src/unprepare_d_input_call_back_proxy.cpp b/interfaces/ipc/src/unprepare_d_input_call_back_proxy.cpp index d1d1bc7..396aa58 100644 --- a/interfaces/ipc/src/unprepare_d_input_call_back_proxy.cpp +++ b/interfaces/ipc/src/unprepare_d_input_call_back_proxy.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,6 +14,7 @@ */ #include "unprepare_d_input_call_back_proxy.h" + #include "ipc_types.h" #include "parcel.h" diff --git a/interfaces/ipc/src/unprepare_d_input_call_back_stub.cpp b/interfaces/ipc/src/unprepare_d_input_call_back_stub.cpp index c0f4756..c17a6b1 100644 --- a/interfaces/ipc/src/unprepare_d_input_call_back_stub.cpp +++ b/interfaces/ipc/src/unprepare_d_input_call_back_stub.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,7 +14,9 @@ */ #include "unprepare_d_input_call_back_stub.h" + #include "string_ex.h" + #include "constants_dinput.h" #include "dinput_errcode.h" diff --git a/interfaces/ipc/src/unregister_d_input_call_back_proxy.cpp b/interfaces/ipc/src/unregister_d_input_call_back_proxy.cpp index 8047555..4b7848a 100644 --- a/interfaces/ipc/src/unregister_d_input_call_back_proxy.cpp +++ b/interfaces/ipc/src/unregister_d_input_call_back_proxy.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,6 +14,7 @@ */ #include "unregister_d_input_call_back_proxy.h" + #include "ipc_types.h" #include "parcel.h" diff --git a/interfaces/ipc/src/unregister_d_input_call_back_stub.cpp b/interfaces/ipc/src/unregister_d_input_call_back_stub.cpp index 97bfaea..e891e50 100644 --- a/interfaces/ipc/src/unregister_d_input_call_back_stub.cpp +++ b/interfaces/ipc/src/unregister_d_input_call_back_stub.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -14,7 +14,9 @@ */ #include "unregister_d_input_call_back_stub.h" + #include "string_ex.h" + #include "constants_dinput.h" #include "dinput_errcode.h" diff --git a/sa_profile/4809.xml b/sa_profile/4809.xml index 970cf96..c616e03 100644 --- a/sa_profile/4809.xml +++ b/sa_profile/4809.xml @@ -1,6 +1,6 @@