1/* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16import { paramMock } from "../utils" 17 18export function mockDtv() { 19 const BookTask = { 20 id: "[PC Preview] unknow id", 21 channelId: "[PC Preview] unknow channelId", 22 eventId: "[PC Preview] unknow eventId", 23 isAdjustByEvent: "[PC Preview] unknow isAdjustByEvent", 24 name: "[PC Preview] unknow name", 25 startDate: "[PC Preview] unknow startDate", 26 duration: "[PC Preview] unknow duration", 27 type: "[PC Preview] unknow type", 28 cycle: "[PC Preview] unknow cycle", 29 isEnabled: "[PC Preview] unknow isEnabled", 30 lcn: "[PC Preview] unknow lcn", 31 programName: "[PC Preview] unknow programName", 32 signalType: "[PC Preview] unknow signalType", 33 startTime: "[PC Preview] unknow startTime" 34 } 35 const FavTags = { 36 FAV_ALL: "[PC Preview] unknow FAV_ALL", 37 FAV_1: "[PC Preview] unknow FAV_1", 38 FAV_2: "[PC Preview] unknow FAV_2", 39 FAV_3: "[PC Preview] unknow FAV_3", 40 FAV_4: "[PC Preview] unknow FAV_4", 41 FAV_5: "[PC Preview] unknow FAV_5", 42 FAV_6: "[PC Preview] unknow FAV_6", 43 FAV_7: "[PC Preview] unknow FAV_7", 44 FAV_8: "[PC Preview] unknow FAV_8", 45 FAV_9: "[PC Preview] unknow FAV_9", 46 FAV_10: "[PC Preview] unknow FAV_10", 47 FAV_11: "[PC Preview] unknow FAV_11", 48 FAV_12: "[PC Preview] unknow FAV_12", 49 FAV_13: "[PC Preview] unknow FAV_13", 50 FAV_14: "[PC Preview] unknow FAV_14", 51 FAV_15: "[PC Preview] unknow FAV_15", 52 FAV_16: "[PC Preview] unknow FAV_16" 53 } 54 const ChannelTsInfo = { 55 tsInfoNum: "[PC Preview] unknow tsInfoNum", 56 networkType: "[PC Preview] unknow networkType", 57 centerFreqList: "[PC Preview] unknow centerFreqList", 58 cabDeliveryDescriptor: "[PC Preview] unknow cabDeliveryDescriptor", 59 terDeliveryDescriptor: "[PC Preview] unknow terDeliveryDescriptor", 60 satDeliveryDescriptor: "[PC Preview] unknow satDeliveryDescriptor" 61 } 62 const ChannelFilter = { 63 siElement: "[PC Preview] unknow siElement", 64 tvRadio: "[PC Preview] unknow tvRadio", 65 favGroupTypes: "[PC Preview] unknow favGroupTypes", 66 scrambleType: "[PC Preview] unknow scrambleType", 67 editTags: "[PC Preview] unknow editTags", 68 letters: "[PC Preview] unknow letters", 69 mbServiceNameFilter: "[PC Preview] unknow mbServiceNameFilter" 70 } 71 const TVRadioFilters = { 72 ALL: "[PC Preview] unknow ALL", 73 TV: "[PC Preview] unknow TV", 74 RADIO: "[PC Preview] unknow RADIO", 75 DATA: "[PC Preview] unknow DATA", 76 BUTT: "[PC Preview] unknow BUTT" 77 } 78 const ChannelRegion = { 79 name: "[PC Preview] unknow name", 80 countryCode: "[PC Preview] unknow countryCode", 81 regionDepth: "[PC Preview] unknow regionDepth", 82 prc: "[PC Preview] unknow prc", 83 src: "[PC Preview] unknow src", 84 trc: "[PC Preview] unknow trc" 85 } 86 const ChannelRate = { 87 enUstvAll: "[PC Preview] unknow enUstvAll", 88 enUstvFv: "[PC Preview] unknow enUstvFv", 89 enUstvV: "[PC Preview] unknow enUstvV", 90 enUstvS: "[PC Preview] unknow enUstvS", 91 enUstvL: "[PC Preview] unknow enUstvL", 92 enUstvD: "[PC Preview] unknow enUstvD", 93 enMpaa: "[PC Preview] unknow enMpaa", 94 enCaen: "[PC Preview] unknow enCaen", 95 enCafr: "[PC Preview] unknow enCafr" 96 } 97 const ParentalContents = { 98 PARENTAL_CONTENT_NONE: "[PC Preview] unknow PARENTAL_CONTENT_NONE", 99 PARENTAL_CONTENT_DRUGS: "[PC Preview] unknow PARENTAL_CONTENT_DRUGS", 100 PARENTAL_CONTENT_VIOLENCE: "[PC Preview] unknow PARENTAL_CONTENT_VIOLENCE", 101 PARENTAL_CONTENT_VIOL_DRUG: "[PC Preview] unknow PARENTAL_CONTENT_VIOL_DRUG", 102 PARENTAL_CONTENT_SEX: "[PC Preview] unknow PARENTAL_CONTENT_SEX", 103 PARENTAL_CONTENT_SEX_DRUG: "[PC Preview] unknow PARENTAL_CONTENT_SEX_DRUG", 104 PARENTAL_CONTENT_SEX_VIOL: "[PC Preview] unknow PARENTAL_CONTENT_SEX_VIOL", 105 PARENTAL_CONTENT_SEX_VIOL_DRUG: "[PC Preview] unknow PARENTAL_CONTENT_SEX_VIOL_DRUG", 106 PARENTAL_CONTENT_BUTT: "[PC Preview] unknow PARENTAL_CONTENT_BUTT" 107 } 108 const EPGEvent = { 109 channelId: "[PC Preview] unknow channelId", 110 eventId: "[PC Preview] unknow eventId", 111 scramble: "[PC Preview] unknow scramble", 112 parentLockLevel: "[PC Preview] unknow parentLockLevel", 113 startTime: "[PC Preview] unknow startTime", 114 endTime: "[PC Preview] unknow endTime", 115 duration: "[PC Preview] unknow duration", 116 eventName: "[PC Preview] unknow eventName", 117 contentLevel1: "[PC Preview] unknow contentLevel1", 118 contentLevel2: "[PC Preview] unknow contentLevel2", 119 contentLevel3: "[PC Preview] unknow contentLevel3", 120 contentLevel4: "[PC Preview] unknow contentLevel4", 121 runningStatus: "[PC Preview] unknow runningStatus", 122 shortDescription: "[PC Preview] unknow shortDescription", 123 extendedDescription: "[PC Preview] unknow extendedDescription", 124 booked: "[PC Preview] unknow booked", 125 cridProgramme: "[PC Preview] unknow cridProgramme", 126 cridSeries: "[PC Preview] unknow cridSeries", 127 utcStartTime: "[PC Preview] unknow utcStartTime", 128 utcEndTime: "[PC Preview] unknow utcEndTime" 129 } 130 const NetworkTypes = { 131 NONE: "[PC Preview] unknow NONE", 132 CABLE: "[PC Preview] unknow CABLE", 133 SATELLITE: "[PC Preview] unknow SATELLITE", 134 TERRESTRIAL: "[PC Preview] unknow TERRESTRIAL", 135 ISDB_TER: "[PC Preview] unknow ISDB_TER", 136 ATSC_T: "[PC Preview] unknow ATSC_T", 137 DTMB: "[PC Preview] unknow DTMB", 138 J83B: "[PC Preview] unknow J83B", 139 RF: "[PC Preview] unknow RF", 140 ATSC_CAB: "[PC Preview] unknow ATSC_CAB", 141 ISDB_CAB: "[PC Preview] unknow ISDB_CAB" 142 } 143 const VersionTypes = { 144 Version_1: "[PC Preview] unknow Version_1", 145 Version_2: "[PC Preview] unknow Version_2", 146 Version_all: "[PC Preview] unknow Version_all" 147 } 148 const TunerStatus = { 149 UNLOCK: "[PC Preview] unknow UNLOCK", 150 LOCK: "[PC Preview] unknow LOCK", 151 UNKNOW: "[PC Preview] unknow UNKNOW" 152 } 153 const TimeShiftInfo = { 154 recordTime: "[PC Preview] unknow recordTime", 155 beginTimeSecond: "[PC Preview] unknow beginTimeSecond", 156 playTimeSecond: "[PC Preview] unknow playTimeSecond", 157 TERRESTRIAL: "[PC Preview] unknow TERRESTRIAL" 158 } 159 const TrickModes = { 160 FAST_FORWARD_NORMAL: "[PC Preview] unknow FAST_FORWARD_NORMAL", 161 FAST_FORWARD_TWO: "[PC Preview] unknow FAST_FORWARD_TWO", 162 FAST_FORWARD_FOUR: "[PC Preview] unknow FAST_FORWARD_FOUR", 163 FAST_FORWARD_EIGHT: "[PC Preview] unknow FAST_FORWARD_EIGHT", 164 FAST_FORWARD_SIXTEEN: "[PC Preview] unknow FAST_FORWARD_SIXTEEN", 165 FAST_FORWARD_THIRTYTWO: "[PC Preview] unknow FAST_FORWARD_THIRTYTWO", 166 FAST_FORWARD_SIXTYFOUR: "[PC Preview] unknow FAST_FORWARD_SIXTYFOUR", 167 FAST_BACKWARD_NORMAL: "[PC Preview] unknow FAST_BACKWARD_NORMAL", 168 FAST_BACKWARD_TWO: "[PC Preview] unknow FAST_BACKWARD_TWO", 169 FAST_BACKWARD_FOUR: "[PC Preview] unknow FAST_BACKWARD_FOUR", 170 FAST_BACKWARD_EIGHT: "[PC Preview] unknow FAST_BACKWARD_EIGHT", 171 FAST_BACKWARD_SIXTEEN: "[PC Preview] unknow FAST_BACKWARD_SIXTEEN", 172 FAST_BACKWARD_THIRTYTWO: "[PC Preview] unknow FAST_BACKWARD_THIRTYTWO", 173 FAST_BACKWARD_SIXTYFOUR: "[PC Preview] unknow FAST_BACKWARD_SIXTYFOUR", 174 SLOW_FORWARD_TWO: "[PC Preview] unknow SLOW_FORWARD_TWO", 175 SLOW_FORWARD_FOUR: "[PC Preview] unknow SLOW_FORWARD_FOUR", 176 SLOW_FORWARD_EIGHT: "[PC Preview] unknow SLOW_FORWARD_EIGHT", 177 SLOW_FORWARD_SIXTEEN: "[PC Preview] unknow SLOW_FORWARD_SIXTEEN", 178 SLOW_FORWARD_THIRTYTWO: "[PC Preview] unknow SLOW_FORWARD_THIRTYTWO", 179 SLOW_BACKWARD_TWO: "[PC Preview] unknow SLOW_BACKWARD_TWO", 180 SLOW_BACKWARD_FOUR: "[PC Preview] unknow SLOW_BACKWARD_FOUR", 181 SLOW_BACKWARD_EIGHT: "[PC Preview] unknow SLOW_BACKWARD_EIGHT", 182 SLOW_BACKWARD_SIXTEEN: "[PC Preview] unknow SLOW_BACKWARD_SIXTEEN", 183 SLOW_BACKWARD_THIRTYTWO: "[PC Preview] unknow SLOW_BACKWARD_THIRTYTWO", 184 INVALID_TRICK_MODE: "[PC Preview] unknow INVALID_TRICK_MODE" 185 } 186 const PlayStatus = { 187 STOP: "[PC Preview] unknow STOP", 188 LIVEPLAY: "[PC Preview] unknow LIVEPLAY", 189 TIMESHIFTPLAY: "[PC Preview] unknow TIMESHIFTPLAY", 190 PAUSE: "[PC Preview] unknow PAUSE", 191 IDLE: "[PC Preview] unknow IDLE", 192 RELEASEPLAYRESOURCE: "[PC Preview] unknow RELEASEPLAYRESOURCE", 193 PIPPLAY: "[PC Preview] unknow PIPPLAY", 194 EWSPLAY: "[PC Preview] unknow EWSPLAY", 195 INVALID: "[PC Preview] unknow INVALID" 196 } 197 const AudioComponent = { 198 pid: "[PC Preview] unknow pid", 199 type: "[PC Preview] unknow type", 200 languageCode: "[PC Preview] unknow languageCode", 201 audioTextDescription: "[PC Preview] unknow audioTextDescription", 202 audioDescriptionType: "[PC Preview] unknow audioDescriptionType", 203 audioTrackMode: "[PC Preview] unknow audioTrackMode", 204 audioComponentTag: "[PC Preview] unknow audioComponentTag" 205 } 206 const AudioTrackModes = { 207 AUDIO_TRACK_STEREO: "[PC Preview] unknow AUDIO_TRACK_STEREO", 208 AUDIO_TRACK_DOUBLE_MONO: "[PC Preview] unknow AUDIO_TRACK_DOUBLE_MONO", 209 AUDIO_TRACK_DOUBLE_LEFT: "[PC Preview] unknow AUDIO_TRACK_DOUBLE_LEFT", 210 AUDIO_TRACK_DOUBLE_RIGHT: "[PC Preview] unknow AUDIO_TRACK_DOUBLE_RIGHT", 211 AUDIO_TRACK_EXCHANGE: "[PC Preview] unknow AUDIO_TRACK_EXCHANGE", 212 AUDIO_TRACK_ONLY_RIGHT: "[PC Preview] unknow AUDIO_TRACK_ONLY_RIGHT", 213 AUDIO_TRACK_ONLY_LEFT: "[PC Preview] unknow AUDIO_TRACK_ONLY_LEFT", 214 AUDIO_TRACK_MUTED: "[PC Preview] unknow AUDIO_TRACK_MUTED", 215 AUDIO_TRACK_BUTT: "[PC Preview] unknow AUDIO_TRACK_BUTT" 216 } 217 const StopTypes = { 218 FREEZE: "[PC Preview] unknow FREEZE", 219 BLACKSCREEN: "[PC Preview] unknow BLACKSCREEN", 220 STOP_TYPE_BUTT: "[PC Preview] unknow STOP_TYPE_BUTT" 221 } 222 const AudioTypes = { 223 HI_DESC_AUDIO_UNDEFINED: "[PC Preview] unknow HI_DESC_AUDIO_UNDEFINED", 224 HI_DESC_AUDIO_VISUAL_IMPAIRED_COMMENTARY: "[PC Preview] unknow HI_DESC_AUDIO_VISUAL_IMPAIRED_COMMENTARY", 225 HI_DESC_AUDIO_HEARING_IMPAIRED: "[PC Preview] unknow HI_DESC_AUDIO_HEARING_IMPAIRED", 226 HI_DESC_AUDIO_CLEAN_EFFACTS: "[PC Preview] unknow HI_DESC_AUDIO_CLEAN_EFFACTS" 227 } 228 const PlayInfo = { 229 startVideoPlayStatus: "[PC Preview] unknow startVideoPlayStatus", 230 startAudioPlayStatus: "[PC Preview] unknow startAudioPlayStatus", 231 signalStatus: "[PC Preview] unknow signalStatus", 232 caStatus: "[PC Preview] unknow caStatus", 233 frontendDataStatus: "[PC Preview] unknow frontendDataStatus" 234 } 235 const SubtitleTypes = { 236 SUBTITLE: "[PC Preview] unknow SUBTITLE", 237 TELETEXT: "[PC Preview] unknow TELETEXT", 238 CC: "[PC Preview] unknow CC" 239 } 240 const SubtComponentTypes = { 241 NORMAL: "[PC Preview] unknow NORMAL", 242 HOH: "[PC Preview] unknow HOH" 243 } 244 const TeletextComponent = { 245 motor: "[PC Preview] unknow motor", 246 magazingNum: "[PC Preview] unknow magazingNum", 247 pageNum: "[PC Preview] unknow pageNum" 248 } 249 const TTXRegions = { 250 TTX_REGION_WEST_EUROPE: "[PC Preview] unknow TTX_REGION_WEST_EUROPE", 251 TTX_REGION_EAST_EUROPE: "[PC Preview] unknow TTX_REGION_EAST_EUROPE", 252 TTX_REGION_RUSSIAN: "[PC Preview] unknow TTX_REGION_RUSSIAN", 253 TTX_REGION_ARABIC: "[PC Preview] unknow TTX_REGION_ARABIC", 254 TTX_REGION_FARSI: "[PC Preview] unknow TTX_REGION_FARSI", 255 TTX_REGION_BUTT: "[PC Preview] unknow TTX_REGION_BUTT" 256 } 257 const Modulations = { 258 QAM_AUTO: "[PC Preview] unknow QAM_AUTO", 259 QAM4_NR: "[PC Preview] unknow QAM4_NR", 260 QAM4: "[PC Preview] unknow QAM4", 261 QAM16: "[PC Preview] unknow QAM16", 262 QAM32: "[PC Preview] unknow QAM32", 263 QAM64: "[PC Preview] unknow QAM64", 264 QAM128: "[PC Preview] unknow QAM128", 265 QAM256: "[PC Preview] unknow QAM256", 266 QAM512: "[PC Preview] unknow QAM512", 267 QAM640: "[PC Preview] unknow QAM640", 268 QAM768: "[PC Preview] unknow QAM768", 269 QAM896: "[PC Preview] unknow QAM896", 270 QAM1024: "[PC Preview] unknow QAM1024", 271 QPSK: "[PC Preview] unknow QPSK", 272 BPSK: "[PC Preview] unknow BPSK", 273 OQPSK: "[PC Preview] unknow OQPSK", 274 MODU_8VSB: "[PC Preview] unknow MODU_8VSB", 275 MODU_16VSB: "[PC Preview] unknow MODU_16VSB" 276 } 277 const Status = { 278 RUNNING: "[PC Preview] unknow RUNNING", 279 UNSTART: "[PC Preview] unknow UNSTART" 280 } 281 const PVRFileInfo = { 282 fullPath: "[PC Preview] unknow fullPath", 283 size: "[PC Preview] unknow size", 284 duration: "[PC Preview] unknow duration", 285 videoResolution: "[PC Preview] unknow videoResolution", 286 audioComponents: "[PC Preview] unknow audioComponents", 287 subtitleComponents: "[PC Preview] unknow subtitleComponents", 288 isRadio: "[PC Preview] unknow isRadio" 289 } 290 const DtvSystems = { 291 DVB_STANDARD: "[PC Preview] unknow DVB_STANDARD", 292 ATSC_STANDARD: "[PC Preview] unknow ATSC_STANDARD" 293 } 294 295 const ClosedCaptionList = { 296 listName: "[PC Preview] unknow listName", 297 ccList: "[PC Preview] unknow ccList", 298 listType: "[PC Preview] unknow listType", 299 currentPosition: "[PC Preview] unknow currentPosition" 300 } 301 const ClosedCaptionComponent = { 302 languageCode: "[PC Preview] unknow languageCode", 303 enCCType: "[PC Preview] unknow enCCType", 304 dataType: "[PC Preview] unknow dataType", 305 currentPosition: "[PC Preview] unknow currentPosition" 306 } 307 const CCAnalogSelectors = { 308 CC1: "[PC Preview] unknow CC1", 309 CC2: "[PC Preview] unknow CC2", 310 CC3: "[PC Preview] unknow CC3", 311 CC4: "[PC Preview] unknow CC4", 312 TEXT1: "[PC Preview] unknow TEXT1", 313 TEXT2: "[PC Preview] unknow TEXT2", 314 TEXT3: "[PC Preview] unknow TEXT3", 315 TEXT4: "[PC Preview] unknow TEXT4" 316 } 317 const CCDigitalSelectors = { 318 OFF: "[PC Preview] unknow OFF", 319 SERVICE1: "[PC Preview] unknow SERVICE1", 320 SERVICE2: "[PC Preview] unknow SERVICE2", 321 SERVICE3: "[PC Preview] unknow SERVICE3", 322 SERVICE4: "[PC Preview] unknow SERVICE4", 323 SERVICE5: "[PC Preview] unknow SERVICE5", 324 SERVICE6: "[PC Preview] unknow SERVICE6" 325 } 326 const FontSizes = { 327 DEFAULT: "[PC Preview] unknow DEFAULT", 328 SMALL: "[PC Preview] unknow SMALL", 329 NORMAL: "[PC Preview] unknow NORMAL", 330 LARGE: "[PC Preview] unknow LARGE" 331 } 332 const FontStyles = { 333 DEFAULT: "[PC Preview] unknow DEFAULT", 334 STYLE0: "[PC Preview] unknow STYLE0", 335 STYLE1: "[PC Preview] unknow STYLE1", 336 STYLE2: "[PC Preview] unknow STYLE2", 337 STYLE3: "[PC Preview] unknow STYLE3", 338 STYLE4: "[PC Preview] unknow STYLE4", 339 STYLE5: "[PC Preview] unknow STYLE5", 340 STYLE6: "[PC Preview] unknow STYLE6", 341 STYLE7: "[PC Preview] unknow STYLE7" 342 } 343 const Colors = { 344 DEFAULT: "[PC Preview] unknow DEFAULT", 345 BLACK: "[PC Preview] unknow BLACK", 346 RED: "[PC Preview] unknow RED", 347 GREEN: "[PC Preview] unknow GREEN", 348 BLUE: "[PC Preview] unknow BLUE", 349 YELLOW: "[PC Preview] unknow YELLOW", 350 MAGENTA: "[PC Preview] unknow MAGENTA", 351 STYLE6: "[PC Preview] unknow STYLE6", 352 CYAN: "[PC Preview] unknow CYAN" 353 } 354 const Opacities = { 355 DEFAULT: "[PC Preview] unknow DEFAULT", 356 SOLID: "[PC Preview] unknow SOLID", 357 FLASHING: "[PC Preview] unknow FLASHING", 358 TRANSLUCENT: "[PC Preview] unknow TRANSLUCENT", 359 TRANSPARENT: "[PC Preview] unknow TRANSPARENT" 360 } 361 const FontEdgeEffects = { 362 DEFAULT: "[PC Preview] unknow DEFAULT", 363 NONE: "[PC Preview] unknow NONE", 364 RAISED: "[PC Preview] unknow RAISED", 365 DEPRESSED: "[PC Preview] unknow DEPRESSED", 366 UNIFORM: "[PC Preview] unknow UNIFORM", 367 LETF_DROP_SHADOW: "[PC Preview] unknow LETF_DROP_SHADOW", 368 RIGHT_DROP_SHADOW: "[PC Preview] unknow RIGHT_DROP_SHADOW" 369 } 370 371 const result = { 372 getBookManager: function () { 373 console.warn("dtv.getBookManager interface mocked in the Previewer. How this interface works on the Previewer" + 374 " may be different from that on a real device.") 375 return BookManager; 376 }, 377 getChannelManager: function () { 378 console.warn("dtv.getChannelManager interface mocked in the Previewer. How this interface works on the Previewer" + 379 " may be different from that on a real device.") 380 return ChannelManager; 381 }, 382 getAtvChannelManager: function () { 383 console.warn("dtv.getAtvChannelManager interface mocked in the Previewer. How this interface works on the Previewer" + 384 " may be different from that on a real device.") 385 return AtvChannelManager; 386 }, 387 getParentalControlManager: function () { 388 console.warn("dtv.getParentalControlManager interface mocked in the Previewer. How this interface works on the Previewer" + 389 " may be different from that on a real device.") 390 return ParentalControlManager; 391 }, 392 getConfigManager: function () { 393 console.warn("dtv.getConfigManager interface mocked in the Previewer. How this interface works on the Previewer" + 394 " may be different from that on a real device.") 395 return DTVConfigManager; 396 }, 397 getEPGManager: function () { 398 console.warn("dtv.getEPGManager interface mocked in the Previewer. How this interface works on the Previewer" + 399 " may be different from that on a real device.") 400 return EPGManager; 401 }, 402 getOTAManager: function () { 403 console.warn("dtv.getOTAManager interface mocked in the Previewer. How this interface works on the Previewer" + 404 " may be different from that on a real device.") 405 return OTAManager; 406 }, 407 getHardwareManager: function () { 408 console.warn("dtv.getHardwareManager interface mocked in the Previewer. How this interface works on the Previewer" + 409 " may be different from that on a real device.") 410 return HardwareManager; 411 }, 412 getNetworkManager: function () { 413 console.warn("dtv.getNetworkManager interface mocked in the Previewer. How this interface works on the Previewer" + 414 " may be different from that on a real device.") 415 return NetworkManager; 416 }, 417 getPlayerManager: function () { 418 console.warn("dtv.getPlayerManager interface mocked in the Previewer. How this interface works on the Previewer" + 419 " may be different from that on a real device.") 420 return PlayerManager; 421 }, 422 getRecorderManager: function () { 423 console.warn("dtv.getRecorderManager interface mocked in the Previewer. How this interface works on the Previewer" + 424 " may be different from that on a real device.") 425 return RecorderManager; 426 }, 427 getPVRFilePlayer: function () { 428 console.warn("dtv.getPVRFilePlayer interface mocked in the Previewer. How this interface works on the Previewer" + 429 " may be different from that on a real device.") 430 return PVRFilePlayer; 431 }, 432 getPVRFileManager: function () { 433 console.warn("dtv.getPVRFileManager interface mocked in the Previewer. How this interface works on the Previewer" + 434 " may be different from that on a real device.") 435 return PVRFileManager; 436 }, 437 getDTVManager: function () { 438 console.warn("dtv.getDTVManager interface mocked in the Previewer. How this interface works on the Previewer" + 439 " may be different from that on a real device.") 440 return DTVManager; 441 }, 442 getClosedCaptionManager: function () { 443 console.warn("dtv.getClosedCaptionManager interface mocked in the Previewer. How this interface works on the Previewer" + 444 " may be different from that on a real device.") 445 return ClosedCaptionManager; 446 }, 447 getDtvEventManager: function () { 448 console.warn("dtv.getDtvEventManager interface mocked in the Previewer. How this interface works on the Previewer" + 449 " may be different from that on a real device.") 450 return DtvEventManager; 451 } 452 } 453 454 const BookManager = { 455 addTask: function (...args) { 456 console.warn("BookManager.addTask interface mocked in the Previewer. How this interface works on the Previewer" + 457 " may be different from that on a real device.") 458 const len = args.length 459 if (typeof args[len - 1] === 'function') { 460 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 461 } else { 462 return new Promise((resolve, reject) => { 463 resolve(paramMock.paramNumberMock); 464 }) 465 } 466 }, 467 clearAllTasks: function (...args) { 468 console.warn("BookManager.clearAllTasks interface mocked in the Previewer. How this interface works on the Previewer" + 469 " may be different from that on a real device.") 470 const len = args.length 471 if (typeof args[len - 1] === 'function') { 472 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 473 } else { 474 return new Promise((resolve, reject) => { 475 resolve(paramMock.paramNumberMock); 476 }) 477 } 478 }, 479 createTask: function (...args) { 480 console.warn("BookManager.createTask interface mocked in the Previewer. How this interface works on the Previewer" + 481 " may be different from that on a real device.") 482 const len = args.length 483 if (typeof args[len - 1] === 'function') { 484 args[len - 1].call(this, paramMock.businessErrorMock, BookTask); 485 } else { 486 return new Promise((resolve, reject) => { 487 resolve(BookTask); 488 }) 489 } 490 }, 491 deleteTask: function (...args) { 492 console.warn("BookManager.deleteTask interface mocked in the Previewer. How this interface works on the Previewer" + 493 " may be different from that on a real device.") 494 const len = args.length 495 if (typeof args[len - 1] === 'function') { 496 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 497 } else { 498 return new Promise((resolve, reject) => { 499 resolve(paramMock.paramNumberMock); 500 }) 501 } 502 }, 503 updateTask: function (...args) { 504 console.warn("BookManager.updateTask interface mocked in the Previewer. How this interface works on the Previewer" + 505 " may be different from that on a real device.") 506 const len = args.length 507 if (typeof args[len - 1] === 'function') { 508 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 509 } else { 510 return new Promise((resolve, reject) => { 511 resolve(paramMock.paramNumberMock); 512 }) 513 } 514 }, 515 findConflictTasks: function (...args) { 516 console.warn("BookManager.findConflictTasks interface mocked in the Previewer. How this interface works on the Previewer" + 517 " may be different from that on a real device.") 518 var bookTaskArray = new Array(); 519 bookTaskArray.push(BookTask); 520 const len = args.length 521 if (typeof args[len - 1] === 'function') { 522 args[len - 1].call(this, paramMock.businessErrorMock, bookTaskArray); 523 } else { 524 return new Promise((resolve, reject) => { 525 resolve(bookTaskArray); 526 }) 527 } 528 }, 529 getTaskByID: function (...args) { 530 console.warn("BookManager.getTaskByID interface mocked in the Previewer. How this interface works on the Previewer" + 531 " may be different from that on a real device.") 532 var bookTaskArray = new Array(); 533 bookTaskArray.push(BookTask); 534 const len = args.length 535 if (typeof args[len - 1] === 'function') { 536 args[len - 1].call(this, paramMock.businessErrorMock, BookTask); 537 } else { 538 return new Promise((resolve, reject) => { 539 resolve(BookTask); 540 }) 541 } 542 }, 543 getAllTasks: function (...args) { 544 console.warn("BookManager.getAllTasks interface mocked in the Previewer. How this interface works on the Previewer" + 545 " may be different from that on a real device.") 546 var bookTaskArray = new Array(); 547 bookTaskArray.push(BookTask); 548 const len = args.length 549 if (typeof args[len - 1] === 'function') { 550 args[len - 1].call(this, paramMock.businessErrorMock, bookTaskArray); 551 } else { 552 return new Promise((resolve, reject) => { 553 resolve(bookTaskArray); 554 }) 555 } 556 }, 557 getComingTask: function (...args) { 558 console.warn("BookManager.getComingTask interface mocked in the Previewer. How this interface works on the Previewer" + 559 " may be different from that on a real device.") 560 const len = args.length 561 if (typeof args[len - 1] === 'function') { 562 args[len - 1].call(this, paramMock.businessErrorMock, BookTask); 563 } else { 564 return new Promise((resolve, reject) => { 565 resolve(BookTask); 566 }) 567 } 568 } 569 } 570 const Channel = { 571 getChannelName: function (...args) { 572 console.warn("Channel.getChannelName interface mocked in the Previewer. How this interface works on the Previewer" + 573 " may be different from that on a real device.") 574 const len = args.length 575 if (typeof args[len - 1] === 'function') { 576 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramStringMock); 577 } else { 578 return new Promise((resolve, reject) => { 579 resolve(paramMock.paramStringMock); 580 }) 581 } 582 }, 583 getFavTag: function (...args) { 584 console.warn("Channel.getFavTag interface mocked in the Previewer. How this interface works on the Previewer" + 585 " may be different from that on a real device.") 586 var favTagArray = new Array(); 587 favTagArray.push(FavTags); 588 const len = args.length 589 if (typeof args[len - 1] === 'function') { 590 args[len - 1].call(this, paramMock.businessErrorMock, favTagArray); 591 } else { 592 return new Promise((resolve, reject) => { 593 resolve(favTagArray); 594 }) 595 } 596 }, 597 getCaTag: function (...args) { 598 console.warn("Channel.getCaTag interface mocked in the Previewer. How this interface works on the Previewer" + 599 " may be different from that on a real device.") 600 const len = args.length 601 if (typeof args[len - 1] === 'function') { 602 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 603 } else { 604 return new Promise((resolve, reject) => { 605 resolve(paramMock.paramNumberMock); 606 }) 607 } 608 }, 609 getTag: function (...args) { 610 console.warn("Channel.getTag interface mocked in the Previewer. How this interface works on the Previewer" + 611 " may be different from that on a real device.") 612 const len = args.length 613 if (typeof args[len - 1] === 'function') { 614 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 615 } else { 616 return new Promise((resolve, reject) => { 617 resolve(paramMock.paramBooleanMock); 618 }) 619 } 620 }, 621 getVolume: function (...args) { 622 console.warn("Channel.getVolume interface mocked in the Previewer. How this interface works on the Previewer" + 623 " may be different from that on a real device.") 624 const len = args.length 625 if (typeof args[len - 1] === 'function') { 626 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 627 } else { 628 return new Promise((resolve, reject) => { 629 resolve(paramMock.paramNumberMock); 630 }) 631 } 632 }, 633 getTrackMode: function (...args) { 634 console.warn("Channel.getTrackMode interface mocked in the Previewer. How this interface works on the Previewer" + 635 " may be different from that on a real device.") 636 const len = args.length 637 if (typeof args[len - 1] === 'function') { 638 args[len - 1].call(this, paramMock.businessErrorMock, AudioTrackModes); 639 } else { 640 return new Promise((resolve, reject) => { 641 resolve(AudioTrackModes); 642 }) 643 } 644 }, 645 setChannelName: function (...args) { 646 console.warn("Channel.setChannelName interface mocked in the Previewer. How this interface works on the Previewer" + 647 " may be different from that on a real device.") 648 const len = args.length 649 if (typeof args[len - 1] === 'function') { 650 args[len - 1].call(this, paramMock.businessErrorMock); 651 } else { 652 return new Promise((resolve, reject) => { 653 resolve(); 654 }) 655 } 656 }, 657 setFavTag: function (...args) { 658 console.warn("Channel.setFavTag interface mocked in the Previewer. How this interface works on the Previewer" + 659 " may be different from that on a real device.") 660 const len = args.length 661 if (typeof args[len - 1] === 'function') { 662 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 663 } else { 664 return new Promise((resolve, reject) => { 665 resolve(paramMock.paramNumberMock); 666 }) 667 } 668 }, 669 setTag: function (...args) { 670 console.warn("Channel.setTag interface mocked in the Previewer. How this interface works on the Previewer" + 671 " may be different from that on a real device.") 672 const len = args.length 673 if (typeof args[len - 1] === 'function') { 674 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 675 } else { 676 return new Promise((resolve, reject) => { 677 resolve(paramMock.paramNumberMock); 678 }) 679 } 680 }, 681 setVolume: function (...args) { 682 console.warn("Channel.setVolume interface mocked in the Previewer. How this interface works on the Previewer" + 683 " may be different from that on a real device.") 684 const len = args.length 685 if (typeof args[len - 1] === 'function') { 686 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 687 } else { 688 return new Promise((resolve, reject) => { 689 resolve(paramMock.paramNumberMock); 690 }) 691 } 692 }, 693 setTrackMode: function (...args) { 694 console.warn("Channel.setTrackMode interface mocked in the Previewer. How this interface works on the Previewer" + 695 " may be different from that on a real device.") 696 const len = args.length 697 if (typeof args[len - 1] === 'function') { 698 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 699 } else { 700 return new Promise((resolve, reject) => { 701 resolve(paramMock.paramNumberMock); 702 }) 703 } 704 }, 705 getRunningStatus: function (...args) { 706 console.warn("Channel.getRunningStatus interface mocked in the Previewer. How this interface works on the Previewer" + 707 " may be different from that on a real device.") 708 const len = args.length 709 if (typeof args[len - 1] === 'function') { 710 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 711 } else { 712 return new Promise((resolve, reject) => { 713 resolve(paramMock.paramNumberMock); 714 }) 715 } 716 }, 717 getStatusTag: function (...args) { 718 console.warn("Channel.getStatusTag interface mocked in the Previewer. How this interface works on the Previewer" + 719 " may be different from that on a real device.") 720 const len = args.length 721 if (typeof args[len - 1] === 'function') { 722 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 723 } else { 724 return new Promise((resolve, reject) => { 725 resolve(paramMock.paramNumberMock); 726 }) 727 } 728 }, 729 setStatusTag: function (...args) { 730 console.warn("Channel.setStatusTag interface mocked in the Previewer. How this interface works on the Previewer" + 731 " may be different from that on a real device.") 732 const len = args.length 733 if (typeof args[len - 1] === 'function') { 734 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 735 } else { 736 return new Promise((resolve, reject) => { 737 resolve(paramMock.paramNumberMock); 738 }) 739 } 740 }, 741 setSortTag: function (...args) { 742 console.warn("Channel.setSortTag interface mocked in the Previewer. How this interface works on the Previewer" + 743 " may be different from that on a real device.") 744 const len = args.length 745 if (typeof args[len - 1] === 'function') { 746 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 747 } else { 748 return new Promise((resolve, reject) => { 749 resolve(paramMock.paramNumberMock); 750 }) 751 } 752 }, 753 getSortTag: function (...args) { 754 console.warn("Channel.getSortTag interface mocked in the Previewer. How this interface works on the Previewer" + 755 " may be different from that on a real device.") 756 const len = args.length 757 if (typeof args[len - 1] === 'function') { 758 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 759 } else { 760 return new Promise((resolve, reject) => { 761 resolve(paramMock.paramNumberMock); 762 }) 763 } 764 }, 765 getChannelID: function (...args) { 766 console.warn("Channel.getChannelID interface mocked in the Previewer. How this interface works on the Previewer" + 767 " may be different from that on a real device.") 768 const len = args.length 769 if (typeof args[len - 1] === 'function') { 770 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 771 } else { 772 return new Promise((resolve, reject) => { 773 resolve(paramMock.paramNumberMock); 774 }) 775 } 776 }, 777 getChannelNo: function (...args) { 778 console.warn("Channel.getChannelNo interface mocked in the Previewer. How this interface works on the Previewer" + 779 " may be different from that on a real device.") 780 const len = args.length 781 if (typeof args[len - 1] === 'function') { 782 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 783 } else { 784 return new Promise((resolve, reject) => { 785 resolve(paramMock.paramNumberMock); 786 }) 787 } 788 }, 789 getNetWorkName: function (...args) { 790 console.warn("Channel.getNetWorkName interface mocked in the Previewer. How this interface works on the Previewer" + 791 " may be different from that on a real device.") 792 const len = args.length 793 if (typeof args[len - 1] === 'function') { 794 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramStringMock); 795 } else { 796 return new Promise((resolve, reject) => { 797 resolve(paramMock.paramStringMock); 798 }) 799 } 800 } 801 } 802 const ChannelList = { 803 setFilter: function (...args) { 804 console.warn("ChannelList.setFilter interface mocked in the Previewer. How this interface works on the Previewer" + 805 " may be different from that on a real device.") 806 const len = args.length 807 if (typeof args[len - 1] === 'function') { 808 args[len - 1].call(this, paramMock.businessErrorMock); 809 } else { 810 return new Promise((resolve, reject) => { 811 resolve(); 812 }) 813 } 814 }, 815 getFilter: function (...args) { 816 console.warn("ChannelList.getFilter interface mocked in the Previewer. How this interface works on the Previewer" + 817 " may be different from that on a real device.") 818 const len = args.length 819 if (typeof args[len - 1] === 'function') { 820 args[len - 1].call(this, paramMock.businessErrorMock, ChannelFilter); 821 } else { 822 return new Promise((resolve, reject) => { 823 resolve(ChannelFilter); 824 }) 825 } 826 }, 827 getChannelCount: function (...args) { 828 console.warn("ChannelList.getChannelCount interface mocked in the Previewer. How this interface works on the Previewer" + 829 " may be different from that on a real device.") 830 const len = args.length 831 if (typeof args[len - 1] === 'function') { 832 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 833 } else { 834 return new Promise((resolve, reject) => { 835 resolve(paramMock.paramNumberMock); 836 }) 837 } 838 }, 839 getChannels: function (...args) { 840 console.warn("ChannelList.getChannels interface mocked in the Previewer. How this interface works on the Previewer" + 841 " may be different from that on a real device.") 842 var channelArray = new Array(); 843 channelArray.push(Channel); 844 const len = args.length 845 if (typeof args[len - 1] === 'function') { 846 args[len - 1].call(this, paramMock.businessErrorMock, channelArray); 847 } else { 848 return new Promise((resolve, reject) => { 849 resolve(channelArray); 850 }) 851 } 852 }, 853 getChannelByIndex: function (...args) { 854 console.warn("ChannelList.getChannelByIndex interface mocked in the Previewer. How this interface works on the Previewer" + 855 " may be different from that on a real device.") 856 const len = args.length 857 if (typeof args[len - 1] === 'function') { 858 args[len - 1].call(this, paramMock.businessErrorMock, Channel); 859 } else { 860 return new Promise((resolve, reject) => { 861 resolve(Channel); 862 }) 863 } 864 }, 865 setListName: function (...args) { 866 console.warn("ChannelList.setListName interface mocked in the Previewer. How this interface works on the Previewer" + 867 " may be different from that on a real device.") 868 const len = args.length 869 if (typeof args[len - 1] === 'function') { 870 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 871 } else { 872 return new Promise((resolve, reject) => { 873 resolve(paramMock.paramNumberMock); 874 }) 875 } 876 }, 877 getListName: function (...args) { 878 console.warn("ChannelList.getListName interface mocked in the Previewer. How this interface works on the Previewer" + 879 " may be different from that on a real device.") 880 const len = args.length 881 if (typeof args[len - 1] === 'function') { 882 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramStringMock); 883 } else { 884 return new Promise((resolve, reject) => { 885 resolve(paramMock.paramStringMock); 886 }) 887 } 888 }, 889 move: function (...args) { 890 console.warn("ChannelList.move interface mocked in the Previewer. How this interface works on the Previewer" + 891 " may be different from that on a real device.") 892 const len = args.length 893 if (typeof args[len - 1] === 'function') { 894 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 895 } else { 896 return new Promise((resolve, reject) => { 897 resolve(paramMock.paramNumberMock); 898 }) 899 } 900 }, 901 swap: function (...args) { 902 console.warn("ChannelList.swap interface mocked in the Previewer. How this interface works on the Previewer" + 903 " may be different from that on a real device.") 904 const len = args.length 905 if (typeof args[len - 1] === 'function') { 906 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 907 } else { 908 return new Promise((resolve, reject) => { 909 resolve(paramMock.paramNumberMock); 910 }) 911 } 912 }, 913 getPosByChannelID: function (...args) { 914 console.warn("ChannelList.getPosByChannelID interface mocked in the Previewer. How this interface works on the Previewer" + 915 " may be different from that on a real device.") 916 const len = args.length 917 if (typeof args[len - 1] === 'function') { 918 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 919 } else { 920 return new Promise((resolve, reject) => { 921 resolve(paramMock.paramNumberMock); 922 }) 923 } 924 }, 925 getPosByChannelLcn: function (...args) { 926 console.warn("ChannelList.getPosByChannelLcn interface mocked in the Previewer. How this interface works on the Previewer" + 927 " may be different from that on a real device.") 928 const len = args.length 929 if (typeof args[len - 1] === 'function') { 930 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 931 } else { 932 return new Promise((resolve, reject) => { 933 resolve(paramMock.paramNumberMock); 934 }) 935 } 936 }, 937 getGroupType: function (...args) { 938 console.warn("ChannelList.getGroupType interface mocked in the Previewer. How this interface works on the Previewer" + 939 " may be different from that on a real device.") 940 const len = args.length 941 if (typeof args[len - 1] === 'function') { 942 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 943 } else { 944 return new Promise((resolve, reject) => { 945 resolve(paramMock.paramNumberMock); 946 }) 947 } 948 }, 949 setChannelNameLang: function (...args) { 950 console.warn("ChannelList.setChannelNameLang interface mocked in the Previewer. How this interface works on the Previewer" + 951 " may be different from that on a real device.") 952 const len = args.length 953 if (typeof args[len - 1] === 'function') { 954 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 955 } else { 956 return new Promise((resolve, reject) => { 957 resolve(paramMock.paramNumberMock); 958 }) 959 } 960 } 961 } 962 const ChannelManager = { 963 getChannelByNo: function (...args) { 964 console.warn("ChannelManager.getChannelByNo interface mocked in the Previewer. How this interface works on the Previewer" + 965 " may be different from that on a real device.") 966 const len = args.length 967 if (typeof args[len - 1] === 'function') { 968 args[len - 1].call(this, paramMock.businessErrorMock, Channel); 969 } else { 970 return new Promise((resolve, reject) => { 971 resolve(Channel); 972 }) 973 } 974 }, 975 getChannelById: function (...args) { 976 console.warn("ChannelManager.getChannelById interface mocked in the Previewer. How this interface works on the Previewer" + 977 " may be different from that on a real device.") 978 const len = args.length 979 if (typeof args[len - 1] === 'function') { 980 args[len - 1].call(this, paramMock.businessErrorMock, Channel); 981 } else { 982 return new Promise((resolve, reject) => { 983 resolve(Channel); 984 }) 985 } 986 }, 987 getTsInfoByID: function (...args) { 988 console.warn("ChannelManager.getTsInfoByID interface mocked in the Previewer. How this interface works on the Previewer" + 989 " may be different from that on a real device.") 990 const len = args.length 991 if (typeof args[len - 1] === 'function') { 992 args[len - 1].call(this, paramMock.businessErrorMock, ChannelTsInfo); 993 } else { 994 return new Promise((resolve, reject) => { 995 resolve(ChannelTsInfo); 996 }) 997 } 998 }, 999 importDBFromIniFile: function (...args) { 1000 console.warn("ChannelManager.importDBFromIniFile interface mocked in the Previewer. How this interface works on the Previewer" + 1001 " may be different from that on a real device.") 1002 const len = args.length 1003 if (typeof args[len - 1] === 'function') { 1004 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1005 } else { 1006 return new Promise((resolve, reject) => { 1007 resolve(paramMock.paramNumberMock); 1008 }) 1009 } 1010 }, 1011 exportDBToFile: function (...args) { 1012 console.warn("ChannelManager.exportDBToFile interface mocked in the Previewer. How this interface works on the Previewer" + 1013 " may be different from that on a real device.") 1014 const len = args.length 1015 if (typeof args[len - 1] === 'function') { 1016 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1017 } else { 1018 return new Promise((resolve, reject) => { 1019 resolve(paramMock.paramNumberMock); 1020 }) 1021 } 1022 }, 1023 importDBFromFile: function (...args) { 1024 console.warn("ChannelManager.importDBFromFile interface mocked in the Previewer. How this interface works on the Previewer" + 1025 " may be different from that on a real device.") 1026 const len = args.length 1027 if (typeof args[len - 1] === 'function') { 1028 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1029 } else { 1030 return new Promise((resolve, reject) => { 1031 resolve(paramMock.paramNumberMock); 1032 }) 1033 } 1034 }, 1035 deleteAll: function (...args) { 1036 console.warn("ChannelManager.deleteAll interface mocked in the Previewer. How this interface works on the Previewer" + 1037 " may be different from that on a real device.") 1038 const len = args.length 1039 if (typeof args[len - 1] === 'function') { 1040 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1041 } else { 1042 return new Promise((resolve, reject) => { 1043 resolve(paramMock.paramNumberMock); 1044 }) 1045 } 1046 }, 1047 deleteChannelByID: function (...args) { 1048 console.warn("ChannelManager.deleteChannelByID interface mocked in the Previewer. How this interface works on the Previewer" + 1049 " may be different from that on a real device.") 1050 const len = args.length 1051 if (typeof args[len - 1] === 'function') { 1052 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1053 } else { 1054 return new Promise((resolve, reject) => { 1055 resolve(paramMock.paramNumberMock); 1056 }) 1057 } 1058 }, 1059 restoreChannelByID: function (...args) { 1060 console.warn("ChannelManager.restoreChannelByID interface mocked in the Previewer. How this interface works on the Previewer" + 1061 " may be different from that on a real device.") 1062 const len = args.length 1063 if (typeof args[len - 1] === 'function') { 1064 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1065 } else { 1066 return new Promise((resolve, reject) => { 1067 resolve(paramMock.paramNumberMock); 1068 }) 1069 } 1070 }, 1071 delChannelByTag: function (...args) { 1072 console.warn("ChannelManager.delChannelByTag interface mocked in the Previewer. How this interface works on the Previewer" + 1073 " may be different from that on a real device.") 1074 const len = args.length 1075 if (typeof args[len - 1] === 'function') { 1076 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1077 } else { 1078 return new Promise((resolve, reject) => { 1079 resolve(paramMock.paramNumberMock); 1080 }) 1081 } 1082 }, 1083 deleteChannelsByNetworkType: function (...args) { 1084 console.warn("ChannelManager.deleteChannelsByNetworkType interface mocked in the Previewer. How this interface works on the Previewer" + 1085 " may be different from that on a real device.") 1086 const len = args.length 1087 if (typeof args[len - 1] === 'function') { 1088 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1089 } else { 1090 return new Promise((resolve, reject) => { 1091 resolve(paramMock.paramNumberMock); 1092 }) 1093 } 1094 }, 1095 deleteChannelsBySIElement: function (...args) { 1096 console.warn("ChannelManager.deleteChannelsBySIElement interface mocked in the Previewer. How this interface works on the Previewer" + 1097 " may be different from that on a real device.") 1098 const len = args.length 1099 if (typeof args[len - 1] === 'function') { 1100 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1101 } else { 1102 return new Promise((resolve, reject) => { 1103 resolve(paramMock.paramNumberMock); 1104 }) 1105 } 1106 }, 1107 save: function (...args) { 1108 console.warn("ChannelManager.save interface mocked in the Previewer. How this interface works on the Previewer" + 1109 " may be different from that on a real device.") 1110 const len = args.length 1111 if (typeof args[len - 1] === 'function') { 1112 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1113 } else { 1114 return new Promise((resolve, reject) => { 1115 resolve(paramMock.paramNumberMock); 1116 }) 1117 } 1118 }, 1119 recover: function (...args) { 1120 console.warn("ChannelManager.recover interface mocked in the Previewer. How this interface works on the Previewer" + 1121 " may be different from that on a real device.") 1122 const len = args.length 1123 if (typeof args[len - 1] === 'function') { 1124 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1125 } else { 1126 return new Promise((resolve, reject) => { 1127 resolve(paramMock.paramNumberMock); 1128 }) 1129 } 1130 }, 1131 createChannel: function (...args) { 1132 console.warn("ChannelManager.createChannel interface mocked in the Previewer. How this interface works on the Previewer" + 1133 " may be different from that on a real device.") 1134 const len = args.length 1135 if (typeof args[len - 1] === 'function') { 1136 args[len - 1].call(this, paramMock.businessErrorMock, Channel); 1137 } else { 1138 return new Promise((resolve, reject) => { 1139 resolve(Channel); 1140 }) 1141 } 1142 }, 1143 getChannelList: function (...args) { 1144 console.warn("ChannelManager.getChannelList interface mocked in the Previewer. How this interface works on the Previewer" + 1145 " may be different from that on a real device.") 1146 const len = args.length 1147 if (typeof args[len - 1] === 'function') { 1148 args[len - 1].call(this, paramMock.businessErrorMock, ChannelList); 1149 } else { 1150 return new Promise((resolve, reject) => { 1151 resolve(ChannelList); 1152 }) 1153 } 1154 }, 1155 sort: function (...args) { 1156 console.warn("ChannelManager.sort interface mocked in the Previewer. How this interface works on the Previewer" + 1157 " may be different from that on a real device.") 1158 const len = args.length 1159 if (typeof args[len - 1] === 'function') { 1160 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1161 } else { 1162 return new Promise((resolve, reject) => { 1163 resolve(paramMock.paramNumberMock); 1164 }) 1165 } 1166 }, 1167 sortProgramView: function (...args) { 1168 console.warn("ChannelManager.sortProgramView interface mocked in the Previewer. How this interface works on the Previewer" + 1169 " may be different from that on a real device.") 1170 const len = args.length 1171 if (typeof args[len - 1] === 'function') { 1172 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1173 } else { 1174 return new Promise((resolve, reject) => { 1175 resolve(paramMock.paramNumberMock); 1176 }) 1177 } 1178 }, 1179 setDefaultOpenChannel: function (...args) { 1180 console.warn("ChannelManager.setDefaultOpenChannel interface mocked in the Previewer. How this interface works on the Previewer" + 1181 " may be different from that on a real device.") 1182 const len = args.length 1183 if (typeof args[len - 1] === 'function') { 1184 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1185 } else { 1186 return new Promise((resolve, reject) => { 1187 resolve(paramMock.paramNumberMock); 1188 }) 1189 } 1190 }, 1191 setChannelServiceTypeMode: function (...args) { 1192 console.warn("ChannelManager.setChannelServiceTypeMode interface mocked in the Previewer. How this interface works on the Previewer" + 1193 " may be different from that on a real device.") 1194 const len = args.length 1195 if (typeof args[len - 1] === 'function') { 1196 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1197 } else { 1198 return new Promise((resolve, reject) => { 1199 resolve(paramMock.paramNumberMock); 1200 }) 1201 } 1202 }, 1203 rebuildAllGroup: function (...args) { 1204 console.warn("ChannelManager.rebuildAllGroup interface mocked in the Previewer. How this interface works on the Previewer" + 1205 " may be different from that on a real device.") 1206 const len = args.length 1207 if (typeof args[len - 1] === 'function') { 1208 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1209 } else { 1210 return new Promise((resolve, reject) => { 1211 resolve(paramMock.paramNumberMock); 1212 }) 1213 } 1214 }, 1215 getChannelServiceTypeMode: function (...args) { 1216 console.warn("ChannelManager.getChannelServiceTypeMode interface mocked in the Previewer. How this interface works on the Previewer" + 1217 " may be different from that on a real device.") 1218 const len = args.length 1219 if (typeof args[len - 1] === 'function') { 1220 args[len - 1].call(this, paramMock.businessErrorMock, TVRadioFilters); 1221 } else { 1222 return new Promise((resolve, reject) => { 1223 resolve(TVRadioFilters); 1224 }) 1225 } 1226 }, 1227 getChannelListByGroupType: function (...args) { 1228 console.warn("ChannelManager.getChannelListByGroupType interface mocked in the Previewer. How this interface works on the Previewer" + 1229 " may be different from that on a real device.") 1230 const len = args.length 1231 if (typeof args[len - 1] === 'function') { 1232 args[len - 1].call(this, paramMock.businessErrorMock, ChannelList); 1233 } else { 1234 return new Promise((resolve, reject) => { 1235 resolve(ChannelList); 1236 }) 1237 } 1238 }, 1239 getDefaultOpenChannel: function (...args) { 1240 console.warn("ChannelManager.getDefaultOpenChannel interface mocked in the Previewer. How this interface works on the Previewer" + 1241 " may be different from that on a real device.") 1242 const len = args.length 1243 if (typeof args[len - 1] === 'function') { 1244 args[len - 1].call(this, paramMock.businessErrorMock, Channel); 1245 } else { 1246 return new Promise((resolve, reject) => { 1247 resolve(Channel); 1248 }) 1249 } 1250 }, 1251 setChannelServiceTypeMode: function (...args) { 1252 console.warn("ChannelManager.setChannelServiceTypeMode interface mocked in the Previewer. How this interface works on the Previewer" + 1253 " may be different from that on a real device.") 1254 const len = args.length 1255 if (typeof args[len - 1] === 'function') { 1256 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1257 } else { 1258 return new Promise((resolve, reject) => { 1259 resolve(paramMock.paramNumberMock); 1260 }) 1261 } 1262 }, 1263 rebuildAllGroup: function (...args) { 1264 console.warn("ChannelManager.rebuildAllGroup interface mocked in the Previewer. How this interface works on the Previewer" + 1265 " may be different from that on a real device.") 1266 const len = args.length 1267 if (typeof args[len - 1] === 'function') { 1268 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1269 } else { 1270 return new Promise((resolve, reject) => { 1271 resolve(paramMock.paramNumberMock); 1272 }) 1273 } 1274 }, 1275 getChannelServiceTypeMode: function (...args) { 1276 console.warn("ChannelManager.getChannelServiceTypeMode interface mocked in the Previewer. How this interface works on the Previewer" + 1277 " may be different from that on a real device.") 1278 const len = args.length 1279 if (typeof args[len - 1] === 'function') { 1280 args[len - 1].call(this, paramMock.businessErrorMock, TVRadioFilters); 1281 } else { 1282 return new Promise((resolve, reject) => { 1283 resolve(TVRadioFilters); 1284 }) 1285 } 1286 }, 1287 getDefaultOpenGroupType: function (...args) { 1288 console.warn("ChannelManager.getDefaultOpenGroupType interface mocked in the Previewer. How this interface works on the Previewer" + 1289 " may be different from that on a real device.") 1290 const len = args.length 1291 if (typeof args[len - 1] === 'function') { 1292 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1293 } else { 1294 return new Promise((resolve, reject) => { 1295 resolve(paramMock.paramNumberMock); 1296 }) 1297 } 1298 }, 1299 getUseFavGroups: function (...args) { 1300 console.warn("ChannelManager.getUseFavGroups interface mocked in the Previewer. How this interface works on the Previewer" + 1301 " may be different from that on a real device.") 1302 var channelListArray = new Array(); 1303 channelListArray.push(ChannelList); 1304 const len = args.length 1305 if (typeof args[len - 1] === 'function') { 1306 args[len - 1].call(this, paramMock.businessErrorMock, channelListArray); 1307 } else { 1308 return new Promise((resolve, reject) => { 1309 resolve(channelListArray); 1310 }) 1311 } 1312 }, 1313 getUseStatalliteGroups: function (...args) { 1314 console.warn("ChannelManager.getUseStatalliteGroups interface mocked in the Previewer. How this interface works on the Previewer" + 1315 " may be different from that on a real device.") 1316 var channelListArray = new Array(); 1317 channelListArray.push(ChannelList); 1318 const len = args.length 1319 if (typeof args[len - 1] === 'function') { 1320 args[len - 1].call(this, paramMock.businessErrorMock, channelListArray); 1321 } else { 1322 return new Promise((resolve, reject) => { 1323 resolve(channelListArray); 1324 }) 1325 } 1326 }, 1327 getUseGroups: function (...args) { 1328 console.warn("ChannelManager.getUseGroups interface mocked in the Previewer. How this interface works on the Previewer" + 1329 " may be different from that on a real device.") 1330 var channelListArray = new Array(); 1331 channelListArray.push(ChannelList); 1332 const len = args.length 1333 if (typeof args[len - 1] === 'function') { 1334 args[len - 1].call(this, paramMock.businessErrorMock, channelListArray); 1335 } else { 1336 return new Promise((resolve, reject) => { 1337 resolve(channelListArray); 1338 }) 1339 } 1340 }, 1341 regenerateChannels: function (...args) { 1342 console.warn("ChannelManager.regenerateChannels interface mocked in the Previewer. How this interface works on the Previewer" + 1343 " may be different from that on a real device.") 1344 const len = args.length 1345 if (typeof args[len - 1] === 'function') { 1346 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1347 } else { 1348 return new Promise((resolve, reject) => { 1349 resolve(paramMock.paramNumberMock); 1350 }) 1351 } 1352 }, 1353 setFavNetworkName: function (...args) { 1354 console.warn("ChannelManager.setFavNetworkName interface mocked in the Previewer. How this interface works on the Previewer" + 1355 " may be different from that on a real device.") 1356 const len = args.length 1357 if (typeof args[len - 1] === 'function') { 1358 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1359 } else { 1360 return new Promise((resolve, reject) => { 1361 resolve(paramMock.paramNumberMock); 1362 }) 1363 } 1364 }, 1365 getLcnList: function (...args) { 1366 console.warn("ChannelManager.getLcnList interface mocked in the Previewer. How this interface works on the Previewer" + 1367 " may be different from that on a real device.") 1368 var stringArray = new Array(); 1369 stringArray.push(paramMock.paramStringMock); 1370 const len = args.length 1371 if (typeof args[len - 1] === 'function') { 1372 args[len - 1].call(this, paramMock.businessErrorMock, stringArray); 1373 } else { 1374 return new Promise((resolve, reject) => { 1375 resolve(stringArray); 1376 }) 1377 } 1378 }, 1379 selectLcnList: function (...args) { 1380 console.warn("ChannelManager.selectLcnList interface mocked in the Previewer. How this interface works on the Previewer" + 1381 " may be different from that on a real device.") 1382 const len = args.length 1383 if (typeof args[len - 1] === 'function') { 1384 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1385 } else { 1386 return new Promise((resolve, reject) => { 1387 resolve(paramMock.paramNumberMock); 1388 }) 1389 } 1390 }, 1391 getConflictLcnGroupNum: function (...args) { 1392 console.warn("ChannelManager.getConflictLcnGroupNum interface mocked in the Previewer. How this interface works on the Previewer" + 1393 " may be different from that on a real device.") 1394 const len = args.length 1395 if (typeof args[len - 1] === 'function') { 1396 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1397 } else { 1398 return new Promise((resolve, reject) => { 1399 resolve(paramMock.paramNumberMock); 1400 }) 1401 } 1402 }, 1403 getConflictLcnChannelId: function (...args) { 1404 console.warn("ChannelManager.getConflictLcnChannelId interface mocked in the Previewer. How this interface works on the Previewer" + 1405 " may be different from that on a real device.") 1406 var numberArray = new Array(); 1407 numberArray.push(paramMock.paramNumberMock); 1408 const len = args.length 1409 if (typeof args[len - 1] === 'function') { 1410 args[len - 1].call(this, paramMock.businessErrorMock, numberArray); 1411 } else { 1412 return new Promise((resolve, reject) => { 1413 resolve(numberArray); 1414 }) 1415 } 1416 }, 1417 getRegionList: function (...args) { 1418 console.warn("ChannelManager.getRegionList interface mocked in the Previewer. How this interface works on the Previewer" + 1419 " may be different from that on a real device.") 1420 var channelRegionArray = new Array(); 1421 channelRegionArray.push(ChannelRegion); 1422 const len = args.length 1423 if (typeof args[len - 1] === 'function') { 1424 args[len - 1].call(this, paramMock.businessErrorMock, channelRegionArray); 1425 } else { 1426 return new Promise((resolve, reject) => { 1427 resolve(channelRegionArray); 1428 }) 1429 } 1430 }, 1431 setRegionInfo: function (...args) { 1432 console.warn("ChannelManager.setRegionInfo interface mocked in the Previewer. How this interface works on the Previewer" + 1433 " may be different from that on a real device.") 1434 const len = args.length 1435 if (typeof args[len - 1] === 'function') { 1436 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1437 } else { 1438 return new Promise((resolve, reject) => { 1439 resolve(paramMock.paramNumberMock); 1440 }) 1441 } 1442 }, 1443 reAssignLcn: function (...args) { 1444 console.warn("ChannelManager.reAssignLcn interface mocked in the Previewer. How this interface works on the Previewer" + 1445 " may be different from that on a real device.") 1446 const len = args.length 1447 if (typeof args[len - 1] === 'function') { 1448 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1449 } else { 1450 return new Promise((resolve, reject) => { 1451 resolve(paramMock.paramNumberMock); 1452 }) 1453 } 1454 }, 1455 addUserChannel: function (...args) { 1456 console.warn("ChannelManager.addUserChannel interface mocked in the Previewer. How this interface works on the Previewer" + 1457 " may be different from that on a real device.") 1458 const len = args.length 1459 if (typeof args[len - 1] === 'function') { 1460 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1461 } else { 1462 return new Promise((resolve, reject) => { 1463 resolve(paramMock.paramNumberMock); 1464 }) 1465 } 1466 } 1467 } 1468 const AnalogChannel = { 1469 enableAFT: function (...args) { 1470 console.warn("AnalogChannel.enableAFT interface mocked in the Previewer. How this interface works on the Previewer" + 1471 " may be different from that on a real device.") 1472 const len = args.length 1473 if (typeof args[len - 1] === 'function') { 1474 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1475 } else { 1476 return new Promise((resolve, reject) => { 1477 resolve(paramMock.paramNumberMock); 1478 }) 1479 } 1480 }, 1481 isAFTEnable: function (...args) { 1482 console.warn("AnalogChannel.isAFTEnable interface mocked in the Previewer. How this interface works on the Previewer" + 1483 " may be different from that on a real device.") 1484 const len = args.length 1485 if (typeof args[len - 1] === 'function') { 1486 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 1487 } else { 1488 return new Promise((resolve, reject) => { 1489 resolve(paramMock.paramBooleanMock); 1490 }) 1491 } 1492 }, 1493 setColorSystem: function (...args) { 1494 console.warn("AnalogChannel.setColorSystem interface mocked in the Previewer. How this interface works on the Previewer" + 1495 " may be different from that on a real device.") 1496 const len = args.length 1497 if (typeof args[len - 1] === 'function') { 1498 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1499 } else { 1500 return new Promise((resolve, reject) => { 1501 resolve(paramMock.paramNumberMock); 1502 }) 1503 } 1504 }, 1505 getColorSystem: function (...args) { 1506 console.warn("AnalogChannel.getColorSystem interface mocked in the Previewer. How this interface works on the Previewer" + 1507 " may be different from that on a real device.") 1508 const len = args.length 1509 if (typeof args[len - 1] === 'function') { 1510 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1511 } else { 1512 return new Promise((resolve, reject) => { 1513 resolve(paramMock.paramNumberMock); 1514 }) 1515 } 1516 }, 1517 getOriginalColorSystem: function (...args) { 1518 console.warn("AnalogChannel.getOriginalColorSystem interface mocked in the Previewer. How this interface works on the Previewer" + 1519 " may be different from that on a real device.") 1520 const len = args.length 1521 if (typeof args[len - 1] === 'function') { 1522 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1523 } else { 1524 return new Promise((resolve, reject) => { 1525 resolve(paramMock.paramNumberMock); 1526 }) 1527 } 1528 }, 1529 setAudioSystem: function (...args) { 1530 console.warn("AnalogChannel.setAudioSystem interface mocked in the Previewer. How this interface works on the Previewer" + 1531 " may be different from that on a real device.") 1532 const len = args.length 1533 if (typeof args[len - 1] === 'function') { 1534 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1535 } else { 1536 return new Promise((resolve, reject) => { 1537 resolve(paramMock.paramNumberMock); 1538 }) 1539 } 1540 }, 1541 getAudioSystem: function (...args) { 1542 console.warn("AnalogChannel.getAudioSystem interface mocked in the Previewer. How this interface works on the Previewer" + 1543 " may be different from that on a real device.") 1544 const len = args.length 1545 if (typeof args[len - 1] === 'function') { 1546 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1547 } else { 1548 return new Promise((resolve, reject) => { 1549 resolve(paramMock.paramNumberMock); 1550 }) 1551 } 1552 }, 1553 setMtsMode: function (...args) { 1554 console.warn("AnalogChannel.setMtsMode interface mocked in the Previewer. How this interface works on the Previewer" + 1555 " may be different from that on a real device.") 1556 const len = args.length 1557 if (typeof args[len - 1] === 'function') { 1558 args[len - 1].call(this, paramMock.businessErrorMock); 1559 } else { 1560 return new Promise((resolve, reject) => { 1561 resolve(); 1562 }) 1563 } 1564 }, 1565 getMtsMode: function (...args) { 1566 console.warn("AnalogChannel.getMtsMode interface mocked in the Previewer. How this interface works on the Previewer" + 1567 " may be different from that on a real device.") 1568 const len = args.length 1569 if (typeof args[len - 1] === 'function') { 1570 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1571 } else { 1572 return new Promise((resolve, reject) => { 1573 resolve(paramMock.paramNumberMock); 1574 }) 1575 } 1576 } 1577 } 1578 const AtvChannelManager = { 1579 createChannel: function (...args) { 1580 console.warn("AtvChannelManager.createChannel interface mocked in the Previewer. How this interface works on the Previewer" + 1581 " may be different from that on a real device.") 1582 const len = args.length 1583 if (typeof args[len - 1] === 'function') { 1584 args[len - 1].call(this, paramMock.businessErrorMock, AnalogChannel); 1585 } else { 1586 return new Promise((resolve, reject) => { 1587 resolve(AnalogChannel); 1588 }) 1589 } 1590 }, 1591 getChannelByID: function (...args) { 1592 console.warn("AtvChannelManager.getChannelByID interface mocked in the Previewer. How this interface works on the Previewer" + 1593 " may be different from that on a real device.") 1594 const len = args.length 1595 if (typeof args[len - 1] === 'function') { 1596 args[len - 1].call(this, paramMock.businessErrorMock, AnalogChannel); 1597 } else { 1598 return new Promise((resolve, reject) => { 1599 resolve(AnalogChannel); 1600 }) 1601 } 1602 }, 1603 getAllChannelList: function (...args) { 1604 console.warn("AtvChannelManager.getAllChannelList interface mocked in the Previewer. How this interface works on the Previewer" + 1605 " may be different from that on a real device.") 1606 const len = args.length 1607 if (typeof args[len - 1] === 'function') { 1608 args[len - 1].call(this, paramMock.businessErrorMock, ChannelList); 1609 } else { 1610 return new Promise((resolve, reject) => { 1611 resolve(ChannelList); 1612 }) 1613 } 1614 }, 1615 getChannelList: function (...args) { 1616 console.warn("AtvChannelManager.getChannelList interface mocked in the Previewer. How this interface works on the Previewer" + 1617 " may be different from that on a real device.") 1618 const len = args.length 1619 if (typeof args[len - 1] === 'function') { 1620 args[len - 1].call(this, paramMock.businessErrorMock, ChannelList); 1621 } else { 1622 return new Promise((resolve, reject) => { 1623 resolve(ChannelList); 1624 }) 1625 } 1626 }, 1627 deleteAll: function (...args) { 1628 console.warn("AtvChannelManager.deleteAll interface mocked in the Previewer. How this interface works on the Previewer" + 1629 " may be different from that on a real device.") 1630 const len = args.length 1631 if (typeof args[len - 1] === 'function') { 1632 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1633 } else { 1634 return new Promise((resolve, reject) => { 1635 resolve(paramMock.paramNumberMock); 1636 }) 1637 } 1638 }, 1639 deleteChannelByID: function (...args) { 1640 console.warn("AtvChannelManager.deleteChannelByID interface mocked in the Previewer. How this interface works on the Previewer" + 1641 " may be different from that on a real device.") 1642 const len = args.length 1643 if (typeof args[len - 1] === 'function') { 1644 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1645 } else { 1646 return new Promise((resolve, reject) => { 1647 resolve(paramMock.paramNumberMock); 1648 }) 1649 } 1650 }, 1651 getDefaultOpenChannel: function (...args) { 1652 console.warn("AtvChannelManager.getDefaultOpenChannel interface mocked in the Previewer. How this interface works on the Previewer" + 1653 " may be different from that on a real device.") 1654 const len = args.length 1655 if (typeof args[len - 1] === 'function') { 1656 args[len - 1].call(this, paramMock.businessErrorMock, AnalogChannel); 1657 } else { 1658 return new Promise((resolve, reject) => { 1659 resolve(AnalogChannel); 1660 }) 1661 } 1662 }, 1663 getUseGroups: function (...args) { 1664 console.warn("AtvChannelManager.getUseGroups interface mocked in the Previewer. How this interface works on the Previewer" + 1665 " may be different from that on a real device.") 1666 var channelListArray = new Array(); 1667 channelListArray.push(ChannelList); 1668 const len = args.length 1669 if (typeof args[len - 1] === 'function') { 1670 args[len - 1].call(this, paramMock.businessErrorMock, channelListArray); 1671 } else { 1672 return new Promise((resolve, reject) => { 1673 resolve(channelListArray); 1674 }) 1675 } 1676 }, 1677 getUseFavGroups: function (...args) { 1678 console.warn("AtvChannelManager.getUseFavGroups interface mocked in the Previewer. How this interface works on the Previewer" + 1679 " may be different from that on a real device.") 1680 var channelListArray = new Array(); 1681 channelListArray.push(ChannelList); 1682 const len = args.length 1683 if (typeof args[len - 1] === 'function') { 1684 args[len - 1].call(this, paramMock.businessErrorMock, channelListArray); 1685 } else { 1686 return new Promise((resolve, reject) => { 1687 resolve(channelListArray); 1688 }) 1689 } 1690 } 1691 } 1692 const RRTInfo = { 1693 getRRTDimensionsNum: function (...args) { 1694 console.warn("RRTInfo.getRRTDimensionsNum interface mocked in the Previewer. How this interface works on the Previewer" + 1695 " may be different from that on a real device.") 1696 const len = args.length 1697 if (typeof args[len - 1] === 'function') { 1698 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1699 } else { 1700 return new Promise((resolve, reject) => { 1701 resolve(paramMock.paramNumberMock); 1702 }) 1703 } 1704 }, 1705 getRRTDimensionName: function (...args) { 1706 console.warn("RRTInfo.getRRTDimensionName interface mocked in the Previewer. How this interface works on the Previewer" + 1707 " may be different from that on a real device.") 1708 const len = args.length 1709 if (typeof args[len - 1] === 'function') { 1710 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1711 } else { 1712 return new Promise((resolve, reject) => { 1713 resolve(paramMock.paramNumberMock); 1714 }) 1715 } 1716 }, 1717 getRRTDimensionTypeNum: function (...args) { 1718 console.warn("RRTInfo.getRRTDimensionTypeNum interface mocked in the Previewer. How this interface works on the Previewer" + 1719 " may be different from that on a real device.") 1720 const len = args.length 1721 if (typeof args[len - 1] === 'function') { 1722 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1723 } else { 1724 return new Promise((resolve, reject) => { 1725 resolve(paramMock.paramNumberMock); 1726 }) 1727 } 1728 }, 1729 getRRTDimensionValueName: function (...args) { 1730 console.warn("RRTInfo.getRRTDimensionValueName interface mocked in the Previewer. How this interface works on the Previewer" + 1731 " may be different from that on a real device.") 1732 const len = args.length 1733 if (typeof args[len - 1] === 'function') { 1734 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramStringMock); 1735 } else { 1736 return new Promise((resolve, reject) => { 1737 resolve(paramMock.paramStringMock); 1738 }) 1739 } 1740 } 1741 } 1742 const ParentalControlManager = { 1743 setParentalRateUstvAllTypes: function (...args) { 1744 console.warn("ParentalControlManager.setParentalRateUstvAllTypes interface mocked in the Previewer. How this interface works on the Previewer" + 1745 " may be different from that on a real device.") 1746 const len = args.length 1747 if (typeof args[len - 1] === 'function') { 1748 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1749 } else { 1750 return new Promise((resolve, reject) => { 1751 resolve(paramMock.paramNumberMock); 1752 }) 1753 } 1754 }, 1755 setParentalRateUstvFvTypes: function (...args) { 1756 console.warn("ParentalControlManager.setParentalRateUstvFvTypes interface mocked in the Previewer. How this interface works on the Previewer" + 1757 " may be different from that on a real device.") 1758 const len = args.length 1759 if (typeof args[len - 1] === 'function') { 1760 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1761 } else { 1762 return new Promise((resolve, reject) => { 1763 resolve(paramMock.paramNumberMock); 1764 }) 1765 } 1766 }, 1767 setParentalRateUstvVTypes: function (...args) { 1768 console.warn("ParentalControlManager.setParentalRateUstvVTypes interface mocked in the Previewer. How this interface works on the Previewer" + 1769 " may be different from that on a real device.") 1770 const len = args.length 1771 if (typeof args[len - 1] === 'function') { 1772 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1773 } else { 1774 return new Promise((resolve, reject) => { 1775 resolve(paramMock.paramNumberMock); 1776 }) 1777 } 1778 }, 1779 setParentalRateUstvSTypes: function (...args) { 1780 console.warn("ParentalControlManager.setParentalRateUstvSTypes interface mocked in the Previewer. How this interface works on the Previewer" + 1781 " may be different from that on a real device.") 1782 const len = args.length 1783 if (typeof args[len - 1] === 'function') { 1784 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1785 } else { 1786 return new Promise((resolve, reject) => { 1787 resolve(paramMock.paramNumberMock); 1788 }) 1789 } 1790 }, 1791 setParentalRateUstvLTypes: function (...args) { 1792 console.warn("ParentalControlManager.setParentalRateUstvLTypes interface mocked in the Previewer. How this interface works on the Previewer" + 1793 " may be different from that on a real device.") 1794 const len = args.length 1795 if (typeof args[len - 1] === 'function') { 1796 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1797 } else { 1798 return new Promise((resolve, reject) => { 1799 resolve(paramMock.paramNumberMock); 1800 }) 1801 } 1802 }, 1803 setParentalRateUstvDTypes: function (...args) { 1804 console.warn("ParentalControlManager.setParentalRateUstvDTypes interface mocked in the Previewer. How this interface works on the Previewer" + 1805 " may be different from that on a real device.") 1806 const len = args.length 1807 if (typeof args[len - 1] === 'function') { 1808 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1809 } else { 1810 return new Promise((resolve, reject) => { 1811 resolve(paramMock.paramNumberMock); 1812 }) 1813 } 1814 }, 1815 setParentalRateMpaaTypes: function (...args) { 1816 console.warn("ParentalControlManager.setParentalRateMpaaTypes interface mocked in the Previewer. How this interface works on the Previewer" + 1817 " may be different from that on a real device.") 1818 const len = args.length 1819 if (typeof args[len - 1] === 'function') { 1820 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1821 } else { 1822 return new Promise((resolve, reject) => { 1823 resolve(paramMock.paramNumberMock); 1824 }) 1825 } 1826 }, 1827 setParentalRateCaenTypes: function (...args) { 1828 console.warn("ParentalControlManager.setParentalRateCaenTypes interface mocked in the Previewer. How this interface works on the Previewer" + 1829 " may be different from that on a real device.") 1830 const len = args.length 1831 if (typeof args[len - 1] === 'function') { 1832 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1833 } else { 1834 return new Promise((resolve, reject) => { 1835 resolve(paramMock.paramNumberMock); 1836 }) 1837 } 1838 }, 1839 setParentalRateCafrTypes: function (...args) { 1840 console.warn("ParentalControlManager.setParentalRateCafrTypes interface mocked in the Previewer. How this interface works on the Previewer" + 1841 " may be different from that on a real device.") 1842 const len = args.length 1843 if (typeof args[len - 1] === 'function') { 1844 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1845 } else { 1846 return new Promise((resolve, reject) => { 1847 resolve(paramMock.paramNumberMock); 1848 }) 1849 } 1850 }, 1851 setParentalRate: function (...args) { 1852 console.warn("ParentalControlManager.setParentalRate interface mocked in the Previewer. How this interface works on the Previewer" + 1853 " may be different from that on a real device.") 1854 const len = args.length 1855 if (typeof args[len - 1] === 'function') { 1856 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 1857 } else { 1858 return new Promise((resolve, reject) => { 1859 resolve(paramMock.paramNumberMock); 1860 }) 1861 } 1862 }, 1863 getParentalRateUstvAllTypes: function (...args) { 1864 console.warn("ParentalControlManager.getParentalRateUstvAllTypes interface mocked in the Previewer. How this interface works on the Previewer" + 1865 " may be different from that on a real device.") 1866 const len = args.length 1867 if (typeof args[len - 1] === 'function') { 1868 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 1869 } else { 1870 return new Promise((resolve, reject) => { 1871 resolve(paramMock.paramBooleanMock); 1872 }) 1873 } 1874 }, 1875 getParentalRateUstvFvTypes: function (...args) { 1876 console.warn("ParentalControlManager.getParentalRateUstvFvTypes interface mocked in the Previewer. How this interface works on the Previewer" + 1877 " may be different from that on a real device.") 1878 const len = args.length 1879 if (typeof args[len - 1] === 'function') { 1880 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 1881 } else { 1882 return new Promise((resolve, reject) => { 1883 resolve(paramMock.paramBooleanMock); 1884 }) 1885 } 1886 }, 1887 getParentalRateUstvVTypes: function (...args) { 1888 console.warn("ParentalControlManager.getParentalRateUstvVTypes interface mocked in the Previewer. How this interface works on the Previewer" + 1889 " may be different from that on a real device.") 1890 const len = args.length 1891 if (typeof args[len - 1] === 'function') { 1892 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 1893 } else { 1894 return new Promise((resolve, reject) => { 1895 resolve(paramMock.paramBooleanMock); 1896 }) 1897 } 1898 }, 1899 getParentalRateUstvSTypes: function (...args) { 1900 console.warn("ParentalControlManager.getParentalRateUstvSTypes interface mocked in the Previewer. How this interface works on the Previewer" + 1901 " may be different from that on a real device.") 1902 const len = args.length 1903 if (typeof args[len - 1] === 'function') { 1904 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 1905 } else { 1906 return new Promise((resolve, reject) => { 1907 resolve(paramMock.paramBooleanMock); 1908 }) 1909 } 1910 }, 1911 getParentalRateUstvLTypes: function (...args) { 1912 console.warn("ParentalControlManager.getParentalRateUstvLTypes interface mocked in the Previewer. How this interface works on the Previewer" + 1913 " may be different from that on a real device.") 1914 const len = args.length 1915 if (typeof args[len - 1] === 'function') { 1916 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 1917 } else { 1918 return new Promise((resolve, reject) => { 1919 resolve(paramMock.paramBooleanMock); 1920 }) 1921 } 1922 }, 1923 getParentalRateUstvDTypes: function (...args) { 1924 console.warn("ParentalControlManager.getParentalRateUstvDTypes interface mocked in the Previewer. How this interface works on the Previewer" + 1925 " may be different from that on a real device.") 1926 const len = args.length 1927 if (typeof args[len - 1] === 'function') { 1928 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 1929 } else { 1930 return new Promise((resolve, reject) => { 1931 resolve(paramMock.paramBooleanMock); 1932 }) 1933 } 1934 }, 1935 getParentalRateMpaaTypes: function (...args) { 1936 console.warn("ParentalControlManager.getParentalRateMpaaTypes interface mocked in the Previewer. How this interface works on the Previewer" + 1937 " may be different from that on a real device.") 1938 const len = args.length 1939 if (typeof args[len - 1] === 'function') { 1940 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 1941 } else { 1942 return new Promise((resolve, reject) => { 1943 resolve(paramMock.paramBooleanMock); 1944 }) 1945 } 1946 }, 1947 getParentalRateCaenTypes: function (...args) { 1948 console.warn("ParentalControlManager.getParentalRateCaenTypes interface mocked in the Previewer. How this interface works on the Previewer" + 1949 " may be different from that on a real device.") 1950 const len = args.length 1951 if (typeof args[len - 1] === 'function') { 1952 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 1953 } else { 1954 return new Promise((resolve, reject) => { 1955 resolve(paramMock.paramBooleanMock); 1956 }) 1957 } 1958 }, 1959 getParentalRateCafrTypes: function (...args) { 1960 console.warn("ParentalControlManager.getParentalRateCafrTypes interface mocked in the Previewer. How this interface works on the Previewer" + 1961 " may be different from that on a real device.") 1962 const len = args.length 1963 if (typeof args[len - 1] === 'function') { 1964 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 1965 } else { 1966 return new Promise((resolve, reject) => { 1967 resolve(paramMock.paramBooleanMock); 1968 }) 1969 } 1970 }, 1971 getParentalRate: function (...args) { 1972 console.warn("ParentalControlManager.getParentalRate interface mocked in the Previewer. How this interface works on the Previewer" + 1973 " may be different from that on a real device.") 1974 const len = args.length 1975 if (typeof args[len - 1] === 'function') { 1976 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 1977 } else { 1978 return new Promise((resolve, reject) => { 1979 resolve(paramMock.paramBooleanMock); 1980 }) 1981 } 1982 }, 1983 getChannelParental: function (...args) { 1984 console.warn("ParentalControlManager.getChannelParental interface mocked in the Previewer. How this interface works on the Previewer" + 1985 " may be different from that on a real device.") 1986 const len = args.length 1987 if (typeof args[len - 1] === 'function') { 1988 args[len - 1].call(this, paramMock.businessErrorMock, ChannelRate); 1989 } else { 1990 return new Promise((resolve, reject) => { 1991 resolve(ChannelRate); 1992 }) 1993 } 1994 }, 1995 getChannelParentalChannel: function (...args) { 1996 console.warn("ParentalControlManager.getChannelParentalChannel interface mocked in the Previewer. How this interface works on the Previewer" + 1997 " may be different from that on a real device.") 1998 const len = args.length 1999 if (typeof args[len - 1] === 'function') { 2000 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2001 } else { 2002 return new Promise((resolve, reject) => { 2003 resolve(paramMock.paramNumberMock); 2004 }) 2005 } 2006 }, 2007 getParental: function (...args) { 2008 console.warn("ParentalControlManager.getParental interface mocked in the Previewer. How this interface works on the Previewer" + 2009 " may be different from that on a real device.") 2010 const len = args.length 2011 if (typeof args[len - 1] === 'function') { 2012 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2013 } else { 2014 return new Promise((resolve, reject) => { 2015 resolve(paramMock.paramNumberMock); 2016 }) 2017 } 2018 }, 2019 getParentalContent: function (...args) { 2020 console.warn("ParentalControlManager.getParentalContent interface mocked in the Previewer. How this interface works on the Previewer" + 2021 " may be different from that on a real device.") 2022 const len = args.length 2023 if (typeof args[len - 1] === 'function') { 2024 args[len - 1].call(this, paramMock.businessErrorMock, ParentalContents); 2025 } else { 2026 return new Promise((resolve, reject) => { 2027 resolve(ParentalContents); 2028 }) 2029 } 2030 }, 2031 getParentalStatus: function (...args) { 2032 console.warn("ParentalControlManager.getParentalStatus interface mocked in the Previewer. How this interface works on the Previewer" + 2033 " may be different from that on a real device.") 2034 const len = args.length 2035 if (typeof args[len - 1] === 'function') { 2036 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 2037 } else { 2038 return new Promise((resolve, reject) => { 2039 resolve(paramMock.paramBooleanMock); 2040 }) 2041 } 2042 }, 2043 getRRT: function (...args) { 2044 console.warn("ParentalControlManager.getRRT interface mocked in the Previewer. How this interface works on the Previewer" + 2045 " may be different from that on a real device.") 2046 const len = args.length 2047 if (typeof args[len - 1] === 'function') { 2048 args[len - 1].call(this, paramMock.businessErrorMock, RRTInfo); 2049 } else { 2050 return new Promise((resolve, reject) => { 2051 resolve(RRTInfo); 2052 }) 2053 } 2054 }, 2055 resetRRT: function (...args) { 2056 console.warn("ParentalControlManager.resetRRT interface mocked in the Previewer. How this interface works on the Previewer" + 2057 " may be different from that on a real device.") 2058 const len = args.length 2059 if (typeof args[len - 1] === 'function') { 2060 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2061 } else { 2062 return new Promise((resolve, reject) => { 2063 resolve(paramMock.paramNumberMock); 2064 }) 2065 } 2066 }, 2067 getParentLockAge: function (...args) { 2068 console.warn("ParentalControlManager.getParentLockAge interface mocked in the Previewer. How this interface works on the Previewer" + 2069 " may be different from that on a real device.") 2070 const len = args.length 2071 if (typeof args[len - 1] === 'function') { 2072 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2073 } else { 2074 return new Promise((resolve, reject) => { 2075 resolve(paramMock.paramNumberMock); 2076 }) 2077 } 2078 }, 2079 setParentLockAge: function (...args) { 2080 console.warn("ParentalControlManager.setParentLockAge interface mocked in the Previewer. How this interface works on the Previewer" + 2081 " may be different from that on a real device.") 2082 const len = args.length 2083 if (typeof args[len - 1] === 'function') { 2084 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2085 } else { 2086 return new Promise((resolve, reject) => { 2087 resolve(paramMock.paramNumberMock); 2088 }) 2089 } 2090 } 2091 } 2092 const DTVConfigManager = { 2093 setString: function (...args) { 2094 console.warn("DTVConfigManager.setString interface mocked in the Previewer. How this interface works on the Previewer" + 2095 " may be different from that on a real device.") 2096 const len = args.length 2097 if (typeof args[len - 1] === 'function') { 2098 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2099 } else { 2100 return new Promise((resolve, reject) => { 2101 resolve(paramMock.paramNumberMock); 2102 }) 2103 } 2104 }, 2105 setInt: function (...args) { 2106 console.warn("DTVConfigManager.setInt interface mocked in the Previewer. How this interface works on the Previewer" + 2107 " may be different from that on a real device.") 2108 const len = args.length 2109 if (typeof args[len - 1] === 'function') { 2110 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2111 } else { 2112 return new Promise((resolve, reject) => { 2113 resolve(paramMock.paramNumberMock); 2114 }) 2115 } 2116 }, 2117 getString: function (...args) { 2118 console.warn("DTVConfigManager.getString interface mocked in the Previewer. How this interface works on the Previewer" + 2119 " may be different from that on a real device.") 2120 const len = args.length 2121 if (typeof args[len - 1] === 'function') { 2122 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramStringMock); 2123 } else { 2124 return new Promise((resolve, reject) => { 2125 resolve(paramMock.paramStringMock); 2126 }) 2127 } 2128 }, 2129 getInt: function (...args) { 2130 console.warn("DTVConfigManager.getInt interface mocked in the Previewer. How this interface works on the Previewer" + 2131 " may be different from that on a real device.") 2132 const len = args.length 2133 if (typeof args[len - 1] === 'function') { 2134 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2135 } else { 2136 return new Promise((resolve, reject) => { 2137 resolve(paramMock.paramNumberMock); 2138 }) 2139 } 2140 }, 2141 restoreDefaultConfig: function (...args) { 2142 console.warn("DTVConfigManager.restoreDefaultConfig interface mocked in the Previewer. How this interface works on the Previewer" + 2143 " may be different from that on a real device.") 2144 const len = args.length 2145 if (typeof args[len - 1] === 'function') { 2146 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2147 } else { 2148 return new Promise((resolve, reject) => { 2149 resolve(paramMock.paramNumberMock); 2150 }) 2151 } 2152 }, 2153 getConfigFileInt: function (...args) { 2154 console.warn("DTVConfigManager.getConfigFileInt interface mocked in the Previewer. How this interface works on the Previewer" + 2155 " may be different from that on a real device.") 2156 const len = args.length 2157 if (typeof args[len - 1] === 'function') { 2158 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2159 } else { 2160 return new Promise((resolve, reject) => { 2161 resolve(paramMock.paramNumberMock); 2162 }) 2163 } 2164 }, 2165 switchTunerSignal: function (...args) { 2166 console.warn("DTVConfigManager.switchTunerSignal interface mocked in the Previewer. How this interface works on the Previewer" + 2167 " may be different from that on a real device.") 2168 const len = args.length 2169 if (typeof args[len - 1] === 'function') { 2170 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2171 } else { 2172 return new Promise((resolve, reject) => { 2173 resolve(paramMock.paramNumberMock); 2174 }) 2175 } 2176 } 2177 } 2178 const EPGManager = { 2179 setEventLang: function (...args) { 2180 console.warn("EPGManager.setEventLang interface mocked in the Previewer. How this interface works on the Previewer" + 2181 " may be different from that on a real device.") 2182 const len = args.length 2183 if (typeof args[len - 1] === 'function') { 2184 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2185 } else { 2186 return new Promise((resolve, reject) => { 2187 resolve(paramMock.paramNumberMock); 2188 }) 2189 } 2190 }, 2191 startEpg: function (...args) { 2192 console.warn("EPGManager.startEpg interface mocked in the Previewer. How this interface works on the Previewer" + 2193 " may be different from that on a real device.") 2194 const len = args.length 2195 if (typeof args[len - 1] === 'function') { 2196 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2197 } else { 2198 return new Promise((resolve, reject) => { 2199 resolve(paramMock.paramNumberMock); 2200 }) 2201 } 2202 }, 2203 getPresentEvent: function (...args) { 2204 console.warn("EPGManager.getPresentEvent interface mocked in the Previewer. How this interface works on the Previewer" + 2205 " may be different from that on a real device.") 2206 const len = args.length 2207 if (typeof args[len - 1] === 'function') { 2208 args[len - 1].call(this, paramMock.businessErrorMock, EPGEvent); 2209 } else { 2210 return new Promise((resolve, reject) => { 2211 resolve(EPGEvent); 2212 }) 2213 } 2214 }, 2215 getFollowEvent: function (...args) { 2216 console.warn("EPGManager.getFollowEvent interface mocked in the Previewer. How this interface works on the Previewer" + 2217 " may be different from that on a real device.") 2218 const len = args.length 2219 if (typeof args[len - 1] === 'function') { 2220 args[len - 1].call(this, paramMock.businessErrorMock, EPGEvent); 2221 } else { 2222 return new Promise((resolve, reject) => { 2223 resolve(EPGEvent); 2224 }) 2225 } 2226 }, 2227 getEvents: function (...args) { 2228 console.warn("EPGManager.getEvents interface mocked in the Previewer. How this interface works on the Previewer" + 2229 " may be different from that on a real device.") 2230 var ePGEventArray = new Array(); 2231 ePGEventArray.push(EPGEvent); 2232 const len = args.length 2233 if (typeof args[len - 1] === 'function') { 2234 args[len - 1].call(this, paramMock.businessErrorMock, ePGEventArray); 2235 } else { 2236 return new Promise((resolve, reject) => { 2237 resolve(ePGEventArray); 2238 }) 2239 } 2240 }, 2241 getEventById: function (...args) { 2242 console.warn("EPGManager.getEventById interface mocked in the Previewer. How this interface works on the Previewer" + 2243 " may be different from that on a real device.") 2244 const len = args.length 2245 if (typeof args[len - 1] === 'function') { 2246 args[len - 1].call(this, paramMock.businessErrorMock, EPGEvent); 2247 } else { 2248 return new Promise((resolve, reject) => { 2249 resolve(EPGEvent); 2250 }) 2251 } 2252 }, 2253 getRelevantEvents: function (...args) { 2254 console.warn("EPGManager.getEventById interface mocked in the Previewer. How this interface works on the Previewer" + 2255 " may be different from that on a real device.") 2256 const len = args.length 2257 if (typeof args[len - 1] === 'function') { 2258 args[len - 1].call(this, paramMock.businessErrorMock, EPGEvent); 2259 } else { 2260 return new Promise((resolve, reject) => { 2261 resolve(EPGEvent); 2262 }) 2263 } 2264 } 2265 } 2266 const OTAManager = { 2267 startOta: function (...args) { 2268 console.warn("OTAManager.startOta interface mocked in the Previewer. How this interface works on the Previewer" + 2269 " may be different from that on a real device.") 2270 const len = args.length 2271 if (typeof args[len - 1] === 'function') { 2272 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2273 } else { 2274 return new Promise((resolve, reject) => { 2275 resolve(paramMock.paramNumberMock); 2276 }) 2277 } 2278 }, 2279 stopOta: function (...args) { 2280 console.warn("OTAManager.stopOta interface mocked in the Previewer. How this interface works on the Previewer" + 2281 " may be different from that on a real device.") 2282 const len = args.length 2283 if (typeof args[len - 1] === 'function') { 2284 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2285 } else { 2286 return new Promise((resolve, reject) => { 2287 resolve(paramMock.paramNumberMock); 2288 }) 2289 } 2290 }, 2291 startDownloadFile: function (...args) { 2292 console.warn("OTAManager.startDownloadFile interface mocked in the Previewer. How this interface works on the Previewer" + 2293 " may be different from that on a real device.") 2294 const len = args.length 2295 if (typeof args[len - 1] === 'function') { 2296 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2297 } else { 2298 return new Promise((resolve, reject) => { 2299 resolve(paramMock.paramNumberMock); 2300 }) 2301 } 2302 }, 2303 stopDownloadFile: function (...args) { 2304 console.warn("OTAManager.stopDownloadFile interface mocked in the Previewer. How this interface works on the Previewer" + 2305 " may be different from that on a real device.") 2306 const len = args.length 2307 if (typeof args[len - 1] === 'function') { 2308 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2309 } else { 2310 return new Promise((resolve, reject) => { 2311 resolve(paramMock.paramNumberMock); 2312 }) 2313 } 2314 } 2315 } 2316 const Motor = { 2317 setLimit: function (...args) { 2318 console.warn("Motor.setLimit interface mocked in the Previewer. How this interface works on the Previewer" + 2319 " may be different from that on a real device.") 2320 const len = args.length 2321 if (typeof args[len - 1] === 'function') { 2322 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2323 } else { 2324 return new Promise((resolve, reject) => { 2325 resolve(paramMock.paramNumberMock); 2326 }) 2327 } 2328 }, 2329 move: function (...args) { 2330 console.warn("Motor.move interface mocked in the Previewer. How this interface works on the Previewer" + 2331 " may be different from that on a real device.") 2332 const len = args.length 2333 if (typeof args[len - 1] === 'function') { 2334 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2335 } else { 2336 return new Promise((resolve, reject) => { 2337 resolve(paramMock.paramNumberMock); 2338 }) 2339 } 2340 }, 2341 stopMove: function (...args) { 2342 console.warn("Motor.stopMove interface mocked in the Previewer. How this interface works on the Previewer" + 2343 " may be different from that on a real device.") 2344 const len = args.length 2345 if (typeof args[len - 1] === 'function') { 2346 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2347 } else { 2348 return new Promise((resolve, reject) => { 2349 resolve(paramMock.paramNumberMock); 2350 }) 2351 } 2352 }, 2353 setAutoRolationSwitch: function (...args) { 2354 console.warn("Motor.setAutoRolationSwitch interface mocked in the Previewer. How this interface works on the Previewer" + 2355 " may be different from that on a real device.") 2356 const len = args.length 2357 if (typeof args[len - 1] === 'function') { 2358 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2359 } else { 2360 return new Promise((resolve, reject) => { 2361 resolve(paramMock.paramNumberMock); 2362 }) 2363 } 2364 } 2365 } 2366 const Multiplex = { 2367 getBelongNetwork: function (...args) { 2368 console.warn("Multiplex.getBelongNetwork interface mocked in the Previewer. How this interface works on the Previewer" + 2369 " may be different from that on a real device.") 2370 const len = args.length 2371 if (typeof args[len - 1] === 'function') { 2372 args[len - 1].call(this, paramMock.businessErrorMock, Network); 2373 } else { 2374 return new Promise((resolve, reject) => { 2375 resolve(Network); 2376 }) 2377 } 2378 }, 2379 getID: function (...args) { 2380 console.warn("Multiplex.getID interface mocked in the Previewer. How this interface works on the Previewer" + 2381 " may be different from that on a real device.") 2382 const len = args.length 2383 if (typeof args[len - 1] === 'function') { 2384 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2385 } else { 2386 return new Promise((resolve, reject) => { 2387 resolve(paramMock.paramNumberMock); 2388 }) 2389 } 2390 }, 2391 getFrequency: function (...args) { 2392 console.warn("Multiplex.getFrequency interface mocked in the Previewer. How this interface works on the Previewer" + 2393 " may be different from that on a real device.") 2394 const len = args.length 2395 if (typeof args[len - 1] === 'function') { 2396 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2397 } else { 2398 return new Promise((resolve, reject) => { 2399 resolve(paramMock.paramNumberMock); 2400 }) 2401 } 2402 }, 2403 setFrequency: function (...args) { 2404 console.warn("Multiplex.setFrequency interface mocked in the Previewer. How this interface works on the Previewer" + 2405 " may be different from that on a real device.") 2406 const len = args.length 2407 if (typeof args[len - 1] === 'function') { 2408 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2409 } else { 2410 return new Promise((resolve, reject) => { 2411 resolve(paramMock.paramNumberMock); 2412 }) 2413 } 2414 }, 2415 getVersion: function (...args) { 2416 console.warn("Multiplex.getVersion interface mocked in the Previewer. How this interface works on the Previewer" + 2417 " may be different from that on a real device.") 2418 const len = args.length 2419 if (typeof args[len - 1] === 'function') { 2420 args[len - 1].call(this, paramMock.businessErrorMock, VersionTypes); 2421 } else { 2422 return new Promise((resolve, reject) => { 2423 resolve(VersionTypes); 2424 }) 2425 } 2426 }, 2427 setVersion: function (...args) { 2428 console.warn("Multiplex.setVersion interface mocked in the Previewer. How this interface works on the Previewer" + 2429 " may be different from that on a real device.") 2430 const len = args.length 2431 if (typeof args[len - 1] === 'function') { 2432 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2433 } else { 2434 return new Promise((resolve, reject) => { 2435 resolve(paramMock.paramNumberMock); 2436 }) 2437 } 2438 }, 2439 getName: function (...args) { 2440 console.warn("Multiplex.getName interface mocked in the Previewer. How this interface works on the Previewer" + 2441 " may be different from that on a real device.") 2442 const len = args.length 2443 if (typeof args[len - 1] === 'function') { 2444 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramStringMock); 2445 } else { 2446 return new Promise((resolve, reject) => { 2447 resolve(paramMock.paramStringMock); 2448 }) 2449 } 2450 }, 2451 getBandWidth: function (...args) { 2452 console.warn("Multiplex.getBandWidth interface mocked in the Previewer. How this interface works on the Previewer" + 2453 " may be different from that on a real device.") 2454 const len = args.length 2455 if (typeof args[len - 1] === 'function') { 2456 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2457 } else { 2458 return new Promise((resolve, reject) => { 2459 resolve(paramMock.paramNumberMock); 2460 }) 2461 } 2462 }, 2463 getSymbolRate: function (...args) { 2464 console.warn("Multiplex.getSymbolRate interface mocked in the Previewer. How this interface works on the Previewer" + 2465 " may be different from that on a real device.") 2466 const len = args.length 2467 if (typeof args[len - 1] === 'function') { 2468 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2469 } else { 2470 return new Promise((resolve, reject) => { 2471 resolve(paramMock.paramNumberMock); 2472 }) 2473 } 2474 }, 2475 getModulation: function (...args) { 2476 console.warn("Multiplex.getModulation interface mocked in the Previewer. How this interface works on the Previewer" + 2477 " may be different from that on a real device.") 2478 const len = args.length 2479 if (typeof args[len - 1] === 'function') { 2480 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2481 } else { 2482 return new Promise((resolve, reject) => { 2483 resolve(paramMock.paramNumberMock); 2484 }) 2485 } 2486 }, 2487 getPolarity: function (...args) { 2488 console.warn("Multiplex.getPolarity interface mocked in the Previewer. How this interface works on the Previewer" + 2489 " may be different from that on a real device.") 2490 const len = args.length 2491 if (typeof args[len - 1] === 'function') { 2492 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2493 } else { 2494 return new Promise((resolve, reject) => { 2495 resolve(paramMock.paramNumberMock); 2496 }) 2497 } 2498 } 2499 } 2500 const Tuner = { 2501 getSignalStrength: function (...args) { 2502 console.warn("Tuner.getSignalStrength interface mocked in the Previewer. How this interface works on the Previewer" + 2503 " may be different from that on a real device.") 2504 const len = args.length 2505 if (typeof args[len - 1] === 'function') { 2506 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2507 } else { 2508 return new Promise((resolve, reject) => { 2509 resolve(paramMock.paramNumberMock); 2510 }) 2511 } 2512 }, 2513 getSignalQuality: function (...args) { 2514 console.warn("Tuner.getSignalQuality interface mocked in the Previewer. How this interface works on the Previewer" + 2515 " may be different from that on a real device.") 2516 const len = args.length 2517 if (typeof args[len - 1] === 'function') { 2518 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2519 } else { 2520 return new Promise((resolve, reject) => { 2521 resolve(paramMock.paramNumberMock); 2522 }) 2523 } 2524 }, 2525 connect: function (...args) { 2526 console.warn("Tuner.connect interface mocked in the Previewer. How this interface works on the Previewer" + 2527 " may be different from that on a real device.") 2528 const len = args.length 2529 if (typeof args[len - 1] === 'function') { 2530 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2531 } else { 2532 return new Promise((resolve, reject) => { 2533 resolve(paramMock.paramNumberMock); 2534 }) 2535 } 2536 }, 2537 disconnect: function (...args) { 2538 console.warn("Tuner.disconnect interface mocked in the Previewer. How this interface works on the Previewer" + 2539 " may be different from that on a real device.") 2540 const len = args.length 2541 if (typeof args[len - 1] === 'function') { 2542 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2543 } else { 2544 return new Promise((resolve, reject) => { 2545 resolve(paramMock.paramNumberMock); 2546 }) 2547 } 2548 }, 2549 getBER: function (...args) { 2550 console.warn("Tuner.getBER interface mocked in the Previewer. How this interface works on the Previewer" + 2551 " may be different from that on a real device.") 2552 const len = args.length 2553 if (typeof args[len - 1] === 'function') { 2554 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2555 } else { 2556 return new Promise((resolve, reject) => { 2557 resolve(paramMock.paramNumberMock); 2558 }) 2559 } 2560 }, 2561 getSNR: function (...args) { 2562 console.warn("Tuner.getSNR interface mocked in the Previewer. How this interface works on the Previewer" + 2563 " may be different from that on a real device.") 2564 const len = args.length 2565 if (typeof args[len - 1] === 'function') { 2566 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2567 } else { 2568 return new Promise((resolve, reject) => { 2569 resolve(paramMock.paramNumberMock); 2570 }) 2571 } 2572 }, 2573 getSignalType: function (...args) { 2574 console.warn("Tuner.getSignalType interface mocked in the Previewer. How this interface works on the Previewer" + 2575 " may be different from that on a real device.") 2576 const len = args.length 2577 if (typeof args[len - 1] === 'function') { 2578 args[len - 1].call(this, paramMock.businessErrorMock, NetworkTypes); 2579 } else { 2580 return new Promise((resolve, reject) => { 2581 resolve(NetworkTypes); 2582 }) 2583 } 2584 }, 2585 getTunerID: function (...args) { 2586 console.warn("Tuner.getTunerID interface mocked in the Previewer. How this interface works on the Previewer" + 2587 " may be different from that on a real device.") 2588 const len = args.length 2589 if (typeof args[len - 1] === 'function') { 2590 args[len - 1].call(this, paramMock.businessErrorMock, NetworkTypes); 2591 } else { 2592 return new Promise((resolve, reject) => { 2593 resolve(NetworkTypes); 2594 }) 2595 } 2596 }, 2597 getTuningMultiplexe: function (...args) { 2598 console.warn("Tuner.getTuningMultiplexe interface mocked in the Previewer. How this interface works on the Previewer" + 2599 " may be different from that on a real device.") 2600 const len = args.length 2601 if (typeof args[len - 1] === 'function') { 2602 args[len - 1].call(this, paramMock.businessErrorMock, Multiplex); 2603 } else { 2604 return new Promise((resolve, reject) => { 2605 resolve(Multiplex); 2606 }) 2607 } 2608 }, 2609 getTunerStatus: function (...args) { 2610 console.warn("Tuner.getTunerStatus interface mocked in the Previewer. How this interface works on the Previewer" + 2611 " may be different from that on a real device.") 2612 const len = args.length 2613 if (typeof args[len - 1] === 'function') { 2614 args[len - 1].call(this, paramMock.businessErrorMock, TunerStatus); 2615 } else { 2616 return new Promise((resolve, reject) => { 2617 resolve(TunerStatus); 2618 }) 2619 } 2620 }, 2621 getModulation: function (...args) { 2622 console.warn("Tuner.getModulation interface mocked in the Previewer. How this interface works on the Previewer" + 2623 " may be different from that on a real device.") 2624 const len = args.length 2625 if (typeof args[len - 1] === 'function') { 2626 args[len - 1].call(this, paramMock.businessErrorMock, Modulations); 2627 } else { 2628 return new Promise((resolve, reject) => { 2629 resolve(Modulations); 2630 }) 2631 } 2632 } 2633 } 2634 const HardwareManager = { 2635 getMotor: function (...args) { 2636 console.warn("HardwareManager.getMotor interface mocked in the Previewer. How this interface works on the Previewer" + 2637 " may be different from that on a real device.") 2638 const len = args.length 2639 if (typeof args[len - 1] === 'function') { 2640 args[len - 1].call(this, paramMock.businessErrorMock, Motor); 2641 } else { 2642 return new Promise((resolve, reject) => { 2643 resolve(Motor); 2644 }) 2645 } 2646 }, 2647 getTunerNum: function (...args) { 2648 console.warn("HardwareManager.getTunerNum interface mocked in the Previewer. How this interface works on the Previewer" + 2649 " may be different from that on a real device.") 2650 const len = args.length 2651 if (typeof args[len - 1] === 'function') { 2652 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2653 } else { 2654 return new Promise((resolve, reject) => { 2655 resolve(paramMock.paramNumberMock); 2656 }) 2657 } 2658 }, 2659 getAllTuners: function (...args) { 2660 console.warn("HardwareManager.getAllTuners interface mocked in the Previewer. How this interface works on the Previewer" + 2661 " may be different from that on a real device.") 2662 var tunerArray = new Array(); 2663 tunerArray.push(Tuner); 2664 const len = args.length 2665 if (typeof args[len - 1] === 'function') { 2666 args[len - 1].call(this, paramMock.businessErrorMock, tunerArray); 2667 } else { 2668 return new Promise((resolve, reject) => { 2669 resolve(tunerArray); 2670 }) 2671 } 2672 }, 2673 getTunersByStatus: function (...args) { 2674 console.warn("HardwareManager.getTunersByStatus interface mocked in the Previewer. How this interface works on the Previewer" + 2675 " may be different from that on a real device.") 2676 var tunerArray = new Array(); 2677 tunerArray.push(Tuner); 2678 const len = args.length 2679 if (typeof args[len - 1] === 'function') { 2680 args[len - 1].call(this, paramMock.businessErrorMock, tunerArray); 2681 } else { 2682 return new Promise((resolve, reject) => { 2683 resolve(tunerArray); 2684 }) 2685 } 2686 }, 2687 getTunerByID: function (...args) { 2688 console.warn("HardwareManager.getTunerByID interface mocked in the Previewer. How this interface works on the Previewer" + 2689 " may be different from that on a real device.") 2690 const len = args.length 2691 if (typeof args[len - 1] === 'function') { 2692 args[len - 1].call(this, paramMock.businessErrorMock, Tuner); 2693 } else { 2694 return new Promise((resolve, reject) => { 2695 resolve(Tuner); 2696 }) 2697 } 2698 } 2699 } 2700 const Network = { 2701 getID: function (...args) { 2702 console.warn("Network.getID interface mocked in the Previewer. How this interface works on the Previewer" + 2703 " may be different from that on a real device.") 2704 const len = args.length 2705 if (typeof args[len - 1] === 'function') { 2706 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2707 } else { 2708 return new Promise((resolve, reject) => { 2709 resolve(paramMock.paramNumberMock); 2710 }) 2711 } 2712 }, 2713 getMultiplexes: function (...args) { 2714 console.warn("Network.getMultiplexes interface mocked in the Previewer. How this interface works on the Previewer" + 2715 " may be different from that on a real device.") 2716 var multiplexArray = new Array(); 2717 multiplexArray.push(Multiplex); 2718 const len = args.length 2719 if (typeof args[len - 1] === 'function') { 2720 args[len - 1].call(this, paramMock.businessErrorMock, multiplexArray); 2721 } else { 2722 return new Promise((resolve, reject) => { 2723 resolve(multiplexArray); 2724 }) 2725 } 2726 }, 2727 setScanMultiplexes: function (...args) { 2728 console.warn("Network.setScanMultiplexes interface mocked in the Previewer. How this interface works on the Previewer" + 2729 " may be different from that on a real device.") 2730 const len = args.length 2731 if (typeof args[len - 1] === 'function') { 2732 args[len - 1].call(this, paramMock.businessErrorMock); 2733 } else { 2734 return new Promise((resolve, reject) => { 2735 resolve(); 2736 }) 2737 } 2738 }, 2739 getScanMultiplexes: function (...args) { 2740 console.warn("Network.getScanMultiplexes interface mocked in the Previewer. How this interface works on the Previewer" + 2741 " may be different from that on a real device.") 2742 var multiplexArray = new Array(); 2743 multiplexArray.push(Multiplex); 2744 const len = args.length 2745 if (typeof args[len - 1] === 'function') { 2746 args[len - 1].call(this, paramMock.businessErrorMock, multiplexArray); 2747 } else { 2748 return new Promise((resolve, reject) => { 2749 resolve(multiplexArray); 2750 }) 2751 } 2752 }, 2753 createMultiplex: function (...args) { 2754 console.warn("Network.createMultiplex interface mocked in the Previewer. How this interface works on the Previewer" + 2755 " may be different from that on a real device.") 2756 const len = args.length 2757 if (typeof args[len - 1] === 'function') { 2758 args[len - 1].call(this, paramMock.businessErrorMock, Multiplex); 2759 } else { 2760 return new Promise((resolve, reject) => { 2761 resolve(Multiplex); 2762 }) 2763 } 2764 }, 2765 createTmpMultiplex: function (...args) { 2766 console.warn("Network.createTmpMultiplex interface mocked in the Previewer. How this interface works on the Previewer" + 2767 " may be different from that on a real device.") 2768 const len = args.length 2769 if (typeof args[len - 1] === 'function') { 2770 args[len - 1].call(this, paramMock.businessErrorMock, Multiplex); 2771 } else { 2772 return new Promise((resolve, reject) => { 2773 resolve(Multiplex); 2774 }) 2775 } 2776 }, 2777 getPresetMultiplexes: function (...args) { 2778 console.warn("Network.getPresetMultiplexes interface mocked in the Previewer. How this interface works on the Previewer" + 2779 " may be different from that on a real device.") 2780 var multiplexArray = new Array(); 2781 multiplexArray.push(Multiplex); 2782 const len = args.length 2783 if (typeof args[len - 1] === 'function') { 2784 args[len - 1].call(this, paramMock.businessErrorMock, multiplexArray); 2785 } else { 2786 return new Promise((resolve, reject) => { 2787 resolve(multiplexArray); 2788 }) 2789 } 2790 }, 2791 getMultiplexById: function (...args) { 2792 console.warn("Network.getMultiplexById interface mocked in the Previewer. How this interface works on the Previewer" + 2793 " may be different from that on a real device.") 2794 const len = args.length 2795 if (typeof args[len - 1] === 'function') { 2796 args[len - 1].call(this, paramMock.businessErrorMock, Multiplex); 2797 } else { 2798 return new Promise((resolve, reject) => { 2799 resolve(Multiplex); 2800 }) 2801 } 2802 }, 2803 removeMultiplex: function (...args) { 2804 console.warn("Network.removeMultiplex interface mocked in the Previewer. How this interface works on the Previewer" + 2805 " may be different from that on a real device.") 2806 const len = args.length 2807 if (typeof args[len - 1] === 'function') { 2808 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2809 } else { 2810 return new Promise((resolve, reject) => { 2811 resolve(paramMock.paramNumberMock); 2812 }) 2813 } 2814 }, 2815 saveMultiplexes: function (...args) { 2816 console.warn("Network.saveMultiplexes interface mocked in the Previewer. How this interface works on the Previewer" + 2817 " may be different from that on a real device.") 2818 const len = args.length 2819 if (typeof args[len - 1] === 'function') { 2820 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2821 } else { 2822 return new Promise((resolve, reject) => { 2823 resolve(paramMock.paramNumberMock); 2824 }) 2825 } 2826 }, 2827 recoverMultiplexes: function (...args) { 2828 console.warn("Network.recoverMultiplexes interface mocked in the Previewer. How this interface works on the Previewer" + 2829 " may be different from that on a real device.") 2830 const len = args.length 2831 if (typeof args[len - 1] === 'function') { 2832 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2833 } else { 2834 return new Promise((resolve, reject) => { 2835 resolve(paramMock.paramNumberMock); 2836 }) 2837 } 2838 }, 2839 isSelected: function (...args) { 2840 console.warn("Network.isSelected interface mocked in the Previewer. How this interface works on the Previewer" + 2841 " may be different from that on a real device.") 2842 const len = args.length 2843 if (typeof args[len - 1] === 'function') { 2844 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 2845 } else { 2846 return new Promise((resolve, reject) => { 2847 resolve(paramMock.paramBooleanMock); 2848 }) 2849 } 2850 }, 2851 setSelect: function (...args) { 2852 console.warn("Network.setSelect interface mocked in the Previewer. How this interface works on the Previewer" + 2853 " may be different from that on a real device.") 2854 const len = args.length 2855 if (typeof args[len - 1] === 'function') { 2856 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2857 } else { 2858 return new Promise((resolve, reject) => { 2859 resolve(paramMock.paramNumberMock); 2860 }) 2861 } 2862 }, 2863 getNetworkNameList: function (...args) { 2864 console.warn("Network.getNetworkNameList interface mocked in the Previewer. How this interface works on the Previewer" + 2865 " may be different from that on a real device.") 2866 var stringArray = new Array(); 2867 stringArray.push(paramMock.paramStringMock); 2868 const len = args.length 2869 if (typeof args[len - 1] === 'function') { 2870 args[len - 1].call(this, paramMock.businessErrorMock, stringArray); 2871 } else { 2872 return new Promise((resolve, reject) => { 2873 resolve(stringArray); 2874 }) 2875 } 2876 }, 2877 } 2878 const TimeManager = { 2879 getCalendarTime: function (...args) { 2880 console.warn("TimeManager.getCalendarTime interface mocked in the Previewer. How this interface works on the Previewer" + 2881 " may be different from that on a real device.") 2882 const len = args.length 2883 if (typeof args[len - 1] === 'function') { 2884 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramObjectMock); 2885 } else { 2886 return new Promise((resolve, reject) => { 2887 resolve(paramMock.paramObjectMock); 2888 }) 2889 } 2890 }, 2891 setCalendarTime: function (...args) { 2892 console.warn("TimeManager.setCalendarTime interface mocked in the Previewer. How this interface works on the Previewer" + 2893 " may be different from that on a real device.") 2894 const len = args.length 2895 if (typeof args[len - 1] === 'function') { 2896 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramObjectMock); 2897 } else { 2898 return new Promise((resolve, reject) => { 2899 resolve(paramMock.paramObjectMock); 2900 }) 2901 } 2902 }, 2903 getTimeZone: function (...args) { 2904 console.warn("TimeManager.getTimeZone interface mocked in the Previewer. How this interface works on the Previewer" + 2905 " may be different from that on a real device.") 2906 const len = args.length 2907 if (typeof args[len - 1] === 'function') { 2908 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2909 } else { 2910 return new Promise((resolve, reject) => { 2911 resolve(paramMock.paramNumberMock); 2912 }) 2913 } 2914 }, 2915 setTimeZone: function (...args) { 2916 console.warn("TimeManager.setTimeZone interface mocked in the Previewer. How this interface works on the Previewer" + 2917 " may be different from that on a real device.") 2918 const len = args.length 2919 if (typeof args[len - 1] === 'function') { 2920 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2921 } else { 2922 return new Promise((resolve, reject) => { 2923 resolve(paramMock.paramNumberMock); 2924 }) 2925 } 2926 }, 2927 secondToDate: function (...args) { 2928 console.warn("TimeManager.secondToDate interface mocked in the Previewer. How this interface works on the Previewer" + 2929 " may be different from that on a real device.") 2930 const len = args.length 2931 if (typeof args[len - 1] === 'function') { 2932 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramObjectMock); 2933 } else { 2934 return new Promise((resolve, reject) => { 2935 resolve(paramMock.paramObjectMock); 2936 }) 2937 } 2938 }, 2939 dateToSecond: function (...args) { 2940 console.warn("TimeManager.dateToSecond interface mocked in the Previewer. How this interface works on the Previewer" + 2941 " may be different from that on a real device.") 2942 const len = args.length 2943 if (typeof args[len - 1] === 'function') { 2944 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2945 } else { 2946 return new Promise((resolve, reject) => { 2947 resolve(paramMock.paramNumberMock); 2948 }) 2949 } 2950 }, 2951 syncTime: function (...args) { 2952 console.warn("TimeManager.syncTime interface mocked in the Previewer. How this interface works on the Previewer" + 2953 " may be different from that on a real device.") 2954 const len = args.length 2955 if (typeof args[len - 1] === 'function') { 2956 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2957 } else { 2958 return new Promise((resolve, reject) => { 2959 resolve(paramMock.paramNumberMock); 2960 }) 2961 } 2962 }, 2963 getSyncTimeFlag: function (...args) { 2964 console.warn("TimeManager.getSyncTimeFlag interface mocked in the Previewer. How this interface works on the Previewer" + 2965 " may be different from that on a real device.") 2966 const len = args.length 2967 if (typeof args[len - 1] === 'function') { 2968 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 2969 } else { 2970 return new Promise((resolve, reject) => { 2971 resolve(paramMock.paramBooleanMock); 2972 }) 2973 } 2974 }, 2975 syncTimeZone: function (...args) { 2976 console.warn("TimeManager.syncTimeZone interface mocked in the Previewer. How this interface works on the Previewer" + 2977 " may be different from that on a real device.") 2978 const len = args.length 2979 if (typeof args[len - 1] === 'function') { 2980 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 2981 } else { 2982 return new Promise((resolve, reject) => { 2983 resolve(paramMock.paramNumberMock); 2984 }) 2985 } 2986 }, 2987 getSyncTimeZoneFlag: function (...args) { 2988 console.warn("TimeManager.getSyncTimeZoneFlag interface mocked in the Previewer. How this interface works on the Previewer" + 2989 " may be different from that on a real device.") 2990 const len = args.length 2991 if (typeof args[len - 1] === 'function') { 2992 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 2993 } else { 2994 return new Promise((resolve, reject) => { 2995 resolve(paramMock.paramBooleanMock); 2996 }) 2997 } 2998 }, 2999 getSleepTime: function (...args) { 3000 console.warn("TimeManager.getSleepTime interface mocked in the Previewer. How this interface works on the Previewer" + 3001 " may be different from that on a real device.") 3002 const len = args.length 3003 if (typeof args[len - 1] === 'function') { 3004 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3005 } else { 3006 return new Promise((resolve, reject) => { 3007 resolve(paramMock.paramNumberMock); 3008 }) 3009 } 3010 }, 3011 setWakeupInternal: function (...args) { 3012 console.warn("TimeManager.setWakeupInternal interface mocked in the Previewer. How this interface works on the Previewer" + 3013 " may be different from that on a real device.") 3014 const len = args.length 3015 if (typeof args[len - 1] === 'function') { 3016 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3017 } else { 3018 return new Promise((resolve, reject) => { 3019 resolve(paramMock.paramNumberMock); 3020 }) 3021 } 3022 }, 3023 setTimeToSystem: function (...args) { 3024 console.warn("TimeManager.setTimeToSystem interface mocked in the Previewer. How this interface works on the Previewer" + 3025 " may be different from that on a real device.") 3026 const len = args.length 3027 if (typeof args[len - 1] === 'function') { 3028 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3029 } else { 3030 return new Promise((resolve, reject) => { 3031 resolve(paramMock.paramNumberMock); 3032 }) 3033 } 3034 }, 3035 syncDaylight: function (...args) { 3036 console.warn("TimeManager.syncDaylight interface mocked in the Previewer. How this interface works on the Previewer" + 3037 " may be different from that on a real device.") 3038 const len = args.length 3039 if (typeof args[len - 1] === 'function') { 3040 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3041 } else { 3042 return new Promise((resolve, reject) => { 3043 resolve(paramMock.paramNumberMock); 3044 }) 3045 } 3046 }, 3047 getSyncDaylightFlag: function (...args) { 3048 console.warn("TimeManager.getSyncDaylightFlag interface mocked in the Previewer. How this interface works on the Previewer" + 3049 " may be different from that on a real device.") 3050 const len = args.length 3051 if (typeof args[len - 1] === 'function') { 3052 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 3053 } else { 3054 return new Promise((resolve, reject) => { 3055 resolve(paramMock.paramBooleanMock); 3056 }) 3057 } 3058 }, 3059 setDaylight: function (...args) { 3060 console.warn("TimeManager.setDaylight interface mocked in the Previewer. How this interface works on the Previewer" + 3061 " may be different from that on a real device.") 3062 const len = args.length 3063 if (typeof args[len - 1] === 'function') { 3064 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3065 } else { 3066 return new Promise((resolve, reject) => { 3067 resolve(paramMock.paramNumberMock); 3068 }) 3069 } 3070 }, 3071 getDaylight: function (...args) { 3072 console.warn("TimeManager.getDaylight interface mocked in the Previewer. How this interface works on the Previewer" + 3073 " may be different from that on a real device.") 3074 const len = args.length 3075 if (typeof args[len - 1] === 'function') { 3076 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 3077 } else { 3078 return new Promise((resolve, reject) => { 3079 resolve(paramMock.paramBooleanMock); 3080 }) 3081 } 3082 }, 3083 } 3084 const NetworkManager = { 3085 getAllSupportNetworks: function (...args) { 3086 console.warn("NetworkManager.getAllSupportNetworks interface mocked in the Previewer. How this interface works on the Previewer" + 3087 " may be different from that on a real device.") 3088 var networkArray = new Array(); 3089 networkArray.push(Network); 3090 const len = args.length 3091 if (typeof args[len - 1] === 'function') { 3092 args[len - 1].call(this, paramMock.businessErrorMock, networkArray); 3093 } else { 3094 return new Promise((resolve, reject) => { 3095 resolve(networkArray); 3096 }) 3097 } 3098 }, 3099 getNetworks: function (...args) { 3100 console.warn("NetworkManager.getNetworks interface mocked in the Previewer. How this interface works on the Previewer" + 3101 " may be different from that on a real device.") 3102 var networkArray = new Array(); 3103 networkArray.push(Network); 3104 const len = args.length 3105 if (typeof args[len - 1] === 'function') { 3106 args[len - 1].call(this, paramMock.businessErrorMock, networkArray); 3107 } else { 3108 return new Promise((resolve, reject) => { 3109 resolve(networkArray); 3110 }) 3111 } 3112 }, 3113 getNetworks: function (...args) { 3114 console.warn("NetworkManager.getNetworks interface mocked in the Previewer. How this interface works on the Previewer" + 3115 " may be different from that on a real device.") 3116 var networkArray = new Array(); 3117 networkArray.push(Network); 3118 const len = args.length 3119 if (typeof args[len - 1] === 'function') { 3120 args[len - 1].call(this, paramMock.businessErrorMock, networkArray); 3121 } else { 3122 return new Promise((resolve, reject) => { 3123 resolve(networkArray); 3124 }) 3125 } 3126 }, 3127 getCurrentNetworkType: function (...args) { 3128 console.warn("NetworkManager.getCurrentNetworkType interface mocked in the Previewer. How this interface works on the Previewer" + 3129 " may be different from that on a real device.") 3130 const len = args.length 3131 if (typeof args[len - 1] === 'function') { 3132 args[len - 1].call(this, paramMock.businessErrorMock, NetworkTypes); 3133 } else { 3134 return new Promise((resolve, reject) => { 3135 resolve(NetworkTypes); 3136 }) 3137 } 3138 }, 3139 setCurrentNetworkType: function (...args) { 3140 console.warn("NetworkManager.setCurrentNetworkType interface mocked in the Previewer. How this interface works on the Previewer" + 3141 " may be different from that on a real device.") 3142 const len = args.length 3143 if (typeof args[len - 1] === 'function') { 3144 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3145 } else { 3146 return new Promise((resolve, reject) => { 3147 resolve(paramMock.paramNumberMock); 3148 }) 3149 } 3150 }, 3151 createNetwork: function (...args) { 3152 console.warn("NetworkManager.createNetwork interface mocked in the Previewer. How this interface works on the Previewer" + 3153 " may be different from that on a real device.") 3154 const len = args.length 3155 if (typeof args[len - 1] === 'function') { 3156 args[len - 1].call(this, paramMock.businessErrorMock, Network); 3157 } else { 3158 return new Promise((resolve, reject) => { 3159 resolve(Network); 3160 }) 3161 } 3162 }, 3163 getNetworkById: function (...args) { 3164 console.warn("NetworkManager.getNetworkById interface mocked in the Previewer. How this interface works on the Previewer" + 3165 " may be different from that on a real device.") 3166 const len = args.length 3167 if (typeof args[len - 1] === 'function') { 3168 args[len - 1].call(this, paramMock.businessErrorMock, Network); 3169 } else { 3170 return new Promise((resolve, reject) => { 3171 resolve(Network); 3172 }) 3173 } 3174 }, 3175 removeNetwork: function (...args) { 3176 console.warn("NetworkManager.removeNetwork interface mocked in the Previewer. How this interface works on the Previewer" + 3177 " may be different from that on a real device.") 3178 const len = args.length 3179 if (typeof args[len - 1] === 'function') { 3180 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3181 } else { 3182 return new Promise((resolve, reject) => { 3183 resolve(paramMock.paramNumberMock); 3184 }) 3185 } 3186 }, 3187 removeAllSatellite: function (...args) { 3188 console.warn("NetworkManager.removeAllSatellite interface mocked in the Previewer. How this interface works on the Previewer" + 3189 " may be different from that on a real device.") 3190 const len = args.length 3191 if (typeof args[len - 1] === 'function') { 3192 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3193 } else { 3194 return new Promise((resolve, reject) => { 3195 resolve(paramMock.paramNumberMock); 3196 }) 3197 } 3198 }, 3199 clearNetworks: function (...args) { 3200 console.warn("NetworkManager.clearNetworks interface mocked in the Previewer. How this interface works on the Previewer" + 3201 " may be different from that on a real device.") 3202 const len = args.length 3203 if (typeof args[len - 1] === 'function') { 3204 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3205 } else { 3206 return new Promise((resolve, reject) => { 3207 resolve(paramMock.paramNumberMock); 3208 }) 3209 } 3210 }, 3211 saveNetworks: function (...args) { 3212 console.warn("NetworkManager.saveNetworks interface mocked in the Previewer. How this interface works on the Previewer" + 3213 " may be different from that on a real device.") 3214 const len = args.length 3215 if (typeof args[len - 1] === 'function') { 3216 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3217 } else { 3218 return new Promise((resolve, reject) => { 3219 resolve(paramMock.paramNumberMock); 3220 }) 3221 } 3222 }, 3223 recoverNetworks: function (...args) { 3224 console.warn("NetworkManager.recoverNetworks interface mocked in the Previewer. How this interface works on the Previewer" + 3225 " may be different from that on a real device.") 3226 const len = args.length 3227 if (typeof args[len - 1] === 'function') { 3228 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3229 } else { 3230 return new Promise((resolve, reject) => { 3231 resolve(paramMock.paramNumberMock); 3232 }) 3233 } 3234 }, 3235 getTimeManager: function (...args) { 3236 console.warn("NetworkManager.getTimeManager interface mocked in the Previewer. How this interface works on the Previewer" + 3237 " may be different from that on a real device.") 3238 const len = args.length 3239 if (typeof args[len - 1] === 'function') { 3240 args[len - 1].call(this, paramMock.businessErrorMock, TimeManager); 3241 } else { 3242 return new Promise((resolve, reject) => { 3243 resolve(TimeManager); 3244 }) 3245 } 3246 }, 3247 setNetworkType: function (...args) { 3248 console.warn("NetworkManager.setNetworkType interface mocked in the Previewer. How this interface works on the Previewer" + 3249 " may be different from that on a real device.") 3250 const len = args.length 3251 if (typeof args[len - 1] === 'function') { 3252 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3253 } else { 3254 return new Promise((resolve, reject) => { 3255 resolve(paramMock.paramNumberMock); 3256 }) 3257 } 3258 }, 3259 } 3260 const SubtitleComponent = { 3261 getLanguageCode: function (...args) { 3262 console.warn("SubtitleComponent.getLanguageCode interface mocked in the Previewer. How this interface works on the Previewer" + 3263 " may be different from that on a real device.") 3264 const len = args.length 3265 if (typeof args[len - 1] === 'function') { 3266 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramStringMock); 3267 } else { 3268 return new Promise((resolve, reject) => { 3269 resolve(paramMock.paramStringMock); 3270 }) 3271 } 3272 }, 3273 getSubtitleType: function (...args) { 3274 console.warn("SubtitleComponent.getSubtitleType interface mocked in the Previewer. How this interface works on the Previewer" + 3275 " may be different from that on a real device.") 3276 const len = args.length 3277 if (typeof args[len - 1] === 'function') { 3278 args[len - 1].call(this, paramMock.businessErrorMock, SubtitleTypes); 3279 } else { 3280 return new Promise((resolve, reject) => { 3281 resolve(SubtitleTypes); 3282 }) 3283 } 3284 }, 3285 getSubtComponentType: function (...args) { 3286 console.warn("SubtitleComponent.getSubtComponentType interface mocked in the Previewer. How this interface works on the Previewer" + 3287 " may be different from that on a real device.") 3288 const len = args.length 3289 if (typeof args[len - 1] === 'function') { 3290 args[len - 1].call(this, paramMock.businessErrorMock, SubtComponentTypes); 3291 } else { 3292 return new Promise((resolve, reject) => { 3293 resolve(SubtComponentTypes); 3294 }) 3295 } 3296 }, 3297 getPID: function (...args) { 3298 console.warn("SubtitleComponent.getPID interface mocked in the Previewer. How this interface works on the Previewer" + 3299 " may be different from that on a real device.") 3300 const len = args.length 3301 if (typeof args[len - 1] === 'function') { 3302 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3303 } else { 3304 return new Promise((resolve, reject) => { 3305 resolve(paramMock.paramNumberMock); 3306 }) 3307 } 3308 }, 3309 getMagazingNum: function (...args) { 3310 console.warn("SubtitleComponent.getMagazingNum interface mocked in the Previewer. How this interface works on the Previewer" + 3311 " may be different from that on a real device.") 3312 const len = args.length 3313 if (typeof args[len - 1] === 'function') { 3314 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3315 } else { 3316 return new Promise((resolve, reject) => { 3317 resolve(paramMock.paramNumberMock); 3318 }) 3319 } 3320 }, 3321 getPageNum: function (...args) { 3322 console.warn("SubtitleComponent.getPageNum interface mocked in the Previewer. How this interface works on the Previewer" + 3323 " may be different from that on a real device.") 3324 const len = args.length 3325 if (typeof args[len - 1] === 'function') { 3326 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3327 } else { 3328 return new Promise((resolve, reject) => { 3329 resolve(paramMock.paramNumberMock); 3330 }) 3331 } 3332 }, 3333 getPos: function (...args) { 3334 console.warn("SubtitleComponent.getPos interface mocked in the Previewer. How this interface works on the Previewer" + 3335 " may be different from that on a real device.") 3336 const len = args.length 3337 if (typeof args[len - 1] === 'function') { 3338 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3339 } else { 3340 return new Promise((resolve, reject) => { 3341 resolve(paramMock.paramNumberMock); 3342 }) 3343 } 3344 }, 3345 isHdSubtitle: function (...args) { 3346 console.warn("SubtitleComponent.isHdSubtitle interface mocked in the Previewer. How this interface works on the Previewer" + 3347 " may be different from that on a real device.") 3348 const len = args.length 3349 if (typeof args[len - 1] === 'function') { 3350 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 3351 } else { 3352 return new Promise((resolve, reject) => { 3353 resolve(paramMock.paramBooleanMock); 3354 }) 3355 } 3356 }, 3357 getSubtComponentTag: function (...args) { 3358 console.warn("SubtitleComponent.getSubtComponentTag interface mocked in the Previewer. How this interface works on the Previewer" + 3359 " may be different from that on a real device.") 3360 const len = args.length 3361 if (typeof args[len - 1] === 'function') { 3362 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3363 } else { 3364 return new Promise((resolve, reject) => { 3365 resolve(paramMock.paramNumberMock); 3366 }) 3367 } 3368 }, 3369 } 3370 const TeletextControl = { 3371 showTTX: function (...args) { 3372 console.warn("TeletextControl.showTTX interface mocked in the Previewer. How this interface works on the Previewer" + 3373 " may be different from that on a real device.") 3374 const len = args.length 3375 if (typeof args[len - 1] === 'function') { 3376 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3377 } else { 3378 return new Promise((resolve, reject) => { 3379 resolve(paramMock.paramNumberMock); 3380 }) 3381 } 3382 }, 3383 isTTXVisible: function (...args) { 3384 console.warn("TeletextControl.isTTXVisible interface mocked in the Previewer. How this interface works on the Previewer" + 3385 " may be different from that on a real device.") 3386 const len = args.length 3387 if (typeof args[len - 1] === 'function') { 3388 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 3389 } else { 3390 return new Promise((resolve, reject) => { 3391 resolve(paramMock.paramBooleanMock); 3392 }) 3393 } 3394 }, 3395 isTTXAvailable: function (...args) { 3396 console.warn("TeletextControl.isTTXAvailable interface mocked in the Previewer. How this interface works on the Previewer" + 3397 " may be different from that on a real device.") 3398 const len = args.length 3399 if (typeof args[len - 1] === 'function') { 3400 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 3401 } else { 3402 return new Promise((resolve, reject) => { 3403 resolve(paramMock.paramBooleanMock); 3404 }) 3405 } 3406 }, 3407 getCurrentTTX: function (...args) { 3408 console.warn("TeletextControl.getCurrentTTX interface mocked in the Previewer. How this interface works on the Previewer" + 3409 " may be different from that on a real device.") 3410 const len = args.length 3411 if (typeof args[len - 1] === 'function') { 3412 args[len - 1].call(this, paramMock.businessErrorMock, TeletextComponent); 3413 } else { 3414 return new Promise((resolve, reject) => { 3415 resolve(TeletextComponent); 3416 }) 3417 } 3418 }, 3419 setCommand: function (...args) { 3420 console.warn("TeletextControl.setCommand interface mocked in the Previewer. How this interface works on the Previewer" + 3421 " may be different from that on a real device.") 3422 const len = args.length 3423 if (typeof args[len - 1] === 'function') { 3424 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3425 } else { 3426 return new Promise((resolve, reject) => { 3427 resolve(paramMock.paramNumberMock); 3428 }) 3429 } 3430 }, 3431 setTTXLanguage: function (...args) { 3432 console.warn("TeletextControl.setTTXLanguage interface mocked in the Previewer. How this interface works on the Previewer" + 3433 " may be different from that on a real device.") 3434 const len = args.length 3435 if (typeof args[len - 1] === 'function') { 3436 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3437 } else { 3438 return new Promise((resolve, reject) => { 3439 resolve(paramMock.paramNumberMock); 3440 }) 3441 } 3442 }, 3443 getTTXLanguage: function (...args) { 3444 console.warn("TeletextControl.getTTXLanguage interface mocked in the Previewer. How this interface works on the Previewer" + 3445 " may be different from that on a real device.") 3446 const len = args.length 3447 if (typeof args[len - 1] === 'function') { 3448 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramStringMock); 3449 } else { 3450 return new Promise((resolve, reject) => { 3451 resolve(paramMock.paramStringMock); 3452 }) 3453 } 3454 }, 3455 setTTXRegion: function (...args) { 3456 console.warn("TeletextControl.setTTXRegion interface mocked in the Previewer. How this interface works on the Previewer" + 3457 " may be different from that on a real device.") 3458 const len = args.length 3459 if (typeof args[len - 1] === 'function') { 3460 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3461 } else { 3462 return new Promise((resolve, reject) => { 3463 resolve(paramMock.paramNumberMock); 3464 }) 3465 } 3466 }, 3467 getTTXRegion: function (...args) { 3468 console.warn("TeletextControl.getTTXRegion interface mocked in the Previewer. How this interface works on the Previewer" + 3469 " may be different from that on a real device.") 3470 const len = args.length 3471 if (typeof args[len - 1] === 'function') { 3472 args[len - 1].call(this, paramMock.businessErrorMock, TTXRegions); 3473 } else { 3474 return new Promise((resolve, reject) => { 3475 resolve(TTXRegions); 3476 }) 3477 } 3478 }, 3479 showHbbtvTtxApp: function (...args) { 3480 console.warn("TeletextControl.showHbbtvTtxApp interface mocked in the Previewer. How this interface works on the Previewer" + 3481 " may be different from that on a real device.") 3482 const len = args.length 3483 if (typeof args[len - 1] === 'function') { 3484 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3485 } else { 3486 return new Promise((resolve, reject) => { 3487 resolve(paramMock.paramNumberMock); 3488 }) 3489 } 3490 }, 3491 isHbbtvTtxAppVisible: function (...args) { 3492 console.warn("TeletextControl.isHbbtvTtxAppVisible interface mocked in the Previewer. How this interface works on the Previewer" + 3493 " may be different from that on a real device.") 3494 const len = args.length 3495 if (typeof args[len - 1] === 'function') { 3496 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 3497 } else { 3498 return new Promise((resolve, reject) => { 3499 resolve(paramMock.paramBooleanMock); 3500 }) 3501 } 3502 }, 3503 isHbbtvTtxAppAvailable: function (...args) { 3504 console.warn("TeletextControl.isHbbtvTtxAppAvailable interface mocked in the Previewer. How this interface works on the Previewer" + 3505 " may be different from that on a real device.") 3506 const len = args.length 3507 if (typeof args[len - 1] === 'function') { 3508 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 3509 } else { 3510 return new Promise((resolve, reject) => { 3511 resolve(paramMock.paramBooleanMock); 3512 }) 3513 } 3514 }, 3515 showSubtitle: function (...args) { 3516 console.warn("TeletextControl.showSubtitle interface mocked in the Previewer. How this interface works on the Previewer" + 3517 " may be different from that on a real device.") 3518 const len = args.length 3519 if (typeof args[len - 1] === 'function') { 3520 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3521 } else { 3522 return new Promise((resolve, reject) => { 3523 resolve(paramMock.paramNumberMock); 3524 }) 3525 } 3526 }, 3527 } 3528 const AdControl = { 3529 setAdEnable: function (...args) { 3530 console.warn("AdControl.setAdEnable interface mocked in the Previewer. How this interface works on the Previewer" + 3531 " may be different from that on a real device.") 3532 const len = args.length 3533 if (typeof args[len - 1] === 'function') { 3534 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3535 } else { 3536 return new Promise((resolve, reject) => { 3537 resolve(paramMock.paramNumberMock); 3538 }) 3539 } 3540 }, 3541 isAdEnable: function (...args) { 3542 console.warn("AdControl.isAdEnable interface mocked in the Previewer. How this interface works on the Previewer" + 3543 " may be different from that on a real device.") 3544 const len = args.length 3545 if (typeof args[len - 1] === 'function') { 3546 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 3547 } else { 3548 return new Promise((resolve, reject) => { 3549 resolve(paramMock.paramBooleanMock); 3550 }) 3551 } 3552 }, 3553 setAdBalance: function (...args) { 3554 console.warn("AdControl.setAdBalance interface mocked in the Previewer. How this interface works on the Previewer" + 3555 " may be different from that on a real device.") 3556 const len = args.length 3557 if (typeof args[len - 1] === 'function') { 3558 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3559 } else { 3560 return new Promise((resolve, reject) => { 3561 resolve(paramMock.paramNumberMock); 3562 }) 3563 } 3564 }, 3565 getAdBalance: function (...args) { 3566 console.warn("AdControl.getAdBalance interface mocked in the Previewer. How this interface works on the Previewer" + 3567 " may be different from that on a real device.") 3568 const len = args.length 3569 if (typeof args[len - 1] === 'function') { 3570 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3571 } else { 3572 return new Promise((resolve, reject) => { 3573 resolve(paramMock.paramNumberMock); 3574 }) 3575 } 3576 }, 3577 setAdToSomePort: function (...args) { 3578 console.warn("AdControl.setAdToSomePort interface mocked in the Previewer. How this interface works on the Previewer" + 3579 " may be different from that on a real device.") 3580 const len = args.length 3581 if (typeof args[len - 1] === 'function') { 3582 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3583 } else { 3584 return new Promise((resolve, reject) => { 3585 resolve(paramMock.paramNumberMock); 3586 }) 3587 } 3588 }, 3589 isAdToSomePort: function (...args) { 3590 console.warn("AdControl.isAdToSomePort interface mocked in the Previewer. How this interface works on the Previewer" + 3591 " may be different from that on a real device.") 3592 const len = args.length 3593 if (typeof args[len - 1] === 'function') { 3594 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 3595 } else { 3596 return new Promise((resolve, reject) => { 3597 resolve(paramMock.paramBooleanMock); 3598 }) 3599 } 3600 }, 3601 } 3602 const Ginga = { 3603 init: function (...args) { 3604 console.warn("Ginga.init interface mocked in the Previewer. How this interface works on the Previewer" + 3605 " may be different from that on a real device.") 3606 const len = args.length 3607 if (typeof args[len - 1] === 'function') { 3608 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3609 } else { 3610 return new Promise((resolve, reject) => { 3611 resolve(paramMock.paramNumberMock); 3612 }) 3613 } 3614 }, 3615 deinit: function (...args) { 3616 console.warn("Ginga.deinit interface mocked in the Previewer. How this interface works on the Previewer" + 3617 " may be different from that on a real device.") 3618 const len = args.length 3619 if (typeof args[len - 1] === 'function') { 3620 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3621 } else { 3622 return new Promise((resolve, reject) => { 3623 resolve(paramMock.paramNumberMock); 3624 }) 3625 } 3626 }, 3627 dispatchKey: function (...args) { 3628 console.warn("Ginga.dispatchKey interface mocked in the Previewer. How this interface works on the Previewer" + 3629 " may be different from that on a real device.") 3630 const len = args.length 3631 if (typeof args[len - 1] === 'function') { 3632 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 3633 } else { 3634 return new Promise((resolve, reject) => { 3635 resolve(paramMock.paramBooleanMock); 3636 }) 3637 } 3638 }, 3639 getAppList: function (...args) { 3640 console.warn("Ginga.getAppList interface mocked in the Previewer. How this interface works on the Previewer" + 3641 " may be different from that on a real device.") 3642 var stringArray = new Array(); 3643 stringArray.push(paramMock.paramStringMock); 3644 const len = args.length 3645 if (typeof args[len - 1] === 'function') { 3646 args[len - 1].call(this, paramMock.businessErrorMock, stringArray); 3647 } else { 3648 return new Promise((resolve, reject) => { 3649 resolve(stringArray); 3650 }) 3651 } 3652 }, 3653 startApp: function (...args) { 3654 console.warn("Ginga.startApp interface mocked in the Previewer. How this interface works on the Previewer" + 3655 " may be different from that on a real device.") 3656 const len = args.length 3657 if (typeof args[len - 1] === 'function') { 3658 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3659 } else { 3660 return new Promise((resolve, reject) => { 3661 resolve(paramMock.paramNumberMock); 3662 }) 3663 } 3664 }, 3665 setGraphicSurface: function (...args) { 3666 console.warn("Ginga.setGraphicSurface interface mocked in the Previewer. How this interface works on the Previewer" + 3667 " may be different from that on a real device.") 3668 const len = args.length 3669 if (typeof args[len - 1] === 'function') { 3670 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3671 } else { 3672 return new Promise((resolve, reject) => { 3673 resolve(paramMock.paramNumberMock); 3674 }) 3675 } 3676 }, 3677 } 3678 const Player = { 3679 showVideo: function (...args) { 3680 console.warn("Player.showVideo interface mocked in the Previewer. How this interface works on the Previewer" + 3681 " may be different from that on a real device.") 3682 const len = args.length 3683 if (typeof args[len - 1] === 'function') { 3684 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3685 } else { 3686 return new Promise((resolve, reject) => { 3687 resolve(paramMock.paramNumberMock); 3688 }) 3689 } 3690 }, 3691 freezeVideo: function (...args) { 3692 console.warn("Player.freezeVideo interface mocked in the Previewer. How this interface works on the Previewer" + 3693 " may be different from that on a real device.") 3694 const len = args.length 3695 if (typeof args[len - 1] === 'function') { 3696 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3697 } else { 3698 return new Promise((resolve, reject) => { 3699 resolve(paramMock.paramNumberMock); 3700 }) 3701 } 3702 }, 3703 isVideoFrozen: function (...args) { 3704 console.warn("Player.isVideoFrozen interface mocked in the Previewer. How this interface works on the Previewer" + 3705 " may be different from that on a real device.") 3706 const len = args.length 3707 if (typeof args[len - 1] === 'function') { 3708 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 3709 } else { 3710 return new Promise((resolve, reject) => { 3711 resolve(paramMock.paramBooleanMock); 3712 }) 3713 } 3714 }, 3715 changeChannel: function (...args) { 3716 console.warn("Player.changeChannel interface mocked in the Previewer. How this interface works on the Previewer" + 3717 " may be different from that on a real device.") 3718 const len = args.length 3719 if (typeof args[len - 1] === 'function') { 3720 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3721 } else { 3722 return new Promise((resolve, reject) => { 3723 resolve(paramMock.paramNumberMock); 3724 }) 3725 } 3726 }, 3727 stopSync: function (...args) { 3728 console.warn("Player.stopSync interface mocked in the Previewer. How this interface works on the Previewer" + 3729 " may be different from that on a real device.") 3730 const len = args.length 3731 if (typeof args[len - 1] === 'function') { 3732 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3733 } else { 3734 return new Promise((resolve, reject) => { 3735 resolve(paramMock.paramNumberMock); 3736 }) 3737 } 3738 }, 3739 getCurrentChannel: function (...args) { 3740 console.warn("Player.getCurrentChannel interface mocked in the Previewer. How this interface works on the Previewer" + 3741 " may be different from that on a real device.") 3742 const len = args.length 3743 if (typeof args[len - 1] === 'function') { 3744 args[len - 1].call(this, paramMock.businessErrorMock, Channel); 3745 } else { 3746 return new Promise((resolve, reject) => { 3747 resolve(Channel); 3748 }) 3749 } 3750 }, 3751 getReplaceChannel: function (...args) { 3752 console.warn("Player.getReplaceChannel interface mocked in the Previewer. How this interface works on the Previewer" + 3753 " may be different from that on a real device.") 3754 const len = args.length 3755 if (typeof args[len - 1] === 'function') { 3756 args[len - 1].call(this, paramMock.businessErrorMock, Channel); 3757 } else { 3758 return new Promise((resolve, reject) => { 3759 resolve(Channel); 3760 }) 3761 } 3762 }, 3763 getPreviousChannel: function (...args) { 3764 console.warn("Player.getPreviousChannel interface mocked in the Previewer. How this interface works on the Previewer" + 3765 " may be different from that on a real device.") 3766 const len = args.length 3767 if (typeof args[len - 1] === 'function') { 3768 args[len - 1].call(this, paramMock.businessErrorMock, Channel); 3769 } else { 3770 return new Promise((resolve, reject) => { 3771 resolve(Channel); 3772 }) 3773 } 3774 }, 3775 setTimeShiftEncryption: function (...args) { 3776 console.warn("Player.setTimeShiftEncryption interface mocked in the Previewer. How this interface works on the Previewer" + 3777 " may be different from that on a real device.") 3778 const len = args.length 3779 if (typeof args[len - 1] === 'function') { 3780 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3781 } else { 3782 return new Promise((resolve, reject) => { 3783 resolve(paramMock.paramNumberMock); 3784 }) 3785 } 3786 }, 3787 play: function (...args) { 3788 console.warn("Player.play interface mocked in the Previewer. How this interface works on the Previewer" + 3789 " may be different from that on a real device.") 3790 const len = args.length 3791 if (typeof args[len - 1] === 'function') { 3792 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3793 } else { 3794 return new Promise((resolve, reject) => { 3795 resolve(paramMock.paramNumberMock); 3796 }) 3797 } 3798 }, 3799 pause: function (...args) { 3800 console.warn("Player.pause interface mocked in the Previewer. How this interface works on the Previewer" + 3801 " may be different from that on a real device.") 3802 const len = args.length 3803 if (typeof args[len - 1] === 'function') { 3804 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3805 } else { 3806 return new Promise((resolve, reject) => { 3807 resolve(paramMock.paramNumberMock); 3808 }) 3809 } 3810 }, 3811 getTimeShiftInfo: function (...args) { 3812 console.warn("Player.getTimeShiftInfo interface mocked in the Previewer. How this interface works on the Previewer" + 3813 " may be different from that on a real device.") 3814 const len = args.length 3815 if (typeof args[len - 1] === 'function') { 3816 args[len - 1].call(this, paramMock.businessErrorMock, TimeShiftInfo); 3817 } else { 3818 return new Promise((resolve, reject) => { 3819 resolve(TimeShiftInfo); 3820 }) 3821 } 3822 }, 3823 startTimeShift: function (...args) { 3824 console.warn("Player.startTimeShift interface mocked in the Previewer. How this interface works on the Previewer" + 3825 " may be different from that on a real device.") 3826 const len = args.length 3827 if (typeof args[len - 1] === 'function') { 3828 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3829 } else { 3830 return new Promise((resolve, reject) => { 3831 resolve(paramMock.paramNumberMock); 3832 }) 3833 } 3834 }, 3835 stopTimeShift: function (...args) { 3836 console.warn("Player.stopTimeShift interface mocked in the Previewer. How this interface works on the Previewer" + 3837 " may be different from that on a real device.") 3838 const len = args.length 3839 if (typeof args[len - 1] === 'function') { 3840 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3841 } else { 3842 return new Promise((resolve, reject) => { 3843 resolve(paramMock.paramNumberMock); 3844 }) 3845 } 3846 }, 3847 seek: function (...args) { 3848 console.warn("Player.seek interface mocked in the Previewer. How this interface works on the Previewer" + 3849 " may be different from that on a real device.") 3850 const len = args.length 3851 if (typeof args[len - 1] === 'function') { 3852 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3853 } else { 3854 return new Promise((resolve, reject) => { 3855 resolve(paramMock.paramNumberMock); 3856 }) 3857 } 3858 }, 3859 trickPlay: function (...args) { 3860 console.warn("Player.trickPlay interface mocked in the Previewer. How this interface works on the Previewer" + 3861 " may be different from that on a real device.") 3862 const len = args.length 3863 if (typeof args[len - 1] === 'function') { 3864 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3865 } else { 3866 return new Promise((resolve, reject) => { 3867 resolve(paramMock.paramNumberMock); 3868 }) 3869 } 3870 }, 3871 getTrickMode: function (...args) { 3872 console.warn("Player.getTrickMode interface mocked in the Previewer. How this interface works on the Previewer" + 3873 " may be different from that on a real device.") 3874 const len = args.length 3875 if (typeof args[len - 1] === 'function') { 3876 args[len - 1].call(this, paramMock.businessErrorMock, TrickModes); 3877 } else { 3878 return new Promise((resolve, reject) => { 3879 resolve(TrickModes); 3880 }) 3881 } 3882 }, 3883 getStatus: function (...args) { 3884 console.warn("Player.getStatus interface mocked in the Previewer. How this interface works on the Previewer" + 3885 " may be different from that on a real device.") 3886 const len = args.length 3887 if (typeof args[len - 1] === 'function') { 3888 args[len - 1].call(this, paramMock.businessErrorMock, PlayStatus); 3889 } else { 3890 return new Promise((resolve, reject) => { 3891 resolve(PlayStatus); 3892 }) 3893 } 3894 }, 3895 setMute: function (...args) { 3896 console.warn("Player.setMute interface mocked in the Previewer. How this interface works on the Previewer" + 3897 " may be different from that on a real device.") 3898 const len = args.length 3899 if (typeof args[len - 1] === 'function') { 3900 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3901 } else { 3902 return new Promise((resolve, reject) => { 3903 resolve(paramMock.paramNumberMock); 3904 }) 3905 } 3906 }, 3907 getMuteStatus: function (...args) { 3908 console.warn("Player.getMuteStatus interface mocked in the Previewer. How this interface works on the Previewer" + 3909 " may be different from that on a real device.") 3910 const len = args.length 3911 if (typeof args[len - 1] === 'function') { 3912 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 3913 } else { 3914 return new Promise((resolve, reject) => { 3915 resolve(paramMock.paramBooleanMock); 3916 }) 3917 } 3918 }, 3919 setDisplay: function (...args) { 3920 console.warn("Player.setDisplay interface mocked in the Previewer. How this interface works on the Previewer" + 3921 " may be different from that on a real device.") 3922 const len = args.length 3923 if (typeof args[len - 1] === 'function') { 3924 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3925 } else { 3926 return new Promise((resolve, reject) => { 3927 resolve(paramMock.paramNumberMock); 3928 }) 3929 } 3930 }, 3931 clearDisplay: function (...args) { 3932 console.warn("Player.clearDisplay interface mocked in the Previewer. How this interface works on the Previewer" + 3933 " may be different from that on a real device.") 3934 const len = args.length 3935 if (typeof args[len - 1] === 'function') { 3936 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3937 } else { 3938 return new Promise((resolve, reject) => { 3939 resolve(paramMock.paramNumberMock); 3940 }) 3941 } 3942 }, 3943 getCurrentAudioComponents: function (...args) { 3944 console.warn("Player.getCurrentAudioComponents interface mocked in the Previewer. How this interface works on the Previewer" + 3945 " may be different from that on a real device.") 3946 var audioComponentArray = new Array(); 3947 audioComponentArray.push(AudioComponent); 3948 const len = args.length 3949 if (typeof args[len - 1] === 'function') { 3950 args[len - 1].call(this, paramMock.businessErrorMock, audioComponentArray); 3951 } else { 3952 return new Promise((resolve, reject) => { 3953 resolve(audioComponentArray); 3954 }) 3955 } 3956 }, 3957 selectAudio: function (...args) { 3958 console.warn("Player.selectAudio interface mocked in the Previewer. How this interface works on the Previewer" + 3959 " may be different from that on a real device.") 3960 const len = args.length 3961 if (typeof args[len - 1] === 'function') { 3962 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3963 } else { 3964 return new Promise((resolve, reject) => { 3965 resolve(paramMock.paramNumberMock); 3966 }) 3967 } 3968 }, 3969 getCurrentAudio: function (...args) { 3970 console.warn("Player.getCurrentAudio interface mocked in the Previewer. How this interface works on the Previewer" + 3971 " may be different from that on a real device.") 3972 const len = args.length 3973 if (typeof args[len - 1] === 'function') { 3974 args[len - 1].call(this, paramMock.businessErrorMock, AudioComponent); 3975 } else { 3976 return new Promise((resolve, reject) => { 3977 resolve(AudioComponent); 3978 }) 3979 } 3980 }, 3981 showSubtitle: function (...args) { 3982 console.warn("Player.showSubtitle interface mocked in the Previewer. How this interface works on the Previewer" + 3983 " may be different from that on a real device.") 3984 const len = args.length 3985 if (typeof args[len - 1] === 'function') { 3986 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 3987 } else { 3988 return new Promise((resolve, reject) => { 3989 resolve(paramMock.paramNumberMock); 3990 }) 3991 } 3992 }, 3993 isSubtitleVisible: function (...args) { 3994 console.warn("Player.isSubtitleVisible interface mocked in the Previewer. How this interface works on the Previewer" + 3995 " may be different from that on a real device.") 3996 const len = args.length 3997 if (typeof args[len - 1] === 'function') { 3998 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 3999 } else { 4000 return new Promise((resolve, reject) => { 4001 resolve(paramMock.paramBooleanMock); 4002 }) 4003 } 4004 }, 4005 pauseSubtitle: function (...args) { 4006 console.warn("Player.pauseSubtitle interface mocked in the Previewer. How this interface works on the Previewer" + 4007 " may be different from that on a real device.") 4008 const len = args.length 4009 if (typeof args[len - 1] === 'function') { 4010 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4011 } else { 4012 return new Promise((resolve, reject) => { 4013 resolve(paramMock.paramNumberMock); 4014 }) 4015 } 4016 }, 4017 resumeSubtitle: function (...args) { 4018 console.warn("Player.resumeSubtitle interface mocked in the Previewer. How this interface works on the Previewer" + 4019 " may be different from that on a real device.") 4020 const len = args.length 4021 if (typeof args[len - 1] === 'function') { 4022 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4023 } else { 4024 return new Promise((resolve, reject) => { 4025 resolve(paramMock.paramNumberMock); 4026 }) 4027 } 4028 }, 4029 setSubtitleHiAvailable: function (...args) { 4030 console.warn("Player.setSubtitleHiAvailable interface mocked in the Previewer. How this interface works on the Previewer" + 4031 " may be different from that on a real device.") 4032 const len = args.length 4033 if (typeof args[len - 1] === 'function') { 4034 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4035 } else { 4036 return new Promise((resolve, reject) => { 4037 resolve(paramMock.paramNumberMock); 4038 }) 4039 } 4040 }, 4041 setSubtitleHiStatus: function (...args) { 4042 console.warn("Player.setSubtitleHiStatus interface mocked in the Previewer. How this interface works on the Previewer" + 4043 " may be different from that on a real device.") 4044 const len = args.length 4045 if (typeof args[len - 1] === 'function') { 4046 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4047 } else { 4048 return new Promise((resolve, reject) => { 4049 resolve(paramMock.paramNumberMock); 4050 }) 4051 } 4052 }, 4053 getSubtitleHiStatus: function (...args) { 4054 console.warn("Player.getSubtitleHiStatus interface mocked in the Previewer. How this interface works on the Previewer" + 4055 " may be different from that on a real device.") 4056 const len = args.length 4057 if (typeof args[len - 1] === 'function') { 4058 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 4059 } else { 4060 return new Promise((resolve, reject) => { 4061 resolve(paramMock.paramBooleanMock); 4062 }) 4063 } 4064 }, 4065 setSubtitleLanguage: function (...args) { 4066 console.warn("Player.setSubtitleLanguage interface mocked in the Previewer. How this interface works on the Previewer" + 4067 " may be different from that on a real device.") 4068 const len = args.length 4069 if (typeof args[len - 1] === 'function') { 4070 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4071 } else { 4072 return new Promise((resolve, reject) => { 4073 resolve(paramMock.paramNumberMock); 4074 }) 4075 } 4076 }, 4077 selectSubtitle: function (...args) { 4078 console.warn("Player.selectSubtitle interface mocked in the Previewer. How this interface works on the Previewer" + 4079 " may be different from that on a real device.") 4080 const len = args.length 4081 if (typeof args[len - 1] === 'function') { 4082 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4083 } else { 4084 return new Promise((resolve, reject) => { 4085 resolve(paramMock.paramNumberMock); 4086 }) 4087 } 4088 }, 4089 setSurface: function (...args) { 4090 console.warn("Player.setSurface interface mocked in the Previewer. How this interface works on the Previewer" + 4091 " may be different from that on a real device.") 4092 const len = args.length 4093 if (typeof args[len - 1] === 'function') { 4094 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4095 } else { 4096 return new Promise((resolve, reject) => { 4097 resolve(paramMock.paramNumberMock); 4098 }) 4099 } 4100 }, 4101 getCurrentSubtitle: function (...args) { 4102 console.warn("Player.getCurrentSubtitle interface mocked in the Previewer. How this interface works on the Previewer" + 4103 " may be different from that on a real device.") 4104 const len = args.length 4105 if (typeof args[len - 1] === 'function') { 4106 args[len - 1].call(this, paramMock.businessErrorMock, SubtitleComponent); 4107 } else { 4108 return new Promise((resolve, reject) => { 4109 resolve(SubtitleComponent); 4110 }) 4111 } 4112 }, 4113 getTeletextControl: function (...args) { 4114 console.warn("Player.getTeletextControl interface mocked in the Previewer. How this interface works on the Previewer" + 4115 " may be different from that on a real device.") 4116 const len = args.length 4117 if (typeof args[len - 1] === 'function') { 4118 args[len - 1].call(this, paramMock.businessErrorMock, TeletextControl); 4119 } else { 4120 return new Promise((resolve, reject) => { 4121 resolve(TeletextControl); 4122 }) 4123 } 4124 }, 4125 releaseResource: function (...args) { 4126 console.warn("Player.releaseResource interface mocked in the Previewer. How this interface works on the Previewer" + 4127 " may be different from that on a real device.") 4128 const len = args.length 4129 if (typeof args[len - 1] === 'function') { 4130 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4131 } else { 4132 return new Promise((resolve, reject) => { 4133 resolve(paramMock.paramNumberMock); 4134 }) 4135 } 4136 }, 4137 resumeResource: function (...args) { 4138 console.warn("Player.resumeResource interface mocked in the Previewer. How this interface works on the Previewer" + 4139 " may be different from that on a real device.") 4140 const len = args.length 4141 if (typeof args[len - 1] === 'function') { 4142 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4143 } else { 4144 return new Promise((resolve, reject) => { 4145 resolve(paramMock.paramNumberMock); 4146 }) 4147 } 4148 }, 4149 setWindowRect: function (...args) { 4150 console.warn("Player.setWindowRect interface mocked in the Previewer. How this interface works on the Previewer" + 4151 " may be different from that on a real device.") 4152 const len = args.length 4153 if (typeof args[len - 1] === 'function') { 4154 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4155 } else { 4156 return new Promise((resolve, reject) => { 4157 resolve(paramMock.paramNumberMock); 4158 }) 4159 } 4160 }, 4161 getWindowRect: function (...args) { 4162 console.warn("Player.getWindowRect interface mocked in the Previewer. How this interface works on the Previewer" + 4163 " may be different from that on a real device.") 4164 const len = args.length 4165 if (typeof args[len - 1] === 'function') { 4166 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramObjectMock); 4167 } else { 4168 return new Promise((resolve, reject) => { 4169 resolve(paramMock.paramObjectMock); 4170 }) 4171 } 4172 }, 4173 setClipRect: function (...args) { 4174 console.warn("Player.setClipRect interface mocked in the Previewer. How this interface works on the Previewer" + 4175 " may be different from that on a real device.") 4176 const len = args.length 4177 if (typeof args[len - 1] === 'function') { 4178 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4179 } else { 4180 return new Promise((resolve, reject) => { 4181 resolve(paramMock.paramNumberMock); 4182 }) 4183 } 4184 }, 4185 getClipRect: function (...args) { 4186 console.warn("Player.getClipRect interface mocked in the Previewer. How this interface works on the Previewer" + 4187 " may be different from that on a real device.") 4188 const len = args.length 4189 if (typeof args[len - 1] === 'function') { 4190 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramObjectMock); 4191 } else { 4192 return new Promise((resolve, reject) => { 4193 resolve(paramMock.paramObjectMock); 4194 }) 4195 } 4196 }, 4197 snapshot: function (...args) { 4198 console.warn("Player.snapshot interface mocked in the Previewer. How this interface works on the Previewer" + 4199 " may be different from that on a real device.") 4200 const len = args.length 4201 if (typeof args[len - 1] === 'function') { 4202 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4203 } else { 4204 return new Promise((resolve, reject) => { 4205 resolve(paramMock.paramNumberMock); 4206 }) 4207 } 4208 }, 4209 getTuner: function (...args) { 4210 console.warn("Player.getTuner interface mocked in the Previewer. How this interface works on the Previewer" + 4211 " may be different from that on a real device.") 4212 const len = args.length 4213 if (typeof args[len - 1] === 'function') { 4214 args[len - 1].call(this, paramMock.businessErrorMock, Tuner); 4215 } else { 4216 return new Promise((resolve, reject) => { 4217 resolve(Tuner); 4218 }) 4219 } 4220 }, 4221 setZOrder: function (...args) { 4222 console.warn("Player.setZOrder interface mocked in the Previewer. How this interface works on the Previewer" + 4223 " may be different from that on a real device.") 4224 const len = args.length 4225 if (typeof args[len - 1] === 'function') { 4226 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4227 } else { 4228 return new Promise((resolve, reject) => { 4229 resolve(paramMock.paramNumberMock); 4230 }) 4231 } 4232 }, 4233 setAudioTrackMode: function (...args) { 4234 console.warn("Player.setAudioTrackMode interface mocked in the Previewer. How this interface works on the Previewer" + 4235 " may be different from that on a real device.") 4236 const len = args.length 4237 if (typeof args[len - 1] === 'function') { 4238 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4239 } else { 4240 return new Promise((resolve, reject) => { 4241 resolve(paramMock.paramNumberMock); 4242 }) 4243 } 4244 }, 4245 setAudioLanguage: function (...args) { 4246 console.warn("Player.setAudioLanguage interface mocked in the Previewer. How this interface works on the Previewer" + 4247 " may be different from that on a real device.") 4248 const len = args.length 4249 if (typeof args[len - 1] === 'function') { 4250 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4251 } else { 4252 return new Promise((resolve, reject) => { 4253 resolve(paramMock.paramNumberMock); 4254 }) 4255 } 4256 }, 4257 getAudioTrackMode: function (...args) { 4258 console.warn("Player.getAudioTrackMode interface mocked in the Previewer. How this interface works on the Previewer" + 4259 " may be different from that on a real device.") 4260 const len = args.length 4261 if (typeof args[len - 1] === 'function') { 4262 args[len - 1].call(this, paramMock.businessErrorMock, AudioTrackModes); 4263 } else { 4264 return new Promise((resolve, reject) => { 4265 resolve(AudioTrackModes); 4266 }) 4267 } 4268 }, 4269 setStopMode: function (...args) { 4270 console.warn("Player.setStopMode interface mocked in the Previewer. How this interface works on the Previewer" + 4271 " may be different from that on a real device.") 4272 const len = args.length 4273 if (typeof args[len - 1] === 'function') { 4274 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4275 } else { 4276 return new Promise((resolve, reject) => { 4277 resolve(paramMock.paramNumberMock); 4278 }) 4279 } 4280 }, 4281 getStopMode: function (...args) { 4282 console.warn("Player.getStopMode interface mocked in the Previewer. How this interface works on the Previewer" + 4283 " may be different from that on a real device.") 4284 const len = args.length 4285 if (typeof args[len - 1] === 'function') { 4286 args[len - 1].call(this, paramMock.businessErrorMock, StopTypes); 4287 } else { 4288 return new Promise((resolve, reject) => { 4289 resolve(StopTypes); 4290 }) 4291 } 4292 }, 4293 getVideoResolutionHeight: function (...args) { 4294 console.warn("Player.getVideoResolutionHeight interface mocked in the Previewer. How this interface works on the Previewer" + 4295 " may be different from that on a real device.") 4296 const len = args.length 4297 if (typeof args[len - 1] === 'function') { 4298 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4299 } else { 4300 return new Promise((resolve, reject) => { 4301 resolve(paramMock.paramNumberMock); 4302 }) 4303 } 4304 }, 4305 getVideoResolutionWidth: function (...args) { 4306 console.warn("Player.getVideoResolutionWidth interface mocked in the Previewer. How this interface works on the Previewer" + 4307 " may be different from that on a real device.") 4308 const len = args.length 4309 if (typeof args[len - 1] === 'function') { 4310 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4311 } else { 4312 return new Promise((resolve, reject) => { 4313 resolve(paramMock.paramNumberMock); 4314 }) 4315 } 4316 }, 4317 getFPS: function (...args) { 4318 console.warn("Player.getFPS interface mocked in the Previewer. How this interface works on the Previewer" + 4319 " may be different from that on a real device.") 4320 const len = args.length 4321 if (typeof args[len - 1] === 'function') { 4322 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4323 } else { 4324 return new Promise((resolve, reject) => { 4325 resolve(paramMock.paramNumberMock); 4326 }) 4327 } 4328 }, 4329 setVolume: function (...args) { 4330 console.warn("Player.setVolume interface mocked in the Previewer. How this interface works on the Previewer" + 4331 " may be different from that on a real device.") 4332 const len = args.length 4333 if (typeof args[len - 1] === 'function') { 4334 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4335 } else { 4336 return new Promise((resolve, reject) => { 4337 resolve(paramMock.paramNumberMock); 4338 }) 4339 } 4340 }, 4341 getVolume: function (...args) { 4342 console.warn("Player.getVolume interface mocked in the Previewer. How this interface works on the Previewer" + 4343 " may be different from that on a real device.") 4344 const len = args.length 4345 if (typeof args[len - 1] === 'function') { 4346 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4347 } else { 4348 return new Promise((resolve, reject) => { 4349 resolve(paramMock.paramNumberMock); 4350 }) 4351 } 4352 }, 4353 stopAudioStreamOutput: function (...args) { 4354 console.warn("Player.stopAudioStreamOutput interface mocked in the Previewer. How this interface works on the Previewer" + 4355 " may be different from that on a real device.") 4356 const len = args.length 4357 if (typeof args[len - 1] === 'function') { 4358 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4359 } else { 4360 return new Promise((resolve, reject) => { 4361 resolve(paramMock.paramNumberMock); 4362 }) 4363 } 4364 }, 4365 startAudioStreamOutput: function (...args) { 4366 console.warn("Player.startAudioStreamOutput interface mocked in the Previewer. How this interface works on the Previewer" + 4367 " may be different from that on a real device.") 4368 const len = args.length 4369 if (typeof args[len - 1] === 'function') { 4370 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4371 } else { 4372 return new Promise((resolve, reject) => { 4373 resolve(paramMock.paramNumberMock); 4374 }) 4375 } 4376 }, 4377 getDolbyInfoStreamType: function (...args) { 4378 console.warn("Player.getDolbyInfoStreamType interface mocked in the Previewer. How this interface works on the Previewer" + 4379 " may be different from that on a real device.") 4380 const len = args.length 4381 if (typeof args[len - 1] === 'function') { 4382 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4383 } else { 4384 return new Promise((resolve, reject) => { 4385 resolve(paramMock.paramNumberMock); 4386 }) 4387 } 4388 }, 4389 getDolbyInfoAcmod: function (...args) { 4390 console.warn("Player.getDolbyInfoAcmod interface mocked in the Previewer. How this interface works on the Previewer" + 4391 " may be different from that on a real device.") 4392 const len = args.length 4393 if (typeof args[len - 1] === 'function') { 4394 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4395 } else { 4396 return new Promise((resolve, reject) => { 4397 resolve(paramMock.paramNumberMock); 4398 }) 4399 } 4400 }, 4401 setDolbyRange: function (...args) { 4402 console.warn("Player.setDolbyRange interface mocked in the Previewer. How this interface works on the Previewer" + 4403 " may be different from that on a real device.") 4404 const len = args.length 4405 if (typeof args[len - 1] === 'function') { 4406 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4407 } else { 4408 return new Promise((resolve, reject) => { 4409 resolve(paramMock.paramNumberMock); 4410 }) 4411 } 4412 }, 4413 getDRARawChannel: function (...args) { 4414 console.warn("Player.getDRARawChannel interface mocked in the Previewer. How this interface works on the Previewer" + 4415 " may be different from that on a real device.") 4416 const len = args.length 4417 if (typeof args[len - 1] === 'function') { 4418 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4419 } else { 4420 return new Promise((resolve, reject) => { 4421 resolve(paramMock.paramNumberMock); 4422 }) 4423 } 4424 }, 4425 getAdControl: function (...args) { 4426 console.warn("Player.getAdControl interface mocked in the Previewer. How this interface works on the Previewer" + 4427 " may be different from that on a real device.") 4428 const len = args.length 4429 if (typeof args[len - 1] === 'function') { 4430 args[len - 1].call(this, paramMock.businessErrorMock, AdControl); 4431 } else { 4432 return new Promise((resolve, reject) => { 4433 resolve(AdControl); 4434 }) 4435 } 4436 }, 4437 ewsActionControl: function (...args) { 4438 console.warn("Player.ewsActionControl interface mocked in the Previewer. How this interface works on the Previewer" + 4439 " may be different from that on a real device.") 4440 const len = args.length 4441 if (typeof args[len - 1] === 'function') { 4442 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4443 } else { 4444 return new Promise((resolve, reject) => { 4445 resolve(paramMock.paramNumberMock); 4446 }) 4447 } 4448 }, 4449 getGinga: function (...args) { 4450 console.warn("Player.getGinga interface mocked in the Previewer. How this interface works on the Previewer" + 4451 " may be different from that on a real device.") 4452 const len = args.length 4453 if (typeof args[len - 1] === 'function') { 4454 args[len - 1].call(this, paramMock.businessErrorMock, Ginga); 4455 } else { 4456 return new Promise((resolve, reject) => { 4457 resolve(Ginga); 4458 }) 4459 } 4460 }, 4461 getSupportStatus: function (...args) { 4462 console.warn("Player.getSupportStatus interface mocked in the Previewer. How this interface works on the Previewer" + 4463 " may be different from that on a real device.") 4464 const len = args.length 4465 if (typeof args[len - 1] === 'function') { 4466 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 4467 } else { 4468 return new Promise((resolve, reject) => { 4469 resolve(paramMock.paramBooleanMock); 4470 }) 4471 } 4472 }, 4473 switchToBarkerChannelFreSync: function (...args) { 4474 console.warn("Player.switchToBarkerChannelFreSync interface mocked in the Previewer. How this interface works on the Previewer" + 4475 " may be different from that on a real device.") 4476 const len = args.length 4477 if (typeof args[len - 1] === 'function') { 4478 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4479 } else { 4480 return new Promise((resolve, reject) => { 4481 resolve(paramMock.paramNumberMock); 4482 }) 4483 } 4484 }, 4485 getAvFramePlaying: function (...args) { 4486 console.warn("Player.getAvFramePlaying interface mocked in the Previewer. How this interface works on the Previewer" + 4487 " may be different from that on a real device.") 4488 const len = args.length 4489 if (typeof args[len - 1] === 'function') { 4490 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 4491 } else { 4492 return new Promise((resolve, reject) => { 4493 resolve(paramMock.paramBooleanMock); 4494 }) 4495 } 4496 }, 4497 getTimeShiftAudioComponents: function (...args) { 4498 console.warn("Player.getTimeShiftAudioComponents interface mocked in the Previewer. How this interface works on the Previewer" + 4499 " may be different from that on a real device.") 4500 var audioComponentArray = new Array(); 4501 audioComponentArray.push(AudioComponent); 4502 const len = args.length 4503 if (typeof args[len - 1] === 'function') { 4504 args[len - 1].call(this, paramMock.businessErrorMock, audioComponentArray); 4505 } else { 4506 return new Promise((resolve, reject) => { 4507 resolve(audioComponentArray); 4508 }) 4509 } 4510 }, 4511 selectTimeShiftAudio: function (...args) { 4512 console.warn("Player.selectTimeShiftAudio interface mocked in the Previewer. How this interface works on the Previewer" + 4513 " may be different from that on a real device.") 4514 const len = args.length 4515 if (typeof args[len - 1] === 'function') { 4516 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4517 } else { 4518 return new Promise((resolve, reject) => { 4519 resolve(paramMock.paramNumberMock); 4520 }) 4521 } 4522 }, 4523 getSubtitleFirSecLang: function (...args) { 4524 console.warn("Player.getSubtitleFirSecLang interface mocked in the Previewer. How this interface works on the Previewer" + 4525 " may be different from that on a real device.") 4526 var stringArray = new Array(); 4527 stringArray.push(paramMock.paramStringMock); 4528 const len = args.length 4529 if (typeof args[len - 1] === 'function') { 4530 args[len - 1].call(this, paramMock.businessErrorMock, stringArray); 4531 } else { 4532 return new Promise((resolve, reject) => { 4533 resolve(stringArray); 4534 }) 4535 } 4536 }, 4537 getAudioFirSecLang: function (...args) { 4538 console.warn("Player.getAudioFirSecLang interface mocked in the Previewer. How this interface works on the Previewer" + 4539 " may be different from that on a real device.") 4540 var stringArray = new Array(); 4541 stringArray.push(paramMock.paramStringMock); 4542 const len = args.length 4543 if (typeof args[len - 1] === 'function') { 4544 args[len - 1].call(this, paramMock.businessErrorMock, stringArray); 4545 } else { 4546 return new Promise((resolve, reject) => { 4547 resolve(stringArray); 4548 }) 4549 } 4550 }, 4551 setAudioType: function (...args) { 4552 console.warn("Player.setAudioType interface mocked in the Previewer. How this interface works on the Previewer" + 4553 " may be different from that on a real device.") 4554 const len = args.length 4555 if (typeof args[len - 1] === 'function') { 4556 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4557 } else { 4558 return new Promise((resolve, reject) => { 4559 resolve(paramMock.paramNumberMock); 4560 }) 4561 } 4562 }, 4563 getAudioType: function (...args) { 4564 console.warn("Player.getAudioType interface mocked in the Previewer. How this interface works on the Previewer" + 4565 " may be different from that on a real device.") 4566 const len = args.length 4567 if (typeof args[len - 1] === 'function') { 4568 args[len - 1].call(this, paramMock.businessErrorMock, AudioTypes); 4569 } else { 4570 return new Promise((resolve, reject) => { 4571 resolve(AudioTypes); 4572 }) 4573 } 4574 }, 4575 getCurrentPlayInfo: function (...args) { 4576 console.warn("Player.getCurrentPlayInfo interface mocked in the Previewer. How this interface works on the Previewer" + 4577 " may be different from that on a real device.") 4578 const len = args.length 4579 if (typeof args[len - 1] === 'function') { 4580 args[len - 1].call(this, paramMock.businessErrorMock, PlayInfo); 4581 } else { 4582 return new Promise((resolve, reject) => { 4583 resolve(PlayInfo); 4584 }) 4585 } 4586 }, 4587 } 4588 const PlayerManager = { 4589 createPlayer: function (...args) { 4590 console.warn("PlayerManager.createPlayer interface mocked in the Previewer. How this interface works on the Previewer" + 4591 " may be different from that on a real device.") 4592 const len = args.length 4593 if (typeof args[len - 1] === 'function') { 4594 args[len - 1].call(this, paramMock.businessErrorMock, Player); 4595 } else { 4596 return new Promise((resolve, reject) => { 4597 resolve(Player); 4598 }) 4599 } 4600 }, 4601 getPlayers: function (...args) { 4602 console.warn("PlayerManager.getPlayers interface mocked in the Previewer. How this interface works on the Previewer" + 4603 " may be different from that on a real device.") 4604 var playerArray = new Array(); 4605 playerArray.push(Player); 4606 const len = args.length 4607 if (typeof args[len - 1] === 'function') { 4608 args[len - 1].call(this, paramMock.businessErrorMock, playerArray); 4609 } else { 4610 return new Promise((resolve, reject) => { 4611 resolve(playerArray); 4612 }) 4613 } 4614 }, 4615 destroyPlayer: function (...args) { 4616 console.warn("PlayerManager.destroyPlayer interface mocked in the Previewer. How this interface works on the Previewer" + 4617 " may be different from that on a real device.") 4618 const len = args.length 4619 if (typeof args[len - 1] === 'function') { 4620 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4621 } else { 4622 return new Promise((resolve, reject) => { 4623 resolve(paramMock.paramNumberMock); 4624 }) 4625 } 4626 }, 4627 } 4628 const Recorder = { 4629 start: function (...args) { 4630 console.warn("Recorder.start interface mocked in the Previewer. How this interface works on the Previewer" + 4631 " may be different from that on a real device.") 4632 const len = args.length 4633 if (typeof args[len - 1] === 'function') { 4634 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4635 } else { 4636 return new Promise((resolve, reject) => { 4637 resolve(paramMock.paramNumberMock); 4638 }) 4639 } 4640 }, 4641 startpvrEncryption: function (...args) { 4642 console.warn("Recorder.startpvrEncryption interface mocked in the Previewer. How this interface works on the Previewer" + 4643 " may be different from that on a real device.") 4644 const len = args.length 4645 if (typeof args[len - 1] === 'function') { 4646 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4647 } else { 4648 return new Promise((resolve, reject) => { 4649 resolve(paramMock.paramNumberMock); 4650 }) 4651 } 4652 }, 4653 getChannel: function (...args) { 4654 console.warn("Recorder.getChannel interface mocked in the Previewer. How this interface works on the Previewer" + 4655 " may be different from that on a real device.") 4656 const len = args.length 4657 if (typeof args[len - 1] === 'function') { 4658 args[len - 1].call(this, paramMock.businessErrorMock, Channel); 4659 } else { 4660 return new Promise((resolve, reject) => { 4661 resolve(Channel); 4662 }) 4663 } 4664 }, 4665 getRecordFile: function (...args) { 4666 console.warn("Recorder.getRecordFile interface mocked in the Previewer. How this interface works on the Previewer" + 4667 " may be different from that on a real device.") 4668 var objectArray = new Array(); 4669 objectArray.push(paramMock.paramObjectMock); 4670 const len = args.length 4671 if (typeof args[len - 1] === 'function') { 4672 args[len - 1].call(this, paramMock.businessErrorMock, objectArray); 4673 } else { 4674 return new Promise((resolve, reject) => { 4675 resolve(objectArray); 4676 }) 4677 } 4678 }, 4679 stop: function (...args) { 4680 console.warn("Recorder.stop interface mocked in the Previewer. How this interface works on the Previewer" + 4681 " may be different from that on a real device.") 4682 const len = args.length 4683 if (typeof args[len - 1] === 'function') { 4684 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4685 } else { 4686 return new Promise((resolve, reject) => { 4687 resolve(paramMock.paramNumberMock); 4688 }) 4689 } 4690 }, 4691 getTuner: function (...args) { 4692 console.warn("Recorder.getTuner interface mocked in the Previewer. How this interface works on the Previewer" + 4693 " may be different from that on a real device.") 4694 const len = args.length 4695 if (typeof args[len - 1] === 'function') { 4696 args[len - 1].call(this, paramMock.businessErrorMock, Tuner); 4697 } else { 4698 return new Promise((resolve, reject) => { 4699 resolve(Tuner); 4700 }) 4701 } 4702 }, 4703 getAlreadyRecordTime: function (...args) { 4704 console.warn("Recorder.getAlreadyRecordTime interface mocked in the Previewer. How this interface works on the Previewer" + 4705 " may be different from that on a real device.") 4706 const len = args.length 4707 if (typeof args[len - 1] === 'function') { 4708 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4709 } else { 4710 return new Promise((resolve, reject) => { 4711 resolve(paramMock.paramNumberMock); 4712 }) 4713 } 4714 }, 4715 getDuration: function (...args) { 4716 console.warn("Recorder.getDuration interface mocked in the Previewer. How this interface works on the Previewer" + 4717 " may be different from that on a real device.") 4718 const len = args.length 4719 if (typeof args[len - 1] === 'function') { 4720 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4721 } else { 4722 return new Promise((resolve, reject) => { 4723 resolve(paramMock.paramNumberMock); 4724 }) 4725 } 4726 }, 4727 getRecordStatus: function (...args) { 4728 console.warn("Recorder.getRecordStatus interface mocked in the Previewer. How this interface works on the Previewer" + 4729 " may be different from that on a real device.") 4730 const len = args.length 4731 if (typeof args[len - 1] === 'function') { 4732 args[len - 1].call(this, paramMock.businessErrorMock, Status); 4733 } else { 4734 return new Promise((resolve, reject) => { 4735 resolve(Status); 4736 }) 4737 } 4738 }, 4739 } 4740 const RecorderManager = { 4741 createRecorder: function (...args) { 4742 console.warn("RecorderManager.createRecorder interface mocked in the Previewer. How this interface works on the Previewer" + 4743 " may be different from that on a real device.") 4744 const len = args.length 4745 if (typeof args[len - 1] === 'function') { 4746 args[len - 1].call(this, paramMock.businessErrorMock, Recorder); 4747 } else { 4748 return new Promise((resolve, reject) => { 4749 resolve(Recorder); 4750 }) 4751 } 4752 }, 4753 getAllRecorders: function (...args) { 4754 console.warn("RecorderManager.getAllRecorders interface mocked in the Previewer. How this interface works on the Previewer" + 4755 " may be different from that on a real device.") 4756 const len = args.length 4757 if (typeof args[len - 1] === 'function') { 4758 args[len - 1].call(this, paramMock.businessErrorMock, Recorder); 4759 } else { 4760 return new Promise((resolve, reject) => { 4761 resolve(Recorder); 4762 }) 4763 } 4764 }, 4765 destroyRecorder: function (...args) { 4766 console.warn("RecorderManager.destroyRecorder interface mocked in the Previewer. How this interface works on the Previewer" + 4767 " may be different from that on a real device.") 4768 const len = args.length 4769 if (typeof args[len - 1] === 'function') { 4770 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4771 } else { 4772 return new Promise((resolve, reject) => { 4773 resolve(paramMock.paramNumberMock); 4774 }) 4775 } 4776 }, 4777 } 4778 const PVRFilePlayer = { 4779 start: function (...args) { 4780 console.warn("PVRFilePlayer.start interface mocked in the Previewer. How this interface works on the Previewer" + 4781 " may be different from that on a real device.") 4782 const len = args.length 4783 if (typeof args[len - 1] === 'function') { 4784 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4785 } else { 4786 return new Promise((resolve, reject) => { 4787 resolve(paramMock.paramNumberMock); 4788 }) 4789 } 4790 }, 4791 start: function (...args) { 4792 console.warn("PVRFilePlayer.start interface mocked in the Previewer. How this interface works on the Previewer" + 4793 " may be different from that on a real device.") 4794 const len = args.length 4795 if (typeof args[len - 1] === 'function') { 4796 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4797 } else { 4798 return new Promise((resolve, reject) => { 4799 resolve(paramMock.paramNumberMock); 4800 }) 4801 } 4802 }, 4803 stop: function (...args) { 4804 console.warn("PVRFilePlayer.stop interface mocked in the Previewer. How this interface works on the Previewer" + 4805 " may be different from that on a real device.") 4806 const len = args.length 4807 if (typeof args[len - 1] === 'function') { 4808 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4809 } else { 4810 return new Promise((resolve, reject) => { 4811 resolve(paramMock.paramNumberMock); 4812 }) 4813 } 4814 }, 4815 pause: function (...args) { 4816 console.warn("PVRFilePlayer.pause interface mocked in the Previewer. How this interface works on the Previewer" + 4817 " may be different from that on a real device.") 4818 const len = args.length 4819 if (typeof args[len - 1] === 'function') { 4820 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4821 } else { 4822 return new Promise((resolve, reject) => { 4823 resolve(paramMock.paramNumberMock); 4824 }) 4825 } 4826 }, 4827 resume: function (...args) { 4828 console.warn("PVRFilePlayer.resume interface mocked in the Previewer. How this interface works on the Previewer" + 4829 " may be different from that on a real device.") 4830 const len = args.length 4831 if (typeof args[len - 1] === 'function') { 4832 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4833 } else { 4834 return new Promise((resolve, reject) => { 4835 resolve(paramMock.paramNumberMock); 4836 }) 4837 } 4838 }, 4839 trickPlay: function (...args) { 4840 console.warn("PVRFilePlayer.trickPlay interface mocked in the Previewer. How this interface works on the Previewer" + 4841 " may be different from that on a real device.") 4842 const len = args.length 4843 if (typeof args[len - 1] === 'function') { 4844 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4845 } else { 4846 return new Promise((resolve, reject) => { 4847 resolve(paramMock.paramNumberMock); 4848 }) 4849 } 4850 }, 4851 getCurrentTrickMode: function (...args) { 4852 console.warn("PVRFilePlayer.getCurrentTrickMode interface mocked in the Previewer. How this interface works on the Previewer" + 4853 " may be different from that on a real device.") 4854 const len = args.length 4855 if (typeof args[len - 1] === 'function') { 4856 args[len - 1].call(this, paramMock.businessErrorMock, TrickModes); 4857 } else { 4858 return new Promise((resolve, reject) => { 4859 resolve(TrickModes); 4860 }) 4861 } 4862 }, 4863 seekTo: function (...args) { 4864 console.warn("PVRFilePlayer.seekTo interface mocked in the Previewer. How this interface works on the Previewer" + 4865 " may be different from that on a real device.") 4866 const len = args.length 4867 if (typeof args[len - 1] === 'function') { 4868 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4869 } else { 4870 return new Promise((resolve, reject) => { 4871 resolve(paramMock.paramNumberMock); 4872 }) 4873 } 4874 }, 4875 getCurrentAudio: function (...args) { 4876 console.warn("PVRFilePlayer.getCurrentAudio interface mocked in the Previewer. How this interface works on the Previewer" + 4877 " may be different from that on a real device.") 4878 const len = args.length 4879 if (typeof args[len - 1] === 'function') { 4880 args[len - 1].call(this, paramMock.businessErrorMock, AudioComponent); 4881 } else { 4882 return new Promise((resolve, reject) => { 4883 resolve(AudioComponent); 4884 }) 4885 } 4886 }, 4887 selectAudio: function (...args) { 4888 console.warn("PVRFilePlayer.selectAudio interface mocked in the Previewer. How this interface works on the Previewer" + 4889 " may be different from that on a real device.") 4890 const len = args.length 4891 if (typeof args[len - 1] === 'function') { 4892 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4893 } else { 4894 return new Promise((resolve, reject) => { 4895 resolve(paramMock.paramNumberMock); 4896 }) 4897 } 4898 }, 4899 getCurrentSubtitle: function (...args) { 4900 console.warn("PVRFilePlayer.getCurrentSubtitle interface mocked in the Previewer. How this interface works on the Previewer" + 4901 " may be different from that on a real device.") 4902 const len = args.length 4903 if (typeof args[len - 1] === 'function') { 4904 args[len - 1].call(this, paramMock.businessErrorMock, SubtitleComponent); 4905 } else { 4906 return new Promise((resolve, reject) => { 4907 resolve(SubtitleComponent); 4908 }) 4909 } 4910 }, 4911 getSubtitleComponents: function (...args) { 4912 console.warn("PVRFilePlayer.getSubtitleComponents interface mocked in the Previewer. How this interface works on the Previewer" + 4913 " may be different from that on a real device.") 4914 var subtitleComponentArray = new Array(); 4915 subtitleComponentArray.push(SubtitleComponent); 4916 const len = args.length 4917 if (typeof args[len - 1] === 'function') { 4918 args[len - 1].call(this, paramMock.businessErrorMock, subtitleComponentArray); 4919 } else { 4920 return new Promise((resolve, reject) => { 4921 resolve(subtitleComponentArray); 4922 }) 4923 } 4924 }, 4925 selectSubtitle: function (...args) { 4926 console.warn("PVRFilePlayer.selectSubtitle interface mocked in the Previewer. How this interface works on the Previewer" + 4927 " may be different from that on a real device.") 4928 const len = args.length 4929 if (typeof args[len - 1] === 'function') { 4930 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4931 } else { 4932 return new Promise((resolve, reject) => { 4933 resolve(paramMock.paramNumberMock); 4934 }) 4935 } 4936 }, 4937 showSubtitle: function (...args) { 4938 console.warn("PVRFilePlayer.showSubtitle interface mocked in the Previewer. How this interface works on the Previewer" + 4939 " may be different from that on a real device.") 4940 const len = args.length 4941 if (typeof args[len - 1] === 'function') { 4942 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4943 } else { 4944 return new Promise((resolve, reject) => { 4945 resolve(paramMock.paramNumberMock); 4946 }) 4947 } 4948 }, 4949 isSubtitleVisible: function (...args) { 4950 console.warn("PVRFilePlayer.isSubtitleVisible interface mocked in the Previewer. How this interface works on the Previewer" + 4951 " may be different from that on a real device.") 4952 const len = args.length 4953 if (typeof args[len - 1] === 'function') { 4954 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 4955 } else { 4956 return new Promise((resolve, reject) => { 4957 resolve(paramMock.paramBooleanMock); 4958 }) 4959 } 4960 }, 4961 pauseSubtitle: function (...args) { 4962 console.warn("PVRFilePlayer.pauseSubtitle interface mocked in the Previewer. How this interface works on the Previewer" + 4963 " may be different from that on a real device.") 4964 const len = args.length 4965 if (typeof args[len - 1] === 'function') { 4966 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4967 } else { 4968 return new Promise((resolve, reject) => { 4969 resolve(paramMock.paramNumberMock); 4970 }) 4971 } 4972 }, 4973 resumeSubtitle: function (...args) { 4974 console.warn("PVRFilePlayer.resumeSubtitle interface mocked in the Previewer. How this interface works on the Previewer" + 4975 " may be different from that on a real device.") 4976 const len = args.length 4977 if (typeof args[len - 1] === 'function') { 4978 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 4979 } else { 4980 return new Promise((resolve, reject) => { 4981 resolve(paramMock.paramNumberMock); 4982 }) 4983 } 4984 }, 4985 getTeletextControl: function (...args) { 4986 console.warn("PVRFilePlayer.getTeletextControl interface mocked in the Previewer. How this interface works on the Previewer" + 4987 " may be different from that on a real device.") 4988 const len = args.length 4989 if (typeof args[len - 1] === 'function') { 4990 args[len - 1].call(this, paramMock.businessErrorMock, TeletextControl); 4991 } else { 4992 return new Promise((resolve, reject) => { 4993 resolve(TeletextControl); 4994 }) 4995 } 4996 }, 4997 getCurrentPosition: function (...args) { 4998 console.warn("PVRFilePlayer.getCurrentPosition interface mocked in the Previewer. How this interface works on the Previewer" + 4999 " may be different from that on a real device.") 5000 const len = args.length 5001 if (typeof args[len - 1] === 'function') { 5002 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5003 } else { 5004 return new Promise((resolve, reject) => { 5005 resolve(paramMock.paramNumberMock); 5006 }) 5007 } 5008 }, 5009 setSurface: function (...args) { 5010 console.warn("PVRFilePlayer.setSurface interface mocked in the Previewer. How this interface works on the Previewer" + 5011 " may be different from that on a real device.") 5012 const len = args.length 5013 if (typeof args[len - 1] === 'function') { 5014 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5015 } else { 5016 return new Promise((resolve, reject) => { 5017 resolve(paramMock.paramNumberMock); 5018 }) 5019 } 5020 }, 5021 setWindowRect: function (...args) { 5022 console.warn("PVRFilePlayer.setWindowRect interface mocked in the Previewer. How this interface works on the Previewer" + 5023 " may be different from that on a real device.") 5024 const len = args.length 5025 if (typeof args[len - 1] === 'function') { 5026 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5027 } else { 5028 return new Promise((resolve, reject) => { 5029 resolve(paramMock.paramNumberMock); 5030 }) 5031 } 5032 }, 5033 getWindowRect: function (...args) { 5034 console.warn("PVRFilePlayer.getWindowRect interface mocked in the Previewer. How this interface works on the Previewer" + 5035 " may be different from that on a real device.") 5036 const len = args.length 5037 if (typeof args[len - 1] === 'function') { 5038 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramObjectMock); 5039 } else { 5040 return new Promise((resolve, reject) => { 5041 resolve(paramMock.paramObjectMock); 5042 }) 5043 } 5044 }, 5045 getPVRFileInfo: function (...args) { 5046 console.warn("PVRFilePlayer.getPVRFileInfo interface mocked in the Previewer. How this interface works on the Previewer" + 5047 " may be different from that on a real device.") 5048 const len = args.length 5049 if (typeof args[len - 1] === 'function') { 5050 args[len - 1].call(this, paramMock.businessErrorMock, PVRFileInfo); 5051 } else { 5052 return new Promise((resolve, reject) => { 5053 resolve(PVRFileInfo); 5054 }) 5055 } 5056 }, 5057 setAudioTrackMode: function (...args) { 5058 console.warn("PVRFilePlayer.setAudioTrackMode interface mocked in the Previewer. How this interface works on the Previewer" + 5059 " may be different from that on a real device.") 5060 const len = args.length 5061 if (typeof args[len - 1] === 'function') { 5062 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5063 } else { 5064 return new Promise((resolve, reject) => { 5065 resolve(paramMock.paramNumberMock); 5066 }) 5067 } 5068 }, 5069 getAudioTrackMode: function (...args) { 5070 console.warn("PVRFilePlayer.getAudioTrackMode interface mocked in the Previewer. How this interface works on the Previewer" + 5071 " may be different from that on a real device.") 5072 const len = args.length 5073 if (typeof args[len - 1] === 'function') { 5074 args[len - 1].call(this, paramMock.businessErrorMock, AudioTrackModes); 5075 } else { 5076 return new Promise((resolve, reject) => { 5077 resolve(AudioTrackModes); 5078 }) 5079 } 5080 }, 5081 getCurrentChannel: function (...args) { 5082 console.warn("PVRFilePlayer.getCurrentChannel interface mocked in the Previewer. How this interface works on the Previewer" + 5083 " may be different from that on a real device.") 5084 const len = args.length 5085 if (typeof args[len - 1] === 'function') { 5086 args[len - 1].call(this, paramMock.businessErrorMock, Channel); 5087 } else { 5088 return new Promise((resolve, reject) => { 5089 resolve(Channel); 5090 }) 5091 } 5092 } 5093 } 5094 const PVRFileManager = { 5095 delete: function (...args) { 5096 console.warn("PVRFileManager.delete interface mocked in the Previewer. How this interface works on the Previewer" + 5097 " may be different from that on a real device.") 5098 const len = args.length 5099 if (typeof args[len - 1] === 'function') { 5100 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5101 } else { 5102 return new Promise((resolve, reject) => { 5103 resolve(paramMock.paramNumberMock); 5104 }) 5105 } 5106 }, 5107 rename: function (...args) { 5108 console.warn("PVRFileManager.rename interface mocked in the Previewer. How this interface works on the Previewer" + 5109 " may be different from that on a real device.") 5110 const len = args.length 5111 if (typeof args[len - 1] === 'function') { 5112 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5113 } else { 5114 return new Promise((resolve, reject) => { 5115 resolve(paramMock.paramNumberMock); 5116 }) 5117 } 5118 }, 5119 setUserData: function (...args) { 5120 console.warn("PVRFileManager.setUserData interface mocked in the Previewer. How this interface works on the Previewer" + 5121 " may be different from that on a real device.") 5122 const len = args.length 5123 if (typeof args[len - 1] === 'function') { 5124 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5125 } else { 5126 return new Promise((resolve, reject) => { 5127 resolve(paramMock.paramNumberMock); 5128 }) 5129 } 5130 }, 5131 getUserData: function (...args) { 5132 console.warn("PVRFileManager.getUserData interface mocked in the Previewer. How this interface works on the Previewer" + 5133 " may be different from that on a real device.") 5134 const len = args.length 5135 if (typeof args[len - 1] === 'function') { 5136 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramStringMock); 5137 } else { 5138 return new Promise((resolve, reject) => { 5139 resolve(paramMock.paramStringMock); 5140 }) 5141 } 5142 } 5143 } 5144 const DTVManager = { 5145 prepareDTV: function (...args) { 5146 console.warn("DTVManager.prepareDTV interface mocked in the Previewer. How this interface works on the Previewer" + 5147 " may be different from that on a real device.") 5148 const len = args.length 5149 if (typeof args[len - 1] === 'function') { 5150 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5151 } else { 5152 return new Promise((resolve, reject) => { 5153 resolve(paramMock.paramNumberMock); 5154 }) 5155 } 5156 }, 5157 unPrepareDTV: function (...args) { 5158 console.warn("DTVManager.unPrepareDTV interface mocked in the Previewer. How this interface works on the Previewer" + 5159 " may be different from that on a real device.") 5160 const len = args.length 5161 if (typeof args[len - 1] === 'function') { 5162 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5163 } else { 5164 return new Promise((resolve, reject) => { 5165 resolve(paramMock.paramNumberMock); 5166 }) 5167 } 5168 }, 5169 releaseDTVMem: function (...args) { 5170 console.warn("DTVManager.releaseDTVMem interface mocked in the Previewer. How this interface works on the Previewer" + 5171 " may be different from that on a real device.") 5172 const len = args.length 5173 if (typeof args[len - 1] === 'function') { 5174 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5175 } else { 5176 return new Promise((resolve, reject) => { 5177 resolve(paramMock.paramNumberMock); 5178 }) 5179 } 5180 }, 5181 resumeDTVMem: function (...args) { 5182 console.warn("DTVManager.resumeDTVMem interface mocked in the Previewer. How this interface works on the Previewer" + 5183 " may be different from that on a real device.") 5184 const len = args.length 5185 if (typeof args[len - 1] === 'function') { 5186 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5187 } else { 5188 return new Promise((resolve, reject) => { 5189 resolve(paramMock.paramNumberMock); 5190 }) 5191 } 5192 }, 5193 onStandby: function (...args) { 5194 console.warn("DTVManager.onStandby interface mocked in the Previewer. How this interface works on the Previewer" + 5195 " may be different from that on a real device.") 5196 const len = args.length 5197 if (typeof args[len - 1] === 'function') { 5198 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5199 } else { 5200 return new Promise((resolve, reject) => { 5201 resolve(paramMock.paramNumberMock); 5202 }) 5203 } 5204 }, 5205 onWakeup: function (...args) { 5206 console.warn("DTVManager.onWakeup interface mocked in the Previewer. How this interface works on the Previewer" + 5207 " may be different from that on a real device.") 5208 const len = args.length 5209 if (typeof args[len - 1] === 'function') { 5210 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5211 } else { 5212 return new Promise((resolve, reject) => { 5213 resolve(paramMock.paramNumberMock); 5214 }) 5215 } 5216 }, 5217 setCountry: function (...args) { 5218 console.warn("DTVManager.setCountry interface mocked in the Previewer. How this interface works on the Previewer" + 5219 " may be different from that on a real device.") 5220 const len = args.length 5221 if (typeof args[len - 1] === 'function') { 5222 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5223 } else { 5224 return new Promise((resolve, reject) => { 5225 resolve(paramMock.paramNumberMock); 5226 }) 5227 } 5228 }, 5229 getCountry: function (...args) { 5230 console.warn("DTVManager.getCountry interface mocked in the Previewer. How this interface works on the Previewer" + 5231 " may be different from that on a real device.") 5232 const len = args.length 5233 if (typeof args[len - 1] === 'function') { 5234 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramStringMock); 5235 } else { 5236 return new Promise((resolve, reject) => { 5237 resolve(paramMock.paramStringMock); 5238 }) 5239 } 5240 }, 5241 setAreaCode: function (...args) { 5242 console.warn("DTVManager.setAreaCode interface mocked in the Previewer. How this interface works on the Previewer" + 5243 " may be different from that on a real device.") 5244 const len = args.length 5245 if (typeof args[len - 1] === 'function') { 5246 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5247 } else { 5248 return new Promise((resolve, reject) => { 5249 resolve(paramMock.paramNumberMock); 5250 }) 5251 } 5252 }, 5253 getAreaCode: function (...args) { 5254 console.warn("DTVManager.getAreaCode interface mocked in the Previewer. How this interface works on the Previewer" + 5255 " may be different from that on a real device.") 5256 const len = args.length 5257 if (typeof args[len - 1] === 'function') { 5258 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5259 } else { 5260 return new Promise((resolve, reject) => { 5261 resolve(paramMock.paramNumberMock); 5262 }) 5263 } 5264 }, 5265 setSysLang: function (...args) { 5266 console.warn("DTVManager.setSysLang interface mocked in the Previewer. How this interface works on the Previewer" + 5267 " may be different from that on a real device.") 5268 const len = args.length 5269 if (typeof args[len - 1] === 'function') { 5270 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5271 } else { 5272 return new Promise((resolve, reject) => { 5273 resolve(paramMock.paramNumberMock); 5274 }) 5275 } 5276 }, 5277 getSysLang: function (...args) { 5278 console.warn("DTVManager.getSysLang interface mocked in the Previewer. How this interface works on the Previewer" + 5279 " may be different from that on a real device.") 5280 var subtitleComponentArray = new Array(); 5281 subtitleComponentArray.push(SubtitleComponent); 5282 const len = args.length 5283 if (typeof args[len - 1] === 'function') { 5284 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramStringMock); 5285 } else { 5286 return new Promise((resolve, reject) => { 5287 resolve(paramMock.paramStringMock); 5288 }) 5289 } 5290 }, 5291 setScreenBlueEnable: function (...args) { 5292 console.warn("DTVManager.setScreenBlueEnable interface mocked in the Previewer. How this interface works on the Previewer" + 5293 " may be different from that on a real device.") 5294 const len = args.length 5295 if (typeof args[len - 1] === 'function') { 5296 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5297 } else { 5298 return new Promise((resolve, reject) => { 5299 resolve(paramMock.paramNumberMock); 5300 }) 5301 } 5302 }, 5303 getScreenBlueEnable: function (...args) { 5304 console.warn("DTVManager.getScreenBlueEnable interface mocked in the Previewer. How this interface works on the Previewer" + 5305 " may be different from that on a real device.") 5306 const len = args.length 5307 if (typeof args[len - 1] === 'function') { 5308 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 5309 } else { 5310 return new Promise((resolve, reject) => { 5311 resolve(paramMock.paramBooleanMock); 5312 }) 5313 } 5314 }, 5315 setDtvSystem: function (...args) { 5316 console.warn("DTVManager.setDtvSystem interface mocked in the Previewer. How this interface works on the Previewer" + 5317 " may be different from that on a real device.") 5318 const len = args.length 5319 if (typeof args[len - 1] === 'function') { 5320 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5321 } else { 5322 return new Promise((resolve, reject) => { 5323 resolve(paramMock.paramNumberMock); 5324 }) 5325 } 5326 }, 5327 getDtvSystem: function (...args) { 5328 console.warn("DTVManager.getDtvSystem interface mocked in the Previewer. How this interface works on the Previewer" + 5329 " may be different from that on a real device.") 5330 const len = args.length 5331 if (typeof args[len - 1] === 'function') { 5332 args[len - 1].call(this, paramMock.businessErrorMock, DtvSystems); 5333 } else { 5334 return new Promise((resolve, reject) => { 5335 resolve(DtvSystems); 5336 }) 5337 } 5338 }, 5339 setFeFakeMode: function (...args) { 5340 console.warn("DTVManager.setFeFakeMode interface mocked in the Previewer. How this interface works on the Previewer" + 5341 " may be different from that on a real device.") 5342 const len = args.length 5343 if (typeof args[len - 1] === 'function') { 5344 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5345 } else { 5346 return new Promise((resolve, reject) => { 5347 resolve(paramMock.paramNumberMock); 5348 }) 5349 } 5350 }, 5351 getJavaAPIVersion: function (...args) { 5352 console.warn("DTVManager.getJavaAPIVersion interface mocked in the Previewer. How this interface works on the Previewer" + 5353 " may be different from that on a real device.") 5354 const len = args.length 5355 if (typeof args[len - 1] === 'function') { 5356 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramStringMock); 5357 } else { 5358 return new Promise((resolve, reject) => { 5359 resolve(paramMock.paramStringMock); 5360 }) 5361 } 5362 } 5363 } 5364 const ClosedCaptionManager = { 5365 getUsedCCLists: function (...args) { 5366 console.warn("ClosedCaptionManager.getUsedCCLists interface mocked in the Previewer. How this interface works on the Previewer" + 5367 " may be different from that on a real device.") 5368 var closedCaptionListArray = new Array(); 5369 closedCaptionListArray.push(ClosedCaptionList); 5370 const len = args.length 5371 if (typeof args[len - 1] === 'function') { 5372 args[len - 1].call(this, paramMock.businessErrorMock, closedCaptionListArray); 5373 } else { 5374 return new Promise((resolve, reject) => { 5375 resolve(closedCaptionListArray); 5376 }) 5377 } 5378 }, 5379 getCurrentCC: function (...args) { 5380 console.warn("ClosedCaptionManager.getCurrentCC interface mocked in the Previewer. How this interface works on the Previewer" + 5381 " may be different from that on a real device.") 5382 const len = args.length 5383 if (typeof args[len - 1] === 'function') { 5384 args[len - 1].call(this, paramMock.businessErrorMock, ClosedCaptionComponent); 5385 } else { 5386 return new Promise((resolve, reject) => { 5387 resolve(ClosedCaptionComponent); 5388 }) 5389 } 5390 }, 5391 isCCVisible: function (...args) { 5392 console.warn("ClosedCaptionManager.isCCVisible interface mocked in the Previewer. How this interface works on the Previewer" + 5393 " may be different from that on a real device.") 5394 const len = args.length 5395 if (typeof args[len - 1] === 'function') { 5396 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock); 5397 } else { 5398 return new Promise((resolve, reject) => { 5399 resolve(paramMock.paramBooleanMock); 5400 }) 5401 } 5402 }, 5403 showCC: function (...args) { 5404 console.warn("ClosedCaptionManager.showCC interface mocked in the Previewer. How this interface works on the Previewer" + 5405 " may be different from that on a real device.") 5406 const len = args.length 5407 if (typeof args[len - 1] === 'function') { 5408 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5409 } else { 5410 return new Promise((resolve, reject) => { 5411 resolve(paramMock.paramNumberMock); 5412 }) 5413 } 5414 }, 5415 showCC: function (...args) { 5416 console.warn("ClosedCaptionManager.showCC interface mocked in the Previewer. How this interface works on the Previewer" + 5417 " may be different from that on a real device.") 5418 const len = args.length 5419 if (typeof args[len - 1] === 'function') { 5420 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5421 } else { 5422 return new Promise((resolve, reject) => { 5423 resolve(paramMock.paramNumberMock); 5424 }) 5425 } 5426 }, 5427 isCCShow: function (...args) { 5428 console.warn("ClosedCaptionManager.isCCShow interface mocked in the Previewer. How this interface works on the Previewer" + 5429 " may be different from that on a real device.") 5430 const len = args.length 5431 if (typeof args[len - 1] === 'function') { 5432 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5433 } else { 5434 return new Promise((resolve, reject) => { 5435 resolve(paramMock.paramNumberMock); 5436 }) 5437 } 5438 }, 5439 setAnalogSelector: function (...args) { 5440 console.warn("ClosedCaptionManager.setAnalogSelector interface mocked in the Previewer. How this interface works on the Previewer" + 5441 " may be different from that on a real device.") 5442 const len = args.length 5443 if (typeof args[len - 1] === 'function') { 5444 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5445 } else { 5446 return new Promise((resolve, reject) => { 5447 resolve(paramMock.paramNumberMock); 5448 }) 5449 } 5450 }, 5451 getAnalogSelector: function (...args) { 5452 console.warn("ClosedCaptionManager.setAnalogSelector interface mocked in the Previewer. How this interface works on the Previewer" + 5453 " may be different from that on a real device.") 5454 const len = args.length 5455 if (typeof args[len - 1] === 'function') { 5456 args[len - 1].call(this, paramMock.businessErrorMock, CCAnalogSelectors); 5457 } else { 5458 return new Promise((resolve, reject) => { 5459 resolve(CCAnalogSelectors); 5460 }) 5461 } 5462 }, 5463 setDigitalSelector: function (...args) { 5464 console.warn("ClosedCaptionManager.setDigitalSelector interface mocked in the Previewer. How this interface works on the Previewer" + 5465 " may be different from that on a real device.") 5466 const len = args.length 5467 if (typeof args[len - 1] === 'function') { 5468 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5469 } else { 5470 return new Promise((resolve, reject) => { 5471 resolve(paramMock.paramNumberMock); 5472 }) 5473 } 5474 }, 5475 getDigitalSelector: function (...args) { 5476 console.warn("ClosedCaptionManager.getDigitalSelector interface mocked in the Previewer. How this interface works on the Previewer" + 5477 " may be different from that on a real device.") 5478 const len = args.length 5479 if (typeof args[len - 1] === 'function') { 5480 args[len - 1].call(this, paramMock.businessErrorMock, CCDigitalSelectors); 5481 } else { 5482 return new Promise((resolve, reject) => { 5483 resolve(CCDigitalSelectors); 5484 }) 5485 } 5486 }, 5487 setFontSize: function (...args) { 5488 console.warn("ClosedCaptionManager.setFontSize interface mocked in the Previewer. How this interface works on the Previewer" + 5489 " may be different from that on a real device.") 5490 const len = args.length 5491 if (typeof args[len - 1] === 'function') { 5492 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5493 } else { 5494 return new Promise((resolve, reject) => { 5495 resolve(paramMock.paramNumberMock); 5496 }) 5497 } 5498 }, 5499 getFontSize: function (...args) { 5500 console.warn("ClosedCaptionManager.getFontSize interface mocked in the Previewer. How this interface works on the Previewer" + 5501 " may be different from that on a real device.") 5502 const len = args.length 5503 if (typeof args[len - 1] === 'function') { 5504 args[len - 1].call(this, paramMock.businessErrorMock, FontSizes); 5505 } else { 5506 return new Promise((resolve, reject) => { 5507 resolve(FontSizes); 5508 }) 5509 } 5510 }, 5511 setFontStyle: function (...args) { 5512 console.warn("ClosedCaptionManager.setFontStyle interface mocked in the Previewer. How this interface works on the Previewer" + 5513 " may be different from that on a real device.") 5514 const len = args.length 5515 if (typeof args[len - 1] === 'function') { 5516 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5517 } else { 5518 return new Promise((resolve, reject) => { 5519 resolve(paramMock.paramNumberMock); 5520 }) 5521 } 5522 }, 5523 getFontStyle: function (...args) { 5524 console.warn("ClosedCaptionManager.getFontStyle interface mocked in the Previewer. How this interface works on the Previewer" + 5525 " may be different from that on a real device.") 5526 const len = args.length 5527 if (typeof args[len - 1] === 'function') { 5528 args[len - 1].call(this, paramMock.businessErrorMock, FontStyles); 5529 } else { 5530 return new Promise((resolve, reject) => { 5531 resolve(FontStyles); 5532 }) 5533 } 5534 }, 5535 setFontColor: function (...args) { 5536 console.warn("ClosedCaptionManager.setFontColor interface mocked in the Previewer. How this interface works on the Previewer" + 5537 " may be different from that on a real device.") 5538 const len = args.length 5539 if (typeof args[len - 1] === 'function') { 5540 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5541 } else { 5542 return new Promise((resolve, reject) => { 5543 resolve(paramMock.paramNumberMock); 5544 }) 5545 } 5546 }, 5547 getFontColor: function (...args) { 5548 console.warn("ClosedCaptionManager.getFontColor interface mocked in the Previewer. How this interface works on the Previewer" + 5549 " may be different from that on a real device.") 5550 const len = args.length 5551 if (typeof args[len - 1] === 'function') { 5552 args[len - 1].call(this, paramMock.businessErrorMock, Colors); 5553 } else { 5554 return new Promise((resolve, reject) => { 5555 resolve(Colors); 5556 }) 5557 } 5558 }, 5559 setFontOpacity: function (...args) { 5560 console.warn("ClosedCaptionManager.setFontOpacity interface mocked in the Previewer. How this interface works on the Previewer" + 5561 " may be different from that on a real device.") 5562 const len = args.length 5563 if (typeof args[len - 1] === 'function') { 5564 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5565 } else { 5566 return new Promise((resolve, reject) => { 5567 resolve(paramMock.paramNumberMock); 5568 }) 5569 } 5570 }, 5571 getFontOpacity: function (...args) { 5572 console.warn("ClosedCaptionManager.getFontOpacity interface mocked in the Previewer. How this interface works on the Previewer" + 5573 " may be different from that on a real device.") 5574 const len = args.length 5575 if (typeof args[len - 1] === 'function') { 5576 args[len - 1].call(this, paramMock.businessErrorMock, Opacities); 5577 } else { 5578 return new Promise((resolve, reject) => { 5579 resolve(Opacities); 5580 }) 5581 } 5582 }, 5583 setBackgroundColor: function (...args) { 5584 console.warn("ClosedCaptionManager.setBackgroundColor interface mocked in the Previewer. How this interface works on the Previewer" + 5585 " may be different from that on a real device.") 5586 const len = args.length 5587 if (typeof args[len - 1] === 'function') { 5588 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5589 } else { 5590 return new Promise((resolve, reject) => { 5591 resolve(paramMock.paramNumberMock); 5592 }) 5593 } 5594 }, 5595 getBackgroundColor: function (...args) { 5596 console.warn("ClosedCaptionManager.getBackgroundColor interface mocked in the Previewer. How this interface works on the Previewer" + 5597 " may be different from that on a real device.") 5598 const len = args.length 5599 if (typeof args[len - 1] === 'function') { 5600 args[len - 1].call(this, paramMock.businessErrorMock, Colors); 5601 } else { 5602 return new Promise((resolve, reject) => { 5603 resolve(Colors); 5604 }) 5605 } 5606 }, 5607 setBackgroundOpacity: function (...args) { 5608 console.warn("ClosedCaptionManager.setBackgroundOpacity interface mocked in the Previewer. How this interface works on the Previewer" + 5609 " may be different from that on a real device.") 5610 const len = args.length 5611 if (typeof args[len - 1] === 'function') { 5612 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5613 } else { 5614 return new Promise((resolve, reject) => { 5615 resolve(paramMock.paramNumberMock); 5616 }) 5617 } 5618 }, 5619 getBackgroundOpacity: function (...args) { 5620 console.warn("ClosedCaptionManager.getBackgroundOpacity interface mocked in the Previewer. How this interface works on the Previewer" + 5621 " may be different from that on a real device.") 5622 const len = args.length 5623 if (typeof args[len - 1] === 'function') { 5624 args[len - 1].call(this, paramMock.businessErrorMock, Opacities); 5625 } else { 5626 return new Promise((resolve, reject) => { 5627 resolve(Opacities); 5628 }) 5629 } 5630 }, 5631 setFontEdgeEffect: function (...args) { 5632 console.warn("ClosedCaptionManager.setFontEdgeEffect interface mocked in the Previewer. How this interface works on the Previewer" + 5633 " may be different from that on a real device.") 5634 const len = args.length 5635 if (typeof args[len - 1] === 'function') { 5636 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5637 } else { 5638 return new Promise((resolve, reject) => { 5639 resolve(paramMock.paramNumberMock); 5640 }) 5641 } 5642 }, 5643 getFontEdgeEffect: function (...args) { 5644 console.warn("ClosedCaptionManager.getFontEdgeEffect interface mocked in the Previewer. How this interface works on the Previewer" + 5645 " may be different from that on a real device.") 5646 const len = args.length 5647 if (typeof args[len - 1] === 'function') { 5648 args[len - 1].call(this, paramMock.businessErrorMock, FontEdgeEffects); 5649 } else { 5650 return new Promise((resolve, reject) => { 5651 resolve(FontEdgeEffects); 5652 }) 5653 } 5654 }, 5655 setFontEdgeColor: function (...args) { 5656 console.warn("ClosedCaptionManager.setFontEdgeColor interface mocked in the Previewer. How this interface works on the Previewer" + 5657 " may be different from that on a real device.") 5658 const len = args.length 5659 if (typeof args[len - 1] === 'function') { 5660 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock); 5661 } else { 5662 return new Promise((resolve, reject) => { 5663 resolve(paramMock.paramNumberMock); 5664 }) 5665 } 5666 }, 5667 getFontEdgeColor: function (...args) { 5668 console.warn("ClosedCaptionManager.getFontEdgeColor interface mocked in the Previewer. How this interface works on the Previewer" + 5669 " may be different from that on a real device.") 5670 const len = args.length 5671 if (typeof args[len - 1] === 'function') { 5672 args[len - 1].call(this, paramMock.businessErrorMock, Colors); 5673 } else { 5674 return new Promise((resolve, reject) => { 5675 resolve(Colors); 5676 }) 5677 } 5678 } 5679 } 5680 const DtvEventManager = { 5681 on: function (...args) { 5682 console.warn("DtvEventManager.on interface mocked in the Previewer. How this interface works on the Previewer may" + 5683 " be different from that on a real device.") 5684 }, 5685 off: function (...args) { 5686 console.warn("DtvEventManager.off interface mocked in the Previewer. How this interface works on the Previewer may" + 5687 " be different from that on a real device.") 5688 } 5689 } 5690 return result; 5691}