未验证 提交 9ad4494c 编写于 作者: O openharmony_ci 提交者: Gitee

!6902 avsession主干签名更改

Merge pull request !6902 from 秦莉文/master
...@@ -20,7 +20,13 @@ ...@@ -20,7 +20,13 @@
"run-command": [ "run-command": [
"hilog -Q pidoff", "hilog -Q pidoff",
"mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files", "mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files",
"chmod 777 -R /data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry" "chmod 777 -R /data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry",
"power-shell wakeup",
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100",
"power-shell setmode 602"
],
"teardown-command":[
"power-shell setmode 600"
], ],
"cleanup-apps": true "cleanup-apps": true
}, },
......
...@@ -17,7 +17,7 @@ import audio from '@ohos.multimedia.audio'; ...@@ -17,7 +17,7 @@ import audio from '@ohos.multimedia.audio';
import fileio from '@ohos.fileio'; import fileio from '@ohos.fileio';
import featureAbility from '@ohos.ability.featureAbility'; import featureAbility from '@ohos.ability.featureAbility';
import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it } from '@ohos/hypium'; import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it } from '@ohos/hypium';
import { UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix } from '@ohos.uitest' import { UiDriver, BY } from '@ohos.uitest'
export default function audioCapturer() { export default function audioCapturer() {
describe('audioCapturer', function () { describe('audioCapturer', function () {
......
...@@ -18,7 +18,13 @@ ...@@ -18,7 +18,13 @@
{ {
"type": "ShellKit", "type": "ShellKit",
"run-command": [ "run-command": [
"hilog -Q pidoff" "hilog -Q pidoff",
"power-shell wakeup",
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100",
"power-shell setmode 602"
],
"teardown-command":[
"power-shell setmode 600"
] ]
} }
] ]
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
import audio from '@ohos.multimedia.audio'; import audio from '@ohos.multimedia.audio';
import featureAbility from '@ohos.ability.featureAbility'; import featureAbility from '@ohos.ability.featureAbility';
import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it } from '@ohos/hypium'; import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it } from '@ohos/hypium';
import { UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix } from '@ohos.uitest' import { UiDriver, BY } from '@ohos.uitest'
export default function audioCapturerChange() { export default function audioCapturerChange() {
describe('audioCapturerChange', function () { describe('audioCapturerChange', function () {
......
/*
* Copyright (C) 2022 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 abilityAccessCtrl from '@ohos.abilityAccessCtrl';
import bundle from '@ohos.bundle';
import account from '@ohos.account.osAccount';
// apply permission for test hap
export async function applyPermission(applictionName, permissionNames) {
let userId = await account.getAccountManager().getOsAccountLocalIdFromProcess();
console.info(`userid is :${userId}`)
let appInfo = await bundle.getApplicationInfo(applictionName, 0, userId);
let atManager = abilityAccessCtrl.createAtManager();
if (atManager != null) {
let tokenID = appInfo.accessTokenId;
console.info(`[permission] case accessTokenID is ${tokenID}`);
for (let i = 0; i < permissionNames.length; i++) {
await atManager.grantUserGrantedPermission(tokenID, permissionNames[i], 1).then((result) => {
console.info(`[permission] case grantUserGrantedPermission success : ${result}`);
}).catch((err) => {
console.info(`[permission] case grantUserGrantedPermission failed : ${err}`);
});
}
} else {
console.info(`[permission] case apply permission failed, createAtManager failed`);
}
}
\ No newline at end of file
...@@ -18,7 +18,13 @@ ...@@ -18,7 +18,13 @@
{ {
"type": "ShellKit", "type": "ShellKit",
"run-command": [ "run-command": [
"hilog -Q pidoff" "hilog -Q pidoff",
"power-shell wakeup",
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100",
"power-shell setmode 602"
],
"teardown-command":[
"power-shell setmode 600"
] ]
} }
] ]
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
import audio from '@ohos.multimedia.audio'; import audio from '@ohos.multimedia.audio';
import featureAbility from '@ohos.ability.featureAbility'; import featureAbility from '@ohos.ability.featureAbility';
import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it } from '@ohos/hypium'; import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it } from '@ohos/hypium';
import { UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix } from '@ohos.uitest' import { UiDriver, BY } from '@ohos.uitest'
export default function audioFramework() { export default function audioFramework() {
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
*/ */
import audio from '@ohos.multimedia.audio'; import audio from '@ohos.multimedia.audio';
// import * as audioTestBase from '../../../../../AudioTestBase'
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'; import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
export default function audioManagerApi9() { export default function audioManagerApi9() {
......
...@@ -21,7 +21,13 @@ ...@@ -21,7 +21,13 @@
"run-command": [ "run-command": [
"hilog -Q pidoff", "hilog -Q pidoff",
"mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.audio.audiovoip/haps/entry/files", "mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.audio.audiovoip/haps/entry/files",
"chmod 777 -R /data/app/el2/100/base/ohos.acts.multimedia.audio.audiovoip/haps/entry" "chmod 777 -R /data/app/el2/100/base/ohos.acts.multimedia.audio.audiovoip/haps/entry",
"power-shell wakeup",
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100",
"power-shell setmode 602"
],
"teardown-command":[
"power-shell setmode 600"
], ],
"cleanup-apps": true "cleanup-apps": true
}, },
......
...@@ -17,7 +17,6 @@ import audio from '@ohos.multimedia.audio'; ...@@ -17,7 +17,6 @@ import audio from '@ohos.multimedia.audio';
import fileio from '@ohos.fileio'; import fileio from '@ohos.fileio';
import featureAbility from '@ohos.ability.featureAbility' import featureAbility from '@ohos.ability.featureAbility'
import resourceManager from '@ohos.resourceManager'; import resourceManager from '@ohos.resourceManager';
import * as audioTestBase from '../../../../../AudioTestBase'
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'; import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
import { UiDriver, BY} from '@ohos.uitest' import { UiDriver, BY} from '@ohos.uitest'
......
...@@ -5,17 +5,21 @@ ...@@ -5,17 +5,21 @@
"test-timeout": "3000000", "test-timeout": "3000000",
"bundle-name":"com.open.harmony.multimedia.cameratest", "bundle-name":"com.open.harmony.multimedia.cameratest",
"package-name": "com.open.harmony.multimedia.cameratest", "package-name": "com.open.harmony.multimedia.cameratest",
"shell-timeout": "60000" "shell-timeout": "60000",
"testcase-timeout": 100000
}, },
"kits": [ "kits": [
{ {
"type": "ShellKit", "type": "ShellKit",
"run-command": [ "run-command": [
"hilog -Q pidoff", "hilog -Q pidoff",
"rm -rf /storage/media/100/local/files/Videos/*" "rm -rf /storage/media/100/local/files/Videos/*",
"power-shell wakeup",
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100",
"power-shell setmode 602"
], ],
"teardown-command":[ "teardown-command":[
"power-shell setmode 600"
] ]
}, },
{ {
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
"rm -rf /storage/media/100/local/files/Audios/audio_*", "rm -rf /storage/media/100/local/files/Audios/audio_*",
"rm -rf /storage/media/100/local/files/Videos/audio_*", "rm -rf /storage/media/100/local/files/Videos/audio_*",
"param set persist.ace.testmode.enabled 1", "param set persist.ace.testmode.enabled 1",
"power-shell wakeup",
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100",
"power-shell setmode 602" "power-shell setmode 602"
], ],
"teardown-command":[ "teardown-command":[
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
"run-command": [ "run-command": [
"rm -rf /storage/media/100/local/files/Audios/COMPATIBILITY*", "rm -rf /storage/media/100/local/files/Audios/COMPATIBILITY*",
"param set persist.ace.testmode.enabled 1", "param set persist.ace.testmode.enabled 1",
"power-shell wakeup",
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100",
"power-shell setmode 602" "power-shell setmode 602"
], ],
"teardown-command": [ "teardown-command": [
......
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
"run-command": [ "run-command": [
"rm -rf /storage/media/100/local/files/Videos/*", "rm -rf /storage/media/100/local/files/Videos/*",
"param set persist.ace.testmode.enabled 1", "param set persist.ace.testmode.enabled 1",
"power-shell wakeup",
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100",
"power-shell setmode 602" "power-shell setmode 602"
], ],
"teardown-command":[ "teardown-command":[
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册