From c72402f96a3b53d44015647beeae510ee9df656c Mon Sep 17 00:00:00 2001 From: fangJinliang1 Date: Tue, 7 Feb 2023 11:07:49 +0800 Subject: [PATCH] add badge xts Signed-off-by: fangJinliang1 Change-Id: Id1bd58f5c9689234eb89b1bf36c08fd9b962e8c6 Signed-off-by: fangJinliang1 --- notification/ans_standard/BUILD.gn | 1 + .../AppScope/app.json | 21 +++++ .../resources/base/element/string.json | 8 ++ .../resources/base/media/app_icon.png | Bin 0 -> 15458 bytes .../actsNotificationBadgeTest/BUILD.gn | 43 ++++++++++ .../actsNotificationBadgeTest/Test.json | 27 ++++++ .../src/main/ets/Application/AbilityStage.ts | 23 ++++++ .../src/main/ets/MainAbility/MainAbility.ts | 50 +++++++++++ .../MainAbility/pages/MainAbility_pages.ets | 47 +++++++++++ .../ets/TestRunner/OpenHarmonyTestRunner.ts | 78 ++++++++++++++++++ .../test/ActsNotificationBadgeTest.test.ets | 70 ++++++++++++++++ .../entry/src/main/ets/test/List.test.ets | 20 +++++ .../entry/src/main/module.json | 41 +++++++++ .../main/resources/base/element/color.json | 8 ++ .../main/resources/base/element/string.json | 36 ++++++++ .../src/main/resources/base/media/icon.png | Bin 0 -> 15458 bytes .../resources/base/profile/form_config.json | 23 ++++++ .../resources/base/profile/main_pages.json | 5 ++ .../signature/openharmony_sx.p7b | Bin 0 -> 3436 bytes 19 files changed, 501 insertions(+) create mode 100644 notification/ans_standard/actsNotificationBadgeTest/AppScope/app.json create mode 100644 notification/ans_standard/actsNotificationBadgeTest/AppScope/resources/base/element/string.json create mode 100644 notification/ans_standard/actsNotificationBadgeTest/AppScope/resources/base/media/app_icon.png create mode 100644 notification/ans_standard/actsNotificationBadgeTest/BUILD.gn create mode 100644 notification/ans_standard/actsNotificationBadgeTest/Test.json create mode 100644 notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/Application/AbilityStage.ts create mode 100644 notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/MainAbility/MainAbility.ts create mode 100644 notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/MainAbility/pages/MainAbility_pages.ets create mode 100644 notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts create mode 100644 notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/test/ActsNotificationBadgeTest.test.ets create mode 100644 notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/test/List.test.ets create mode 100644 notification/ans_standard/actsNotificationBadgeTest/entry/src/main/module.json create mode 100644 notification/ans_standard/actsNotificationBadgeTest/entry/src/main/resources/base/element/color.json create mode 100644 notification/ans_standard/actsNotificationBadgeTest/entry/src/main/resources/base/element/string.json create mode 100644 notification/ans_standard/actsNotificationBadgeTest/entry/src/main/resources/base/media/icon.png create mode 100644 notification/ans_standard/actsNotificationBadgeTest/entry/src/main/resources/base/profile/form_config.json create mode 100644 notification/ans_standard/actsNotificationBadgeTest/entry/src/main/resources/base/profile/main_pages.json create mode 100644 notification/ans_standard/actsNotificationBadgeTest/signature/openharmony_sx.p7b diff --git a/notification/ans_standard/BUILD.gn b/notification/ans_standard/BUILD.gn index 0bacff17c..894b5bc2a 100644 --- a/notification/ans_standard/BUILD.gn +++ b/notification/ans_standard/BUILD.gn @@ -16,6 +16,7 @@ group("ans_standard") { testonly = true if (is_standard_system) { deps = [ + "actsNotificationBadgeTest:ActsNotificationBadgeTest", "actsNotificationDistributedTest:ActsNotificationDistributedTest", "actsNotificationManagerSlotTest:ActsNotificationManagerSlotTest", "actsNotificationPublishTest:ActsNotificationPublishTest", diff --git a/notification/ans_standard/actsNotificationBadgeTest/AppScope/app.json b/notification/ans_standard/actsNotificationBadgeTest/AppScope/app.json new file mode 100644 index 000000000..e2242a331 --- /dev/null +++ b/notification/ans_standard/actsNotificationBadgeTest/AppScope/app.json @@ -0,0 +1,21 @@ +{ + "app": { + "bundleName": "com.example.badge", + "vendor": "huawei", + "versionCode": 1000000, + "versionName": "1.0.0", + "debug": false, + "icon": "$media:icon", + "label": "$string:app_name", + "description": "$string:description_application", + "distributedNotificationEnabled": true, + "keepAlive": true, + "singleUser": true, + "minAPIVersion": 9, + "targetAPIVersion": 9, + "car": { + "apiCompatibleVersion": 9, + "singleUser": false + } + } +} diff --git a/notification/ans_standard/actsNotificationBadgeTest/AppScope/resources/base/element/string.json b/notification/ans_standard/actsNotificationBadgeTest/AppScope/resources/base/element/string.json new file mode 100644 index 000000000..0d1f12ea9 --- /dev/null +++ b/notification/ans_standard/actsNotificationBadgeTest/AppScope/resources/base/element/string.json @@ -0,0 +1,8 @@ +{ + "string":[ + { + "name":"app_name", + "value":"LifecycleTest" + } + ] +} \ No newline at end of file diff --git a/notification/ans_standard/actsNotificationBadgeTest/AppScope/resources/base/media/app_icon.png b/notification/ans_standard/actsNotificationBadgeTest/AppScope/resources/base/media/app_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..474a55588fd7216113dd42073aadf254d4dba023 GIT binary patch literal 15458 zcmV-oJe|XdP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!~g&e!~vBn4jTXfJNHRMK~#8N)t$?W zZ`*d)f6uD@IOn2&LJ;lP6@!gHh#>Y1!r&0HL_gDqb&`3X(Z=GaQp8SP` z92In5!tr>lHv4nxKS1{J@p1P!+F4$_JksuYcRrnVr_*tFKEi|jF}%m8r`_Y_l6p^% z@+LnCznqL`mDBrry9$FzRWuxkQF=}GpwhbiR|yW zmfjQNx4tFelhpeM=s1qPZ}7VBtuHUqIh+_+IvN7$>(jXIa?55SEAd6rfw_FG^Ciq> zUAOb*d;6XH7UwzzrTnE1QtLJmPK4||=GS#JMbf8dX;2o^T+5qYx7QF%t86tY^M!6V zrngTY z1udv}ju^g5nNRXGgh*Bp3Mrd$sWa|p#az3e^Glh~4OYDwx?a*KW72*IFc`5a72{iM zp*N~%>#A7GyQ5CGc@5sreOI4Vr-jh46-ty$UgtlNS4u^>BKcJpW(i@*S9!$UCqmcd z(U6LQxPK-@LYcI@ROQlUqYfv9)@pP1D z^PG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DP($<}KZ+-u>XG?b9I5f47B0;%?P3__l;YH& z`92CVO`RCVP#y-H@nJZgr1<2a{xBQ-lIK~pAH?^`km{I01IzdD7@r|t*_4y`9@NA5 zq$<1;c6}R8!%NJeZ{_C?c;3;(Bhvgl9`1TUrhJs+)3eHTVN^Wtf9v1;w`bk-!U80# zPb4Nai`;Q4VyWJmBm(HGVb%x!$o9g(m z@BNm8)L5LW41ks^%nDsO9dc#n{!ihj%?OK8jS5s)q|ox6AsyuMaEws?(61<4>Dl&% z(AowWE}sZbd2$Fpd3X!W{44-|eRU%5z)~*gA?R**Vyu2$E5~BWM~PgBBq$=kqGE67 z`@|=dDkKs@MXyRk(q=Sb__5!7i&kaqd|~>q`yW64akf!;YC=W70<8l5tW13-+~|Y; zkOj7m+O z!5pPf&u5hW8I_=fD zD*;20N{)BIOQ{tj;NRl5w-|ch2}M5c{wK!f>CfqKoBq&WEM66PqkaN5`Y)t8TRI`--F?$f7FyF2*vpx(dgmuRWV_Q&1- Y0jIQKqpXab7ytkO07*qoM6N<$f;yQ2zW@LL literal 0 HcmV?d00001 diff --git a/notification/ans_standard/actsNotificationBadgeTest/BUILD.gn b/notification/ans_standard/actsNotificationBadgeTest/BUILD.gn new file mode 100644 index 000000000..9112c8a95 --- /dev/null +++ b/notification/ans_standard/actsNotificationBadgeTest/BUILD.gn @@ -0,0 +1,43 @@ +# 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("//test/xts/tools/build/suite.gni") + +ohos_js_hap_suite("ActsNotificationBadgeTest") { + hap_profile = "entry/src/main/module.json" + js_build_mode = "debug" + deps = [ + ":badgetest_js_assets", + ":badgetest_resources", + ] + ets2abc = true + certificate_profile = "signature/openharmony_sx.p7b" + hap_name = "ActsNotificationBadgeTest" + subsystem_name = "ability" + part_name = "ability_runtime" +} + +ohos_app_scope("badgetest_app_profile") { + app_profile = "AppScope/app.json" + sources = [ "AppScope/resources" ] +} + +ohos_js_assets("badgetest_js_assets") { + source_dir = "entry/src/main/ets" +} + +ohos_resources("badgetest_resources") { + sources = [ "entry/src/main/resources" ] + deps = [ ":badgetest_app_profile" ] + hap_profile = "entry/src/main/module.json" +} diff --git a/notification/ans_standard/actsNotificationBadgeTest/Test.json b/notification/ans_standard/actsNotificationBadgeTest/Test.json new file mode 100644 index 000000000..76a3c5caa --- /dev/null +++ b/notification/ans_standard/actsNotificationBadgeTest/Test.json @@ -0,0 +1,27 @@ +{ + "description": "Configuration for hjunit demo Tests", + "driver": { + "type": "OHJSUnitTest", + "test-timeout": "180000", + "bundle-name": "com.example.badge", + "module-name": "phone", + "shell-timeout": "600000", + "testcase-timeout": 70000 + }, + "kits": [ + { + "test-file-name": [ + "ActsNotificationBadgeTest.hap" + ], + "type": "AppInstallKit", + "cleanup-apps": true + }, + { + "type":"ShellKit", + "run-command":[ + "anm setting -e com.example.badge:0:1" + ], + "cleanup-apps":true + } + ] +} diff --git a/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/Application/AbilityStage.ts b/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/Application/AbilityStage.ts new file mode 100644 index 000000000..308e590c0 --- /dev/null +++ b/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/Application/AbilityStage.ts @@ -0,0 +1,23 @@ +/* + * 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 AbilityStage from "@ohos.app.ability.AbilityStage" + +export default class MyAbilityStage extends AbilityStage { + onCreate() { + console.log("[Demo] MyAbilityStage onCreate") + globalThis.stageContext = this.context; + } +} \ No newline at end of file diff --git a/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/MainAbility/MainAbility.ts b/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/MainAbility/MainAbility.ts new file mode 100644 index 000000000..3d3941763 --- /dev/null +++ b/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/MainAbility/MainAbility.ts @@ -0,0 +1,50 @@ +/* + * 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 Ability from '@ohos.app.ability.UIAbility' + +export default class MainAbility extends Ability { + + onCreate(want, launchParam) { + console.log("[Demo] MainAbility onCreate") + globalThis.abilityWant = want; + globalThis.applicationContext = this.context.getApplicationContext(); + } + + onDestroy() { + console.log("[Demo] MainAbility onDestroy") + } + + onWindowStageCreate(windowStage) { + // Main window is created, set main page for this ability + console.log("[Demo] MainAbility onWindowStageCreate") + globalThis.abilityContext = this.context; + windowStage.setUIContent(this.context, "MainAbility/pages/MainAbility_pages", null) + } + + onWindowStageDestroy() { + // Main window is destroyed, release UI related resources + console.log("[Demo] MainAbility onWindowStageDestroy") + } + + onForeground() { + // Ability has brought to foreground + console.log("[Demo] MainAbility onForeground") + } + + onBackground() { + // Ability has back to background + console.log("[Demo] MainAbility onBackground") + } +}; diff --git a/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/MainAbility/pages/MainAbility_pages.ets b/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/MainAbility/pages/MainAbility_pages.ets new file mode 100644 index 000000000..04e81577e --- /dev/null +++ b/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/MainAbility/pages/MainAbility_pages.ets @@ -0,0 +1,47 @@ +// @ts-nocheck +/* + * 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 router from '@ohos.router'; +import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' +import { Hypium } from '@ohos/hypium' +import testsuite from '../../test/List.test' + +@Entry +@Component +struct Index { + @State message: string = 'MainAbility' + + aboutToAppear() { + console.info("start run testcase!!!!") + var abilityDelegator: any + abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() + var abilityDelegatorArguments: any + abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() + console.info('start run testcase!!!') + Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite) + } + + build() { + Row() { + Column() { + Text(this.message) + .fontSize(50) + .fontWeight(FontWeight.Bold) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts b/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts new file mode 100644 index 000000000..5c0791be2 --- /dev/null +++ b/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts @@ -0,0 +1,78 @@ +/* + * 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 TestRunner from '@ohos.application.testRunner' +import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' + +var abilityDelegator = undefined +var abilityDelegatorArguments = undefined + +function translateParamsToString(parameters) { + const keySet = new Set([ + '-s class', '-s notClass', '-s suite', '-s it', + '-s level', '-s testType', '-s size', '-s timeout', + '-s dryRun' + ]) + let targetParams = ''; + for (const key in parameters) { + if (keySet.has(key)) { + targetParams = `${targetParams} ${key} ${parameters[key]}` + } + } + return targetParams.trim() +} + +async function onAbilityCreateCallback() { + console.log("onAbilityCreateCallback"); +} + +async function addAbilityMonitorCallback(err: any) { + console.info("addAbilityMonitorCallback : " + JSON.stringify(err)) +} + +export default class OpenHarmonyTestRunner implements TestRunner { + constructor() { + } + + onPrepare() { + console.info("OpenHarmonyTestRunner OnPrepare ") + } + + async onRun() { + console.log('OpenHarmonyTestRunner onRun run') + abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() + abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() + var testAbilityName = abilityDelegatorArguments.bundleName + '.MainAbility' + let lMonitor = { + abilityName: testAbilityName, + onAbilityCreate: onAbilityCreateCallback, + }; + abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback) + var cmd = 'aa start -d 0 -a com.example.badge.MainAbility' + ' -b ' + abilityDelegatorArguments.bundleName + cmd += ' '+translateParamsToString(abilityDelegatorArguments.parameters) + var debug = abilityDelegatorArguments.parameters["-D"] + if (debug == 'true') + { + cmd += ' -D' + } + console.info('cmd : '+cmd) + abilityDelegator.executeShellCommand(cmd, + (err: any, d: any) => { + console.info('executeShellCommand : err : ' + JSON.stringify(err)); + console.info('executeShellCommand : data : ' + d.stdResult); + console.info('executeShellCommand : data : ' + d.exitCode); + }) + console.info('OpenHarmonyTestRunner onRun end') + } +}; \ No newline at end of file diff --git a/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/test/ActsNotificationBadgeTest.test.ets b/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/test/ActsNotificationBadgeTest.test.ets new file mode 100644 index 000000000..b971cc18f --- /dev/null +++ b/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/test/ActsNotificationBadgeTest.test.ets @@ -0,0 +1,70 @@ +/* + * 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 { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import notificationManager from '@ohos.notificationManager' + +export default function ActsNotificationBadgeTest() { +describe('SUB_NOTIFICATION_ANS_BADGE_TEST', function () { + let TAG = 'SUB_NOTIFICATION_ANS_MANAGER_BADGE_test ===>' + console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_BADGE_test START') + /* + * @tc.number: SUB_NOTIFICATION_ANS_MANAGER_BADGE_test_0100 + * @tc.name: setBadgeNumber() + * @tc.desc: verify the callback function of setBadgeNumber + */ + it('SUB_NOTIFICATION_ANS_MANAGER_BADGE_test_0100', 0, async function (done) { + try { + notificationManager.setBadgeNumber(10, (err) => { + if (err) { + console.log(`SUB_NOTIFICATION_ANS_MANAGER_BADGE_test_0100 failed, error code: ${err.code}, message: ${err.message}`) + expect(false).assertTrue() + done() + } else { + console.log("SUB_NOTIFICATION_ANS_MANAGER_BADGE_test_0100 success") + expect(true).assertTrue() + done(); + } + }) + } catch (err) { + console.log(`SUB_NOTIFICATION_ANS_MANAGER_BADGE_test_0100 failed, catch error code: ${err.code}, message: ${err.message}`) + expect(false).assertTrue() + done() + } + }) + + /* + * @tc.number: SUB_NOTIFICATION_ANS_MANAGER_BADGE_test_0200 + * @tc.name: setBadgeNumber() + * @tc.desc: verify the promise function of setBadgeNumber + */ + it('SUB_NOTIFICATION_ANS_MANAGER_BADGE_test_0200', 0, async function (done) { + try { + await notificationManager.setBadgeNumber(10).then(() => { + console.log("SUB_NOTIFICATION_ANS_MANAGER_BADGE_test_0200 success") + expect(true).assertTrue() + done(); + }).catch((err) => { + console.log(`SUB_NOTIFICATION_ANS_MANAGER_BADGE_test_0200 failed, error code: ${err.code}, message: ${err.message}`) + expect(false).assertTrue() + done() + }) + } catch (err) { + console.log(`SUB_NOTIFICATION_ANS_MANAGER_BADGE_test_0200 failed, catch error code: ${err.code}, message: ${err.message}`) + expect(false).assertTrue() + done() + } + }) +}) +} \ No newline at end of file diff --git a/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/test/List.test.ets b/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/test/List.test.ets new file mode 100644 index 000000000..4e82aeb3c --- /dev/null +++ b/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/ets/test/List.test.ets @@ -0,0 +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 ActsNotificationBadgeTest from './ActsNotificationBadgeTest.test' + +export default function List() { + ActsNotificationBadgeTest() +} \ No newline at end of file diff --git a/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/module.json b/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/module.json new file mode 100644 index 000000000..61c06ab84 --- /dev/null +++ b/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/module.json @@ -0,0 +1,41 @@ +{ + "module": { + "name": "phone", + "type": "entry", + "srcEntrance": "./ets/Application/AbilityStage.ts", + "description": "$string:phone_entry_dsc", + "mainElement": "MainAbility", + "deviceTypes": [ + "tablet", + "default", + "phone" + ], + "deliveryWithInstall": true, + "installationFree": false, + "pages": "$profile:main_pages", + "uiSyntax": "ets", + "abilities": [ + { + "name": "com.example.badge.MainAbility", + "srcEntrance": "./ets/MainAbility/MainAbility.ts", + "description": "$string:phone_entry_main", + "icon": "$media:icon", + "label": "$string:entry_label", + "startWindowIcon": "$media:icon", + "startWindowBackground": "$color:white", + "visible": true, + "orientation": "portrait", + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ] + } + ] + } + } diff --git a/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/resources/base/element/color.json b/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/resources/base/element/color.json new file mode 100644 index 000000000..1bbc9aa96 --- /dev/null +++ b/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/resources/base/element/color.json @@ -0,0 +1,8 @@ +{ + "color": [ + { + "name": "white", + "value": "#FFFFFF" + } + ] +} \ No newline at end of file diff --git a/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/resources/base/element/string.json b/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/resources/base/element/string.json new file mode 100644 index 000000000..4af975ee9 --- /dev/null +++ b/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/resources/base/element/string.json @@ -0,0 +1,36 @@ +{ + "string": [ + { + "name": "phone_entry_dsc", + "value": "i am an entry for phone" + }, + { + "name": "phone_entry_main", + "value": "the phone entry ability" + }, + { + "name": "entry_label", + "value": "ActsLifecycleMultihapTest" + }, + { + "name": "form_description", + "value": "my form" + }, + { + "name": "description_application", + "value": "demo for test" + }, + { + "name": "entry_desc", + "value": "description" + }, + { + "name": "MainAbility_desc", + "value": "description" + }, + { + "name": "MainAbility_label", + "value": "label" + } + ] +} diff --git a/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/resources/base/media/icon.png b/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..474a55588fd7216113dd42073aadf254d4dba023 GIT binary patch literal 15458 zcmV-oJe|XdP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!~g&e!~vBn4jTXfJNHRMK~#8N)t$?W zZ`*d)f6uD@IOn2&LJ;lP6@!gHh#>Y1!r&0HL_gDqb&`3X(Z=GaQp8SP` z92In5!tr>lHv4nxKS1{J@p1P!+F4$_JksuYcRrnVr_*tFKEi|jF}%m8r`_Y_l6p^% z@+LnCznqL`mDBrry9$FzRWuxkQF=}GpwhbiR|yW zmfjQNx4tFelhpeM=s1qPZ}7VBtuHUqIh+_+IvN7$>(jXIa?55SEAd6rfw_FG^Ciq> zUAOb*d;6XH7UwzzrTnE1QtLJmPK4||=GS#JMbf8dX;2o^T+5qYx7QF%t86tY^M!6V zrngTY z1udv}ju^g5nNRXGgh*Bp3Mrd$sWa|p#az3e^Glh~4OYDwx?a*KW72*IFc`5a72{iM zp*N~%>#A7GyQ5CGc@5sreOI4Vr-jh46-ty$UgtlNS4u^>BKcJpW(i@*S9!$UCqmcd z(U6LQxPK-@LYcI@ROQlUqYfv9)@pP1D z^PGd_#Bn=j?h;(A2YP*^zO{q!-impmO*sshM)pxC{aRnxpLI$OVz(ElViw;?d~N$q$^VbIP>sa0q0)N~6iq!!fI>IcRGDdADCq?$^K61=g>C{IY# z;~=ksR37V9Yzp%@sRJ8ebxt7()agtNj zFX-#JY(~NHNecrS7DT}|J>yQfr$J*Ww>;PMMSj|?ifs>m;mOpS;hB2QJtAw(Aw2S_ zSHe`NtQeUBZN(O=rg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dc#n{!ihj%?OK8jS5s)q|ox6AsyuMaEws?(61<4>Dl&% z(AowWE}sZbd2$Fpd3X!W{44-|eRU%5z)~*gA?R**Vyu2$E5~BWM~PgBBq$=kqGE67 z`@|=dDkKs@MXyRk(q=Sb__5!7i&kaqd|~>q`yW64akf!;YC=W70<8l5tW13-+~|Y; zkOj7m+O z!5pPf&u5hW8I_=fD zD*;20N{)BIOQ{tj;NRl5w-|ch2}M5c{wK!f>CfqKoBq&WEM66PqkaN5`Y)t8TRI`--F?$f7FyF2*vpx(dgmuRWV_Q&1- Y0jIQKqpXab7ytkO07*qoM6N<$f;yQ2zW@LL literal 0 HcmV?d00001 diff --git a/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/resources/base/profile/form_config.json b/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/resources/base/profile/form_config.json new file mode 100644 index 000000000..146fbe1c6 --- /dev/null +++ b/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/resources/base/profile/form_config.json @@ -0,0 +1,23 @@ +{ + "forms": [ + { + "isDefault": true, + "src": "./js/widget/pages/index/index", + "scheduledUpdateTime": "10:30", + "defaultDimension": "2*2", + "name": "widget", + "description": "This is a service widget.", + "colorMode": "auto", + "window": { + "designWidth": 720, + "autoDesignWidth": true + }, + "formConfigAbility": "ability://xxxxx", + "supportDimensions": [ + "2*2" + ], + "updateEnabled": true, + "updateDuration": 1 + } + ] +} \ No newline at end of file diff --git a/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/resources/base/profile/main_pages.json b/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/resources/base/profile/main_pages.json new file mode 100644 index 000000000..81691245b --- /dev/null +++ b/notification/ans_standard/actsNotificationBadgeTest/entry/src/main/resources/base/profile/main_pages.json @@ -0,0 +1,5 @@ +{ + "src": [ + "MainAbility/pages/MainAbility_pages" + ] +} \ No newline at end of file diff --git a/notification/ans_standard/actsNotificationBadgeTest/signature/openharmony_sx.p7b b/notification/ans_standard/actsNotificationBadgeTest/signature/openharmony_sx.p7b new file mode 100644 index 0000000000000000000000000000000000000000..0928cd15d6618220f1c428451beb90f9a8321ed0 GIT binary patch literal 3436 zcmcgveNYo;8Ydrsh*2ymNL4Ue@zlV(A%TQmvAfCUOEw`P0YdR`lWaa9*$v5t4e|VF zymD2m)^<*56^o*%t>_JYAU9K6dsjW%s$*-N8&CACW$xrWJx^_I9qsJ`r{L%xH=Qwm zWas&K_x>xX2FTA{(E_gG3-TDP>W!jz)7= zj(U{HYl{ni5XOaf7KLegY2@tOE}QB`#l>4*47rn%i$E zg9_LBNSg43aL&snHsXGt%SShfix-PYik3JCHx=TL$(1ripcm&_A8BBaYtNPMK5;+DIJM#4`8iI8Lfx+zGIIy@Ah$R>855n!A|i1xXCPMqdY zOSm6`YW2n(6>72SHF_0nMF+e!B&OG^u$W2(I|vWV=n>eXM{$!XKc28)?NJ$7}4*}MQ{=rX6aB2uo^G&w4j5yFaA zV~A4=LpD?u#mv?M#P6v0dYu8N(LvUGDzp{e8q#4!>o65MkOfCE{P8Sv6~Z{Q{yKY= zCFqdKJZ6A0Im2$VM-mWvs!n_5K$F~n(VQ1Z4GH)Fn3tzwb_&a zRrvM5T4k>$jR6k^g{j7fgD^M1RtnNHHZ|<#kn74ZRI7$7J&4ue4LN-^q=vSYQnpAz zL3u?{#Eoj)xSqDeVADXhS%JWA1&Y9!3X#E#j;p8zm=MH{YRc$nDB|_kkWLF?4jWvI zv$~-)qNI$r3J;FKj8>&;(3WE|CA(UUm|-;z!%VeVAB7Dx4$92ZpiHfgG!{X0T!C+d3ND2WdkU~=SDX-2D z$&`?^02(qu@MnSmAa4*v?$bb&g($brPvlqzr5e~ldQ$R08Th=RdI)&Q0wh6Ld7A&v zo{p|>;D#d;PrNnz-A+x>3Q<_S3letGoC&DyZyhpmU#cWS`p7OvS$Kc0&w%8ggtBb zroF zU3xI47``@hVQJ#@RYyCPo4^J2-&W1)wPbzFQ|-DsbAP)$ExP+bcxm6aS{b+0=C>99XcpN0Pd^@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