From 5941da9aac275d4d99fe7baa924b827130818f2c Mon Sep 17 00:00:00 2001 From: qigongming Date: Mon, 21 Mar 2022 11:48:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=A1=E6=81=AF=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E7=94=A8=E4=BE=8B=E5=92=8C=E7=AD=BE=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: qigongming Change-Id: Ia1b55f1ac462454289ff480f8fddc689e576bd25 --- .../deviceusagestatisticsjsunit/BUILD.gn | 2 +- ...x.p7b => ohos_device_usage_statistics.p7b} | Bin 3437 -> 3451 bytes .../src/main/config.json | 10 +++++++ .../test/DeviceUsageStatisticsJsunit.test.js | 26 +++++++++--------- 4 files changed, 24 insertions(+), 14 deletions(-) rename resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/signature/{openharmony_sx.p7b => ohos_device_usage_statistics.p7b} (52%) diff --git a/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/BUILD.gn b/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/BUILD.gn index 57d154dd4..95d4513fc 100644 --- a/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/BUILD.gn +++ b/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/BUILD.gn @@ -19,7 +19,7 @@ ohos_js_hap_suite("resourceschedule_deviceusagestatisticsjsunit_js_test") { ":resourceschedule_js_assets", ":resourceschedule_js_resources", ] - certificate_profile = "./signature/openharmony_sx.p7b" + certificate_profile = "./signature/ohos_device_usage_statistics.p7b" hap_name = "ActsResourcescheduleDeviceUsageStatisticsJsunitTest" } ohos_js_assets("resourceschedule_js_assets") { diff --git a/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/signature/openharmony_sx.p7b b/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/signature/ohos_device_usage_statistics.p7b similarity index 52% rename from resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/signature/openharmony_sx.p7b rename to resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/signature/ohos_device_usage_statistics.p7b index 9be1e98fa4c0c28ca997ed660112fa16b194f0f5..6d38035da96bab2ca3e7cdb4cc9d76c1d8cdd32f 100644 GIT binary patch delta 988 zcmZ9LPl)4W7{+O*GdnXoqo5+pf-n|YaGjZc$uv93xT4>eq)EC>(@fJpDU~(s;W z;?nK(*ct}yzPD}kO)I^RZCwCQ>&-zL+W|Wuy_Ft~+U7hG0N>Lo%GxGc^K<&e#*^Wp z|BpAcTuTeA^l9g%(}x?+6I7PGPT&N&mG=7Kw$=)*;k^DjNoDtT=lHGJ6N$~sl5csu zHthAi!`aJ;SDzIpG!1pjhLM1vEwGwIXC}<-{lsTSVh0{JJy8*2NfG0kV-$-_Hx@f$ ze8D=XFUmng%PLcqWsZ&VjM8B%A`&==Ran{)3r$biMXug;9HWPgb*~$93alf$SVb^U zSeA+!H9}D9`B29RLdYGsY7N9U8Fvk$LEemv#-K2w`o&7s)nE zG;yWS!yqWa(2MLr*Tae@UC@iLAnQ#Kg=JB1Dkyr<1wHIR1Un-;;_?0cpWnlKc>aG~ z`|a8knI(EFt1q20r;ifQ)!40BLRz3&41&<7k;KaC$teSAOK=QYzJkn_SNWpN}M@l`Qh*Hxa2s9-^( zOV-DIPH+Q4Xp%KSpsAohR{K21k+RS5b-*sBtc!^;E}K0wxOc4PWvC zqv|)dc70|~C#B+GMW%)%0@EP0eA@z#f9N{H~>F$bpMxE7 ze<$X5<2zFn$)Q;!mB!MTgzR2cWEDn}@J8@pP5l79*L)cJ { + bundleState.queryBundleActiveStates(beginTime, endTime, (err, res) => { if(err.code === 0) { expect(true).assertEqual(true); if(res === undefined) { @@ -716,7 +716,7 @@ describe("DeviceUsageStatisticsJsTest", function () { console.info('----------------------DeviceUsageStatisticsJsTest029---------------------------'); let beginTime = 10; let endTime = 20000000000000; - bundleState.queryCurrentBundleActiveStates(beginTime, endTime, (err, res) => { + bundleState.queryBundleActiveStates(beginTime, endTime, (err, res) => { if(err.code === 0) { expect(true).assertEqual(true); if(res === undefined) { @@ -743,7 +743,7 @@ describe("DeviceUsageStatisticsJsTest", function () { console.info('----------------------DeviceUsageStatisticsJsTest030---------------------------'); let beginTime = 10; let endTime = 20000000000000; - bundleState.queryCurrentBundleActiveStates(beginTime, endTime, (err, res) => { + bundleState.queryBundleActiveStates(beginTime, endTime, (err, res) => { if(err.code === 0) { expect(true).assertEqual(true); if(res === undefined) { @@ -770,7 +770,7 @@ describe("DeviceUsageStatisticsJsTest", function () { console.info('----------------------DeviceUsageStatisticsJsTest031---------------------------'); let beginTime = 10; let endTime = 20000000000000; - bundleState.queryCurrentBundleActiveStates(beginTime, endTime, (err, res) => { + bundleState.queryBundleActiveStates(beginTime, endTime, (err, res) => { if(err.code === 0) { expect(true).assertEqual(true); if(res === undefined) { @@ -797,7 +797,7 @@ describe("DeviceUsageStatisticsJsTest", function () { console.info('----------------------DeviceUsageStatisticsJsTest032---------------------------'); let beginTime = 10; let endTime = 20000000000000; - bundleState.queryCurrentBundleActiveStates(beginTime, endTime, (err, res) => { + bundleState.queryBundleActiveStates(beginTime, endTime, (err, res) => { if(err.code === 0) { expect(true).assertEqual(true); if(res === undefined) { @@ -824,7 +824,7 @@ describe("DeviceUsageStatisticsJsTest", function () { console.info('----------------------DeviceUsageStatisticsJsTest033---------------------------'); let beginTime = 10; let endTime = 20000000000000; - bundleState.queryCurrentBundleActiveStates(beginTime, endTime, (err, res) => { + bundleState.queryBundleActiveStates(beginTime, endTime, (err, res) => { if(err.code === 0) { expect(true).assertEqual(true); if(res === undefined) { @@ -851,7 +851,7 @@ describe("DeviceUsageStatisticsJsTest", function () { console.info('----------------------DeviceUsageStatisticsJsTest034---------------------------'); let beginTime = 10; let endTime = 20000000000000; - bundleState.queryCurrentBundleActiveStates(beginTime, endTime).then((res) => { + bundleState.queryBundleStateInfos(beginTime, endTime).then((res) => { expect(true).assertEqual(true); let bundleStateInfo1 = { bundleName: 'www.explace.com', @@ -890,7 +890,7 @@ describe("DeviceUsageStatisticsJsTest", function () { console.info('----------------------DeviceUsageStatisticsJsTest035---------------------------'); let beginTime = 1001; let endTime = 20000000000000; - bundleState.queryCurrentBundleActiveStates(0, beginTime, endTime, (err, res) => { + bundleState.queryBundleStateInfoByInterval(0, beginTime, endTime, (err, res) => { if(err.code === 0) { expect(true).assertEqual(true); if(res === undefined) { -- GitLab