提交 a7ab38bd 编写于 作者: O openharmony_ci 提交者: Gitee

!1473 重新提交PR单

Merge pull request !1473 from zhongsicong/telephony20211230
......@@ -17,6 +17,8 @@ group("telephonyjstest") {
testonly = true
deps = [
"call_manager:call_manager",
"cellular_data:cellular_data",
"network_manager:network_manager",
"network_search:network_search",
"sim:sim",
"sms_mms:sms_mms",
......
......@@ -9,7 +9,7 @@
# 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.
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
......@@ -17,9 +17,14 @@ group("call_manager") {
testonly = true
if (is_standard_system) {
deps = [
"call_manager_mmi:CallManagerMMI",
"call_manager_on_dail:CallManagerOnDail",
"call_manager_test:CallManagerTest",
"call_manager_ims_call:ActsCallManagerImsCallTest",
"call_manager_media:ActsCallManagerMediaTest",
"call_manager_mmi:ActsCallManagerMMITest",
"call_manager_on_dail:ActsCallManagerOnDailTest",
"call_manager_register:ActsCallManagerRegisterTest",
"call_manager_restriction:ActsCallManagerRestrictionTest",
"call_manager_test:ActsCallManagerTest",
"call_manager_transfer:ActsCallManagerTransferTest",
]
}
}
# 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("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsCallManagerImsCallTest") {
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsCallManagerImsCallTest"
}
ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./entry/src/main/js/default"
}
ohos_resources("hjs_demo_resources") {
sources = [ "./entry/src/main/js/resources" ]
hap_profile = "./entry/src/main/config.json"
}
{
"description": "Configuration for ActsCallManagerImsCallTest Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "1200000",
"package": "com.ohos.actscallmanagerimscalltest",
"shell-timeout": "1200000",
"native-test-timeout":"1200000"
},
"kits": [
{
"test-file-name": [
"$module.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
{
"app": {
"bundleName": "com.ohos.actscallmanagerimscalltest",
"vendor": "ohos",
"version": {
"code": 1000000,
"name": "1.0.0"
},
"apiVersion": {
"compatible": 4,
"target": 5,
"releaseType": "Release"
}
},
"deviceConfig": {},
"module": {
"package": "com.ohos.actscallmanagerimscalltest",
"name": ".MyApplication",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry"
},
"abilities": [
{
"visible": true,
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"name": "com.ohos.actscallmanagerimscalltest.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:app_name",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": false
}
}
]
}
}
\ No newline at end of file
/*
* 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.
*/
export default {
onCreate() {
console.info('TestApplication onCreate');
},
onDestroy() {
console.info('TestApplication onDestroy');
}
};
{
"strings": {
"hello": "Hello",
"world": "World"
},
"Files": {
}
}
\ No newline at end of file
{
"strings": {
"hello": "您好",
"world": "世界"
},
"Files": {
}
}
\ No newline at end of file
/*
* 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 file from '@system.file'
import app from '@system.app'
import device from '@system.device'
import router from '@system.router'
import {Core, ExpectExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default {
data: {
title: ""
},
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
console.info('onShow finish')
const core = Core.getInstance()
const expectExtend = new ExpectExtend({
'id': 'extend'
})
core.addService('expect', expectExtend)
core.init()
const configService = core.getDefaultService('config')
configService.timeout = 8000;
configService.setConfig(this)
require('../../../test/List.test')
core.execute()
},
onReady() {
},
}
{
"string": [
{
"name": "app_name",
"value": "MyApplication"
},
{
"name": "mainability_description",
"value": "JS_Phone_Empty Feature Ability"
}
]
{
"string": [
{
"name": "app_name",
"value": "MyApplication"
},
{
"name": "mainability_description",
"value": "JS_Phone_Empty Feature Ability"
}
]
}
\ No newline at end of file
......@@ -13,9 +13,5 @@
* limitations under the License.
*/
export const simSlotId = {
SLOT_ID_0: 0,
SLOT_ID_1: 1,
SLOT_ID_2: 2,
SLOT_ID_4: 4
};
\ No newline at end of file
require('./CallManagerImsCallFunction.test.js');
/**
* 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.
*/
export function toString (data) {
if (typeof data === 'object') {
return JSON.stringify(data);
} else {
return data;
}
}
\ No newline at end of file
/**
* 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.
*/
export const AUTO_ACCEPT_NUMBER = '';
export const NOT_ACCEPT_NUMBER = '';
export const NULL_PHONE_NUMBER = '';
export const PHONE_NUMBER_LENGTH_11 = '';
export const PHONE_NUMBER_AREA_LAND = '';
export const PHONE_NUMBER_VOICE_MAIL = '';
export const PHONE_NUMBER_LONG = '';
export const PHONE_NUMBER_LENGTH_8 = '';
export const EMERGENCY_NUMBER = '';
export const SPECIA_CHAR_NUMBER = '';
export const PHONE_NUMBER_CHAR = '';
export const RIGHT_PASSWORD = '';
export const ERROR_PASSWORD = '';
export const BOUNDARY_NUMBER_INT = 2147483649;
export const MINUS_VALUE = -100;
export const TEST_RELY_NUMBER = 10; // test count for Reliability
export const TEST_PERF_COUNT = 20; // test count for Perfomace
export const PERF_GOAL_TIME = TEST_PERF_COUNT * 0.5;
export const CALL_STATUS_ACTIVE = 0;
export const CALL_STATUS_HOLDIN = 1;
export const CALL_STATUS_DIALING = 2;
export const CALL_STATUS_ALERTING = 3;
export const CALL_STATUS_INCOMING = 4;
export const CALL_STATUS_WAITING = 5;
export const CALL_STATUS_DISCONNECTED = 6;
export const CALL_STATUS_DISCONNECTING = 7;
export const CALL_STATUS_IDLE = 8;
export const TEL_CONFERENCE_IDLE = 0;
export const TEL_CONFERENCE_ACTIVE = 1;
export const TEL_CONFERENCE_DISCONNECTING = 2;
export const TEL_CONFERENCE_DISCONNECTED = 3;
export const DEVICE_EARPIECE = 0;
export const DEVICE_SPEAKER = 1;
export const DEVICE_WIRED_HEADSET = 2;
export const DEVICE_BLUETOOTH_SCO = 3;
export const DEVICE_INVALID = -1;
export const DEVICE_INVALID4 = 4;
export const RESTRICTION_MODE_DEACTIVATION = 0;
export const RESTRICTION_MODE_ACTIVATION = 1;
export const RESTRICTION_MODE_INVALID = -1;
export const RESTRICTION_MODE_INVALID2 = 2;
export const RESTRICTION_DISABLE = 0;
export const RESTRICTION_ENABLE = 1;
export const RESTRICTION_TYPE_ALL_INCOMING = 0;
export const RESTRICTION_TYPE_ALL_OUTGOING = 1;
export const RESTRICTION_TYPE_INTERNATIONAL = 2;
export const RESTRICTION_TYPE_INTERNATIONAL_EXCLUDING_HOME = 3;
export const RESTRICTION_TYPE_ROAMING_INCOMING = 4;
export const RESTRICTION_TYPE_ANONYMOUS = 5;
export const RESTRICTION_TYPE_SPECIFIC_INCOMING = 9;
export const RESTRICTION_TYPE_INCOMING_SERVICES = 8;
export const RESTRICTION_TYPE_OUTGOING_SERVICES = 7;
export const RESTRICTION_TYPE_ALL_CALLS = 6;
export const RESTRICTION_TYPE_INVALID = -1;
export const RESTRICTION_TYPE_INVALID10 = 10;
export const DEFAULT_SLOT_ID = 0;
export const SLOT_ID1 = 1;
export const SLOT_ID_INVALID = -1;
export const SLOT_ID_INVALID_2 = 2;
export const CALL_ID_NOT_EXIST = 999;
export const VIDEO_STATE_AUDIO = 0;
export const CALL_TYPE_CS = 0;
export const EVENT_START_DTMF_SUCCESS = 3;
export const EVENT_STOP_DTMF_SUCCESS = 5;
export const CALL_STATE_UNKNOWN = -1;
export const CALL_STATE_IDLE = 0;
export const CALL_STATE_RINGING = 1;
export const CALL_STATE_OFFHOOK = 2;
export const TIMEOUT_LENTH = 1000;
// call error code
export const CALL_MANAGER_NUMBER_NULL_NOTICE = '83951616';
export const CALLTRANSFER_SERVICE_ON = 1; // open
export const CALLTRANSFER_SERVICE_OFF = 0; // close
export const TRANSFERSETTING_REGISTRATION = 3; // open tran function
export const TRANSFERSETTING_ERASURE = 4; // close tran function
export const TRANSFER_DISABLE = 0; // tran is close
export const TRANSFER_ENABLE = 1; // tran is open
export const TRANSFER_INVALID = -1;
export const TRANSFER_INVALID2 = 2;
export const TRANSFER_TYPE_BUSY = 0; // tran busy
export const TRANSFER_TYPE_NO_ANSWER = 1;// no response tran
export const TRANSFER_TYPE_UNREACHABLE = 2; // untouchable(no signal/shut down) tran
export const TRANSFER_TYPE_ALWAYS = 3; // unconditional tran
export const TRANSFER_TYPE_INVALID = -1;
export const TRANSFER_TYPE_INVALID4 = 4;
export const REACH_TIMES = 10;
export const AFTER_HANUP_TIMES = 5;
export const CARMER_ID_NOT_EXIT = 'xtsautotest123456';
export const CARMER_ID_SPACE = '';
export const IMAGE_PNG_PATH = '/system/data/callManager.png';
export const IMAGE_JPG_PATH = '/system/data/callManager.jpg';
export const IMAGE_BMP_PATH = '/system/data/callManager.bmp';
export const IMAGE_WEBP_PATH = '/system/data/callManager.webp';
export const IMAGE_LOCAL_ERROR_PATH = '/system/data/callManager/notexistpath.png';
export const IMAGE_SPACE_PATH = '';
export const SENT_STRING_0 = '0';
export const SENT_STRING_1 = '1';
export const SENT_STRING_2 = '2';
export const SENT_STRING_3 = '3';
export const SENT_STRING_4 = '4';
export const SENT_STRING_5 = '5';
export const SENT_STRING_6 = '6';
export const SENT_STRING_7 = '7';
export const SENT_STRING_8 = '8';
export const SENT_STRING_9 = '9';
export const SENT_STRING_ERROR_10 = '10';
export const SENT_STRING_A = 'A';
export const SENT_STRING_Z = 'Z';
export const SENT_STRING_C = 'C';
export const SENT_STRING_D = 'D';
export const SENT_STRING_E = 'E';
export const SENT_STRING_LOW_A = 'a';
export const SENT_STRING_LOW_C = 'c';
export const SENT_STRING_LOW_B = 'b';
export const SENT_STRING_LOW_D = 'd';
export const SENT_STRING_STAR = '*';
export const SENT_STRING_ADD = '+';
export const SENT_STRING_MINUS = '-';
export const SENT_STRING_JIN = '#';
export const CALL_MODE_CS = 0;
export const CALL_MODE_IMS = 3;
export const MEDIA_TYPE_VOICE = 0;
export const MEDIA_TYPE_VIDEO = 1;
export const MEDIA_TYPE_ERROR = -1;
export const MEDIA_TYPE_ERROR2 = 2;
export const DIAL_SCENCE_CALL_NORMAL = 0;
export const DIAL_SCENCE_CALL_PRIVILEGED = 1;
export const DIAL_SCENCE_CALL_CALL_EMERGENCY = 2;
export const DIAL_SCENCE_ERROR = -1;
export const DIAL_SCENCE_ERROR2 = 3;
export const DIAL_CARRIER_TYPE = 0;
export const DIAL_VOICE_MAIL_TYPE = 1;
export const DIAL_OTT_TYPE = 2;
export const DIAL_TYPE_ERROR = -1;
export const DIAL_TYPE_ERROR3 = 3;
export const POS_700 = 700;
export const POS_10 = 10;
export const POS_Z_0 = 0;
export const POS_Z_1 = 1;
export const POS_Z_ERROR = -1;
export const POS_Z_ERROR2 = 2;
export const POS_LENGTH_300 = 300;
export const POS_LENGTH_600 = 600;
export const ZOOM_RATIO_5_0 = 5.0;
export const ZOOM_RATIO_15_0 = 15.0;
export const ZOOM_RATIO_0_0 = 0.0;
export const ZOOM_RATIO_10_1 = 10.1;
export const ZOOM_RATIO_MINUS_1_0 = -1.0;
export const ROTATION_0 = 0;
export const ROTATION_90 = 90;
export const ROTATION_60 = 60;
export const ROTATION_180 = 180;
export const ROTATION_270 = 270;
export const ROTATION_360 = 360;
export const ROTATION_MINUS_1 = -1;
\ No newline at end of file
{
"string": [
{
"name": "app_name",
"value": "CallManager"
},
{
"name": "mainability_description",
"value": "JS_Phone_Empty Feature Ability"
}
]
}
\ No newline at end of file
# 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("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsCallManagerMediaTest") {
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsCallManagerMediaTest"
}
ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./entry/src/main/js/default"
}
ohos_resources("hjs_demo_resources") {
sources = [ "./entry/src/main/js/resources" ]
hap_profile = "./entry/src/main/config.json"
}
{
"description": "Configuration for ActsCallManagerMediaTest Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "1200000",
"package": "com.ohos.actscallmanagermediatest",
"shell-timeout": "1200000",
"native-test-timeout":"1200000"
},
"kits": [
{
"test-file-name": [
"$module.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
{
"app": {
"bundleName": "com.ohos.actscallmanagermediatest",
"vendor": "ohos",
"version": {
"code": 1000000,
"name": "1.0.0"
},
"apiVersion": {
"compatible": 4,
"target": 5,
"releaseType": "Release"
}
},
"deviceConfig": {},
"module": {
"package": "com.ohos.actscallmanagermediatest",
"name": ".MyApplication",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry"
},
"abilities": [
{
"visible": true,
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"name": "com.ohos.actscallmanagermediatest.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:app_name",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": false
}
}
]
}
}
\ No newline at end of file
/*
* 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.
*/
export default {
onCreate() {
console.info('TestApplication onCreate');
},
onDestroy() {
console.info('TestApplication onDestroy');
}
};
{
"strings": {
"hello": "Hello",
"world": "World"
},
"Files": {
}
}
\ No newline at end of file
{
"strings": {
"hello": "您好",
"world": "世界"
},
"Files": {
}
}
\ No newline at end of file
.container {
flex-direction: column;
justify-content: center;
align-items: center;
}
.title {
font-size: 100px;
}
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
</text>
</div>
/*
* 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 file from '@system.file'
import app from '@system.app'
import device from '@system.device'
import router from '@system.router'
import {Core, ExpectExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default {
data: {
title: ""
},
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
console.info('onShow finish')
const core = Core.getInstance()
const expectExtend = new ExpectExtend({
'id': 'extend'
})
core.addService('expect', expectExtend)
core.init()
const configService = core.getDefaultService('config')
configService.timeout = 8000;
configService.setConfig(this)
require('../../../test/List.test')
core.execute()
},
onReady() {
},
}
{
"string": [
{
"name": "app_name",
"value": "MyApplication"
},
{
"name": "mainability_description",
"value": "JS_Phone_Empty Feature Ability"
}
]
}
\ No newline at end of file
......@@ -13,7 +13,5 @@
* limitations under the License.
*/
require('./SmsMmsRadio.test.js')
require('./CallManagerMediaFunction.test.js');
/**
* 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.
*/
export function toString (data) {
if (typeof data === 'object') {
return JSON.stringify(data);
} else {
return data;
}
}
\ No newline at end of file
/**
* 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.
*/
export const AUTO_ACCEPT_NUMBER = '';
export const NOT_ACCEPT_NUMBER = '';
export const NULL_PHONE_NUMBER = '';
export const PHONE_NUMBER_LENGTH_11 = '';
export const PHONE_NUMBER_AREA_LAND = '';
export const PHONE_NUMBER_VOICE_MAIL = '';
export const PHONE_NUMBER_LONG = '';
export const PHONE_NUMBER_LENGTH_8 = '';
export const RIGHT_PASSWORD = '';
export const ERROR_PASSWORD = '';
export const BOUNDARY_NUMBER_INT = 2147483649;
export const TEST_RELY_NUMBER = 10; // test count for Reliability
export const TEST_PERF_COUNT = 20; // test count for Perfomace
export const PERF_GOAL_TIME = TEST_PERF_COUNT * 0.5;
export const CALL_STATUS_ACTIVE = 0;
export const CALL_STATUS_HOLDIN = 1;
export const CALL_STATUS_DIALING = 2;
export const CALL_STATUS_ALERTING = 3;
export const CALL_STATUS_INCOMING = 4;
export const CALL_STATUS_WAITING = 5;
export const CALL_STATUS_DISCONNECTED = 6;
export const CALL_STATUS_DISCONNECTING = 7;
export const CALL_STATUS_IDLE = 8;
export const TEL_CONFERENCE_IDLE = 0;
export const TEL_CONFERENCE_ACTIVE = 1;
export const TEL_CONFERENCE_DISCONNECTING = 2;
export const TEL_CONFERENCE_DISCONNECTED = 3;
export const DEVICE_EARPIECE = 0;
export const DEVICE_SPEAKER = 1;
export const DEVICE_WIRED_HEADSET = 2;
export const DEVICE_BLUETOOTH_SCO = 3;
export const DEVICE_INVALID = -1;
export const DEVICE_INVALID4 = 4;
export const RESTRICTION_MODE_DEACTIVATION = 0;
export const RESTRICTION_MODE_ACTIVATION = 1;
export const RESTRICTION_MODE_INVALID = -1;
export const RESTRICTION_MODE_INVALID2 = 2;
export const RESTRICTION_DISABLE = 0;
export const RESTRICTION_ENABLE = 1;
export const RESTRICTION_TYPE_ALL_INCOMING = 0;
export const RESTRICTION_TYPE_ALL_OUTGOING = 1;
export const RESTRICTION_TYPE_INTERNATIONAL = 2;
export const RESTRICTION_TYPE_INTERNATIONAL_EXCLUDING_HOME = 3;
export const RESTRICTION_TYPE_ROAMING_INCOMING = 4;
export const RESTRICTION_TYPE_ALL_CALLS = 5;
export const RESTRICTION_TYPE_OUTGOING_SERVICES = 6;
export const RESTRICTION_TYPE_INCOMING_SERVICES = 7;
export const RESTRICTION_TYPE_INVALID = -1;
export const RESTRICTION_TYPE_INVALID8 = 8;
export const DEFAULT_SLOT_ID = 0;
export const SLOT_ID1 = 1;
export const SLOT_ID_INVALID = -1;
export const SLOT_ID_INVALID_2 = 2;
export const CALL_ID_NOT_EXIST = 999;
export const VIDEO_STATE_AUDIO = 0;
export const CALL_TYPE_CS = 0;
export const EVENT_START_DTMF_SUCCESS = 5;
export const EVENT_STOP_DTMF_SUCCESS = 7;
export const CALL_STATE_UNKNOWN = -1;
export const CALL_STATE_IDLE = 0;
export const CALL_STATE_RINGING = 1;
export const CALL_STATE_OFFHOOK = 2;
export const TIMEOUT_LENTH = 1000;
// call error code
export const CALL_MANAGER_NUMBER_NULL_NOTICE = '83951616';
export const CALLTRANSFER_SERVICE_ON = 1; // open
export const CALLTRANSFER_SERVICE_OFF = 0; // close
export const TRANSFERSETTING_ENABLE = 0;
export const TRANSFERSETTING_DISABLE = 1;
export const TRANSFERSETTING_REGISTRATION = 3; // open tran function
export const TRANSFERSETTING_ERASURE = 4; // close tran function
export const TRANSFER_INVALID = -1;
export const TRANSFER_INVALID5 = 5;
export const TRANSFER_INVALID2 = 2;
export const TRANSFER_DISABLE = 0; // tran is close
export const TRANSFER_ENABLE = 1; // tran is open
export const TRANSFER_TYPE_UNCONDITIONAL = 0; // unconditional tran
export const TRANSFER_TYPE_BUSY = 1; // tran busy
export const TRANSFER_TYPE_NO_REPLY = 2;// no response tran
export const TRANSFER_TYPE_NOT_REACHABLE = 3; // untouchable(no signal/shut down) tran
export const TRANSFER_TYPE_INVALID = -1;
export const TRANSFER_TYPE_INVALID4 = 4;
export const REACH_TIMES = 10;
export const AFTER_HANUP_TIMES = 5;
{
"string": [
{
"name": "app_name",
"value": "CallManager"
},
{
"name": "mainability_description",
"value": "JS_Phone_Empty Feature Ability"
}
]
}
\ No newline at end of file
......@@ -9,11 +9,11 @@
# 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.
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("CallManagerMMI") {
ohos_js_hap_suite("ActsCallManagerMMITest") {
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
......
{
"description": "Configuration for callmanager Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "1200000",
"package": "com.ohos.callmanager",
"shell-timeout": "1200000",
"native-test-timeout":"1200000"
},
"kits": [
{
"test-file-name": [
"ActsCallManagerMMITest.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
{
"description": "Configuration for ActsCallManagerMMITest Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "1200000",
"package": "com.ohos.actscallmanagermmitest",
"shell-timeout": "1200000",
"native-test-timeout":"1200000"
},
"kits": [
{
"test-file-name": [
"$module.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
......@@ -9,11 +9,11 @@
# 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.
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("CallManagerOnDail") {
ohos_js_hap_suite("ActsCallManagerOnDailTest") {
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
......
{
"description": "Configuration for ActsCallManagerRegisterTest Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "1200000",
"package": "com.ohos.actscallmanagerregistertest",
"shell-timeout": "1200000",
"native-test-timeout":"1200000"
},
"kits": [
{
"test-file-name": [
"$module.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
文件模式从 100644 更改为 100755
此差异已折叠。
文件模式从 100644 更改为 100755
此差异已折叠。
文件模式从 100644 更改为 100755
此差异已折叠。
文件模式从 100644 更改为 100755
此差异已折叠。
文件模式从 100644 更改为 100755
此差异已折叠。
文件模式从 100644 更改为 100755
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册