• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 mockTv() {
19  const SoundStereos = {
20    STEREO_STEREO: "[PC Preview] unknow STEREO_STEREO",
21    STEREO_MONO: "[PC Preview] unknow STEREO_MONO",
22    STEREO_DOUBLE_LEFT: "[PC Preview] unknow STEREO_DOUBLE_LEFT",
23    STEREO_DOUBLE_RIGHT: "[PC Preview] unknow STEREO_DOUBLE_RIGHT",
24    STEREO_EXCHANGE: "[PC Preview] unknow STEREO_EXCHANGE",
25    STEREO_ONLY_RIGHT: "[PC Preview] unknow STEREO_ONLY_RIGHT",
26    STEREO_ONLY_LEFT: "[PC Preview] unknow STEREO_ONLY_LEFT",
27    STEREO_MUTED: "[PC Preview] unknow STEREO_MUTED"
28  }
29  const SoundSpdifs = {
30    SPDIF_PCM: "[PC Preview] unknow SPDIF_PCM",
31    SPDIF_RAW: "[PC Preview] unknow SPDIF_RAW",
32    SPDIF_AUTO: "[PC Preview] unknow SPDIF_AUTO"
33  }
34  const SoundArcModes = {
35    ARC_AUDIO_MODE_LPCM: "[PC Preview] unknow ARC_AUDIO_MODE_LPCM",
36    ARC_AUDIO_MODE_RAW: "[PC Preview] unknow ARC_AUDIO_MODE_RAW",
37    ARC_AUDIO_MODE_LEGACY: "[PC Preview] unknow ARC_AUDIO_MODE_LEGACY",
38    ARC_AUDIO_MODE_AUTO: "[PC Preview] unknow ARC_AUDIO_MODE_AUTO"
39  }
40  const AudioStreamInfo = {
41    type: "[PC Preview] unknow type",
42    value: "[PC Preview] unknow value"
43  }
44  const AudioGainAttr = {
45    isLinearMode: "[PC Preview] unknow isLinearMode",
46    gain: "[PC Preview] unknow gain"
47  }
48  const HistenSoundModes = {
49    HISTEN_SNDMODE_MUSIC: "[PC Preview] unknow HISTEN_SNDMODE_MUSIC",
50    HISTEN_SNDMODE_MOVIE: "[PC Preview] unknow HISTEN_SNDMODE_MOVIE",
51    HISTEN_SNDMODE_STANDARD: "[PC Preview] unknow HISTEN_SNDMODE_STANDARD",
52    HISTEN_SNDMODE_SPORTS: "[PC Preview] unknow HISTEN_SNDMODE_SPORTS",
53    HISTEN_SNDMODE_NEWS: "[PC Preview] unknow HISTEN_SNDMODE_NEWS",
54    HISTEN_SNDMODE_GAME: "[PC Preview] unknow HISTEN_SNDMODE_GAME",
55    HISTEN_SNDMODE_AUTO: "[PC Preview] unknow HISTEN_SNDMODE_AUTO",
56    HISTEN_SNDMODE_DEVIALET: "[PC Preview] unknow HISTEN_SNDMODE_DEVIALET",
57    HISTEN_SNDMODE_USER: "[PC Preview] unknow HISTEN_SNDMODE_USER"
58  }
59  const SoundFields = {
60    SNDFIELD_DESKTOP: "[PC Preview] unknow SNDFIELD_DESKTOP",
61    SNDFIELD_HANG: "[PC Preview] unknow SNDFIELD_HANG"
62  }
63  const AudioOutDevices = {
64    DEVICE_NONE: "[PC Preview] unknow DEVICE_NONE",
65    DEVICE_OUT_SPEAKER: "[PC Preview] unknow DEVICE_OUT_SPEAKER",
66    DEVICE_OUT_SPDIF: "[PC Preview] unknow DEVICE_OUT_SPDIF",
67    DEVICE_OUT_HDMI_ARC: "[PC Preview] unknow DEVICE_OUT_HDMI_ARC",
68    DEVICE_OUT_BLUETOOTH_A2DP: "[PC Preview] unknow DEVICE_OUT_BLUETOOTH_A2DP",
69    DEVICE_OUT_USB_DEVICE: "[PC Preview] unknow DEVICE_OUT_USB_DEVICE",
70    DEVICE_OUT_WIFI_SPEAKER: "[PC Preview] unknow DEVICE_OUT_WIFI_SPEAKER"
71  }
72  const SourceIndices = {
73    SOURCE_ATV: "[PC Preview] unknow SOURCE_ATV",
74    SOURCE_DVBC: "[PC Preview] unknow SOURCE_DVBC",
75    SOURCE_DTMB: "[PC Preview] unknow SOURCE_DTMB",
76    SOURCE_CVBS1: "[PC Preview] unknow SOURCE_CVBS1",
77    SOURCE_CVBS2: "[PC Preview] unknow SOURCE_CVBS2",
78    SOURCE_CVBS3: "[PC Preview] unknow SOURCE_CVBS3",
79    SOURCE_VGA: "[PC Preview] unknow SOURCE_VGA",
80    SOURCE_YPBPR1: "[PC Preview] unknow SOURCE_YPBPR1",
81    SOURCE_YPBPR2: "[PC Preview] unknow SOURCE_YPBPR2",
82    SOURCE_HDMI1: "[PC Preview] unknow SOURCE_HDMI1",
83    SOURCE_HDMI2: "[PC Preview] unknow SOURCE_HDMI2",
84    SOURCE_HDMI3: "[PC Preview] unknow SOURCE_HDMI3",
85    SOURCE_HDMI4: "[PC Preview] unknow SOURCE_HDMI4",
86    SOURCE_MEDIA: "[PC Preview] unknow SOURCE_MEDIA",
87    SOURCE_MEDIA2: "[PC Preview] unknow SOURCE_MEDIA2",
88    SOURCE_SCART1: "[PC Preview] unknow SOURCE_SCART1",
89    SOURCE_SCART2: "[PC Preview] unknow SOURCE_SCART2",
90    SOURCE_AUTO: "[PC Preview] unknow SOURCE_AUTO",
91    SOURCE_DVBT: "[PC Preview] unknow SOURCE_DVBT",
92    SOURCE_ATSC: "[PC Preview] unknow SOURCE_ATSC",
93    SOURCE_DVBS: "[PC Preview] unknow SOURCE_DVBS",
94    SOURCE_ISDBT: "[PC Preview] unknow SOURCE_ISDBT",
95    SOURCE_BUTT: "[PC Preview] unknow SOURCE_BUTT"
96  }
97  const TimingInfo = {
98    width: "[PC Preview] unknow width",
99    height: "[PC Preview] unknow height",
100    frame: "[PC Preview] unknow frame",
101    isInterlace: "[PC Preview] unknow isInterlace",
102    hdmiFmt: "[PC Preview] unknow hdmiFmt",
103    threeDimFmt: "[PC Preview] unknow threeDimFmt",
104    colorSpace: "[PC Preview] unknow colorSpace",
105    isMhl: "[PC Preview] unknow isMhl"
106  }
107  const HdmiCecDeviceInfo = {
108    hdmiDevPort: "[PC Preview] unknow hdmiDevPort",
109    logicAddr: "[PC Preview] unknow logicAddr",
110    devVendId: "[PC Preview] unknow devVendId",
111    osdName: "[PC Preview] unknow osdName"
112  }
113  const PictureClrtmps = {
114    CLRTMP_NATURE: "[PC Preview] unknow CLRTMP_NATURE",
115    CLRTMP_COOL: "[PC Preview] unknow CLRTMP_COOL",
116    CLRTMP_WARM: "[PC Preview] unknow CLRTMP_WARM",
117    CLRTMP_USER: "[PC Preview] unknow CLRTMP_USER",
118    CLRTMP_TOCOOL: "[PC Preview] unknow CLRTMP_TOCOOL",
119    CLRTMP_TOWARM: "[PC Preview] unknow CLRTMP_TOWARM",
120    CLRTMP_BUTT: "[PC Preview] unknow CLRTMP_BUTT"
121  }
122  const PictureLevels = {
123    LEVEL_OFF: "[PC Preview] unknow LEVEL_OFF",
124    LEVEL_LOW: "[PC Preview] unknow LEVEL_LOW",
125    LEVEL_MIDDLE: "[PC Preview] unknow LEVEL_MIDDLE",
126    LEVEL_HIGH: "[PC Preview] unknow LEVEL_HIGH",
127    LEVEL_AUTO: "[PC Preview] unknow LEVEL_AUTO"
128  }
129  const PictureAspects = {
130    ASPECT_16_9: "[PC Preview] unknow ASPECT_16_9",
131    ASPECT_14_9: "[PC Preview] unknow ASPECT_14_9",
132    ASPECT_4_3: "[PC Preview] unknow ASPECT_4_3",
133    ASPECT_FULL: "[PC Preview] unknow ASPECT_FULL",
134    ASPECT_POINT2POINT: "[PC Preview] unknow ASPECT_POINT2POINT",
135    ASPECT_AUTO: "[PC Preview] unknow ASPECT_AUTO",
136    ASPECT_SUBTITLE: "[PC Preview] unknow ASPECT_SUBTITLE",
137    ASPECT_PERSON: "[PC Preview] unknow ASPECT_PERSON",
138    ASPECT_CINEMA: "[PC Preview] unknow ASPECT_CINEMA",
139    ASPECT_PANORAMA: "[PC Preview] unknow ASPECT_PANORAMA",
140    ASPECT_ZOOM: "[PC Preview] unknow ASPECT_ZOOM",
141    ASPECT_ZOOM1: "[PC Preview] unknow ASPECT_ZOOM1",
142    ASPECT_ZOOM2: "[PC Preview] unknow ASPECT_ZOOM2",
143    ASPECT_TRUTH: "[PC Preview] unknow ASPECT_TRUTH",
144    ASPECT_21_9: "[PC Preview] unknow ASPECT_21_9"
145  }
146  const PictureModes = {
147    PICMODE_VIVID: "[PC Preview] unknow PICMODE_VIVID",
148    PICMODE_STANDARD: "[PC Preview] unknow PICMODE_STANDARD",
149    PICMODE_SOFTNESS: "[PC Preview] unknow PICMODE_SOFTNESS",
150    PICMODE_MOVIE: "[PC Preview] unknow PICMODE_MOVIE",
151    PICMODE_SPORTS: "[PC Preview] unknow PICMODE_SPORTS",
152    PICMODE_KID: "[PC Preview] unknow PICMODE_KID",
153    PICMODE_GAME: "[PC Preview] unknow PICMODE_GAME",
154    PICMODE_PICTURE: "[PC Preview] unknow PICMODE_PICTURE",
155    PICMODE_USER: "[PC Preview] unknow PICMODE_USER",
156    PICMODE_AUTO: "[PC Preview] unknow PICMODE_AUTO",
157    PICMODE_NATURAL: "[PC Preview] unknow PICMODE_NATURAL",
158    PICMODE_MASTER: "[PC Preview] unknow PICMODE_MASTER",
159    PICMODE_DYNAMIC: "[PC Preview] unknow PICMODE_DYNAMIC"
160  }
161  const HdmiRanges = {
162    HDMI_RANGE_AUTO: "[PC Preview] unknow HDMI_RANGE_AUTO",
163    HDMI_RANGE_COMPLETE: "[PC Preview] unknow HDMI_RANGE_COMPLETE",
164    HDMI_RANGE_LIMIT: "[PC Preview] unknow HDMI_RANGE_LIMIT"
165  }
166  const ColorGamuts = {
167    COLOR_GAMUT_AUTO: "[PC Preview] unknow COLOR_GAMUT_AUTO",
168    COLOR_GAMUT_BT2020: "[PC Preview] unknow COLOR_GAMUT_BT2020",
169    COLOR_GAMUT_P3: "[PC Preview] unknow COLOR_GAMUT_P3",
170    COLOR_GAMUT_ADOBERGB: "[PC Preview] unknow COLOR_GAMUT_ADOBERGB",
171    COLOR_GAMUT_BT709: "[PC Preview] unknow COLOR_GAMUT_BT709",
172    COLOR_GAMUT_BT601_EBU: "[PC Preview] unknow COLOR_GAMUT_BT601_EBU",
173    COLOR_GAMUT_BT601_SMPTE: "[PC Preview] unknow COLOR_GAMUT_BT601_SMPTE",
174    COLOR_GAMUT_NATIVE: "[PC Preview] unknow COLOR_GAMUT_NATIVE"
175  }
176  const WhitePoints = {
177    WHITE_POINT_AUTO: "[PC Preview] unknow WHITE_POINT_AUTO",
178    WHITE_POINT_D50: "[PC Preview] unknow WHITE_POINT_D50",
179    WHITE_POINT_D60: "[PC Preview] unknow WHITE_POINT_D60",
180    WHITE_POINT_D63: "[PC Preview] unknow WHITE_POINT_D63",
181    WHITE_POINT_D65: "[PC Preview] unknow WHITE_POINT_D65",
182    WHITE_POINT_D93: "[PC Preview] unknow WHITE_POINT_D93",
183    WHITE_POINT_NATIVE: "[PC Preview] unknow WHITE_POINT_NATIVE"
184  }
185  const Oetfs = {
186    OETF_AUTO: "[PC Preview] unknow OETF_AUTO",
187    OETF_BT709: "[PC Preview] unknow OETF_BT709",
188    OETF_SRGB: "[PC Preview] unknow OETF_SRGB",
189    OETF_22: "[PC Preview] unknow OETF_22",
190    OETF_24: "[PC Preview] unknow OETF_24",
191    OETF_26: "[PC Preview] unknow OETF_26",
192    OETF_BT2084: "[PC Preview] unknow OETF_BT2084",
193    OETF_HLG: "[PC Preview] unknow OETF_HLG",
194    OETF_NATIVE: "[PC Preview] unknow OETF_NATIVE"
195  }
196  const ColorManagerModes = {
197    COLOR_MANAGER_AUTO: "[PC Preview] unknow COLOR_MANAGER_AUTO",
198    COLOR_MANAGER_HDR10: "[PC Preview] unknow COLOR_MANAGER_HDR10",
199    COLOR_MANAGER_HLG: "[PC Preview] unknow COLOR_MANAGER_HLG",
200    COLOR_MANAGER_HDTV: "[PC Preview] unknow COLOR_MANAGER_HDTV",
201    COLOR_MANAGER_SRGB: "[PC Preview] unknow COLOR_MANAGER_SRGB",
202    COLOR_MANAGER_P3_DCI: "[PC Preview] unknow COLOR_MANAGER_P3_DCI",
203    COLOR_MANAGER_P3_D65: "[PC Preview] unknow COLOR_MANAGER_P3_D65",
204    COLOR_MANAGER_P3_D50: "[PC Preview] unknow COLOR_MANAGER_P3_D50",
205    COLOR_MANAGER_ADOBERGB: "[PC Preview] unknow COLOR_MANAGER_ADOBERGB",
206    COLOR_MANAGER_EBU: "[PC Preview] unknow COLOR_MANAGER_EBU",
207    COLOR_MANAGER_SMPTE_C: "[PC Preview] unknow COLOR_MANAGER_SMPTE_C",
208    COLOR_MANAGER_USER1: "[PC Preview] unknow COLOR_MANAGER_USER1",
209    COLOR_MANAGER_USER2: "[PC Preview] unknow COLOR_MANAGER_USER2",
210    COLOR_MANAGER_P3_PG: "[PC Preview] unknow COLOR_MANAGER_P3_PG",
211    COLOR_MANAGER_CUVA: "[PC Preview] unknow COLOR_MANAGER_CUVA"
212  }
213  const PictureUserHdrTypes = {
214    USER_HDR_TYPE_AUTO: "[PC Preview] unknow USER_HDR_TYPE_AUTO",
215    USER_HDR_TYPE_CUVA: "[PC Preview] unknow USER_HDR_TYPE_CUVA",
216    USER_HDR_TYPE_HDR10: "[PC Preview] unknow USER_HDR_TYPE_HDR10",
217    USER_HDR_TYPE_HLG: "[PC Preview] unknow USER_HDR_TYPE_HLG",
218    USER_HDR_TYPE_OFF: "[PC Preview] unknow USER_HDR_TYPE_OFF",
219    USER_HDR_TYPE_BUTT: "[PC Preview] unknow USER_HDR_TYPE_BUTT"
220  }
221  const CommonLevels = {
222    HI_MW_LEVEL_OFF: "[PC Preview] unknow HI_MW_LEVEL_OFF",
223    HI_MW_LEVEL_LOW: "[PC Preview] unknow HI_MW_LEVEL_LOW",
224    HI_MW_LEVEL_MID: "[PC Preview] unknow HI_MW_LEVEL_MID",
225    HI_MW_LEVEL_HIGH: "[PC Preview] unknow HI_MW_LEVEL_HIGH",
226    HI_MW_LEVEL_AUTO: "[PC Preview] unknow HI_MW_LEVEL_AUTO"
227  }
228  const PictureColorTempModes = {
229    COLOR_TEMP_DEFAULT: "[PC Preview] unknow COLOR_TEMP_DEFAULT",
230    COLOR_TEMP_NATURAL_TONE: "[PC Preview] unknow COLOR_TEMP_NATURAL_TONE",
231    COLOR_TEMP_EYE_PROTECT: "[PC Preview] unknow COLOR_TEMP_EYE_PROTECT"
232  }
233  const RectInfo = {
234    x: "[PC Preview] unknow x",
235    y: "[PC Preview] unknow y",
236    w: "[PC Preview] unknow w",
237    h: "[PC Preview] unknow h"
238  }
239  const SignalStates = {
240    SIGSTAT_SUPPORT: "[PC Preview] unknow SIGSTAT_SUPPORT",
241    SIGSTAT_NOSIGNAL: "[PC Preview] unknow SIGSTAT_NOSIGNAL",
242    SIGSTAT_UNSUPPORT: "[PC Preview] unknow SIGSTAT_UNSUPPORT",
243    SIGSTAT_UNSTABLE: "[PC Preview] unknow SIGSTAT_UNSTABLE"
244  }
245  const HdmirxEdidTypes = {
246    HDMIRX_EDID_TYPE_2_0: "[PC Preview] unknow HDMIRX_EDID_TYPE_2_0",
247    HDMIRX_EDID_TYPE_1_4: "[PC Preview] unknow HDMIRX_EDID_TYPE_1_4",
248    HDMIRX_EDID_TYPE_AUTO: "[PC Preview] unknow HDMIRX_EDID_TYPE_AUTO"
249  }
250  const Wakeup = {
251    mode: "[PC Preview] unknow mode",
252    src: "[PC Preview] unknow src",
253    value: "[PC Preview] unknow value"
254  }
255  const result = {
256    getAudioManager: function () {
257      console.warn("tv.getAudioManager interface mocked in the Previewer. How this interface works on the Previewer" +
258        " may be different from that on a real device.")
259      return AudioManager;
260    },
261    getEventManager: function () {
262      console.warn("tv.getEventManager interface mocked in the Previewer. How this interface works on the Previewer" +
263        " may be different from that on a real device.")
264      return EventManager;
265    },
266    getHdmiCecManager: function () {
267      console.warn("tv.getHdmiCecManager interface mocked in the Previewer. How this interface works on the Previewer" +
268        " may be different from that on a real device.")
269      return HdmiCecManager;
270    },
271    getPictureManager: function () {
272      console.warn("tv.getPictureManager interface mocked in the Previewer. How this interface works on the Previewer" +
273        " may be different from that on a real device.")
274      return PictureManager;
275    },
276    getSourceManager: function () {
277      console.warn("tv.getSourceManager interface mocked in the Previewer. How this interface works on the Previewer" +
278        " may be different from that on a real device.")
279      return SourceManager;
280    },
281    getSystemSetting: function () {
282      console.warn("tv.getSystemSetting interface mocked in the Previewer. How this interface works on the Previewer" +
283        " may be different from that on a real device.")
284      return SystemSetting;
285    }
286  }
287  const AudioManager = {
288    getMute: function (...args) {
289      console.warn("AudioManager.getMute interface mocked in the Previewer. How this interface works on the Previewer" +
290        " may be different from that on a real device.")
291      const len = args.length
292      if (typeof args[len - 1] === 'function') {
293        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
294      } else {
295        return new Promise((resolve, reject) => {
296          resolve(paramMock.paramBooleanMock);
297        })
298      }
299    },
300    setMute: function (...args) {
301      console.warn("AudioManager.setMute interface mocked in the Previewer. How this interface works on the Previewer" +
302        " may be different from that on a real device.")
303      const len = args.length
304      if (typeof args[len - 1] === 'function') {
305        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
306      } else {
307        return new Promise((resolve, reject) => {
308          resolve(paramMock.paramNumberMock);
309        })
310      }
311    },
312    setUsrAudioMute: function (...args) {
313      console.warn("AudioManager.setUsrAudioMute interface mocked in the Previewer. How this interface works on the Previewer" +
314        " may be different from that on a real device.")
315      const len = args.length
316      if (typeof args[len - 1] === 'function') {
317        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
318      } else {
319        return new Promise((resolve, reject) => {
320          resolve(paramMock.paramNumberMock);
321        })
322      }
323    },
324    getStereoMode: function (...args) {
325      console.warn("AudioManager.getStereoMode interface mocked in the Previewer. How this interface works on the Previewer" +
326        " may be different from that on a real device.")
327      const len = args.length
328      if (typeof args[len - 1] === 'function') {
329        args[len - 1].call(this, paramMock.businessErrorMock, SoundStereos);
330      } else {
331        return new Promise((resolve, reject) => {
332          resolve(SoundStereos);
333        })
334      }
335    },
336    setStereoMode: function (...args) {
337      console.warn("AudioManager.setStereoMode interface mocked in the Previewer. How this interface works on the Previewer" +
338        " may be different from that on a real device.")
339      const len = args.length
340      if (typeof args[len - 1] === 'function') {
341        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
342      } else {
343        return new Promise((resolve, reject) => {
344          resolve(paramMock.paramNumberMock);
345        })
346      }
347    },
348    enableSpdif: function (...args) {
349      console.warn("AudioManager.enableSpdif interface mocked in the Previewer. How this interface works on the Previewer" +
350        " may be different from that on a real device.")
351      const len = args.length
352      if (typeof args[len - 1] === 'function') {
353        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
354      } else {
355        return new Promise((resolve, reject) => {
356          resolve(paramMock.paramNumberMock);
357        })
358      }
359    },
360    isSpdifEnabled: function (...args) {
361      console.warn("AudioManager.enableSpdif interface mocked in the Previewer. How this interface works on the Previewer" +
362        " may be different from that on a real device.")
363      const len = args.length
364      if (typeof args[len - 1] === 'function') {
365        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
366      } else {
367        return new Promise((resolve, reject) => {
368          resolve(paramMock.paramBooleanMock);
369        })
370      }
371    },
372    setSpdifMode: function (...args) {
373      console.warn("AudioManager.enableSpdif interface mocked in the Previewer. How this interface works on the Previewer" +
374        " may be different from that on a real device.")
375      const len = args.length
376      if (typeof args[len - 1] === 'function') {
377        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
378      } else {
379        return new Promise((resolve, reject) => {
380          resolve(paramMock.paramNumberMock);
381        })
382      }
383    },
384    getSpdifMode: function (...args) {
385      console.warn("AudioManager.getSpdifMode interface mocked in the Previewer. How this interface works on the Previewer" +
386        " may be different from that on a real device.")
387      const len = args.length
388      if (typeof args[len - 1] === 'function') {
389        args[len - 1].call(this, paramMock.businessErrorMock, SoundSpdifs);
390      } else {
391        return new Promise((resolve, reject) => {
392          resolve(SoundSpdifs);
393        })
394      }
395    },
396    enableArc: function (...args) {
397      console.warn("AudioManager.enableArc interface mocked in the Previewer. How this interface works on the Previewer" +
398        " may be different from that on a real device.")
399      const len = args.length
400      if (typeof args[len - 1] === 'function') {
401        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
402      } else {
403        return new Promise((resolve, reject) => {
404          resolve(paramMock.paramNumberMock);
405        })
406      }
407    },
408    isArcEnabled: function (...args) {
409      console.warn("AudioManager.isArcEnabled interface mocked in the Previewer. How this interface works on the Previewer" +
410        " may be different from that on a real device.")
411      const len = args.length
412      if (typeof args[len - 1] === 'function') {
413        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
414      } else {
415        return new Promise((resolve, reject) => {
416          resolve(paramMock.paramBooleanMock);
417        })
418      }
419    },
420    setArcMode: function (...args) {
421      console.warn("AudioManager.setArcMode interface mocked in the Previewer. How this interface works on the Previewer" +
422        " may be different from that on a real device.")
423      const len = args.length
424      if (typeof args[len - 1] === 'function') {
425        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
426      } else {
427        return new Promise((resolve, reject) => {
428          resolve(paramMock.paramNumberMock);
429        })
430      }
431    },
432    getArcMode: function (...args) {
433      console.warn("AudioManager.getArcMode interface mocked in the Previewer. How this interface works on the Previewer" +
434        " may be different from that on a real device.")
435      const len = args.length
436      if (typeof args[len - 1] === 'function') {
437        args[len - 1].call(this, paramMock.businessErrorMock, SoundArcModes);
438      } else {
439        return new Promise((resolve, reject) => {
440          resolve(SoundArcModes);
441        })
442      }
443    },
444    isArcSupported: function (...args) {
445      console.warn("AudioManager.isArcSupported interface mocked in the Previewer. How this interface works on the Previewer" +
446        " may be different from that on a real device.")
447      const len = args.length
448      if (typeof args[len - 1] === 'function') {
449        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
450      } else {
451        return new Promise((resolve, reject) => {
452          resolve(paramMock.paramBooleanMock);
453        })
454      }
455    },
456    setAdvancedEffectParameter: function (...args) {
457      console.warn("AudioManager.setAdvancedEffectParameter interface mocked in the Previewer. How this interface works on the Previewer" +
458        " may be different from that on a real device.")
459      const len = args.length
460      if (typeof args[len - 1] === 'function') {
461        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
462      } else {
463        return new Promise((resolve, reject) => {
464          resolve(paramMock.paramNumberMock);
465        })
466      }
467    },
468    getAdvancedEffectParameter: function (...args) {
469      console.warn("AudioManager.getAdvancedEffectParameter interface mocked in the Previewer. How this interface works on the Previewer" +
470        " may be different from that on a real device.")
471      const len = args.length
472      if (typeof args[len - 1] === 'function') {
473        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
474      } else {
475        return new Promise((resolve, reject) => {
476          resolve(paramMock.paramNumberMock);
477        })
478      }
479    },
480    getAudioStreamInfo: function (...args) {
481      console.warn("AudioManager.getAudioStreamInfo interface mocked in the Previewer. How this interface works on the Previewer" +
482        " may be different from that on a real device.")
483      const len = args.length
484      if (typeof args[len - 1] === 'function') {
485        args[len - 1].call(this, paramMock.businessErrorMock, AudioStreamInfo);
486      } else {
487        return new Promise((resolve, reject) => {
488          resolve(AudioStreamInfo);
489        })
490      }
491    },
492    setTrackWeight: function (...args) {
493      console.warn("AudioManager.getAdvancedEffectParameter interface mocked in the Previewer. How this interface works on the Previewer" +
494        " may be different from that on a real device.")
495      const len = args.length
496      if (typeof args[len - 1] === 'function') {
497        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
498      } else {
499        return new Promise((resolve, reject) => {
500          resolve(paramMock.paramNumberMock);
501        })
502      }
503    },
504    getTrackWeight: function (...args) {
505      console.warn("AudioManager.getTrackWeight interface mocked in the Previewer. How this interface works on the Previewer" +
506        " may be different from that on a real device.")
507      const len = args.length
508      if (typeof args[len - 1] === 'function') {
509        args[len - 1].call(this, paramMock.businessErrorMock, AudioGainAttr);
510      } else {
511        return new Promise((resolve, reject) => {
512          resolve(AudioGainAttr);
513        })
514      }
515    },
516    getSoundModeList: function (...args) {
517      console.warn("AudioManager.getSoundModeList interface mocked in the Previewer. How this interface works on the Previewer" +
518        " may be different from that on a real device.")
519      var histenSoundModesArray = new Array();
520      histenSoundModesArray.push(HistenSoundModes);
521      const len = args.length
522      if (typeof args[len - 1] === 'function') {
523        args[len - 1].call(this, paramMock.businessErrorMock, histenSoundModesArray);
524      } else {
525        return new Promise((resolve, reject) => {
526          resolve(histenSoundModesArray);
527        })
528      }
529    },
530    setNightMode: function (...args) {
531      console.warn("AudioManager.setNightMode interface mocked in the Previewer. How this interface works on the Previewer" +
532        " may be different from that on a real device.")
533      const len = args.length
534      if (typeof args[len - 1] === 'function') {
535        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
536      } else {
537        return new Promise((resolve, reject) => {
538          resolve(paramMock.paramNumberMock);
539        })
540      }
541    },
542    isNightModeEnabled: function (...args) {
543      console.warn("AudioManager.isNightModeEnabled interface mocked in the Previewer. How this interface works on the Previewer" +
544        " may be different from that on a real device.")
545      const len = args.length
546      if (typeof args[len - 1] === 'function') {
547        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
548      } else {
549        return new Promise((resolve, reject) => {
550          resolve(paramMock.paramBooleanMock);
551        })
552      }
553    },
554    isNightModeSupported: function (...args) {
555      console.warn("AudioManager.isNightModeSupported interface mocked in the Previewer. How this interface works on the Previewer" +
556        " may be different from that on a real device.")
557      const len = args.length
558      if (typeof args[len - 1] === 'function') {
559        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
560      } else {
561        return new Promise((resolve, reject) => {
562          resolve(paramMock.paramBooleanMock);
563        })
564      }
565    },
566    soundModeling: function (...args) {
567      console.warn("AudioManager.soundModeling interface mocked in the Previewer. How this interface works on the Previewer" +
568        " may be different from that on a real device.")
569      const len = args.length
570      if (typeof args[len - 1] === 'function') {
571        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
572      } else {
573        return new Promise((resolve, reject) => {
574          resolve(paramMock.paramNumberMock);
575        })
576      }
577    },
578    setModelType: function (...args) {
579      console.warn("AudioManager.setModelType interface mocked in the Previewer. How this interface works on the Previewer" +
580        " may be different from that on a real device.")
581      const len = args.length
582      if (typeof args[len - 1] === 'function') {
583        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
584      } else {
585        return new Promise((resolve, reject) => {
586          resolve(paramMock.paramNumberMock);
587        })
588      }
589    },
590    getModelType: function (...args) {
591      console.warn("AudioManager.getModelType interface mocked in the Previewer. How this interface works on the Previewer" +
592        " may be different from that on a real device.")
593      const len = args.length
594      if (typeof args[len - 1] === 'function') {
595        args[len - 1].call(this, paramMock.businessErrorMock, SoundFields);
596      } else {
597        return new Promise((resolve, reject) => {
598          resolve(SoundFields);
599        })
600      }
601    },
602    startMicRecorder: function (...args) {
603      console.warn("AudioManager.startMicRecorder interface mocked in the Previewer. How this interface works on the Previewer" +
604        " may be different from that on a real device.")
605      const len = args.length
606      if (typeof args[len - 1] === 'function') {
607        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
608      } else {
609        return new Promise((resolve, reject) => {
610          resolve(paramMock.paramNumberMock);
611        })
612      }
613    },
614    stopMicRecorder: function (...args) {
615      console.warn("AudioManager.stopMicRecorder interface mocked in the Previewer. How this interface works on the Previewer" +
616        " may be different from that on a real device.")
617      const len = args.length
618      if (typeof args[len - 1] === 'function') {
619        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
620      } else {
621        return new Promise((resolve, reject) => {
622          resolve(paramMock.paramNumberMock);
623        })
624      }
625    },
626    hasSoundCustomized: function (...args) {
627      console.warn("AudioManager.stopMicRecorder interface mocked in the Previewer. How this interface works on the Previewer" +
628        " may be different from that on a real device.")
629      const len = args.length
630      if (typeof args[len - 1] === 'function') {
631        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
632      } else {
633        return new Promise((resolve, reject) => {
634          resolve(paramMock.paramBooleanMock);
635        })
636      }
637    },
638    setOutDevice: function (...args) {
639      console.warn("AudioManager.setOutDevice interface mocked in the Previewer. How this interface works on the Previewer" +
640        " may be different from that on a real device.")
641      const len = args.length
642      if (typeof args[len - 1] === 'function') {
643        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
644      } else {
645        return new Promise((resolve, reject) => {
646          resolve(paramMock.paramNumberMock);
647        })
648      }
649    },
650    getOutDevice: function (...args) {
651      console.warn("AudioManager.getOutDevice interface mocked in the Previewer. How this interface works on the Previewer" +
652        " may be different from that on a real device.")
653      const len = args.length
654      if (typeof args[len - 1] === 'function') {
655        args[len - 1].call(this, paramMock.businessErrorMock, AudioOutDevices);
656      } else {
657        return new Promise((resolve, reject) => {
658          resolve(AudioOutDevices);
659        })
660      }
661    },
662    getHangMode: function (...args) {
663      console.warn("AudioManager.getHangMode interface mocked in the Previewer. How this interface works on the Previewer" +
664        " may be different from that on a real device.")
665      const len = args.length
666      if (typeof args[len - 1] === 'function') {
667        args[len - 1].call(this, paramMock.businessErrorMock, SoundFields);
668      } else {
669        return new Promise((resolve, reject) => {
670          resolve(SoundFields);
671        })
672      }
673    },
674    setHangMode: function (...args) {
675      console.warn("AudioManager.setHangMode interface mocked in the Previewer. How this interface works on the Previewer" +
676        " may be different from that on a real device.")
677      const len = args.length
678      if (typeof args[len - 1] === 'function') {
679        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
680      } else {
681        return new Promise((resolve, reject) => {
682          resolve(paramMock.paramNumberMock);
683        })
684      }
685    },
686    isMicDamaged: function (...args) {
687      console.warn("AudioManager.isMicDamaged interface mocked in the Previewer. How this interface works on the Previewer" +
688        " may be different from that on a real device.")
689      const len = args.length
690      if (typeof args[len - 1] === 'function') {
691        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
692      } else {
693        return new Promise((resolve, reject) => {
694          resolve(paramMock.paramBooleanMock);
695        })
696      }
697    },
698    isVolAdjustSupported: function (...args) {
699      console.warn("AudioManager.isVolAdjustSupported interface mocked in the Previewer. How this interface works on the Previewer" +
700        " may be different from that on a real device.")
701      const len = args.length
702      if (typeof args[len - 1] === 'function') {
703        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
704      } else {
705        return new Promise((resolve, reject) => {
706          resolve(paramMock.paramBooleanMock);
707        })
708      }
709    },
710    recoveryOutDevice: function (...args) {
711      console.warn("AudioManager.recoveryOutDevice interface mocked in the Previewer. How this interface works on the Previewer" +
712        " may be different from that on a real device.")
713      const len = args.length
714      if (typeof args[len - 1] === 'function') {
715        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
716      } else {
717        return new Promise((resolve, reject) => {
718          resolve(paramMock.paramNumberMock);
719        })
720      }
721    },
722    setVolumeByPid: function (...args) {
723      console.warn("AudioManager.setVolumeByPid interface mocked in the Previewer. How this interface works on the Previewer" +
724        " may be different from that on a real device.")
725      const len = args.length
726      if (typeof args[len - 1] === 'function') {
727        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
728      } else {
729        return new Promise((resolve, reject) => {
730          resolve(paramMock.paramNumberMock);
731        })
732      }
733    },
734    getHistenGeqGains: function (...args) {
735      console.warn("AudioManager.getHistenGeqGains interface mocked in the Previewer. How this interface works on the Previewer" +
736        " may be different from that on a real device.")
737      var numberArray = new Array();
738      numberArray.push(paramMock.paramNumberMock);
739      const len = args.length
740      if (typeof args[len - 1] === 'function') {
741        args[len - 1].call(this, paramMock.businessErrorMock, numberArray);
742      } else {
743        return new Promise((resolve, reject) => {
744          resolve(numberArray);
745        })
746      }
747    },
748    setHistenGeqGain: function (...args) {
749      console.warn("AudioManager.setHistenGeqGain interface mocked in the Previewer. How this interface works on the Previewer" +
750        " may be different from that on a real device.")
751      const len = args.length
752      if (typeof args[len - 1] === 'function') {
753        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
754      } else {
755        return new Promise((resolve, reject) => {
756          resolve(paramMock.paramNumberMock);
757        })
758      }
759    },
760    getHistenVocGain: function (...args) {
761      console.warn("AudioManager.getHistenVocGain interface mocked in the Previewer. How this interface works on the Previewer" +
762        " may be different from that on a real device.")
763      const len = args.length
764      if (typeof args[len - 1] === 'function') {
765        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
766      } else {
767        return new Promise((resolve, reject) => {
768          resolve(paramMock.paramNumberMock);
769        })
770      }
771    },
772    setHistenVocGain: function (...args) {
773      console.warn("AudioManager.setHistenVocGain interface mocked in the Previewer. How this interface works on the Previewer" +
774        " may be different from that on a real device.")
775      const len = args.length
776      if (typeof args[len - 1] === 'function') {
777        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
778      } else {
779        return new Promise((resolve, reject) => {
780          resolve(paramMock.paramNumberMock);
781        })
782      }
783    },
784    getHistenVertSurroundGain: function (...args) {
785      console.warn("AudioManager.getHistenVertSurroundGain interface mocked in the Previewer. How this interface works on the Previewer" +
786        " may be different from that on a real device.")
787      const len = args.length
788      if (typeof args[len - 1] === 'function') {
789        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
790      } else {
791        return new Promise((resolve, reject) => {
792          resolve(paramMock.paramNumberMock);
793        })
794      }
795    },
796    setHistenVertSurroundGain: function (...args) {
797      console.warn("AudioManager.setHistenVertSurroundGain interface mocked in the Previewer. How this interface works on the Previewer" +
798        " may be different from that on a real device.")
799      const len = args.length
800      if (typeof args[len - 1] === 'function') {
801        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
802      } else {
803        return new Promise((resolve, reject) => {
804          resolve(paramMock.paramNumberMock);
805        })
806      }
807    },
808    getHistenHorzSurroundGain: function (...args) {
809      console.warn("AudioManager.getHistenHorzSurroundGain interface mocked in the Previewer. How this interface works on the Previewer" +
810        " may be different from that on a real device.")
811      const len = args.length
812      if (typeof args[len - 1] === 'function') {
813        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
814      } else {
815        return new Promise((resolve, reject) => {
816          resolve(paramMock.paramNumberMock);
817        })
818      }
819    },
820    setHistenHorzSurroundGain: function (...args) {
821      console.warn("AudioManager.setHistenHorzSurroundGain interface mocked in the Previewer. How this interface works on the Previewer" +
822        " may be different from that on a real device.")
823      const len = args.length
824      if (typeof args[len - 1] === 'function') {
825        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
826      } else {
827        return new Promise((resolve, reject) => {
828          resolve(paramMock.paramNumberMock);
829        })
830      }
831    },
832    getHistenCustomMode: function (...args) {
833      console.warn("AudioManager.getHistenCustomMode interface mocked in the Previewer. How this interface works on the Previewer" +
834        " may be different from that on a real device.")
835      const len = args.length
836      if (typeof args[len - 1] === 'function') {
837        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
838      } else {
839        return new Promise((resolve, reject) => {
840          resolve(paramMock.paramNumberMock);
841        })
842      }
843    },
844    setHistenCustomMode: function (...args) {
845      console.warn("AudioManager.setHistenCustomMode interface mocked in the Previewer. How this interface works on the Previewer" +
846        " may be different from that on a real device.")
847      const len = args.length
848      if (typeof args[len - 1] === 'function') {
849        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
850      } else {
851        return new Promise((resolve, reject) => {
852          resolve(paramMock.paramNumberMock);
853        })
854      }
855    },
856    resetHistenCustomMode: function (...args) {
857      console.warn("AudioManager.resetHistenCustomMode interface mocked in the Previewer. How this interface works on the Previewer" +
858        " may be different from that on a real device.")
859      const len = args.length
860      if (typeof args[len - 1] === 'function') {
861        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
862      } else {
863        return new Promise((resolve, reject) => {
864          resolve(paramMock.paramNumberMock);
865        })
866      }
867    },
868    getHistenCustomModeList: function (...args) {
869      console.warn("AudioManager.getHistenCustomModeList interface mocked in the Previewer. How this interface works on the Previewer" +
870        " may be different from that on a real device.")
871      var numberArray = new Array();
872      numberArray.push(paramMock.paramNumberMock);
873      const len = args.length
874      if (typeof args[len - 1] === 'function') {
875        args[len - 1].call(this, paramMock.businessErrorMock, numberArray);
876      } else {
877        return new Promise((resolve, reject) => {
878          resolve(numberArray);
879        })
880      }
881    },
882    enableHistenVoip: function (...args) {
883      console.warn("AudioManager.enableHistenVoip interface mocked in the Previewer. How this interface works on the Previewer" +
884        " may be different from that on a real device.")
885      const len = args.length
886      if (typeof args[len - 1] === 'function') {
887        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
888      } else {
889        return new Promise((resolve, reject) => {
890          resolve(paramMock.paramNumberMock);
891        })
892      }
893    },
894    isHistenVoipEnabled: function (...args) {
895      console.warn("AudioManager.isHistenVoipEnabled interface mocked in the Previewer. How this interface works on the Previewer" +
896        " may be different from that on a real device.")
897      const len = args.length
898      if (typeof args[len - 1] === 'function') {
899        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
900      } else {
901        return new Promise((resolve, reject) => {
902          resolve(paramMock.paramBooleanMock);
903        })
904      }
905    }
906  }
907  const EventManager = {
908    on: function (...args) {
909      console.warn("EventManager.on interface mocked in the Previewer. How this interface works on the Previewer may" +
910        " be different from that on a real device.")
911    },
912    off: function (...args) {
913      console.warn("EventManager.off interface mocked in the Previewer. How this interface works on the Previewer may" +
914        " be different from that on a real device.")
915    }
916  }
917  const HdmiCecManager = {
918    getUiStatus: function (...args) {
919      console.warn("HdmiCecManager.getUiStatus interface mocked in the Previewer. How this interface works on the Previewer" +
920        " may be different from that on a real device.")
921      const len = args.length
922      if (typeof args[len - 1] === 'function') {
923        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
924      } else {
925        return new Promise((resolve, reject) => {
926          resolve(paramMock.paramBooleanMock);
927        })
928      }
929    },
930    setUiStatus: function (...args) {
931      console.warn("HdmiCecManager.setUiStatus interface mocked in the Previewer. How this interface works on the Previewer" +
932        " may be different from that on a real device.")
933      const len = args.length
934      if (typeof args[len - 1] === 'function') {
935        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
936      } else {
937        return new Promise((resolve, reject) => {
938          resolve(paramMock.paramNumberMock);
939        })
940      }
941    },
942    getDeviceList: function (...args) {
943      console.warn("HdmiCecManager.getDeviceList interface mocked in the Previewer. How this interface works on the Previewer" +
944        " may be different from that on a real device.")
945      const len = args.length
946      if (typeof args[len - 1] === 'function') {
947        args[len - 1].call(this, paramMock.businessErrorMock, HdmiCecDeviceInfo);
948      } else {
949        return new Promise((resolve, reject) => {
950          resolve(HdmiCecDeviceInfo);
951        })
952      }
953    },
954    changeSourceToTv: function (...args) {
955      console.warn("HdmiCecManager.changeSourceToTv interface mocked in the Previewer. How this interface works on the Previewer" +
956        " may be different from that on a real device.")
957      const len = args.length
958      if (typeof args[len - 1] === 'function') {
959        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
960      } else {
961        return new Promise((resolve, reject) => {
962          resolve(paramMock.paramNumberMock);
963        })
964      }
965    },
966    sendMenuCommand: function (...args) {
967      console.warn("HdmiCecManager.sendMenuCommand interface mocked in the Previewer. How this interface works on the Previewer" +
968        " may be different from that on a real device.")
969      const len = args.length
970      if (typeof args[len - 1] === 'function') {
971        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
972      } else {
973        return new Promise((resolve, reject) => {
974          resolve(paramMock.paramNumberMock);
975        })
976      }
977    }
978  }
979  const PictureManager = {
980    enableAutoPictureMode: function (...args) {
981      console.warn("PictureManager.enableAutoPictureMode interface mocked in the Previewer. How this interface works on the Previewer" +
982        " may be different from that on a real device.")
983      const len = args.length
984      if (typeof args[len - 1] === 'function') {
985        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
986      } else {
987        return new Promise((resolve, reject) => {
988          resolve(paramMock.paramNumberMock);
989        })
990      }
991    },
992    setPictureMode: function (...args) {
993      console.warn("PictureManager.setPictureMode interface mocked in the Previewer. How this interface works on the Previewer" +
994        " may be different from that on a real device.")
995      const len = args.length
996      if (typeof args[len - 1] === 'function') {
997        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
998      } else {
999        return new Promise((resolve, reject) => {
1000          resolve(paramMock.paramNumberMock);
1001        })
1002      }
1003    },
1004    setBrightness: function (...args) {
1005      console.warn("PictureManager.setBrightness interface mocked in the Previewer. How this interface works on the Previewer" +
1006        " may be different from that on a real device.")
1007      const len = args.length
1008      if (typeof args[len - 1] === 'function') {
1009        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1010      } else {
1011        return new Promise((resolve, reject) => {
1012          resolve(paramMock.paramNumberMock);
1013        })
1014      }
1015    },
1016    getBrightness: function (...args) {
1017      console.warn("PictureManager.getBrightness interface mocked in the Previewer. How this interface works on the Previewer" +
1018        " may be different from that on a real device.")
1019      const len = args.length
1020      if (typeof args[len - 1] === 'function') {
1021        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1022      } else {
1023        return new Promise((resolve, reject) => {
1024          resolve(paramMock.paramNumberMock);
1025        })
1026      }
1027    },
1028    setContrast: function (...args) {
1029      console.warn("PictureManager.setContrast interface mocked in the Previewer. How this interface works on the Previewer" +
1030        " may be different from that on a real device.")
1031      const len = args.length
1032      if (typeof args[len - 1] === 'function') {
1033        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1034      } else {
1035        return new Promise((resolve, reject) => {
1036          resolve(paramMock.paramNumberMock);
1037        })
1038      }
1039    },
1040    getContrast: function (...args) {
1041      console.warn("PictureManager.getContrast interface mocked in the Previewer. How this interface works on the Previewer" +
1042        " may be different from that on a real device.")
1043      const len = args.length
1044      if (typeof args[len - 1] === 'function') {
1045        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1046      } else {
1047        return new Promise((resolve, reject) => {
1048          resolve(paramMock.paramNumberMock);
1049        })
1050      }
1051    },
1052    setSaturation: function (...args) {
1053      console.warn("PictureManager.setSaturation interface mocked in the Previewer. How this interface works on the Previewer" +
1054        " may be different from that on a real device.")
1055      const len = args.length
1056      if (typeof args[len - 1] === 'function') {
1057        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1058      } else {
1059        return new Promise((resolve, reject) => {
1060          resolve(paramMock.paramNumberMock);
1061        })
1062      }
1063    },
1064    getSaturation: function (...args) {
1065      console.warn("PictureManager.getSaturation interface mocked in the Previewer. How this interface works on the Previewer" +
1066        " may be different from that on a real device.")
1067      const len = args.length
1068      if (typeof args[len - 1] === 'function') {
1069        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1070      } else {
1071        return new Promise((resolve, reject) => {
1072          resolve(paramMock.paramNumberMock);
1073        })
1074      }
1075    },
1076    setSharpness: function (...args) {
1077      console.warn("PictureManager.setSharpness interface mocked in the Previewer. How this interface works on the Previewer" +
1078        " may be different from that on a real device.")
1079      const len = args.length
1080      if (typeof args[len - 1] === 'function') {
1081        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1082      } else {
1083        return new Promise((resolve, reject) => {
1084          resolve(paramMock.paramNumberMock);
1085        })
1086      }
1087    },
1088    getSharpness: function (...args) {
1089      console.warn("PictureManager.getSharpness interface mocked in the Previewer. How this interface works on the Previewer" +
1090        " may be different from that on a real device.")
1091      const len = args.length
1092      if (typeof args[len - 1] === 'function') {
1093        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1094      } else {
1095        return new Promise((resolve, reject) => {
1096          resolve(paramMock.paramNumberMock);
1097        })
1098      }
1099    },
1100    setHue: function (...args) {
1101      console.warn("PictureManager.setHue interface mocked in the Previewer. How this interface works on the Previewer" +
1102        " may be different from that on a real device.")
1103      const len = args.length
1104      if (typeof args[len - 1] === 'function') {
1105        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1106      } else {
1107        return new Promise((resolve, reject) => {
1108          resolve(paramMock.paramNumberMock);
1109        })
1110      }
1111    },
1112    getHue: function (...args) {
1113      console.warn("PictureManager.getHue interface mocked in the Previewer. How this interface works on the Previewer" +
1114        " may be different from that on a real device.")
1115      const len = args.length
1116      if (typeof args[len - 1] === 'function') {
1117        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1118      } else {
1119        return new Promise((resolve, reject) => {
1120          resolve(paramMock.paramNumberMock);
1121        })
1122      }
1123    },
1124    setBacklight: function (...args) {
1125      console.warn("PictureManager.setBacklight interface mocked in the Previewer. How this interface works on the Previewer" +
1126        " may be different from that on a real device.")
1127      const len = args.length
1128      if (typeof args[len - 1] === 'function') {
1129        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1130      } else {
1131        return new Promise((resolve, reject) => {
1132          resolve(paramMock.paramNumberMock);
1133        })
1134      }
1135    },
1136    getBacklight: function (...args) {
1137      console.warn("PictureManager.getBacklight interface mocked in the Previewer. How this interface works on the Previewer" +
1138        " may be different from that on a real device.")
1139      const len = args.length
1140      if (typeof args[len - 1] === 'function') {
1141        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1142      } else {
1143        return new Promise((resolve, reject) => {
1144          resolve(paramMock.paramNumberMock);
1145        })
1146      }
1147    },
1148    setBacklightThreshold: function (...args) {
1149      console.warn("PictureManager.setBacklightThreshold interface mocked in the Previewer. How this interface works on the Previewer" +
1150        " may be different from that on a real device.")
1151      const len = args.length
1152      if (typeof args[len - 1] === 'function') {
1153        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1154      } else {
1155        return new Promise((resolve, reject) => {
1156          resolve(paramMock.paramNumberMock);
1157        })
1158      }
1159    },
1160    getBacklightThreshold: function (...args) {
1161      console.warn("PictureManager.getBacklightThreshold interface mocked in the Previewer. How this interface works on the Previewer" +
1162        " may be different from that on a real device.")
1163      const len = args.length
1164      if (typeof args[len - 1] === 'function') {
1165        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1166      } else {
1167        return new Promise((resolve, reject) => {
1168          resolve(paramMock.paramNumberMock);
1169        })
1170      }
1171    },
1172    setColorTemp: function (...args) {
1173      console.warn("PictureManager.setColorTemp interface mocked in the Previewer. How this interface works on the Previewer" +
1174        " may be different from that on a real device.")
1175      const len = args.length
1176      if (typeof args[len - 1] === 'function') {
1177        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1178      } else {
1179        return new Promise((resolve, reject) => {
1180          resolve(paramMock.paramNumberMock);
1181        })
1182      }
1183    },
1184    getColorTemp: function (...args) {
1185      console.warn("PictureManager.getColorTemp interface mocked in the Previewer. How this interface works on the Previewer" +
1186        " may be different from that on a real device.")
1187      const len = args.length
1188      if (typeof args[len - 1] === 'function') {
1189        args[len - 1].call(this, paramMock.businessErrorMock, PictureClrtmps);
1190      } else {
1191        return new Promise((resolve, reject) => {
1192          resolve(PictureClrtmps);
1193        })
1194      }
1195    },
1196    setNr: function (...args) {
1197      console.warn("PictureManager.setNr interface mocked in the Previewer. How this interface works on the Previewer" +
1198        " may be different from that on a real device.")
1199      const len = args.length
1200      if (typeof args[len - 1] === 'function') {
1201        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1202      } else {
1203        return new Promise((resolve, reject) => {
1204          resolve(paramMock.paramNumberMock);
1205        })
1206      }
1207    },
1208    getNr: function (...args) {
1209      console.warn("PictureManager.getNr interface mocked in the Previewer. How this interface works on the Previewer" +
1210        " may be different from that on a real device.")
1211      const len = args.length
1212      if (typeof args[len - 1] === 'function') {
1213        args[len - 1].call(this, paramMock.businessErrorMock, PictureLevels);
1214      } else {
1215        return new Promise((resolve, reject) => {
1216          resolve(PictureLevels);
1217        })
1218      }
1219    },
1220    setMemcLevel: function (...args) {
1221      console.warn("PictureManager.setMemcLevel interface mocked in the Previewer. How this interface works on the Previewer" +
1222        " may be different from that on a real device.")
1223      const len = args.length
1224      if (typeof args[len - 1] === 'function') {
1225        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1226      } else {
1227        return new Promise((resolve, reject) => {
1228          resolve(paramMock.paramNumberMock);
1229        })
1230      }
1231    },
1232    getMemcLevel: function (...args) {
1233      console.warn("PictureManager.getMemcLevel interface mocked in the Previewer. How this interface works on the Previewer" +
1234        " may be different from that on a real device.")
1235      const len = args.length
1236      if (typeof args[len - 1] === 'function') {
1237        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1238      } else {
1239        return new Promise((resolve, reject) => {
1240          resolve(paramMock.paramNumberMock);
1241        })
1242      }
1243    },
1244    enableDci: function (...args) {
1245      console.warn("PictureManager.enableDci interface mocked in the Previewer. How this interface works on the Previewer" +
1246        " may be different from that on a real device.")
1247      const len = args.length
1248      if (typeof args[len - 1] === 'function') {
1249        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1250      } else {
1251        return new Promise((resolve, reject) => {
1252          resolve(paramMock.paramNumberMock);
1253        })
1254      }
1255    },
1256    isDciEnabled: function (...args) {
1257      console.warn("PictureManager.isDciEnabled interface mocked in the Previewer. How this interface works on the Previewer" +
1258        " may be different from that on a real device.")
1259      const len = args.length
1260      if (typeof args[len - 1] === 'function') {
1261        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
1262      } else {
1263        return new Promise((resolve, reject) => {
1264          resolve(paramMock.paramBooleanMock);
1265        })
1266      }
1267    },
1268    enableDynamicBl: function (...args) {
1269      console.warn("PictureManager.enableDynamicBl interface mocked in the Previewer. How this interface works on the Previewer" +
1270        " may be different from that on a real device.")
1271      const len = args.length
1272      if (typeof args[len - 1] === 'function') {
1273        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1274      } else {
1275        return new Promise((resolve, reject) => {
1276          resolve(paramMock.paramNumberMock);
1277        })
1278      }
1279    },
1280    isDynamicBlEnabled: function (...args) {
1281      console.warn("PictureManager.isDynamicBlEnabled interface mocked in the Previewer. How this interface works on the Previewer" +
1282        " may be different from that on a real device.")
1283      const len = args.length
1284      if (typeof args[len - 1] === 'function') {
1285        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
1286      } else {
1287        return new Promise((resolve, reject) => {
1288          resolve(paramMock.paramBooleanMock);
1289        })
1290      }
1291    },
1292    setAspect: function (...args) {
1293      console.warn("PictureManager.setAspect interface mocked in the Previewer. How this interface works on the Previewer" +
1294        " may be different from that on a real device.")
1295      const len = args.length
1296      if (typeof args[len - 1] === 'function') {
1297        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1298      } else {
1299        return new Promise((resolve, reject) => {
1300          resolve(paramMock.paramNumberMock);
1301        })
1302      }
1303    },
1304    getAspect: function (...args) {
1305      console.warn("PictureManager.getAspect interface mocked in the Previewer. How this interface works on the Previewer" +
1306        " may be different from that on a real device.")
1307      const len = args.length
1308      if (typeof args[len - 1] === 'function') {
1309        args[len - 1].call(this, paramMock.businessErrorMock, PictureAspects);
1310      } else {
1311        return new Promise((resolve, reject) => {
1312          resolve(PictureAspects);
1313        })
1314      }
1315    },
1316    enableLocalDimming: function (...args) {
1317      console.warn("PictureManager.enableLocalDimming interface mocked in the Previewer. How this interface works on the Previewer" +
1318        " may be different from that on a real device.")
1319      const len = args.length
1320      if (typeof args[len - 1] === 'function') {
1321        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1322      } else {
1323        return new Promise((resolve, reject) => {
1324          resolve(paramMock.paramNumberMock);
1325        })
1326      }
1327    },
1328    isLocalDimmingEnabled: function (...args) {
1329      console.warn("PictureManager.isLocalDimmingEnabled interface mocked in the Previewer. How this interface works on the Previewer" +
1330        " may be different from that on a real device.")
1331      const len = args.length
1332      if (typeof args[len - 1] === 'function') {
1333        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
1334      } else {
1335        return new Promise((resolve, reject) => {
1336          resolve(paramMock.paramBooleanMock);
1337        })
1338      }
1339    },
1340    isLocalDimmingSupported: function (...args) {
1341      console.warn("PictureManager.isLocalDimmingSupported interface mocked in the Previewer. How this interface works on the Previewer" +
1342        " may be different from that on a real device.")
1343      const len = args.length
1344      if (typeof args[len - 1] === 'function') {
1345        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
1346      } else {
1347        return new Promise((resolve, reject) => {
1348          resolve(paramMock.paramBooleanMock);
1349        })
1350      }
1351    },
1352    setEyeProtectMode: function (...args) {
1353      console.warn("PictureManager.setEyeProtectMode interface mocked in the Previewer. How this interface works on the Previewer" +
1354        " may be different from that on a real device.")
1355      const len = args.length
1356      if (typeof args[len - 1] === 'function') {
1357        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1358      } else {
1359        return new Promise((resolve, reject) => {
1360          resolve(paramMock.paramNumberMock);
1361        })
1362      }
1363    },
1364    getEyeProtectMode: function (...args) {
1365      console.warn("PictureManager.getEyeProtectMode interface mocked in the Previewer. How this interface works on the Previewer" +
1366        " may be different from that on a real device.")
1367      const len = args.length
1368      if (typeof args[len - 1] === 'function') {
1369        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
1370      } else {
1371        return new Promise((resolve, reject) => {
1372          resolve(paramMock.paramBooleanMock);
1373        })
1374      }
1375    },
1376    setVideoInfoStart: function (...args) {
1377      console.warn("PictureManager.setVideoInfoStart interface mocked in the Previewer. How this interface works on the Previewer" +
1378        " may be different from that on a real device.")
1379      const len = args.length
1380      if (typeof args[len - 1] === 'function') {
1381        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1382      } else {
1383        return new Promise((resolve, reject) => {
1384          resolve(paramMock.paramNumberMock);
1385        })
1386      }
1387    },
1388    setVideoInfoStop: function (...args) {
1389      console.warn("PictureManager.setVideoInfoStop interface mocked in the Previewer. How this interface works on the Previewer" +
1390        " may be different from that on a real device.")
1391      const len = args.length
1392      if (typeof args[len - 1] === 'function') {
1393        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1394      } else {
1395        return new Promise((resolve, reject) => {
1396          resolve(paramMock.paramNumberMock);
1397        })
1398      }
1399    },
1400    getPictureModeList: function (...args) {
1401      console.warn("PictureManager.getPictureModeList interface mocked in the Previewer. How this interface works on the Previewer" +
1402        " may be different from that on a real device.")
1403      var pictureModesArray = new Array();
1404      pictureModesArray.push(PictureModes);
1405      const len = args.length
1406      if (typeof args[len - 1] === 'function') {
1407        args[len - 1].call(this, paramMock.businessErrorMock, pictureModesArray);
1408      } else {
1409        return new Promise((resolve, reject) => {
1410          resolve(pictureModesArray);
1411        })
1412      }
1413    },
1414    setAutoBlEnable: function (...args) {
1415      console.warn("PictureManager.setAutoBlEnable interface mocked in the Previewer. How this interface works on the Previewer" +
1416        " may be different from that on a real device.")
1417      const len = args.length
1418      if (typeof args[len - 1] === 'function') {
1419        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1420      } else {
1421        return new Promise((resolve, reject) => {
1422          resolve(paramMock.paramNumberMock);
1423        })
1424      }
1425    },
1426    isAutoBacklightEnabled: function (...args) {
1427      console.warn("PictureManager.isAutoBacklightEnabled interface mocked in the Previewer. How this interface works on the Previewer" +
1428        " may be different from that on a real device.")
1429      const len = args.length
1430      if (typeof args[len - 1] === 'function') {
1431        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
1432      } else {
1433        return new Promise((resolve, reject) => {
1434          resolve(paramMock.paramBooleanMock);
1435        })
1436      }
1437    },
1438    setActivityUi: function (...args) {
1439      console.warn("PictureManager.setActivityUi interface mocked in the Previewer. How this interface works on the Previewer" +
1440        " may be different from that on a real device.")
1441      const len = args.length
1442      if (typeof args[len - 1] === 'function') {
1443        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1444      } else {
1445        return new Promise((resolve, reject) => {
1446          resolve(paramMock.paramNumberMock);
1447        })
1448      }
1449    },
1450    setDciType: function (...args) {
1451      console.warn("PictureManager.setDciType interface mocked in the Previewer. How this interface works on the Previewer" +
1452        " may be different from that on a real device.")
1453      const len = args.length
1454      if (typeof args[len - 1] === 'function') {
1455        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1456      } else {
1457        return new Promise((resolve, reject) => {
1458          resolve(paramMock.paramNumberMock);
1459        })
1460      }
1461    },
1462    getDciType: function (...args) {
1463      console.warn("PictureManager.getDciType interface mocked in the Previewer. How this interface works on the Previewer" +
1464        " may be different from that on a real device.")
1465      const len = args.length
1466      if (typeof args[len - 1] === 'function') {
1467        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1468      } else {
1469        return new Promise((resolve, reject) => {
1470          resolve(paramMock.paramNumberMock);
1471        })
1472      }
1473    },
1474    setDciGainLevel: function (...args) {
1475      console.warn("PictureManager.setDciGainLevel interface mocked in the Previewer. How this interface works on the Previewer" +
1476        " may be different from that on a real device.")
1477      const len = args.length
1478      if (typeof args[len - 1] === 'function') {
1479        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1480      } else {
1481        return new Promise((resolve, reject) => {
1482          resolve(paramMock.paramNumberMock);
1483        })
1484      }
1485    },
1486    getDciGainLevel: function (...args) {
1487      console.warn("PictureManager.getDciGainLevel interface mocked in the Previewer. How this interface works on the Previewer" +
1488        " may be different from that on a real device.")
1489      const len = args.length
1490      if (typeof args[len - 1] === 'function') {
1491        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1492      } else {
1493        return new Promise((resolve, reject) => {
1494          resolve(paramMock.paramNumberMock);
1495        })
1496      }
1497    },
1498    setUploadBacklight: function (...args) {
1499      console.warn("PictureManager.setUploadBacklight interface mocked in the Previewer. How this interface works on the Previewer" +
1500        " may be different from that on a real device.")
1501      const len = args.length
1502      if (typeof args[len - 1] === 'function') {
1503        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1504      } else {
1505        return new Promise((resolve, reject) => {
1506          resolve(paramMock.paramNumberMock);
1507        })
1508      }
1509    },
1510    getPictureMode: function (...args) {
1511      console.warn("PictureManager.getPictureMode interface mocked in the Previewer. How this interface works on the Previewer" +
1512        " may be different from that on a real device.")
1513      const len = args.length
1514      if (typeof args[len - 1] === 'function') {
1515        args[len - 1].call(this, paramMock.businessErrorMock, PictureModes);
1516      } else {
1517        return new Promise((resolve, reject) => {
1518          resolve(PictureModes);
1519        })
1520      }
1521    },
1522    enableBacklight: function (...args) {
1523      console.warn("PictureManager.enableBacklight interface mocked in the Previewer. How this interface works on the Previewer" +
1524        " may be different from that on a real device.")
1525      const len = args.length
1526      if (typeof args[len - 1] === 'function') {
1527        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1528      } else {
1529        return new Promise((resolve, reject) => {
1530          resolve(paramMock.paramNumberMock);
1531        })
1532      }
1533    },
1534    isBacklightEnabled: function (...args) {
1535      console.warn("PictureManager.isBacklightEnabled interface mocked in the Previewer. How this interface works on the Previewer" +
1536        " may be different from that on a real device.")
1537      const len = args.length
1538      if (typeof args[len - 1] === 'function') {
1539        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
1540      } else {
1541        return new Promise((resolve, reject) => {
1542          resolve(paramMock.paramBooleanMock);
1543        })
1544      }
1545    },
1546    setHdmiRange: function (...args) {
1547      console.warn("PictureManager.setHdmiRange interface mocked in the Previewer. How this interface works on the Previewer" +
1548        " may be different from that on a real device.")
1549      const len = args.length
1550      if (typeof args[len - 1] === 'function') {
1551        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1552      } else {
1553        return new Promise((resolve, reject) => {
1554          resolve(paramMock.paramNumberMock);
1555        })
1556      }
1557    },
1558    getHdmiRange: function (...args) {
1559      console.warn("PictureManager.getHdmiRange interface mocked in the Previewer. How this interface works on the Previewer" +
1560        " may be different from that on a real device.")
1561      const len = args.length
1562      if (typeof args[len - 1] === 'function') {
1563        args[len - 1].call(this, paramMock.businessErrorMock, HdmiRanges);
1564      } else {
1565        return new Promise((resolve, reject) => {
1566          resolve(HdmiRanges);
1567        })
1568      }
1569    },
1570    setColorGamut: function (...args) {
1571      console.warn("PictureManager.setColorGamut interface mocked in the Previewer. How this interface works on the Previewer" +
1572        " may be different from that on a real device.")
1573      const len = args.length
1574      if (typeof args[len - 1] === 'function') {
1575        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1576      } else {
1577        return new Promise((resolve, reject) => {
1578          resolve(paramMock.paramNumberMock);
1579        })
1580      }
1581    },
1582    getColorGamut: function (...args) {
1583      console.warn("PictureManager.getColorGamut interface mocked in the Previewer. How this interface works on the Previewer" +
1584        " may be different from that on a real device.")
1585      const len = args.length
1586      if (typeof args[len - 1] === 'function') {
1587        args[len - 1].call(this, paramMock.businessErrorMock, ColorGamuts);
1588      } else {
1589        return new Promise((resolve, reject) => {
1590          resolve(ColorGamuts);
1591        })
1592      }
1593    },
1594    setWhitePoint: function (...args) {
1595      console.warn("PictureManager.setWhitePoint interface mocked in the Previewer. How this interface works on the Previewer" +
1596        " may be different from that on a real device.")
1597      const len = args.length
1598      if (typeof args[len - 1] === 'function') {
1599        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1600      } else {
1601        return new Promise((resolve, reject) => {
1602          resolve(paramMock.paramNumberMock);
1603        })
1604      }
1605    },
1606    getWhitePoint: function (...args) {
1607      console.warn("PictureManager.getWhitePoint interface mocked in the Previewer. How this interface works on the Previewer" +
1608        " may be different from that on a real device.")
1609      const len = args.length
1610      if (typeof args[len - 1] === 'function') {
1611        args[len - 1].call(this, paramMock.businessErrorMock, WhitePoints);
1612      } else {
1613        return new Promise((resolve, reject) => {
1614          resolve(WhitePoints);
1615        })
1616      }
1617    },
1618    setOetf: function (...args) {
1619      console.warn("PictureManager.setOetf interface mocked in the Previewer. How this interface works on the Previewer" +
1620        " may be different from that on a real device.")
1621      const len = args.length
1622      if (typeof args[len - 1] === 'function') {
1623        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1624      } else {
1625        return new Promise((resolve, reject) => {
1626          resolve(paramMock.paramNumberMock);
1627        })
1628      }
1629    },
1630    getOetf: function (...args) {
1631      console.warn("PictureManager.getOetf interface mocked in the Previewer. How this interface works on the Previewer" +
1632        " may be different from that on a real device.")
1633      const len = args.length
1634      if (typeof args[len - 1] === 'function') {
1635        args[len - 1].call(this, paramMock.businessErrorMock, Oetfs);
1636      } else {
1637        return new Promise((resolve, reject) => {
1638          resolve(Oetfs);
1639        })
1640      }
1641    },
1642    setTwoPointColorTemp: function (...args) {
1643      console.warn("PictureManager.setTwoPointColorTemp interface mocked in the Previewer. How this interface works on the Previewer" +
1644        " may be different from that on a real device.")
1645      const len = args.length
1646      if (typeof args[len - 1] === 'function') {
1647        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1648      } else {
1649        return new Promise((resolve, reject) => {
1650          resolve(paramMock.paramNumberMock);
1651        })
1652      }
1653    },
1654    getTwoPointColorTemp: function (...args) {
1655      console.warn("PictureManager.getTwoPointColorTemp interface mocked in the Previewer. How this interface works on the Previewer" +
1656        " may be different from that on a real device.")
1657      const len = args.length
1658      if (typeof args[len - 1] === 'function') {
1659        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramArrayMock);
1660      } else {
1661        return new Promise((resolve, reject) => {
1662          resolve(paramMock.paramArrayMock);
1663        })
1664      }
1665    },
1666    setTenGamma: function (...args) {
1667      console.warn("PictureManager.setTenGamma interface mocked in the Previewer. How this interface works on the Previewer" +
1668        " may be different from that on a real device.")
1669      const len = args.length
1670      if (typeof args[len - 1] === 'function') {
1671        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1672      } else {
1673        return new Promise((resolve, reject) => {
1674          resolve(paramMock.paramNumberMock);
1675        })
1676      }
1677    },
1678    getTenGamma: function (...args) {
1679      console.warn("PictureManager.getTenGamma interface mocked in the Previewer. How this interface works on the Previewer" +
1680        " may be different from that on a real device.")
1681      const len = args.length
1682      if (typeof args[len - 1] === 'function') {
1683        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramArrayMock);
1684      } else {
1685        return new Promise((resolve, reject) => {
1686          resolve(paramMock.paramArrayMock);
1687        })
1688      }
1689    },
1690    enableCreatorMode: function (...args) {
1691      console.warn("PictureManager.enableCreatorMode interface mocked in the Previewer. How this interface works on the Previewer" +
1692        " may be different from that on a real device.")
1693      const len = args.length
1694      if (typeof args[len - 1] === 'function') {
1695        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1696      } else {
1697        return new Promise((resolve, reject) => {
1698          resolve(paramMock.paramNumberMock);
1699        })
1700      }
1701    },
1702    isCreatorModeEnabled: function (...args) {
1703      console.warn("PictureManager.isCreatorModeEnabled interface mocked in the Previewer. How this interface works on the Previewer" +
1704        " may be different from that on a real device.")
1705      const len = args.length
1706      if (typeof args[len - 1] === 'function') {
1707        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
1708      } else {
1709        return new Promise((resolve, reject) => {
1710          resolve(paramMock.paramBooleanMock);
1711        })
1712      }
1713    },
1714    setColorManagerMode: function (...args) {
1715      console.warn("PictureManager.setColorManagerMode interface mocked in the Previewer. How this interface works on the Previewer" +
1716        " may be different from that on a real device.")
1717      const len = args.length
1718      if (typeof args[len - 1] === 'function') {
1719        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1720      } else {
1721        return new Promise((resolve, reject) => {
1722          resolve(paramMock.paramNumberMock);
1723        })
1724      }
1725    },
1726    getColorManagerMode: function (...args) {
1727      console.warn("PictureManager.getColorManagerMode interface mocked in the Previewer. How this interface works on the Previewer" +
1728        " may be different from that on a real device.")
1729      const len = args.length
1730      if (typeof args[len - 1] === 'function') {
1731        args[len - 1].call(this, paramMock.businessErrorMock, ColorManagerModes);
1732      } else {
1733        return new Promise((resolve, reject) => {
1734          resolve(ColorManagerModes);
1735        })
1736      }
1737    },
1738    restoreCalibration: function (...args) {
1739      console.warn("PictureManager.restoreCalibration interface mocked in the Previewer. How this interface works on the Previewer" +
1740        " may be different from that on a real device.")
1741      const len = args.length
1742      if (typeof args[len - 1] === 'function') {
1743        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1744      } else {
1745        return new Promise((resolve, reject) => {
1746          resolve(paramMock.paramNumberMock);
1747        })
1748      }
1749    },
1750    restoreMasterSetting: function (...args) {
1751      console.warn("PictureManager.restoreMasterSetting interface mocked in the Previewer. How this interface works on the Previewer" +
1752        " may be different from that on a real device.")
1753      const len = args.length
1754      if (typeof args[len - 1] === 'function') {
1755        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1756      } else {
1757        return new Promise((resolve, reject) => {
1758          resolve(paramMock.paramNumberMock);
1759        })
1760      }
1761    },
1762    setStandbyLedEnable: function (...args) {
1763      console.warn("PictureManager.setStandbyLedEnable interface mocked in the Previewer. How this interface works on the Previewer" +
1764        " may be different from that on a real device.")
1765      const len = args.length
1766      if (typeof args[len - 1] === 'function') {
1767        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1768      } else {
1769        return new Promise((resolve, reject) => {
1770          resolve(paramMock.paramNumberMock);
1771        })
1772      }
1773    },
1774    isStandbyLedEnabled: function (...args) {
1775      console.warn("PictureManager.isStandbyLedEnabled interface mocked in the Previewer. How this interface works on the Previewer" +
1776        " may be different from that on a real device.")
1777      const len = args.length
1778      if (typeof args[len - 1] === 'function') {
1779        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
1780      } else {
1781        return new Promise((resolve, reject) => {
1782          resolve(paramMock.paramBooleanMock);
1783        })
1784      }
1785    },
1786    getHdrType: function (...args) {
1787      console.warn("PictureManager.getHdrType interface mocked in the Previewer. How this interface works on the Previewer" +
1788        " may be different from that on a real device.")
1789      const len = args.length
1790      if (typeof args[len - 1] === 'function') {
1791        args[len - 1].call(this, paramMock.businessErrorMock, PictureUserHdrTypes);
1792      } else {
1793        return new Promise((resolve, reject) => {
1794          resolve(PictureUserHdrTypes);
1795        })
1796      }
1797    },
1798    setUserHdrType: function (...args) {
1799      console.warn("PictureManager.setUserHdrType interface mocked in the Previewer. How this interface works on the Previewer" +
1800        " may be different from that on a real device.")
1801      const len = args.length
1802      if (typeof args[len - 1] === 'function') {
1803        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1804      } else {
1805        return new Promise((resolve, reject) => {
1806          resolve(paramMock.paramNumberMock);
1807        })
1808      }
1809    },
1810    getUserHdrType: function (...args) {
1811      console.warn("PictureManager.getUserHdrType interface mocked in the Previewer. How this interface works on the Previewer" +
1812        " may be different from that on a real device.")
1813      const len = args.length
1814      if (typeof args[len - 1] === 'function') {
1815        args[len - 1].call(this, paramMock.businessErrorMock, PictureUserHdrTypes);
1816      } else {
1817        return new Promise((resolve, reject) => {
1818          resolve(PictureUserHdrTypes);
1819        })
1820      }
1821    },
1822    setMpegNr: function (...args) {
1823      console.warn("PictureManager.setMpegNr interface mocked in the Previewer. How this interface works on the Previewer" +
1824        " may be different from that on a real device.")
1825      const len = args.length
1826      if (typeof args[len - 1] === 'function') {
1827        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1828      } else {
1829        return new Promise((resolve, reject) => {
1830          resolve(paramMock.paramNumberMock);
1831        })
1832      }
1833    },
1834    getMpegNr: function (...args) {
1835      console.warn("PictureManager.getMpegNr interface mocked in the Previewer. How this interface works on the Previewer" +
1836        " may be different from that on a real device.")
1837      const len = args.length
1838      if (typeof args[len - 1] === 'function') {
1839        args[len - 1].call(this, paramMock.businessErrorMock, CommonLevels);
1840      } else {
1841        return new Promise((resolve, reject) => {
1842          resolve(CommonLevels);
1843        })
1844      }
1845    },
1846    setBoostPeakLevel: function (...args) {
1847      console.warn("PictureManager.setBoostPeakLevel interface mocked in the Previewer. How this interface works on the Previewer" +
1848        " may be different from that on a real device.")
1849      const len = args.length
1850      if (typeof args[len - 1] === 'function') {
1851        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1852      } else {
1853        return new Promise((resolve, reject) => {
1854          resolve(paramMock.paramNumberMock);
1855        })
1856      }
1857    },
1858    getBoostPeakLevel: function (...args) {
1859      console.warn("PictureManager.getBoostPeakLevel interface mocked in the Previewer. How this interface works on the Previewer" +
1860        " may be different from that on a real device.")
1861      const len = args.length
1862      if (typeof args[len - 1] === 'function') {
1863        args[len - 1].call(this, paramMock.businessErrorMock, CommonLevels);
1864      } else {
1865        return new Promise((resolve, reject) => {
1866          resolve(CommonLevels);
1867        })
1868      }
1869    },
1870    enableNaturalTone: function (...args) {
1871      console.warn("PictureManager.enableNaturalTone interface mocked in the Previewer. How this interface works on the Previewer" +
1872        " may be different from that on a real device.")
1873      const len = args.length
1874      if (typeof args[len - 1] === 'function') {
1875        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1876      } else {
1877        return new Promise((resolve, reject) => {
1878          resolve(paramMock.paramNumberMock);
1879        })
1880      }
1881    },
1882    isNaturalToneEnabled: function (...args) {
1883      console.warn("PictureManager.isNaturalToneEnabled interface mocked in the Previewer. How this interface works on the Previewer" +
1884        " may be different from that on a real device.")
1885      const len = args.length
1886      if (typeof args[len - 1] === 'function') {
1887        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
1888      } else {
1889        return new Promise((resolve, reject) => {
1890          resolve(paramMock.paramBooleanMock);
1891        })
1892      }
1893    },
1894    setClearMotionLevel: function (...args) {
1895      console.warn("PictureManager.setClearMotionLevel interface mocked in the Previewer. How this interface works on the Previewer" +
1896        " may be different from that on a real device.")
1897      const len = args.length
1898      if (typeof args[len - 1] === 'function') {
1899        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1900      } else {
1901        return new Promise((resolve, reject) => {
1902          resolve(paramMock.paramNumberMock);
1903        })
1904      }
1905    },
1906    getClearMotionLevel: function (...args) {
1907      console.warn("PictureManager.getClearMotionLevel interface mocked in the Previewer. How this interface works on the Previewer" +
1908        " may be different from that on a real device.")
1909      const len = args.length
1910      if (typeof args[len - 1] === 'function') {
1911        args[len - 1].call(this, paramMock.businessErrorMock, CommonLevels);
1912      } else {
1913        return new Promise((resolve, reject) => {
1914          resolve(CommonLevels);
1915        })
1916      }
1917    },
1918    restoreCurrentPictureMode: function (...args) {
1919      console.warn("PictureManager.restoreCurrentPictureMode interface mocked in the Previewer. How this interface works on the Previewer" +
1920        " may be different from that on a real device.")
1921      const len = args.length
1922      if (typeof args[len - 1] === 'function') {
1923        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
1924      } else {
1925        return new Promise((resolve, reject) => {
1926          resolve(paramMock.paramBooleanMock);
1927        })
1928      }
1929    },
1930    setEyeProtectStep: function (...args) {
1931      console.warn("PictureManager.setEyeProtectStep interface mocked in the Previewer. How this interface works on the Previewer" +
1932        " may be different from that on a real device.")
1933      const len = args.length
1934      if (typeof args[len - 1] === 'function') {
1935        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1936      } else {
1937        return new Promise((resolve, reject) => {
1938          resolve(paramMock.paramNumberMock);
1939        })
1940      }
1941    },
1942    getEyeProtectStep: function (...args) {
1943      console.warn("PictureManager.getEyeProtectStep interface mocked in the Previewer. How this interface works on the Previewer" +
1944        " may be different from that on a real device.")
1945      const len = args.length
1946      if (typeof args[len - 1] === 'function') {
1947        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1948      } else {
1949        return new Promise((resolve, reject) => {
1950          resolve(paramMock.paramNumberMock);
1951        })
1952      }
1953    },
1954    setColorTempMode: function (...args) {
1955      console.warn("PictureManager.setColorTempMode interface mocked in the Previewer. How this interface works on the Previewer" +
1956        " may be different from that on a real device.")
1957      const len = args.length
1958      if (typeof args[len - 1] === 'function') {
1959        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1960      } else {
1961        return new Promise((resolve, reject) => {
1962          resolve(paramMock.paramNumberMock);
1963        })
1964      }
1965    },
1966    getColorTempMode: function (...args) {
1967      console.warn("PictureManager.getColorTempMode interface mocked in the Previewer. How this interface works on the Previewer" +
1968        " may be different from that on a real device.")
1969      const len = args.length
1970      if (typeof args[len - 1] === 'function') {
1971        args[len - 1].call(this, paramMock.businessErrorMock, PictureColorTempModes);
1972      } else {
1973        return new Promise((resolve, reject) => {
1974          resolve(PictureColorTempModes);
1975        })
1976      }
1977    },
1978    setColorTempStep: function (...args) {
1979      console.warn("PictureManager.setColorTempStep interface mocked in the Previewer. How this interface works on the Previewer" +
1980        " may be different from that on a real device.")
1981      const len = args.length
1982      if (typeof args[len - 1] === 'function') {
1983        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1984      } else {
1985        return new Promise((resolve, reject) => {
1986          resolve(paramMock.paramNumberMock);
1987        })
1988      }
1989    },
1990    getColorTempStep: function (...args) {
1991      console.warn("PictureManager.getColorTempStep interface mocked in the Previewer. How this interface works on the Previewer" +
1992        " may be different from that on a real device.")
1993      const len = args.length
1994      if (typeof args[len - 1] === 'function') {
1995        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
1996      } else {
1997        return new Promise((resolve, reject) => {
1998          resolve(paramMock.paramNumberMock);
1999        })
2000      }
2001    },
2002    getNormalColorManagerMode: function (...args) {
2003      console.warn("PictureManager.getNormalColorManagerMode interface mocked in the Previewer. How this interface works on the Previewer" +
2004        " may be different from that on a real device.")
2005      const len = args.length
2006      if (typeof args[len - 1] === 'function') {
2007        args[len - 1].call(this, paramMock.businessErrorMock, ColorManagerModes);
2008      } else {
2009        return new Promise((resolve, reject) => {
2010          resolve(ColorManagerModes);
2011        })
2012      }
2013    },
2014    isPdParamSupported: function (...args) {
2015      console.warn("PictureManager.isPdParamSupported interface mocked in the Previewer. How this interface works on the Previewer" +
2016        " may be different from that on a real device.")
2017      const len = args.length
2018      if (typeof args[len - 1] === 'function') {
2019        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
2020      } else {
2021        return new Promise((resolve, reject) => {
2022          resolve(paramMock.paramBooleanMock);
2023        })
2024      }
2025    },
2026    isCuvaDeviceSupported: function (...args) {
2027      console.warn("PictureManager.isCuvaDeviceSupported interface mocked in the Previewer. How this interface works on the Previewer" +
2028        " may be different from that on a real device.")
2029      const len = args.length
2030      if (typeof args[len - 1] === 'function') {
2031        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
2032      } else {
2033        return new Promise((resolve, reject) => {
2034          resolve(paramMock.paramBooleanMock);
2035        })
2036      }
2037    }
2038  }
2039  const SourceManager = {
2040    selectSource: function (...args) {
2041      console.warn("SourceManager.selectSource interface mocked in the Previewer. How this interface works on the Previewer" +
2042        " may be different from that on a real device.")
2043      const len = args.length
2044      if (typeof args[len - 1] === 'function') {
2045        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
2046      } else {
2047        return new Promise((resolve, reject) => {
2048          resolve(paramMock.paramNumberMock);
2049        })
2050      }
2051    },
2052    getCurSourceId: function (...args) {
2053      console.warn("SourceManager.getCurSourceId interface mocked in the Previewer. How this interface works on the Previewer" +
2054        " may be different from that on a real device.")
2055      const len = args.length
2056      if (typeof args[len - 1] === 'function') {
2057        args[len - 1].call(this, paramMock.businessErrorMock, SourceIndices);
2058      } else {
2059        return new Promise((resolve, reject) => {
2060          resolve(SourceIndices);
2061        })
2062      }
2063    },
2064    deselectSource: function (...args) {
2065      console.warn("SourceManager.deselectSource interface mocked in the Previewer. How this interface works on the Previewer" +
2066        " may be different from that on a real device.")
2067      const len = args.length
2068      if (typeof args[len - 1] === 'function') {
2069        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
2070      } else {
2071        return new Promise((resolve, reject) => {
2072          resolve(paramMock.paramNumberMock);
2073        })
2074      }
2075    },
2076    getAvailSourceList: function (...args) {
2077      console.warn("SourceManager.getAvailSourceList interface mocked in the Previewer. How this interface works on the Previewer" +
2078        " may be different from that on a real device.")
2079      var sourceIndicesArray = new Array();
2080      sourceIndicesArray.push(SourceIndices);
2081      const len = args.length
2082      if (typeof args[len - 1] === 'function') {
2083        args[len - 1].call(this, paramMock.businessErrorMock, sourceIndicesArray);
2084      } else {
2085        return new Promise((resolve, reject) => {
2086          resolve(sourceIndicesArray);
2087        })
2088      }
2089    },
2090    getTimingInfo: function (...args) {
2091      console.warn("SourceManager.getTimingInfo interface mocked in the Previewer. How this interface works on the Previewer" +
2092        " may be different from that on a real device.")
2093      const len = args.length
2094      if (typeof args[len - 1] === 'function') {
2095        args[len - 1].call(this, paramMock.businessErrorMock, TimingInfo);
2096      } else {
2097        return new Promise((resolve, reject) => {
2098          resolve(TimingInfo);
2099        })
2100      }
2101    },
2102    getSignalStatus: function (...args) {
2103      console.warn("SourceManager.getSignalStatus interface mocked in the Previewer. How this interface works on the Previewer" +
2104        " may be different from that on a real device.")
2105      const len = args.length
2106      if (typeof args[len - 1] === 'function') {
2107        args[len - 1].call(this, paramMock.businessErrorMock, SignalStates);
2108      } else {
2109        return new Promise((resolve, reject) => {
2110          resolve(SignalStates);
2111        })
2112      }
2113    },
2114    setWindowRect: function (...args) {
2115      console.warn("SourceManager.setWindowRect interface mocked in the Previewer. How this interface works on the Previewer" +
2116        " may be different from that on a real device.")
2117      const len = args.length
2118      if (typeof args[len - 1] === 'function') {
2119        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
2120      } else {
2121        return new Promise((resolve, reject) => {
2122          resolve(paramMock.paramNumberMock);
2123        })
2124      }
2125    },
2126    getWindowRect: function (...args) {
2127      console.warn("SourceManager.getWindowRect interface mocked in the Previewer. How this interface works on the Previewer" +
2128        " may be different from that on a real device.")
2129      const len = args.length
2130      if (typeof args[len - 1] === 'function') {
2131        args[len - 1].call(this, paramMock.businessErrorMock, RectInfo);
2132      } else {
2133        return new Promise((resolve, reject) => {
2134          resolve(RectInfo);
2135        })
2136      }
2137    },
2138    setVideoDisplay: function (...args) {
2139      console.warn("SourceManager.setVideoDisplay interface mocked in the Previewer. How this interface works on the Previewer" +
2140        " may be different from that on a real device.")
2141      const len = args.length
2142      if (typeof args[len - 1] === 'function') {
2143        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
2144      } else {
2145        return new Promise((resolve, reject) => {
2146          resolve(paramMock.paramNumberMock);
2147        })
2148      }
2149    },
2150    clearVideoDisplay: function (...args) {
2151      console.warn("SourceManager.clearVideoDisplay interface mocked in the Previewer. How this interface works on the Previewer" +
2152        " may be different from that on a real device.")
2153      const len = args.length
2154      if (typeof args[len - 1] === 'function') {
2155        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
2156      } else {
2157        return new Promise((resolve, reject) => {
2158          resolve(paramMock.paramNumberMock);
2159        })
2160      }
2161    },
2162    getSupportSourceList: function (...args) {
2163      console.warn("SourceManager.getSupportSourceList interface mocked in the Previewer. How this interface works on the Previewer" +
2164        " may be different from that on a real device.")
2165      const len = args.length
2166      if (typeof args[len - 1] === 'function') {
2167        args[len - 1].call(this, paramMock.businessErrorMock, sourceIndicesArray);
2168      } else {
2169        return new Promise((resolve, reject) => {
2170          resolve(sourceIndicesArray);
2171        })
2172      }
2173    },
2174    getSelectSourceId: function (...args) {
2175      console.warn("SourceManager.getSelectSourceId interface mocked in the Previewer. How this interface works on the Previewer" +
2176        " may be different from that on a real device.")
2177      const len = args.length
2178      if (typeof args[len - 1] === 'function') {
2179        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramArrayMock);
2180      } else {
2181        return new Promise((resolve, reject) => {
2182          resolve(paramMock.paramArrayMock);
2183        })
2184      }
2185    },
2186    getSourcePlayingState: function (...args) {
2187      console.warn("SourceManager.getSourcePlayingState interface mocked in the Previewer. How this interface works on the Previewer" +
2188        " may be different from that on a real device.")
2189      var sourceIndicesArray = new Array();
2190      sourceIndicesArray.push(SourceIndices);
2191      const len = args.length
2192      if (typeof args[len - 1] === 'function') {
2193        args[len - 1].call(this, paramMock.businessErrorMock, sourceIndicesArray);
2194      } else {
2195        return new Promise((resolve, reject) => {
2196          resolve(sourceIndicesArray);
2197        })
2198      }
2199    },
2200    connectDistributeService: function (...args) {
2201      console.warn("SourceManager.connectDistributeService interface mocked in the Previewer. How this interface works on the Previewer" +
2202        " may be different from that on a real device.")
2203      const len = args.length
2204      if (typeof args[len - 1] === 'function') {
2205        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
2206      } else {
2207        return new Promise((resolve, reject) => {
2208          resolve(paramMock.paramNumberMock);
2209        })
2210      }
2211    }
2212  }
2213  const SystemSetting = {
2214    restoreDefault: function (...args) {
2215      console.warn("SystemSetting.restoreDefault interface mocked in the Previewer. How this interface works on the Previewer" +
2216        " may be different from that on a real device.")
2217      const len = args.length
2218      if (typeof args[len - 1] === 'function') {
2219        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
2220      } else {
2221        return new Promise((resolve, reject) => {
2222          resolve(paramMock.paramNumberMock);
2223        })
2224      }
2225    },
2226    setHdmirxEdidType: function (...args) {
2227      console.warn("SystemSetting.setHdmirxEdidType interface mocked in the Previewer. How this interface works on the Previewer" +
2228        " may be different from that on a real device.")
2229      const len = args.length
2230      if (typeof args[len - 1] === 'function') {
2231        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
2232      } else {
2233        return new Promise((resolve, reject) => {
2234          resolve(paramMock.paramNumberMock);
2235        })
2236      }
2237    },
2238    getHdmirxEdidType: function (...args) {
2239      console.warn("SystemSetting.getHdmirxEdidType interface mocked in the Previewer. How this interface works on the Previewer" +
2240        " may be different from that on a real device.")
2241      const len = args.length
2242      if (typeof args[len - 1] === 'function') {
2243        args[len - 1].call(this, paramMock.businessErrorMock, HdmirxEdidTypes);
2244      } else {
2245        return new Promise((resolve, reject) => {
2246          resolve(HdmirxEdidTypes);
2247        })
2248      }
2249    },
2250    isPowerOnPanelEnabled: function (...args) {
2251      console.warn("SystemSetting.isPowerOnPanelEnabled interface mocked in the Previewer. How this interface works on the Previewer" +
2252        " may be different from that on a real device.")
2253      const len = args.length
2254      if (typeof args[len - 1] === 'function') {
2255        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
2256      } else {
2257        return new Promise((resolve, reject) => {
2258          resolve(paramMock.paramBooleanMock);
2259        })
2260      }
2261    },
2262    enablePowerOnPanel: function (...args) {
2263      console.warn("SystemSetting.enablePowerOnPanel interface mocked in the Previewer. How this interface works on the Previewer" +
2264        " may be different from that on a real device.")
2265      const len = args.length
2266      if (typeof args[len - 1] === 'function') {
2267        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
2268      } else {
2269        return new Promise((resolve, reject) => {
2270          resolve(paramMock.paramNumberMock);
2271        })
2272      }
2273    },
2274    restorePic: function (...args) {
2275      console.warn("SystemSetting.restorePic interface mocked in the Previewer. How this interface works on the Previewer" +
2276        " may be different from that on a real device.")
2277      const len = args.length
2278      if (typeof args[len - 1] === 'function') {
2279        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
2280      } else {
2281        return new Promise((resolve, reject) => {
2282          resolve(paramMock.paramNumberMock);
2283        })
2284      }
2285    },
2286    setPowerSaveMode: function (...args) {
2287      console.warn("SystemSetting.setPowerSaveMode interface mocked in the Previewer. How this interface works on the Previewer" +
2288        " may be different from that on a real device.")
2289      const len = args.length
2290      if (typeof args[len - 1] === 'function') {
2291        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
2292      } else {
2293        return new Promise((resolve, reject) => {
2294          resolve(paramMock.paramNumberMock);
2295        })
2296      }
2297    },
2298    getPowerSaveMode: function (...args) {
2299      console.warn("SystemSetting.getPowerSaveMode interface mocked in the Previewer. How this interface works on the Previewer" +
2300        " may be different from that on a real device.")
2301      const len = args.length
2302      if (typeof args[len - 1] === 'function') {
2303        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
2304      } else {
2305        return new Promise((resolve, reject) => {
2306          resolve(paramMock.paramNumberMock);
2307        })
2308      }
2309    },
2310    getWakeup: function (...args) {
2311      console.warn("SystemSetting.getWakeup interface mocked in the Previewer. How this interface works on the Previewer" +
2312        " may be different from that on a real device.")
2313      const len = args.length
2314      if (typeof args[len - 1] === 'function') {
2315        args[len - 1].call(this, paramMock.businessErrorMock, Wakeup);
2316      } else {
2317        return new Promise((resolve, reject) => {
2318          resolve(Wakeup);
2319        })
2320      }
2321    },
2322    enableLock: function (...args) {
2323      console.warn("SystemSetting.enableLock interface mocked in the Previewer. How this interface works on the Previewer" +
2324        " may be different from that on a real device.")
2325      const len = args.length
2326      if (typeof args[len - 1] === 'function') {
2327        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
2328      } else {
2329        return new Promise((resolve, reject) => {
2330          resolve(paramMock.paramNumberMock);
2331        })
2332      }
2333    },
2334    isLockEnabled: function (...args) {
2335      console.warn("SystemSetting.isLockEnabled interface mocked in the Previewer. How this interface works on the Previewer" +
2336        " may be different from that on a real device.")
2337      var sourceIndicesArray = new Array();
2338      sourceIndicesArray.push(SourceIndices);
2339      const len = args.length
2340      if (typeof args[len - 1] === 'function') {
2341        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
2342      } else {
2343        return new Promise((resolve, reject) => {
2344          resolve(paramMock.paramBooleanMock);
2345        })
2346      }
2347    },
2348    setParentLock: function (...args) {
2349      console.warn("SystemSetting.setParentLock interface mocked in the Previewer. How this interface works on the Previewer" +
2350        " may be different from that on a real device.")
2351      const len = args.length
2352      if (typeof args[len - 1] === 'function') {
2353        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
2354      } else {
2355        return new Promise((resolve, reject) => {
2356          resolve(paramMock.paramNumberMock);
2357        })
2358      }
2359    },
2360    getParentLock: function (...args) {
2361      console.warn("SystemSetting.getParentLock interface mocked in the Previewer. How this interface works on the Previewer" +
2362        " may be different from that on a real device.")
2363      const len = args.length
2364      if (typeof args[len - 1] === 'function') {
2365        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
2366      } else {
2367        return new Promise((resolve, reject) => {
2368          resolve(paramMock.paramNumberMock);
2369        })
2370      }
2371    },
2372    enableSrcLock: function (...args) {
2373      console.warn("SystemSetting.enableSrcLock interface mocked in the Previewer. How this interface works on the Previewer" +
2374        " may be different from that on a real device.")
2375      const len = args.length
2376      if (typeof args[len - 1] === 'function') {
2377        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
2378      } else {
2379        return new Promise((resolve, reject) => {
2380          resolve(paramMock.paramNumberMock);
2381        })
2382      }
2383    },
2384    isSrcLockEnabled: function (...args) {
2385      console.warn("SystemSetting.isSrcLockEnabled interface mocked in the Previewer. How this interface works on the Previewer" +
2386        " may be different from that on a real device.")
2387      const len = args.length
2388      if (typeof args[len - 1] === 'function') {
2389        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
2390      } else {
2391        return new Promise((resolve, reject) => {
2392          resolve(paramMock.paramBooleanMock);
2393        })
2394      }
2395    },
2396    isCurrentLocked: function (...args) {
2397      console.warn("SystemSetting.isCurrentLocked interface mocked in the Previewer. How this interface works on the Previewer" +
2398        " may be different from that on a real device.")
2399      const len = args.length
2400      if (typeof args[len - 1] === 'function') {
2401        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
2402      } else {
2403        return new Promise((resolve, reject) => {
2404          resolve(paramMock.paramNumberMock);
2405        })
2406      }
2407    },
2408    enableDtvLock: function (...args) {
2409      console.warn("SystemSetting.enableDtvLock interface mocked in the Previewer. How this interface works on the Previewer" +
2410        " may be different from that on a real device.")
2411      const len = args.length
2412      if (typeof args[len - 1] === 'function') {
2413        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
2414      } else {
2415        return new Promise((resolve, reject) => {
2416          resolve(paramMock.paramNumberMock);
2417        })
2418      }
2419    },
2420    isDtvLockEnabled: function (...args) {
2421      console.warn("SystemSetting.isDtvLockEnabled interface mocked in the Previewer. How this interface works on the Previewer" +
2422        " may be different from that on a real device.")
2423      const len = args.length
2424      if (typeof args[len - 1] === 'function') {
2425        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
2426      } else {
2427        return new Promise((resolve, reject) => {
2428          resolve(paramMock.paramBooleanMock);
2429        })
2430      }
2431    },
2432    setDtvLockDefaultStatus: function (...args) {
2433      console.warn("SystemSetting.setDtvLockDefaultStatus interface mocked in the Previewer. How this interface works on the Previewer" +
2434        " may be different from that on a real device.")
2435      const len = args.length
2436      if (typeof args[len - 1] === 'function') {
2437        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
2438      } else {
2439        return new Promise((resolve, reject) => {
2440          resolve(paramMock.paramNumberMock);
2441        })
2442      }
2443    },
2444    enableTemperatureCtrl: function (...args) {
2445      console.warn("SystemSetting.enableTemperatureCtrl interface mocked in the Previewer. How this interface works on the Previewer" +
2446        " may be different from that on a real device.")
2447      const len = args.length
2448      if (typeof args[len - 1] === 'function') {
2449        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
2450      } else {
2451        return new Promise((resolve, reject) => {
2452          resolve(paramMock.paramNumberMock);
2453        })
2454      }
2455    },
2456    isTemperatureCtrlEnabled: function (...args) {
2457      console.warn("SystemSetting.isTemperatureCtrlEnabled interface mocked in the Previewer. How this interface works on the Previewer" +
2458        " may be different from that on a real device.")
2459      const len = args.length
2460      if (typeof args[len - 1] === 'function') {
2461        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
2462      } else {
2463        return new Promise((resolve, reject) => {
2464          resolve(paramMock.paramBooleanMock);
2465        })
2466      }
2467    },
2468    isTemperatureCtrlSupported: function (...args) {
2469      console.warn("SystemSetting.isTemperatureCtrlSupported interface mocked in the Previewer. How this interface works on the Previewer" +
2470        " may be different from that on a real device.")
2471      const len = args.length
2472      if (typeof args[len - 1] === 'function') {
2473        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
2474      } else {
2475        return new Promise((resolve, reject) => {
2476          resolve(paramMock.paramBooleanMock);
2477        })
2478      }
2479    },
2480    isLampEffectSupported: function (...args) {
2481      console.warn("SystemSetting.isLampEffectSupported interface mocked in the Previewer. How this interface works on the Previewer" +
2482        " may be different from that on a real device.")
2483      const len = args.length
2484      if (typeof args[len - 1] === 'function') {
2485        args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
2486      } else {
2487        return new Promise((resolve, reject) => {
2488          resolve(paramMock.paramBooleanMock);
2489        })
2490      }
2491    }
2492  }
2493  return result;
2494}