From a858f83fd3460204a8d692f98574396f1da9f439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=B4=E4=BC=9F=E7=90=A6?= Date: Wed, 26 Jul 2023 17:07:43 +0800 Subject: [PATCH] head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 戴伟琦 --- .../codec_ndk_test/build-profile.json5 | 14 ++++++++++++++ .../codec_ndk_test/entry/build-profile.json5 | 14 ++++++++++++++ .../codec_ndk_test/entry/hvigorfile.ts | 14 ++++++++++++++ .../codec_ndk_test/entry/oh-package.json5 | 14 ++++++++++++++ .../codec_ndk_test/entry/src/main/config.json | 1 + .../codec_ndk_test/entry/src/main/cpp/BUILD.gn | 2 +- .../codec_ndk_test/entry/src/main/cpp/hello.cpp | 15 +++++++++++++++ .../entry/src/main/cpp/types/libentry/index.d.ts | 15 ++++++++++++++- .../src/main/cpp/types/libentry/oh-package.json5 | 14 ++++++++++++++ .../entry/src/main/ets/MainAbility/app.ets | 14 ++++++++++++++ .../src/main/ets/MainAbility/pages/index.ets | 15 +++++++++++++++ .../entry/src/ohosTest/ets/TestAbility/app.ets | 14 ++++++++++++++ .../src/ohosTest/ets/TestAbility/pages/index.ets | 14 ++++++++++++++ .../ets/TestRunner/OpenHarmonyTestRunner.ts | 14 ++++++++++++++ .../entry/src/ohosTest/ets/test/Ability.test.ets | 14 ++++++++++++++ .../entry/src/ohosTest/ets/test/List.test.ets | 14 ++++++++++++++ .../codec_ndk_test/hvigorfile.ts | 14 ++++++++++++++ .../media_js_standard/codec_ndk_test/hvigorw.bat | 12 ++++++++++++ .../codec_ndk_test/oh-package-lock.json5 | 14 ++++++++++++++ .../codec_ndk_test/oh-package.json5 | 14 ++++++++++++++ 20 files changed, 254 insertions(+), 2 deletions(-) diff --git a/multimedia/media/media_js_standard/codec_ndk_test/build-profile.json5 b/multimedia/media/media_js_standard/codec_ndk_test/build-profile.json5 index a7b9f277b..fe23c9304 100644 --- a/multimedia/media/media_js_standard/codec_ndk_test/build-profile.json5 +++ b/multimedia/media/media_js_standard/codec_ndk_test/build-profile.json5 @@ -1,3 +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. + */ { "app": { "signingConfigs": [ diff --git a/multimedia/media/media_js_standard/codec_ndk_test/entry/build-profile.json5 b/multimedia/media/media_js_standard/codec_ndk_test/entry/build-profile.json5 index 756ab13e7..d92f3d4f4 100644 --- a/multimedia/media/media_js_standard/codec_ndk_test/entry/build-profile.json5 +++ b/multimedia/media/media_js_standard/codec_ndk_test/entry/build-profile.json5 @@ -1,3 +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. + */ { "apiType": 'faMode', "buildOption": { diff --git a/multimedia/media/media_js_standard/codec_ndk_test/entry/hvigorfile.ts b/multimedia/media/media_js_standard/codec_ndk_test/entry/hvigorfile.ts index c4c187d26..de0f3c947 100644 --- a/multimedia/media/media_js_standard/codec_ndk_test/entry/hvigorfile.ts +++ b/multimedia/media/media_js_standard/codec_ndk_test/entry/hvigorfile.ts @@ -1,2 +1,16 @@ +/* + * 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 { legacyHapTasks } from '@ohos/hvigor-ohos-plugin'; diff --git a/multimedia/media/media_js_standard/codec_ndk_test/entry/oh-package.json5 b/multimedia/media/media_js_standard/codec_ndk_test/entry/oh-package.json5 index 38bfd407a..2bc96cc00 100644 --- a/multimedia/media/media_js_standard/codec_ndk_test/entry/oh-package.json5 +++ b/multimedia/media/media_js_standard/codec_ndk_test/entry/oh-package.json5 @@ -1,3 +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. + */ { "license": "", "devDependencies": { diff --git a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/config.json b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/config.json index 59093c1d2..afa3038c8 100644 --- a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/config.json +++ b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/config.json @@ -1,3 +1,4 @@ + { "app": { "bundleName": "com.example.myapplication", diff --git a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/cpp/BUILD.gn b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/cpp/BUILD.gn index cf8d38c69..709ada2c1 100644 --- a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/cpp/BUILD.gn +++ b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/cpp/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (C) 2021 Huawei Device Co., Ltd. +# 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 diff --git a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/cpp/hello.cpp b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/cpp/hello.cpp index f0a812fb2..f2038b658 100644 --- a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/cpp/hello.cpp +++ b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/cpp/hello.cpp @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2021 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. + */ + #include "napi/native_api.h" #include "native_avcodec_audiodecoder.h" #include "native_avcodec_audioencoder.h" diff --git a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/cpp/types/libentry/index.d.ts b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/cpp/types/libentry/index.d.ts index f78924398..037faa0d2 100644 --- a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/cpp/types/libentry/index.d.ts +++ b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/cpp/types/libentry/index.d.ts @@ -1,4 +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. + */ export const demuxer: () => number; export const capability: () => number; export const videoEncoder: () => number; diff --git a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/cpp/types/libentry/oh-package.json5 b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/cpp/types/libentry/oh-package.json5 index 8c49cae22..6d54ff298 100644 --- a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/cpp/types/libentry/oh-package.json5 +++ b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/cpp/types/libentry/oh-package.json5 @@ -1,3 +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. + */ { "name": "libentry.so", "types": "./index.d.ts", diff --git a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/ets/MainAbility/app.ets b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/ets/MainAbility/app.ets index 28069ca7a..27058c2da 100644 --- a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/ets/MainAbility/app.ets +++ b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/ets/MainAbility/app.ets @@ -1,3 +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. + */ import hilog from '@ohos.hilog'; export default { diff --git a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/ets/MainAbility/pages/index.ets b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/ets/MainAbility/pages/index.ets index 5dad34399..a5f718b15 100644 --- a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/ets/MainAbility/pages/index.ets +++ b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/ets/MainAbility/pages/index.ets @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2021 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 testNapi from 'libentry.so' diff --git a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/ohosTest/ets/TestAbility/app.ets b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/ohosTest/ets/TestAbility/app.ets index 3adf7d9a7..e5576cc7a 100644 --- a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/ohosTest/ets/TestAbility/app.ets +++ b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/ohosTest/ets/TestAbility/app.ets @@ -1,3 +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. + */ import hilog from '@ohos.hilog'; import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'; import { Hypium } from '@ohos/hypium'; diff --git a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/ohosTest/ets/TestAbility/pages/index.ets b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/ohosTest/ets/TestAbility/pages/index.ets index 1f2d3e57f..a234edb97 100644 --- a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/ohosTest/ets/TestAbility/pages/index.ets +++ b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/ohosTest/ets/TestAbility/pages/index.ets @@ -1,3 +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. + */ import hilog from '@ohos.hilog'; @Entry diff --git a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/ohosTest/ets/TestRunner/OpenHarmonyTestRunner.ts b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/ohosTest/ets/TestRunner/OpenHarmonyTestRunner.ts index 882019408..9fef18a49 100644 --- a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/ohosTest/ets/TestRunner/OpenHarmonyTestRunner.ts +++ b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/ohosTest/ets/TestRunner/OpenHarmonyTestRunner.ts @@ -1,3 +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. + */ import hilog from '@ohos.hilog'; import TestRunner from '@ohos.application.testRunner'; import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'; diff --git a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/ohosTest/ets/test/Ability.test.ets b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/ohosTest/ets/test/Ability.test.ets index d961db44d..fbb045e8d 100644 --- a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/ohosTest/ets/test/Ability.test.ets +++ b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/ohosTest/ets/test/Ability.test.ets @@ -1,3 +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. + */ import hilog from '@ohos.hilog'; import entry_add from 'libentry.so'; import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' diff --git a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/ohosTest/ets/test/List.test.ets b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/ohosTest/ets/test/List.test.ets index d766fe249..0281b044f 100644 --- a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/ohosTest/ets/test/List.test.ets +++ b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/ohosTest/ets/test/List.test.ets @@ -1,3 +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. + */ import abilityTest from './Ability.test' export default function testsuite() { diff --git a/multimedia/media/media_js_standard/codec_ndk_test/hvigorfile.ts b/multimedia/media/media_js_standard/codec_ndk_test/hvigorfile.ts index 69abc1cd8..c5c22adbd 100644 --- a/multimedia/media/media_js_standard/codec_ndk_test/hvigorfile.ts +++ b/multimedia/media/media_js_standard/codec_ndk_test/hvigorfile.ts @@ -1,2 +1,16 @@ +/* + * 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 { legacyAppTasks } from '@ohos/hvigor-ohos-plugin'; \ No newline at end of file diff --git a/multimedia/media/media_js_standard/codec_ndk_test/hvigorw.bat b/multimedia/media/media_js_standard/codec_ndk_test/hvigorw.bat index 6861293e4..89893efc1 100644 --- a/multimedia/media/media_js_standard/codec_ndk_test/hvigorw.bat +++ b/multimedia/media/media_js_standard/codec_ndk_test/hvigorw.bat @@ -1,3 +1,15 @@ +@rem Copyright (c) 2023 Huawei Device Co., Ltd. +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem http://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. @if "%DEBUG%" == "" @echo off @rem ########################################################################## @rem diff --git a/multimedia/media/media_js_standard/codec_ndk_test/oh-package-lock.json5 b/multimedia/media/media_js_standard/codec_ndk_test/oh-package-lock.json5 index bc40219d5..77c73bc00 100644 --- a/multimedia/media/media_js_standard/codec_ndk_test/oh-package-lock.json5 +++ b/multimedia/media/media_js_standard/codec_ndk_test/oh-package-lock.json5 @@ -1,3 +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. + */ { "lockfileVersion": 1, "ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.", diff --git a/multimedia/media/media_js_standard/codec_ndk_test/oh-package.json5 b/multimedia/media/media_js_standard/codec_ndk_test/oh-package.json5 index f1b2443f2..f45971b31 100644 --- a/multimedia/media/media_js_standard/codec_ndk_test/oh-package.json5 +++ b/multimedia/media/media_js_standard/codec_ndk_test/oh-package.json5 @@ -1,3 +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. + */ { "license": "", "devDependencies": { -- GitLab