mirror of
https://gitee.com/openharmony/third_party_jsframework
synced 2024-11-23 14:49:54 +00:00
commit
3b8c69701a
@ -138,9 +138,27 @@ export const TransferStatus = {
|
||||
TRANSFER_DISABLE: 0,
|
||||
TRANSFER_ENABLE: 1,
|
||||
};
|
||||
export const CallAttributeOptions = {
|
||||
accountNumber: "[PC Preview] unknow accountNumber",
|
||||
speakerphoneOn: "[PC Preview] unknow speakerphoneOn",
|
||||
accountId: "[PC Preview] unknow accountId",
|
||||
videoState: VideoStateType,
|
||||
startTime: "[PC Preview] unknow startTime",
|
||||
isEcc: "[PC Preview] unknow isEcc",
|
||||
callType: CallType,
|
||||
callId: "[PC Preview] unknow callId",
|
||||
callState: DetailedCallState,
|
||||
conferenceState: ConferenceState,
|
||||
status: "[PC Preview] unknow status",
|
||||
number: "[PC Preview] unknow number",
|
||||
}
|
||||
export const EmergencyNumberOptions = {
|
||||
slotId: "[PC Preview] unknow slotId"
|
||||
}
|
||||
export const CallTransferResult = {
|
||||
status: "[PC Preview] unknow status",
|
||||
number: "[PC Preview] unknow number",
|
||||
}
|
||||
export const DisconnectedDetails = {
|
||||
UNASSIGNED_NUMBER: 1,
|
||||
NO_ROUTE_TO_DESTINATION: 3,
|
||||
@ -181,6 +199,7 @@ export function mockCall() {
|
||||
CallState,
|
||||
DialScene,
|
||||
RestrictionStatus,
|
||||
CallTransferResult,
|
||||
DialType,
|
||||
CallRestrictionMode,
|
||||
dial: function (...args) {
|
||||
|
@ -14,6 +14,7 @@
|
||||
*/
|
||||
|
||||
import { paramMock } from "../utils"
|
||||
import { CardType, SimState } from "./ohos_telephony_sim"
|
||||
export const LockReason = {
|
||||
SIM_NONE: "[PC Preview] unknow SIM_NONE",
|
||||
SIM_PIN: "[PC Preview] unknow SIM_PIN",
|
||||
@ -29,15 +30,14 @@ export const LockReason = {
|
||||
SIM_SIM_PIN: "[PC Preview] unknow SIM_SIM_PIN",
|
||||
SIM_SIM_PUK: "[PC Preview] unknow SIM_SIM_PUK",
|
||||
};
|
||||
export const SimStateData = {
|
||||
type: CardType,
|
||||
state: SimState,
|
||||
reason: LockReason,
|
||||
}
|
||||
export function mockObserver() {
|
||||
const SimStateData = {
|
||||
type: "[PC Preview] unknow type",
|
||||
state: "[PC Preview] unknow state",
|
||||
reason: LockReason,
|
||||
}
|
||||
const observer = {
|
||||
LockReason,
|
||||
SimStateData,
|
||||
on: function (...args) {
|
||||
console.warn("telephony.observer.on interface mocked in the Previewer. How this interface works on the Previewer may " +
|
||||
"be different from that on a real device.")
|
||||
|
@ -116,6 +116,17 @@ export const TdscdmaCellInformation = {
|
||||
mcc: "[PC Preview] unknow mcc",
|
||||
mnc: "[PC Preview] unknow mnc",
|
||||
}
|
||||
export const NetworkState = {
|
||||
longOperatorName: "[PC Preview] unknow longOperatorName",
|
||||
shortOperatorName: "[PC Preview] unknow shortOperatorName",
|
||||
plmnNumeric: "[PC Preview] unknow plmnNumeric",
|
||||
isRoaming: "[PC Preview] unknow isRoaming",
|
||||
regState: RegState,
|
||||
cfgTech: RadioTechnology,
|
||||
nsaState: NsaState,
|
||||
isCaActive: "[PC Preview] unknow isCaActive",
|
||||
isEmergency: "[PC Preview] unknow isEmergency",
|
||||
}
|
||||
export const NrCellInformation = {
|
||||
nrArfcn: "[PC Preview] unknow nrArfcn",
|
||||
pci: "[PC Preview] unknow pci",
|
||||
@ -166,6 +177,21 @@ export const NrOptionMode = {
|
||||
NR_OPTION_SA_ONLY: "[PC Preview] unknow NR_OPTION_SA_ONLY",
|
||||
NR_OPTION_NSA_AND_SA: "[PC Preview] unknow NR_OPTION_NSA_AND_SA",
|
||||
};
|
||||
export const CellInformation = {
|
||||
networkType: NetworkType,
|
||||
isCamped: "[PC Preview] unknow isCamped",
|
||||
timeStamp: "[PC Preview] unknow timeStamp",
|
||||
signalInformation: SignalInformation,
|
||||
data: CdmaCellInformation,
|
||||
};
|
||||
export const SignalInformation = {
|
||||
signalType: NetworkType,
|
||||
signalLevel: "[PC Preview] unknow signalLevel",
|
||||
};
|
||||
export const NetworkSearchResult = {
|
||||
isNetworkSearchSuccess: "[PC Preview] unknow isNetworkSearchSuccess",
|
||||
networkSearchResult: [NetworkInformation],
|
||||
}
|
||||
export function mockRadio() {
|
||||
const radio = {
|
||||
RegState,
|
||||
|
@ -61,6 +61,15 @@ export const CardType = {
|
||||
DUAL_MODE_UG_CARD: 50,
|
||||
SINGLE_MODE_ISIM_CARD: 60
|
||||
};
|
||||
export const IccAccountInfo = {
|
||||
simId: "[PC Preview] unknow simId",
|
||||
slotIndex: "[PC Preview] unknow slotIndex",
|
||||
isEsim: "[PC Preview] unknow isEsim",
|
||||
isActive: "[PC Preview] unknow isActive",
|
||||
iccId: "[PC Preview] unknow iccId",
|
||||
showName: "[PC Preview] unknow showName",
|
||||
showNumber: "[PC Preview] unknow showNumber",
|
||||
}
|
||||
export const SimState = {
|
||||
SIM_STATE_UNKNOWN: "[PC Preview] unknow SIM_STATE_UNKNOWN",
|
||||
SIM_STATE_NOT_PRESENT: "[PC Preview] unknow SIM_STATE_NOT_PRESENT",
|
||||
@ -73,6 +82,14 @@ export const ContactType = {
|
||||
GENERAL_CONTACT: 1,
|
||||
FIXED_DIALING: 2,
|
||||
};
|
||||
export const OperatorConfig = {
|
||||
field: "[PC Preview] unknow field",
|
||||
value: "[PC Preview] unknow value"
|
||||
}
|
||||
export const LockStatusResponse = {
|
||||
result: "[PC Preview] unknow result",
|
||||
remain: "[PC Preview] unknow remain",
|
||||
}
|
||||
export function mockSim() {
|
||||
const sim = {
|
||||
ContactType,
|
||||
|
@ -119,6 +119,7 @@ export const MmsDeliveryInd = {
|
||||
to: [MmsAddress],
|
||||
status: "[PC Preview] unknow status",
|
||||
version: MmsVersionType,
|
||||
messageId: "[PC Preview] unknow messageId",
|
||||
}
|
||||
export const MmsReadRecInd = {
|
||||
version: MmsVersionType,
|
||||
|
Loading…
Reference in New Issue
Block a user