update code/BasicFeature/Native/NdkQoS/build-profile.json5.

Signed-off-by: 产品经理的姓名 <412338663@qq.com>
Signed-off-by: Leibobo <412338663@qq.com>
This commit is contained in:
产品经理的姓名 2024-04-01 03:32:14 +00:00 committed by Leibobo
parent 8edb790a7a
commit f0d39d4a4c
11 changed files with 280 additions and 41 deletions

89
OAT.xml
View File

@ -103,6 +103,17 @@ Note:If the text contains special characters, please escape them according to th
<filteritem type="filepath" name="network/Bluetooth/entry/src/main/java/ohos/samples/bluetooth/adapter/" desc="Not contains 3rd codelicense file is not required in this subdirectory."/>
</filefilter>
<filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies" >
<filteritem type="filepath" name="code/BasicFeature/Security/Asset/AppScope/resources/base/media/app_icon.png" desc="Provided by the UX team."/>
<filteritem type="filepath" name="code/BasicFeature/Security/Asset/AppScope/resources/base/media/forward.png" desc="Provided by the UX team."/>
<filteritem type="filepath" name="code/BasicFeature/Security/Asset/AppScope/resources/base/media/back.png" desc="Provided by the UX team."/>
<filteritem type="filepath" name="code/BasicFeature/Security/Asset/entry/src/ohosTest/resources/base/media/icon.png" desc="Provided by the UX team."/>
<filteritem type="filepath" name="code/BasicFeature/Security/Asset/screenshots/update_edit.jpeg" desc="screenshot"/>
<filteritem type="filepath" name="code/BasicFeature/Security/Asset/screenshots/single_query_result.jpeg" desc="screenshot"/>
<filteritem type="filepath" name="code/BasicFeature/Security/Asset/screenshots/update_list.jpeg" desc="screenshot"/>
<filteritem type="filepath" name="code/BasicFeature/Security/Asset/screenshots/delete.jpeg" desc="screenshot"/>
<filteritem type="filepath" name="code/BasicFeature/Security/Asset/screenshots/save.jpeg" desc="screenshot"/>
<filteritem type="filepath" name="code/BasicFeature/Security/Asset/screenshots/batch_query_result.jpeg" desc="screenshot"/>
<filteritem type="filepath" name="code/BasicFeature/Security/Asset/screenshots/query.jpeg" desc="screenshot"/>
<filteritem type="filepath" name="ability/DistributedMusicPlayer/entry/src/main/resources/rawfile/Homey.mp3" desc="Provided by the UX team."/>
<filteritem type="filepath" name="ability/DistributedMusicPlayer/entry/src/main/resources/rawfile/Technology.mp3" desc="Provided by the UX team."/>
<filteritem type="filepath" name="UI/JsAnimation/entry/src/main/js/default/common/animator/show.mp4" desc="Provided by the UX team."/>
@ -125,9 +136,14 @@ Note:If the text contains special characters, please escape them according to th
<filteritem type="filepath" name="code/Solutions/Shopping/OrangeShopping/libs/ohos-video-component-1.0.5.tgz" desc="Provided by media/VideoShow"/>
<filteritem type="filepath" name="code/Solutions/Shopping/OrangeShopping/libs/ohos-notification-1.0.0.tgz" desc="Provided by Notification/CustomEmitter"/>
<filteritem type="filepath" name="code/Solutions/Media/MultiMedia/lib/VideoPlayer.tgz" desc="Provided by code/Solutions/Media/MultiMedia"/>
<filteritem type="filepath" name="code/Solutions/Media/MultiMedia/lib/CameraPage-1.0.0.tgz" desc="Provided by code/Solutions/Media/MultiMedia"/>
<filteritem type="filepath" name="code/BasicFeature/Media/AVRecorder/lib/VideoRecorder-1.0.0.tgz" desc="Provided by code/BasicFeature/Media/AVRecorder"/>
<filteritem type="filepath" name="code/BasicFeature/FileManagement/FileManager/lib/MyPhoneFilePage-1.0.0.tgz" desc="Provided by code/BasicFeature/FileManagement/FileManager"/>
<filteritem type="filepath" name="code/BasicFeature/Connectivity/VPN/lib/VPNFoundation-1.0.0.tgz" desc="Provided by code/BasicFeature/Connectivity/VPN"/>
<filteritem type="filepath" name="code/UI/ArkTsComponentCollection/ComponentCollection/lib/DragEvent-1.0.0.tgz" desc="Provided by code/UI/ArkTsComponentCollection/ComponentCollection"/>
<filteritem type="filepath" name="code/LaunguageBaseClassLibrary/LanguageBaseClassLibrary/lib/ProcessMessage-1.0.0.tgz" desc="Provided by code/LaunguageBaseClassLibrary/LanguageBaseClassLibrary"/>
<filteritem type="filepath" name="code/BasicFeature/Notification/CustomCommonEvent/lib/CardEvent-1.0.0.tgz" desc="Provided by code/BasicFeature/Notification/CustomCommonEvent"/>
<filteritem type="filepath" name="code/BasicFeature/Ads/OAIDSample/lib/ResetOAID-1.0.0.tgz" desc="Provided by code/BasicFeature/Ads/OAIDSample"/>
<filteritem type="filepath" name="code/DataMock/QuickFix/entry-signed-release.hqf" desc="Provided by code/BasicFeature/TaskManagement/TransientTask"/>
<filteritem type="filepath" name="code/Solutions/Shopping/ASOrangeShopping/data/freeinstall/famanager.hap" desc="Provided by BMS"/>
<filteritem type="filepath" name="code/Solutions/Shopping/ASOrangeShopping/data/freeinstall/launcher.hap" desc="Provided by code/SystemFeature/ApplicationModels/Launcher"/>
@ -150,6 +166,7 @@ Note:If the text contains special characters, please escape them according to th
<filteritem type="filepath" name="code/SystemFeature/Security/DLP/screenshots/haps/FileEdit.hap" desc="Provided by FileEdit"/>
<filteritem type="filepath" name="code/BasicFeature/DeviceManagement/Sensor/Capi/libs/library.har" desc="Provided by code/BasicFeature/DeviceManagement/Sensor"/>
<filteritem type="filepath" name="code/Solutions/Media/MultiMedia/lib/VideoPlayer.hap" desc="Provided by code/Solutions/Media/MultiMedia"/>
<filteritem type="filepath" name="code/Solutions/Media/MultiMedia/lib/CameraPage-1.0.0.hap" desc="Provided by code/Solutions/Media/MultiMedia"/>
<filteritem type="filepath" name="code/BasicFeature/Media/AVRecorder/lib/VideoRecorder-1.0.0.hap" desc="Provided by code/BasicFeature/Media/AVRecorder"/>
<filteritem type="filepath" name="code/BasicFeature/Connectivity/VPN/server/server.zip" desc="Provided by code/BasicFeature/Connectivity/VPN"/>
<filteritem type="filepath" name="code/BasicFeature/Connectivity/StageSocket/certificate_file.zip" desc="Provided by code/BasicFeature/Connectivity/StageSocket"/>
@ -160,6 +177,61 @@ Note:If the text contains special characters, please escape them according to th
<filteritem type="filepath" name="code/BasicFeature/Native/NdkNativeWindow/screenshots/device/GetAvailableCount.jpg" desc="Provided by code/BasicFeature/Native/NdkNativeWindow"/>
<filteritem type="filepath" name="code/BasicFeature/Native/NdkNativeWindow/screenshots/device/Main.jpg" desc="Provided by code/BasicFeature/Native/NdkNativeWindow"/>
<filteritem type="filepath" name="code/BasicFeature/Native/NdkNativeWindow/screenshots/device/ProduceBuffer.jpg" desc="Provided by code/BasicFeature/Native/NdkNativeWindow"/>
<filteritem type="filepath" name="code/BasicFeature/Native/NdkNativeWindow/screenshots/device/AttachBuffer.jpg" desc="Provided by code/BasicFeature/Native/NdkNativeWindow"/>
<filteritem type="filepath" name="code/BasicFeature/Native/NdkNativeWindow/screenshots/device/DetachBuffer.jpg" desc="Provided by code/BasicFeature/Native/NdkNativeWindow"/>
<filteritem type="filepath" name="code/BasicFeature/Native/NdkQoS/entry/src/ohosTest/resources/base/media/icon.png" desc="Provided by code/BasicFeature/Native/NdkNativeQoS"/>
<filteritem type="filepath" name="code/BasicFeature/Native/NdkQoS/entry/src/main/resources/base/media/startIcon.png" desc="Provided by code/BasicFeature/Native/NdkNativeQoS"/>
<filteritem type="filepath" name="code/BasicFeature/Native/NdkQoS/screenshots/device/QoSLog.png" desc="Provided by code/BasicFeature/Native/NdkNativeQoS"/>
<filteritem type="filepath" name="code/BasicFeature/Native/NdkQoS/screenshots/device/showlowQoScomputingTime.jpeg" desc="Provided by code/BasicFeature/Native/NdkNativeQoS"/>
<filteritem type="filepath" name="code/BasicFeature/Native/NdkQoS/AppScope/resources/base/media/app_icon.png" desc="Provided by code/BasicFeature/Native/NdkNativeQoS"/>
<filteritem type="filepath" name="code/BasicFeature/Native/NdkQoS/screenshots/device/main.jpeg" desc="Provided by code/BasicFeature/Native/NdkNativeQoS"/>
<filteritem type="filepath" name="code/BasicFeature/Native/NdkQoS/screenshots/device/showhighQoScomputingTime.jpeg" desc="Provided by code/BasicFeature/Native/NdkNativeQoS"/>
<filteritem type="filepath" name="code/DocsSample/ApplicationModels/ImplicitStartByTypeRely/entry/src/main/resources/base/media/icon.png" desc="Provided by code/DocsSample/ApplicationModels/ImplicitStartByTypeRely"/>
<filteritem type="filepath" name="code/DocsSample/ApplicationModels/ImplicitStartByTypeRely/screenshots/newability.png" desc="Provided by code/DocsSample/ApplicationModels/ImplicitStartByTypeRely"/>
<filteritem type="filepath" name="code/DocsSample/ApplicationModels/StageModelAbilityInteraction/screenshot/coldstartuppage.png" desc="Provided by code/DocsSample/ApplicationModels/StageModelAbilityInteraction"/>
<filteritem type="filepath" name="code/DocsSample/ApplicationModels/StageModelAbilityInteraction/screenshot/hotstartuppage.png" desc="Provided by code/DocsSample/ApplicationModels/StageModelAbilityInteraction"/>
<filteritem type="filepath" name="code/DocsSample/ApplicationModels/StageModelAbilityInteraction/screenshot/synergypage.png" desc="Provided by code/DocsSample/ApplicationModels/StageModelAbilityInteraction"/>
<filteritem type="filepath" name="code/DocsSample/ApplicationModels/StageModelAbilityDevelop/screenshots/main.png" desc="Provided by code/DocsSample/ApplicationModels/StageModelAbilityDevelop"/>
<filteritem type="filepath" name="code/DocsSample/ApplicationModels/StageModelAbilityInteraction/screenshot/mainpage.png" desc="Provided by code/DocsSample/ApplicationModels/StageModelAbilityInteraction"/>
<filteritem type="filepath" name="code/DocsSample/ApplicationModels/ImplicitStartByTypeRely/AppScope/resources/base/media/app_icon.png" desc="Provided by code/DocsSample/ApplicationModels/ImplicitStartByTypeRely"/>
<filteritem type="filepath" name="code/DocsSample/ApplicationModels/ImplicitStartRely/entry/src/main/resources/base/media/icon.png" desc="Provided by code/DocsSample/ApplicationModels/ImplicitStartRely"/>
<filteritem type="filepath" name="code/DocsSample/ApplicationModels/ImplicitStartRely/screenshots/newability.png" desc="Provided by code/DocsSample/ApplicationModels/ImplicitStartRely"/>
<filteritem type="filepath" name="code/DocsSample/ApplicationModels/StageProcessThread/screenshots/main.png" desc="Provided by code/DocsSample/ApplicationModels/StageProcessThread"/>
<filteritem type="filepath" name="code/DocsSample/ApplicationModels/ImplicitStartRely/AppScope/resources/base/media/app_icon.png" desc="Provided by code/DocsSample/ApplicationModels/ImplicitStartRely"/>
<filteritem type="filepath" name="code/SystemFeature/Telephony/Message/entry/src/main/resources/base/media/icon.png" desc="Provided by code/SystemFeature/Telephony/Message"/>
<filteritem type="filepath" name="code/SystemFeature/Telephony/Message/entry/src/main/resources/base/media/call_off.png" desc="Provided by code/SystemFeature/Telephony/Message"/>
<filteritem type="filepath" name="code/SystemFeature/Telephony/Message/screenshots/device/create_contact.png" desc="Provided by code/SystemFeature/Telephony/Message"/>
<filteritem type="filepath" name="code/SystemFeature/Telephony/Message/entry/src/main/resources/base/media/call_on.png" desc="Provided by code/SystemFeature/Telephony/Message"/>
<filteritem type="filepath" name="code/SystemFeature/Telephony/Message/screenshots/device/save_contact.png" desc="Provided by code/SystemFeature/Telephony/Message"/>
<filteritem type="filepath" name="code/SystemFeature/Telephony/Message/entry/src/main/resources/base/media/arrow.png" desc="Provided by code/SystemFeature/Telephony/Message"/>
<filteritem type="filepath" name="code/SystemFeature/Telephony/Message/entry/src/main/resources/base/media/contact.png" desc="Provided by code/SystemFeature/Telephony/Message"/>
<filteritem type="filepath" name="code/SystemFeature/Telephony/Message/AppScope/resources/base/media/app_icon.png" desc="Provided by code/SystemFeature/Telephony/Message"/>
<filteritem type="filepath" name="code/SystemFeature/Telephony/Message/entry/src/main/resources/base/media/sms.png" desc="Provided by code/SystemFeature/Telephony/Message"/>
<filteritem type="filepath" name="code/SystemFeature/Telephony/Message/entry/src/main/resources/base/media/back.png" desc="Provided by code/SystemFeature/Telephony/Message"/>
<filteritem type="filepath" name="code/SystemFeature/Telephony/Message/screenshots/device/send_message.png" desc="Provided by code/SystemFeature/Telephony/Message"/>
<filteritem type="filepath" name="code/SystemFeature/Telephony/Message/entry/src/ohosTest/resources/base/media/icon.png" desc="Provided by code/SystemFeature/Telephony/Message"/>
<filteritem type="filepath" name="code/SystemFeature/DistributedAppDev/DistributedAccount/entry/src/main/resources/base/media/icon.png" desc="Provided by code/SystemFeature/DistributedAppDev/DistributedAccount"/>
<filteritem type="filepath" name="code/SystemFeature/DistributedAppDev/DistributedAccount/screenshots/index.jpeg" desc="Provided by code/SystemFeature/DistributedAppDev/DistributedAccount"/>
<filteritem type="filepath" name="code/SystemFeature/DistributedAppDev/DistributedAccount/screenshots/DistributedAccountInfo.jpeg" desc="Provided by code/SystemFeature/DistributedAppDev/DistributedAccount"/>
<filteritem type="filepath" name="code/SystemFeature/DistributedAppDev/DistributedAccount/AppScope/resources/base/media/app_icon.png" desc="Provided by code/SystemFeature/DistributedAppDev/DistributedAccount"/>
<filteritem type="filepath" name="code/SystemFeature/DistributedAppDev/DistributedAccount/screenshots/DistributedAccountList.jpeg" desc="Provided by code/SystemFeature/DistributedAppDev/DistributedAccount"/>
<filteritem type="filepath" name="code/SystemFeature/DistributedAppDev/DistributedAccount/entry/src/ohosTest/resources/base/media/icon.png" desc="Provided by code/SystemFeature/DistributedAppDev/DistributedAccount"/>
<filteritem type="filepath" name="code/SystemFeature/DistributedAppDev/DistributedAuthentication/screenshots/device/delete.jpg" desc="Provided by code/SystemFeature/DistributedAppDev/DistributedAuthentication"/>
<filteritem type="filepath" name="code/SystemFeature/DistributedAppDev/DistributedAuthentication/screenshots/device/discover.jpg" desc="Provided by code/SystemFeature/DistributedAppDev/DistributedAuthentication"/>
<filteritem type="filepath" name="code/SystemFeature/DistributedAppDev/DistributedAuthentication/screenshots/device/filteroption.jpg" desc="Provided by code/SystemFeature/DistributedAppDev/DistributedAuthentication"/>
<filteritem type="filepath" name="code/SystemFeature/DistributedAppDev/DistributedAuthentication/screenshots/device/main.jpg" desc="Provided by code/SystemFeature/DistributedAppDev/DistributedAuthentication"/>
<filteritem type="filepath" name="code/SystemFeature/DistributedAppDev/DistributedAuthentication/entry/src/ohosTest/resources/base/media/icon.png" desc="Provided by code/SystemFeature/DistributedAppDev/DistributedAuthentication"/>
<filteritem type="filepath" name="code/SystemFeature/DistributedAppDev/DistributedAuthentication/entry/src/main/resources/base/media/icon.png" desc="Provided by code/SystemFeature/DistributedAppDev/DistributedAuthentication"/>
<filteritem type="filepath" name="code/SystemFeature/DistributedAppDev/DistributedAuthentication/AppScope/resources/base/media/app_icon.png" desc="Provided by code/SystemFeature/DistributedAppDev/DistributedAuthentication"/>
<filteritem type="filepath" name="code/SystemFeature/Security/CertificateFramework/entry/src/main/resources/base/media/icon.png" desc="Provided by code/SystemFeature/Security/CertificateFramework"/>
<filteritem type="filepath" name="code/SystemFeature/Security/CertificateFramework/screenshots/device/index.jpeg" desc="Provided by code/SystemFeature/Security/CertificateFramework"/>
<filteritem type="filepath" name="code/SystemFeature/Security/CertificateFramework/screenshots/device/chain_index.jpeg" desc="Provided by code/SystemFeature/Security/CertificateFramework"/>
<filteritem type="filepath" name="code/SystemFeature/Security/CertificateFramework/screenshots/device/chain_success.jpeg" desc="Provided by code/SystemFeature/Security/CertificateFramework"/>
<filteritem type="filepath" name="code/SystemFeature/Security/CertificateFramework/screenshots/device/verify_fail.jpeg" desc="Provided by code/SystemFeature/Security/CertificateFramework"/>
<filteritem type="filepath" name="code/SystemFeature/Security/CertificateFramework/AppScope/resources/base/media/app_icon.png" desc="Provided by code/SystemFeature/Security/CertificateFramework"/>
<filteritem type="filepath" name="code/SystemFeature/Security/CertificateFramework/screenshots/device/verify_success.jpeg" desc="Provided by code/SystemFeature/Security/CertificateFramework"/>
<filteritem type="filepath" name="code/SystemFeature/Security/CertificateFramework/screenshots/device/chain_fail.jpeg" desc="Provided by code/SystemFeature/Security/CertificateFramework"/>
<filteritem type="filepath" name="code/SystemFeature/Security/CertificateFramework/entry/src/ohosTest/resources/base/media/icon.png" desc="Provided by code/SystemFeature/Security/CertificateFramework"/>
<filteritem type="filepath" name="code/BasicFeature/ArkTSCard/ArkTSCard/libs/ArkTSUser.hap" desc="Provided by code/BasicFeature/ArkTSCard/ArkTSCard"/>
<filteritem type="filepath" name="code/Project/HapBuild/compile-tool/tool/sign_tool/OpenHarmonyProfileDebug.pem" desc="Provided by code/Project/HapBuild"/>
<filteritem type="filepath" name="code/Project/HapBuild/compile-tool/tool/sign_tool/OpenHarmonyApplication.pem" desc="Provided by code/Project/HapBuild"/>
@ -169,9 +241,14 @@ Note:If the text contains special characters, please escape them according to th
<filteritem type="filepath" name="code/Project/HapBuild/compile-tool/resources/app1-signed.hap" desc="Provided by code/Project/HapBuild"/>
<filteritem type="filepath" name="code/BasicFeature/FileManagement/FileManager/lib/MyPhoneFilePage-1.0.0.hap" desc="Provided by code/BasicFeature/FileManagement/FileManager"/>
<filteritem type="filepath" name="code/BasicFeature/Connectivity/VPN/lib/VPNFoundation-1.0.0.hap" desc="Provided by code/BasicFeature/Connectivity/VPN"/>
<filteritem type="filepath" name="code/UI/ArkTsComponentCollection/ComponentCollection/lib/DragEvent-1.0.0.hap" desc="Provided by code/UI/ArkTsComponentCollection/ComponentCollection"/>
<filteritem type="filepath" name="code/LaunguageBaseClassLibrary/LanguageBaseClassLibrary/lib/ProcessMessage-1.0.0.hap" desc="Provided by code/LaunguageBaseClassLibrary/LanguageBaseClassLibrary"/>
<filteritem type="filepath" name="code/BasicFeature/Notification/CustomCommonEvent/lib/CardEvent-1.0.0.hap" desc="Provided by code/BasicFeature/Notification/CustomCommonEvent"/>
<filteritem type="filepath" name="code/BasicFeature/Ads/OAIDSample/lib/ResetOAID-1.0.0.hap" desc="Provided by code/BasicFeature/Ads/OAIDSample"/>
<filteritem type="filepath" name="code/BasicFeature/DeviceManagement/Sensor/Capi/entry/src/main/resources/base/media/compass.png" desc="Provided by code/BasicFeature/DeviceManagement/Sensor"/>
<filteritem type="filepath" name=" code/BasicFeature/DeviceManagement/Vibrator/CustomHaptic/entry/src/main/resources/base/media/select.png" desc="Provided by code/BasicFeature/DeviceManagement/Vibrator"/>
<filteritem type="filepath" name="code/BasicFeature/Graphics/DisplaySync/screenshots/device/animator.jpg" desc="Provided by code/BasicFeature/Graphics/DisplaySync"/>
</filefilter>
<filefilter name="defaultPolicyFilter" desc="License文件头校验策略的过滤条件" >
<filteritem type="filename" name="oh-package.json5" desc="OpenHarmony工程编译入口脚本无需添加License头"/>
@ -195,6 +272,12 @@ Note:If the text contains special characters, please escape them according to th
<filteritem type="filepath" name="code/BasicFeature/Media/AVRecorder/lib/VideoRecorder-1.0.0.tgz" desc="二进制文件无需添加License头"/>
<filteritem type="filepath" name="code/BasicFeature/FileManagement/FileManager/lib/MyPhoneFilePage-1.0.0.tgz" desc="二进制文件无需添加License头"/>
<filteritem type="filepath" name="code/BasicFeature/Connectivity/VPN/lib/VPNFoundation-1.0.0.tgz" desc="二进制文件无需添加License头"/>
<filteritem type="filepath" name="code/UI/ArkTsComponentCollection/ComponentCollection/lib/DragEvent-1.0.0.tgz" desc="二进制文件无需添加License头"/>
<filteritem type="filepath" name="code/LaunguageBaseClassLibrary/LanguageBaseClassLibrary/lib/ProcessMessage-1.0.0.tgz" desc="二进制文件无需添加License头"/>
<filteritem type="filepath" name="code/Solutions/Media/MultiMedia/lib/CameraPage-1.0.0.tgz" desc="二进制文件无需添加License头"/>
<filteritem type="filepath" name="code/BasicFeature/Notification/CustomCommonEvent/lib/CardEvent-1.0.0.tgz" desc="二进制文件无需添加License头"/>
<filteritem type="filepath" name="code/BasicFeature/Ads/OAIDSample/lib/ResetOAID-1.0.0.tgz" desc="二进制文件无需添加License头"/>
<filteritem type="filepath" name="code/BasicFeature/DataManagement/UDMF/UniformTypeDescriptor/UTDType/entry/src/main/resources/rawfile/arkdata/utd/utd.json5" desc="二进制文件无需添加License头"/>
</filefilter>
<filefilter name="copyrightPolicyFilter" desc="Copyright文件头校验策略的过滤条件" >
<filteritem type="filename" name="oh-package.json5" desc="OpenHarmony工程编译入口脚本无需添加版权头"/>
@ -218,6 +301,12 @@ Note:If the text contains special characters, please escape them according to th
<filteritem type="filepath" name="code/BasicFeature/Media/AVRecorder/lib/VideoRecorder-1.0.0.tgz" desc="二进制文件,无需添加版权头"/>
<filteritem type="filepath" name="code/BasicFeature/FileManagement/FileManager/lib/MyPhoneFilePage-1.0.0.tgz" desc="二进制文件,无需添加版权头"/>
<filteritem type="filepath" name="code/BasicFeature/Connectivity/VPN/lib/VPNFoundation-1.0.0.tgz" desc="二进制文件,无需添加版权头"/>
<filteritem type="filepath" name="code/UI/ArkTsComponentCollection/ComponentCollection/lib/DragEvent-1.0.0.tgz" desc="二进制文件,无需添加版权头"/>
<filteritem type="filepath" name="code/LaunguageBaseClassLibrary/LanguageBaseClassLibrary/lib/ProcessMessage-1.0.0.tgz" desc="二进制文件,无需添加版权头"/>
<filteritem type="filepath" name="code/Solutions/Media/MultiMedia/lib/CameraPage-1.0.0.tgz" desc="二进制文件,无需添加版权头"/>
<filteritem type="filepath" name="code/BasicFeature/Notification/CustomCommonEvent/lib/CardEvent-1.0.0.tgz" desc="二进制文件,无需添加版权头"/>
<filteritem type="filepath" name="code/BasicFeature/Ads/OAIDSample/lib/ResetOAID-1.0.0.tgz" desc="二进制文件,无需添加版权头"/>
<filteritem type="filepath" name="code/BasicFeature/DataManagement/UDMF/UniformTypeDescriptor/UTDType/entry/src/main/resources/rawfile/arkdata/utd/utd.json5" desc="二进制文件,无需添加版权头"/>
</filefilter>
</filefilterlist>
</oatconfig>

