From ca37f3e966401b9b8bd8582a8869f338cc980ea3 Mon Sep 17 00:00:00 2001 From: wangzhiyusss Date: Thu, 21 Dec 2023 10:42:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=8F=E8=94=BD=E5=91=8A=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangzhiyusss --- .../entry/src/main/cpp/types/libentry/index.d.ts | 15 +++++++++++++++ .../DeviceManagement/Location/entry/hvigorfile.js | 15 +++++++++++++++ .../DeviceUsageStatistics/Library/hvigorfile.ts | 15 +++++++++++++++ .../src/main/ets/entryability/EntryAbility.ts | 15 +++++++++++++++ .../entry/src/main/cpp/types/libentry/index.d.ts | 15 +++++++++++++++ .../ets/testrunner/OpenHarmonyTestRunner.ts | 15 +++++++++++++++ .../src/main/ets/utils/Calc.ts | 15 +++++++++++++++ .../src/main/ets/entryability/EntryAbility.ts | 15 +++++++++++++++ .../Security/PaySecurely/entry/hvigorfile.ts | 15 +++++++++++++++ .../ReminderAgentManager/hvigorfile.js | 15 +++++++++++++++ .../ets/testrunner/OpenHarmonyTestRunner.ts | 15 +++++++++++++++ .../src/main/common/StatePersistence.ts | 15 +++++++++++++++ 12 files changed, 180 insertions(+) diff --git a/code/BasicFeature/Connectivity/VPN/entry/src/main/cpp/types/libentry/index.d.ts b/code/BasicFeature/Connectivity/VPN/entry/src/main/cpp/types/libentry/index.d.ts index d35c7c71a..ac36d80b3 100644 --- a/code/BasicFeature/Connectivity/VPN/entry/src/main/cpp/types/libentry/index.d.ts +++ b/code/BasicFeature/Connectivity/VPN/entry/src/main/cpp/types/libentry/index.d.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const tcpConnect: (addr: string, port: number) => number; export const startVpn: (tunFd: number, tunnelFd: number) => number; diff --git a/code/BasicFeature/DeviceManagement/Location/entry/hvigorfile.js b/code/BasicFeature/DeviceManagement/Location/entry/hvigorfile.js index d7720ee6a..8371a4ae7 100644 --- a/code/BasicFeature/DeviceManagement/Location/entry/hvigorfile.js +++ b/code/BasicFeature/DeviceManagement/Location/entry/hvigorfile.js @@ -1,2 +1,17 @@ +/* + * Copyright (c) 2023 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. module.exports = require('@ohos/hvigor-ohos-plugin').hapTasks diff --git a/code/BasicFeature/DeviceUsageStatistics/DeviceUsageStatistics/Library/hvigorfile.ts b/code/BasicFeature/DeviceUsageStatistics/DeviceUsageStatistics/Library/hvigorfile.ts index 42ed4b4a5..4bae0e1cf 100644 --- a/code/BasicFeature/DeviceUsageStatistics/DeviceUsageStatistics/Library/hvigorfile.ts +++ b/code/BasicFeature/DeviceUsageStatistics/DeviceUsageStatistics/Library/hvigorfile.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. module.exports = require('@ohos/hvigor-ohos-plugin').harTasks diff --git a/code/BasicFeature/Media/Audio/entry/src/main/ets/entryability/EntryAbility.ts b/code/BasicFeature/Media/Audio/entry/src/main/ets/entryability/EntryAbility.ts index 47281f98a..1ae7ad684 100644 --- a/code/BasicFeature/Media/Audio/entry/src/main/ets/entryability/EntryAbility.ts +++ b/code/BasicFeature/Media/Audio/entry/src/main/ets/entryability/EntryAbility.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import UIAbility from '@ohos.app.ability.UIAbility'; import hilog from '@ohos.hilog'; import window from '@ohos.window'; diff --git a/code/BasicFeature/Media/Camera/entry/src/main/cpp/types/libentry/index.d.ts b/code/BasicFeature/Media/Camera/entry/src/main/cpp/types/libentry/index.d.ts index f110e595a..6e3cc24a6 100644 --- a/code/BasicFeature/Media/Camera/entry/src/main/cpp/types/libentry/index.d.ts +++ b/code/BasicFeature/Media/Camera/entry/src/main/cpp/types/libentry/index.d.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const initCamera:(surfaceId: string, focusMode: number, cameraDeviceIndex: number) => number; export const startPhotoOrVideo: (modeFlag: string, videoId: string, photoId: string) => number; export const videoOutputStart: () => number; diff --git a/code/BasicFeature/Native/NdkNativeWindow/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts b/code/BasicFeature/Native/NdkNativeWindow/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts index 38503d464..f9117aa96 100644 --- a/code/BasicFeature/Native/NdkNativeWindow/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts +++ b/code/BasicFeature/Native/NdkNativeWindow/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import hilog from '@ohos.hilog'; import TestRunner from '@ohos.application.testRunner'; import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'; diff --git a/code/BasicFeature/Resource/ResourceManager/libraryRuntimeOverlay/src/main/ets/utils/Calc.ts b/code/BasicFeature/Resource/ResourceManager/libraryRuntimeOverlay/src/main/ets/utils/Calc.ts index daf274e9a..18e772e60 100644 --- a/code/BasicFeature/Resource/ResourceManager/libraryRuntimeOverlay/src/main/ets/utils/Calc.ts +++ b/code/BasicFeature/Resource/ResourceManager/libraryRuntimeOverlay/src/main/ets/utils/Calc.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export function add(a:number, b:number): number { return a + b; } \ No newline at end of file diff --git a/code/BasicFeature/Security/CryptoFramework/entry/src/main/ets/entryability/EntryAbility.ts b/code/BasicFeature/Security/CryptoFramework/entry/src/main/ets/entryability/EntryAbility.ts index c9c6d3d89..202b948c9 100644 --- a/code/BasicFeature/Security/CryptoFramework/entry/src/main/ets/entryability/EntryAbility.ts +++ b/code/BasicFeature/Security/CryptoFramework/entry/src/main/ets/entryability/EntryAbility.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import UIAbility from '@ohos.app.ability.UIAbility'; import hilog from '@ohos.hilog'; import window from '@ohos.window'; diff --git a/code/BasicFeature/Security/PaySecurely/entry/hvigorfile.ts b/code/BasicFeature/Security/PaySecurely/entry/hvigorfile.ts index 80e4ec5b8..b16f61d76 100644 --- a/code/BasicFeature/Security/PaySecurely/entry/hvigorfile.ts +++ b/code/BasicFeature/Security/PaySecurely/entry/hvigorfile.ts @@ -1,2 +1,17 @@ +/* + * Copyright (c) 2023 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. export { hapTasks } from '@ohos/hvigor-ohos-plugin'; diff --git a/code/BasicFeature/TaskManagement/ReminderAgentManager/hvigorfile.js b/code/BasicFeature/TaskManagement/ReminderAgentManager/hvigorfile.js index 5f2735e3d..2d4f29ac3 100644 --- a/code/BasicFeature/TaskManagement/ReminderAgentManager/hvigorfile.js +++ b/code/BasicFeature/TaskManagement/ReminderAgentManager/hvigorfile.js @@ -1,2 +1,17 @@ +/* + * Copyright (c) 2023 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. module.exports = require('@ohos/hvigor-ohos-plugin').appTasks \ No newline at end of file diff --git a/code/Performance/renderGroup/product/phone/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts b/code/Performance/renderGroup/product/phone/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts index 6058f78b8..d9f862c2e 100644 --- a/code/Performance/renderGroup/product/phone/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts +++ b/code/Performance/renderGroup/product/phone/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import hilog from '@ohos.hilog'; import TestRunner from '@ohos.application.testRunner'; import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'; diff --git a/code/SuperFeature/Widget/FormExtAbility/persistentProxyForm/src/main/common/StatePersistence.ts b/code/SuperFeature/Widget/FormExtAbility/persistentProxyForm/src/main/common/StatePersistence.ts index 033885b9c..317e7420a 100644 --- a/code/SuperFeature/Widget/FormExtAbility/persistentProxyForm/src/main/common/StatePersistence.ts +++ b/code/SuperFeature/Widget/FormExtAbility/persistentProxyForm/src/main/common/StatePersistence.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import type common from '@ohos.app.ability.common'; import fs from '@ohos.file.fs'; import Logger from './Logger';