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 a7b9f277b0d87ef48568a77343e2cba29fc009c2..fe23c93048c0e05318a3da9877daf939f8e2ec9b 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 756ab13e7ab5b05f2f063f6c6b1273d78e1d1a56..d92f3d4f4fdfd69ff6765af43a22a7db79144623 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 c4c187d26c30546ed81a44e1979d6ec2be6e52c2..de0f3c947a06becff706b52b6a246a4ede95f04f 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 38bfd407ab2cbbcb5b58ac51d92692a41c07b477..2bc96cc00ac50b5b304f877b98628b5dd0a6004a 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 59093c1d24fb28f26dc1f1e75566ce3c8b904120..afa3038c8f0f1802d8533d2c086f9a064772e412 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 cf8d38c69473d0148bb9bc4db7a7a44ad462fee7..709ada2c169481543c5128aab197808509904078 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 f0a812fb26193a1ee34668911be5d44f90bf5d75..f2038b6585d72922472edcd7bdab35c5cd3dcd04 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 f78924398bd29660c1b5013d46ed6d468ebbe699..037faa0d2028625a173b1412e43c49fe8c18631a 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 8c49cae229917b627c5b40b536d6e8115b59f080..6d54ff298ce23e17e7cb92b99d3bf845a005a776 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 28069ca7ac1f06cbc88a056ee640bd79e6c4ddd5..27058c2daa329a1d19ffa795384eefbf192dd7cd 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 5dad343995284a1fd185ddd2c941592fd2434119..a5f718b1567852bf2110d2982cc8f4929f4c3d50 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 3adf7d9a75e3a563e3de6c6703dcc169f3ba349c..e5576cc7a38946ea1d48151f5240b1f77ebcc9f5 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 1f2d3e57fe33f12665dce5758fbfc2acb561f047..a234edb978c7245109352b9e71b71b119fc43e4d 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 882019408b8fc532e99f45ab86d7c9738299d3e7..9fef18a499238009abd9d53faf2f73511c2586e7 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 d961db44d2fdbb8669d22d2168b8969e015fef2e..fbb045e8d4fad8fa6b62c88b50892a21527a1fa2 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 d766fe249dfc3ada636f27e64d9b64451ce32c93..0281b044fd07dc177b08a4721285e9e79f2e4c6f 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 69abc1cd8993964eeb2ff1f948832e8cf61b6a48..c5c22adbd88f68364fe79ac5a80cf8decbfb67b4 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 6861293e47dfd0186da380321b73be9033507e24..89893efc1dc5e2e653008e94895b9d3648442980 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 bc40219d5aa573d750a40c2948a91e8bc9a36abc..77c73bc005cbe5a8da349ec52c1d2da72866c83a 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 f1b2443f227ffd6f81488be4bab52fc24e5f5b84..f45971b31244574e50ca57b19490461407bcc3c2 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": {