View File

@ -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.
*/
{
"app": {
"bundleName": "com.example.qossample",

View File

@ -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.
*/
{
"app": {
"signingConfigs": [],

View File

@ -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.
*/
{
"apiType": "stageMode",
"buildOption": {
@ -39,4 +54,4 @@
"name": "ohosTest",
}
]
}
}

View File

@ -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.
*/
#include "napi/native_api.h"
#include "qos/qos.h"
#include <thread>
@ -9,11 +24,13 @@ constexpr int DEPTH = 34;
constexpr int TASKS = 10;
constexpr int ONE = 1;
constexpr int TWO = 2;
constexpr int FIVE = 5;
static bool AddedLoad = false;
static double durationMillSecondTime;
static bool g_addLoad = false;
static double g_durationTime = 0;
double fib(double n) {
double DoFib(double n)
{
if (n == ONE) {
return ONE;
}
@ -22,13 +39,13 @@ double fib(double n) {
return TWO;
}
return fib(n - ONE) + fib(n -TWO);
return DoFib(n - ONE) + DoFib(n - TWO);
}
void setQoS(QoS_Level level) {
void SetQoS(QoS_Level level)
{
int ret = OH_QoS_SetThreadQoS(level); // 设置当前线程的QoS等级为level
if (!ret) { // ret等于0说明设置成功
if (!ret) { // ret等于0说明设置成功
OH_LOG_Print(LOG_APP, LOG_INFO, LOG_PRINT_DOMAIN, "QoS", "set qos level success.");
// 查询当前的qos等级
QoS_Level querryLevel = QoS_Level::QOS_DEFAULT;
@ -40,17 +57,17 @@ void setQoS(QoS_Level level) {
OH_LOG_Print(LOG_APP, LOG_INFO, LOG_PRINT_DOMAIN, "QoS", "get qos level failed.");
return;
}
} else { // ret不等于0说明设置失败
OH_LOG_Print(LOG_APP, LOG_INFO, LOG_PRINT_DOMAIN, "QoS", "get level qos failed!");
return;
}
auto startTime = std::chrono::system_clock::now();
double res = fib(DEPTH); // do calculation task
double res = DoFib(DEPTH); // do calculation task
auto endTime = std::chrono::system_clock::now();
durationMillSecondTime = std::chrono::duration<double, std::milli>(endTime - startTime).count();
g_durationTime = std::chrono::duration<double, std::milli>(endTime - startTime).count();
OH_LOG_Print(LOG_APP, LOG_INFO, LOG_PRINT_DOMAIN, "QoS", "calculate res is: %{public}f", res);
g_addLoad = false;
// reset
ret = OH_QoS_ResetThreadQoS();
@ -74,9 +91,10 @@ void setQoS(QoS_Level level) {
}
void addLoads(int n) {
while (true) {
n = (n + 1) % TASKS;
void AddLoads(int n)
{
while (g_addLoad) {
n = (n + ONE) % TASKS;
n *= n;
printf("%d\n", n);
}
@ -84,46 +102,47 @@ void addLoads(int n) {
static napi_value highQoSCalculate(napi_env env, napi_callback_info info)
{
durationMillSecondTime = 0;
if (!AddedLoad) {
g_durationTime = 0;
if (!g_addLoad) {
std::vector<std::thread> loadThreads;
for (int i = 0; i < TASKS; i++) {
loadThreads.emplace_back(std::thread(addLoads, 5));
loadThreads.emplace_back(std::thread(AddLoads, FIVE));
loadThreads[i].detach();
}
AddedLoad = true;
g_addLoad = true;
}
QoS_Level level = QoS_Level::QOS_USER_INTERACTIVE;
std::thread task(setQoS, level);
std::thread task(SetQoS, level);
task.join();
napi_value res;
napi_create_double(env, durationMillSecondTime, &res);
napi_create_double(env, g_durationTime, &res);
return res;
}
static napi_value lowQoSCalculate(napi_env env, napi_callback_info info) {
durationMillSecondTime = 0;
if (!AddedLoad) {
static napi_value lowQoSCalculate(napi_env env, napi_callback_info info)
{
g_durationTime = 0;
if (!g_addLoad) {
std::vector<std::thread> loadThreads;
for (int i = 0; i < 20; i++) {
loadThreads.emplace_back(std::thread(addLoads, 5));
for (int i = 0; i < TASKS; i++) {
loadThreads.emplace_back(std::thread(AddLoads, FIVE));
loadThreads[i].detach();
}
AddedLoad = true;
g_addLoad = true;
}
QoS_Level level = QoS_Level::QOS_BACKGROUND;
std::thread task(setQoS, level);
std::thread task(SetQoS, level);
task.join();
napi_value res;
napi_create_double(env, durationMillSecondTime, &res);
napi_create_double(env, g_durationTime, &res);
return res;
}
@ -132,8 +151,7 @@ static napi_value Init(napi_env env, napi_value exports)
{
napi_property_descriptor desc[] = {
{"useHighQos", nullptr, highQoSCalculate, nullptr, nullptr, nullptr, napi_default, nullptr},
{"useLowQos", nullptr, lowQoSCalculate, nullptr, nullptr, nullptr, napi_default, nullptr}
};
{"useLowQos", nullptr, lowQoSCalculate, nullptr, nullptr, nullptr, napi_default, nullptr}};
napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc);
return exports;
}
@ -145,11 +163,8 @@ static napi_module demoModule = {
.nm_filename = nullptr,
.nm_register_func = Init,
.nm_modname = "entry",
.nm_priv = ((void*)0),
.reserved = { 0 },
.nm_priv = ((void *)0),
.reserved = {0},
};
extern "C" __attribute__((constructor)) void RegisterEntryModule(void)
{
napi_module_register(&demoModule);
}
extern "C" __attribute__((constructor)) void RegisterEntryModule(void) { napi_module_register(&demoModule); }

View File

@ -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 '@kit.PerformanceAnalysisKit';
import testNapi from 'libentry.so';

View File

@ -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.
*/
{
"module": {
"name": "entry",

View File

@ -1,5 +1,20 @@
/*
* 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 './QoSAbility.test';
export default function testsuite() {
abilityTest();
}
}

View File

@ -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 { AbilityConstant, UIAbility, Want } from '@kit.AbilityKit';
import { abilityDelegatorRegistry } from '@kit.TestKit';
import { hilog } from '@kit.PerformanceAnalysisKit';
@ -45,4 +60,4 @@ export default class TestAbility extends UIAbility {
onBackground() {
hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onBackground');
}
}
}

View File

@ -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 { abilityDelegatorRegistry, TestRunner } from '@kit.TestKit';
import { UIAbility, Want } from '@kit.AbilityKit';
import { BusinessError } from '@kit.BasicServicesKit';
@ -87,4 +102,4 @@ function getMockList(jsonStr: string) {
});
hilog.info(0x0000, tag, '%{public}s', 'mock-json value:' + JSON.stringify(mockList) ?? '');
return mockList;
}
}

View File

@ -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.
*/
{
"module": {
"name": "entry_test",