• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2023 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 { describe, expect, it } from '@ohos/hypium'
17import nativeWindow from 'libnativewindow.so'
18import { BusinessError } from '@kit.BasicServicesKit'
19
20export default function nativeWindowTest() {
21  describe('NativeWindowTest', () => {
22    const SUCCESS = 0;
23    const FAIL = -1;
24
25    // Native Window Test
26
27    /**
28     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0100
29     * @tc.name       : testNativeWindowCreateNativeWindowNullptr
30     * @tc.desc       : testNativeWindowCreateNativeWindowNullptr
31     * @tc.size       : MediumTest
32     * @tc.type       : Function
33     * @tc.level      : Level 3
34     */
35    it('testNativeWindowCreateNativeWindowNullptr', 3, async (done: Function) => {
36      let result: number = nativeWindow.testNativeWindowCreateNativeWindowNullptr();
37      expect(result).assertEqual(0);
38      done();
39    });
40
41    /**
42     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0101
43     * @tc.name       : testNativeWindowDestroyNativeWindowNullptr
44     * @tc.desc       : testNativeWindowDestroyNativeWindowNullptr
45     * @tc.size       : MediumTest
46     * @tc.type       : Function
47     * @tc.level      : Level 3
48     */
49    it('testNativeWindowDestroyNativeWindowNullptr', 3, async (done: Function) => {
50      let result: number = nativeWindow.testNativeWindowDestroyNativeWindowNullptr();
51      expect(result).assertEqual(0);
52      done();
53    });
54
55    /**
56     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0102
57     * @tc.name       : testNativeWindowGetSurfaceIdNullptr
58     * @tc.desc       : testNativeWindowGetSurfaceIdNullptr
59     * @tc.size       : MediumTest
60     * @tc.type       : Function
61     * @tc.level      : Level 3
62     */
63    it('testNativeWindowGetSurfaceIdNullptr', 3, async (done: Function) => {
64      let result: number = nativeWindow.testNativeWindowGetSurfaceIdNullptr();
65      expect(result).assertEqual(0);
66      done();
67    });
68
69    /**
70     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0200
71     * @tc.name       : testNativeWindowCreateNativeWindowFromSurfaceIdNullptr
72     * @tc.desc       : testNativeWindowCreateNativeWindowFromSurfaceIdNullptr
73     * @tc.size       : MediumTest
74     * @tc.type       : Function
75     * @tc.level      : Level 3
76     */
77    it('testNativeWindowCreateNativeWindowFromSurfaceIdNullptr', 3, async (done: Function) => {
78      let result: number = nativeWindow.testNativeWindowCreateNativeWindowFromSurfaceIdNullptr();
79      expect(result).assertEqual(0);
80      done();
81    });
82
83
84    /**
85     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0201
86     * @tc.name       : testNativeWindowCreateNativeWindowFromSurfaceIdNormal
87     * @tc.desc       : testNativeWindowCreateNativeWindowFromSurfaceIdNormal
88     * @tc.size       : MediumTest
89     * @tc.type       : Function
90     * @tc.level      : Level 0
91     */
92    it('testNativeWindowCreateNativeWindowFromSurfaceIdNormal', 0, async (done: Function) => {
93      let result: number = nativeWindow.testNativeWindowCreateNativeWindowFromSurfaceIdNormal();
94      expect(result).assertEqual(0);
95      done();
96    });
97
98
99    /**
100     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0202
101     * @tc.name       : testNativeWindowCreateNativeWindowFromSurfaceIdSurfaceId
102     * @tc.desc       : testNativeWindowCreateNativeWindowFromSurfaceIdSurfaceId
103     * @tc.size       : MediumTest
104     * @tc.type       : Function
105     * @tc.level      : Level 1
106     */
107    it('testNativeWindowCreateNativeWindowFromSurfaceIdSurfaceId', 1, async (done: Function) => {
108      let result: number = nativeWindow.testNativeWindowCreateNativeWindowFromSurfaceIdSurfaceId();
109      expect(result).assertEqual(0);
110      done();
111    });
112
113
114    /**
115     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0300
116     * @tc.name       : testNativeWindowCreateNativeWindowBufferFromNativeBufferNullptr
117     * @tc.desc       : testNativeWindowCreateNativeWindowBufferFromNativeBufferNullptr
118     * @tc.size       : MediumTest
119     * @tc.type       : Function
120     * @tc.level      : Level 3
121     */
122    it('testNativeWindowCreateNativeWindowBufferFromNativeBufferNullptr', 3, async (done: Function) => {
123      let result: number = nativeWindow.testNativeWindowCreateNativeWindowBufferFromNativeBufferNullptr();
124      expect(result).assertEqual(0);
125      done();
126    });
127    /**
128     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0301
129     * @tc.name       : testNativeWindowCreateNativeWindowBufferFromSurfaceBufferNullptr
130     * @tc.desc       : testNativeWindowCreateNativeWindowBufferFromSurfaceBufferNullptr
131     * @tc.size       : MediumTest
132     * @tc.type       : Function
133     * @tc.level      : Level 3
134     */
135    it('testNativeWindowCreateNativeWindowBufferFromSurfaceBufferNullptr', 3, async (done: Function) => {
136      let result: number = nativeWindow.testNativeWindowCreateNativeWindowBufferFromSurfaceBufferNullptr();
137      expect(result).assertEqual(0);
138      done();
139    });
140    /**
141     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0302
142     * @tc.name       : testNativeWindowDestroyNativeWindowBufferNullptr
143     * @tc.desc       : testNativeWindowDestroyNativeWindowBufferNullptr
144     * @tc.size       : MediumTest
145     * @tc.type       : Function
146     * @tc.level      : Level 3
147     */
148    it('testNativeWindowDestroyNativeWindowBufferNullptr', 3, async (done: Function) => {
149      let result: number = nativeWindow.testNativeWindowDestroyNativeWindowBufferNullptr();
150      expect(result).assertEqual(0);
151      done();
152    });
153    /**
154     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0303
155     * @tc.name       : testNativeWindowGetBufferHandleFromNativeNullptr
156     * @tc.desc       : testNativeWindowGetBufferHandleFromNativeNullptr
157     * @tc.size       : MediumTest
158     * @tc.type       : Function
159     * @tc.level      : Level 3
160     */
161    it('testNativeWindowGetBufferHandleFromNativeNullptr', 3, async (done: Function) => {
162      let result: number = nativeWindow.testNativeWindowGetBufferHandleFromNativeNullptr();
163      expect(result).assertEqual(0);
164      done();
165    });
166    /**
167     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0304
168     * @tc.name       : testNativeWindowCreateNativeWindowBufferFromNativeBufferNormal
169     * @tc.desc       : testNativeWindowCreateNativeWindowBufferFromNativeBufferNormal
170     * @tc.size       : MediumTest
171     * @tc.type       : Function
172     * @tc.level      : Level 0
173     */
174    it('testNativeWindowCreateNativeWindowBufferFromNativeBufferNormal', 0, async (done: Function) => {
175      let result: number = nativeWindow.testNativeWindowCreateNativeWindowBufferFromNativeBufferNormal();
176      expect(result).assertEqual(0);
177      done();
178    });
179    /**
180     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0306
181     * @tc.name       : testNativeWindowCreateNativeWindowBufferFromNativeBufferMuch
182     * @tc.desc       : testNativeWindowCreateNativeWindowBufferFromNativeBufferMuch
183     * @tc.size       : MediumTest
184     * @tc.type       : Function
185     * @tc.level      : Level 3
186     */
187    it('testNativeWindowCreateNativeWindowBufferFromNativeBufferMuch', 3, async (done: Function) => {
188      let result: number = nativeWindow.testNativeWindowCreateNativeWindowBufferFromNativeBufferMuch();
189      expect(result).assertEqual(0);
190      done();
191    });
192
193
194    /**
195     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0400
196     * @tc.name       : testNativeWindowNativeWindowRequestBufferNullptr
197     * @tc.desc       : testNativeWindowNativeWindowRequestBufferNullptr
198     * @tc.size       : MediumTest
199     * @tc.type       : Function
200     * @tc.level      : Level 3
201     */
202    it('testNativeWindowNativeWindowRequestBufferNullptr', 3, async (done: Function) => {
203      let result: number = nativeWindow.testNativeWindowNativeWindowRequestBufferNullptr();
204      expect(result).assertEqual(0);
205      done();
206    });
207    /**
208     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0401
209     * @tc.name       : testNativeWindowNativeWindowAbortBufferNullptr
210     * @tc.desc       : testNativeWindowNativeWindowAbortBufferNullptr
211     * @tc.size       : MediumTest
212     * @tc.type       : Function
213     * @tc.level      : Level 3
214     */
215    it('testNativeWindowNativeWindowAbortBufferNullptr', 3, async (done: Function) => {
216      let result: number = nativeWindow.testNativeWindowNativeWindowAbortBufferNullptr();
217      expect(result).assertEqual(0);
218      done();
219    });
220    /**
221     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0402
222     * @tc.name       : testNativeWindowNativeWindowRequestAbortBufferNormal
223     * @tc.desc       : testNativeWindowNativeWindowRequestAbortBufferNormal
224     * @tc.size       : MediumTest
225     * @tc.type       : Function
226     * @tc.level      : Level 3
227     */
228    it('testNativeWindowNativeWindowRequestAbortBufferNormal', 3, async (done: Function) => {
229      let result: number = nativeWindow.testNativeWindowNativeWindowRequestAbortBufferNormal();
230      expect(result).assertEqual(0);
231      done();
232    });
233    /**
234     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0403
235     * @tc.name       : testNativeWindowNativeWindowRequestAbortBufferAbnormal
236     * @tc.desc       : testNativeWindowNativeWindowRequestAbortBufferAbnormal
237     * @tc.size       : MediumTest
238     * @tc.type       : Function
239     * @tc.level      : Level 3
240     */
241    it('testNativeWindowNativeWindowRequestAbortBufferAbnormal', 3, async (done: Function) => {
242      let result: number = nativeWindow.testNativeWindowNativeWindowRequestAbortBufferAbnormal();
243      expect(result).assertEqual(0);
244      done();
245    });
246    /**
247     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0404
248     * @tc.name       : testNativeWindowNativeWindowRequestBufferFenceFdNormal
249     * @tc.desc       : testNativeWindowNativeWindowRequestBufferFenceFdNormal
250     * @tc.size       : MediumTest
251     * @tc.type       : Function
252     * @tc.level      : Level 3
253     */
254    it('testNativeWindowNativeWindowRequestBufferFenceFdNormal', 3, async (done: Function) => {
255      let result: number = nativeWindow.testNativeWindowNativeWindowRequestBufferFenceFdNormal();
256      expect(result).assertEqual(0);
257      done();
258    });
259    /**
260     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0405
261     * @tc.name       : testNativeWindowNativeWindowRequestBufferFenceFdAbnormal
262     * @tc.desc       : testNativeWindowNativeWindowRequestBufferFenceFdAbnormal
263     * @tc.size       : MediumTest
264     * @tc.type       : Function
265     * @tc.level      : Level 3
266     */
267    it('testNativeWindowNativeWindowRequestBufferFenceFdAbnormal', 3, async (done: Function) => {
268      let result: number = nativeWindow.testNativeWindowNativeWindowRequestBufferFenceFdAbnormal();
269      expect(result).assertEqual(0);
270      done();
271    });
272    /**
273     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0406
274     * @tc.name       : testNativeWindowNativeWindowRequestAbortBufferMax
275     * @tc.desc       : testNativeWindowNativeWindowRequestAbortBufferMax
276     * @tc.size       : MediumTest
277     * @tc.type       : Function
278     * @tc.level      : Level 3
279     */
280    it('testNativeWindowNativeWindowRequestAbortBufferMax', 3, async (done: Function) => {
281      let result: number = nativeWindow.testNativeWindowNativeWindowRequestAbortBufferMax();
282      expect(result).assertEqual(0);
283      done();
284    });
285    /**
286     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0407
287     * @tc.name       : testNativeWindowNativeWindowRequestAbortBufferErrorCode
288     * @tc.desc       : testNativeWindowNativeWindowRequestAbortBufferErrorCode
289     * @tc.size       : MediumTest
290     * @tc.type       : Function
291     * @tc.level      : Level 3
292     */
293    it('testNativeWindowNativeWindowRequestAbortBufferErrorCode', 3, async (done: Function) => {
294      let result: number = nativeWindow.testNativeWindowNativeWindowRequestAbortBufferErrorCode();
295      expect(result).assertEqual(0);
296      done();
297    });
298
299
300    /**
301     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0500
302     * @tc.name       : testNativeWindowWriteToParcelErrptr
303     * @tc.desc       : testNativeWindowWriteToParcelErrptr
304     * @tc.size       : MediumTest
305     * @tc.type       : Function
306     * @tc.level      : Level 3
307     */
308    it('testNativeWindowWriteToParcelErrptr', 3, async (done: Function) => {
309      let result: number = nativeWindow.testNativeWindowWriteToParcelErrptr();
310      expect(result).assertEqual(0);
311      done();
312    });
313
314    /**
315     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0501
316     * @tc.name       : testNativeWindowReadFromParcelErrptr
317     * @tc.desc       : testNativeWindowReadFromParcelErrptr
318     * @tc.size       : MediumTest
319     * @tc.type       : Function
320     * @tc.level      : Level 3
321     */
322    it('testNativeWindowReadFromParcelErrptr', 3, async (done: Function) => {
323      let result: number = nativeWindow.testNativeWindowReadFromParcelErrptr();
324      expect(result).assertEqual(0);
325      done();
326    });
327
328    /**
329     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0502
330     * @tc.name       : testNativeWindowWRParcelNormal
331     * @tc.desc       : testNativeWindowWRParcelNormal
332     * @tc.size       : MediumTest
333     * @tc.type       : Function
334     * @tc.level      : Level 3
335     */
336    it('testNativeWindowWRParcelNormal', 3, async (done: Function) => {
337      let result: number = nativeWindow.testNativeWindowWRParcelNormal();
338      expect(result).assertEqual(0);
339      done();
340    });
341
342    /**
343     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0503
344     * @tc.name       : testNativeWindowWriteToParcelAbNormal
345     * @tc.desc       : testNativeWindowWriteToParcelAbNormal
346     * @tc.size       : MediumTest
347     * @tc.type       : Function
348     * @tc.level      : Level 3
349     */
350    it('testNativeWindowWriteToParcelAbNormal', 3, async (done: Function) => {
351      let result: number = nativeWindow.testNativeWindowWriteToParcelAbNormal();
352      expect(result).assertEqual(0);
353      done();
354    });
355
356    /**
357     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0504
358     * @tc.name       : testNativeWindowReadFromParcelAbNormal
359     * @tc.desc       : testNativeWindowReadFromParcelAbNormal
360     * @tc.size       : MediumTest
361     * @tc.type       : Function
362     * @tc.level      : Level 3
363     */
364    it('testNativeWindowReadFromParcelAbNormal', 3, async (done: Function) => {
365      let result: number = nativeWindow.testNativeWindowReadFromParcelAbNormal();
366      expect(result).assertEqual(0);
367      done();
368    });
369
370    /**
371     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0505
372     * @tc.name       : testNativeWindowWRParcelDifferent
373     * @tc.desc       : testNativeWindowWRParcelDifferent
374     * @tc.size       : MediumTest
375     * @tc.type       : Function
376     * @tc.level      : Level 3
377     */
378    it('testNativeWindowWRParcelDifferent', 3, async (done: Function) => {
379      let result: number = nativeWindow.testNativeWindowWRParcelDifferent();
380      expect(result).assertEqual(0);
381      done();
382    });
383
384
385    /**
386     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1700
387     * @tc.name       : testNativeWindowNativeWindowFlushBufferNullptr
388     * @tc.desc       : testNativeWindowNativeWindowFlushBufferNullptr
389     * @tc.size       : MediumTest
390     * @tc.type       : Function
391     * @tc.level      : Level 4
392     */
393    it('testNativeWindowNativeWindowFlushBufferNullptr', 4, async (done: Function) => {
394      let result: number = nativeWindow.testNativeWindowNativeWindowFlushBufferNullptr();
395      expect(result).assertEqual(0);
396      done();
397    });
398
399    /**
400     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1701
401     * @tc.name       : testNativeWindowNativeWindowFlushBufferNormal
402     * @tc.desc       : testNativeWindowNativeWindowFlushBufferNormal
403     * @tc.size       : MediumTest
404     * @tc.type       : Function
405     * @tc.level      : Level 0
406     */
407    it('testNativeWindowNativeWindowFlushBufferNormal', 0, async (done: Function) => {
408      let result: number = nativeWindow.testNativeWindowNativeWindowFlushBufferNormal();
409      expect(result).assertEqual(0);
410      done();
411    });
412
413    /**
414     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1702
415     * @tc.name       : testNativeWindowNativeWindowFlushBufferAbnormal
416     * @tc.desc       : testNativeWindowNativeWindowFlushBufferAbnormal
417     * @tc.size       : MediumTest
418     * @tc.type       : Function
419     * @tc.level      : Level 3
420     */
421    it('testNativeWindowNativeWindowFlushBufferAbnormal', 3, async (done: Function) => {
422      let result: number = nativeWindow.testNativeWindowNativeWindowFlushBufferAbnormal();
423      expect(result).assertEqual(0);
424      done();
425    });
426
427    /**
428     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1703
429     * @tc.name       : testNativeWindowNativeWindowFlushBufferErrorCode
430     * @tc.desc       : testNativeWindowNativeWindowFlushBufferErrorCode
431     * @tc.size       : MediumTest
432     * @tc.type       : Function
433     * @tc.level      : Level 3
434     */
435    it('testNativeWindowNativeWindowFlushBufferErrorCode', 3, async (done: Function) => {
436      let result: number = nativeWindow.testNativeWindowNativeWindowFlushBufferErrorCode();
437      expect(result).assertEqual(0);
438      done();
439    });
440
441    /**
442     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0600
443     * @tc.name       : testNativeWindowGetLastFlushedBufferV2Nullptr
444     * @tc.desc       : testNativeWindowGetLastFlushedBufferV2Nullptr
445     * @tc.size       : MediumTest
446     * @tc.type       : Function
447     * @tc.level      : Level 3
448     */
449    it('testNativeWindowGetLastFlushedBufferV2Nullptr', 3, async (done: Function) => {
450      let result: number = nativeWindow.testNativeWindowGetLastFlushedBufferV2Nullptr();
451      expect(result).assertEqual(0);
452      done();
453    });
454
455
456    /**
457     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0601
458     * @tc.name       : testNativeWindowGetLastFlushedBufferNullptr
459     * @tc.desc       : testNativeWindowGetLastFlushedBufferNullptr
460     * @tc.size       : MediumTest
461     * @tc.type       : Function
462     * @tc.level      : Level 3
463     */
464    it('testNativeWindowGetLastFlushedBufferNullptr', 3, async (done: Function) => {
465      let result: number = nativeWindow.testNativeWindowGetLastFlushedBufferNullptr();
466      expect(result).assertEqual(0);
467      done();
468    });
469
470
471    /**
472     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0602
473     * @tc.name       : testNativeWindowGetLastFlushedBufferV2Normal
474     * @tc.desc       : testNativeWindowGetLastFlushedBufferV2Normal
475     * @tc.size       : MediumTest
476     * @tc.type       : Function
477     * @tc.level      : Level 0
478     */
479    it('testNativeWindowGetLastFlushedBufferV2Normal', 0, async (done: Function) => {
480      let result: number = nativeWindow.testNativeWindowGetLastFlushedBufferV2Normal();
481      expect(result).assertEqual(0);
482      done();
483    });
484
485
486    /**
487     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0603
488     * @tc.name       : testNativeWindowGetLastFlushedBufferNormal
489     * @tc.desc       : testNativeWindowGetLastFlushedBufferNormal
490     * @tc.size       : MediumTest
491     * @tc.type       : Function
492     * @tc.level      : Level 0
493     */
494    it('testNativeWindowGetLastFlushedBufferNormal', 0, async (done: Function) => {
495      let result: number = nativeWindow.testNativeWindowGetLastFlushedBufferNormal();
496      expect(result).assertEqual(0);
497      done();
498    });
499
500    /**
501     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1600
502     * @tc.name       : testNativeWindowSetBufferHold
503     * @tc.desc       : testNativeWindowSetBufferHold
504     * @tc.size       : MediumTest
505     * @tc.type       : Function
506     * @tc.level      : Level 0
507     */
508    it('testNativeWindowSetBufferHold', 0, async (done: Function) => {
509      let result: number = nativeWindow.testNativeWindowSetBufferHold();
510      expect(result).assertEqual(0);
511      done();
512    });
513
514
515    /**
516     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0701
517     * @tc.name       : testNativeWindowGetNativeObjectMagicNormal
518     * @tc.desc       : testNativeWindowGetNativeObjectMagicNormal
519     * @tc.size       : MediumTest
520     * @tc.type       : Function
521     * @tc.level      : Level 0
522     */
523    it('testNativeWindowGetNativeObjectMagicNormal', 3, async (done: Function) => {
524      let result: number = nativeWindow.testNativeWindowGetNativeObjectMagicNormal();
525      expect(result).assertEqual(0);
526      done();
527    });
528
529
530    /**
531     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0700
532     * @tc.name       : testNativeWindowGetNativeObjectMagicNullptr
533     * @tc.desc       : testNativeWindowGetNativeObjectMagicNullptr
534     * @tc.size       : MediumTest
535     * @tc.type       : Function
536     * @tc.level      : Level 3
537     */
538    it('testNativeWindowGetNativeObjectMagicNullptr', 3, async (done: Function) => {
539      let result: number = nativeWindow.testNativeWindowGetNativeObjectMagicNullptr();
540      expect(result).assertEqual(0);
541      done();
542    });
543
544
545
546    /**
547     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0702
548     * @tc.name       : testNativeWindowNativeObjectReferenceNullptr
549     * @tc.desc       : testNativeWindowNativeObjectReferenceNullptr
550     * @tc.size       : MediumTest
551     * @tc.type       : Function
552     * @tc.level      : Level 3
553     */
554    it('testNativeWindowNativeObjectReferenceNullptr', 3, async (done: Function) => {
555      let result: number = nativeWindow.testNativeWindowNativeObjectReferenceNullptr();
556      expect(result).assertEqual(0);
557      done();
558    });
559
560
561    /**
562     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0703
563     * @tc.name       : testNativeWindowNativeObjectReferenceNormal
564     * @tc.desc       : testNativeWindowNativeObjectReferenceNormal
565     * @tc.size       : MediumTest
566     * @tc.type       : Function
567     * @tc.level      : Level 0
568     */
569    it('testNativeWindowNativeObjectReferenceNormal', 3, async (done: Function) => {
570      let result: number = nativeWindow.testNativeWindowNativeObjectReferenceNormal();
571      expect(result).assertEqual(0);
572      done();
573    });
574
575
576    /**
577     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0704
578     * @tc.name       : testNativeWindowNativeObjectUnreferenceNullptr
579     * @tc.desc       : testNativeWindowNativeObjectUnreferenceNullptr
580     * @tc.size       : MediumTest
581     * @tc.type       : Function
582     * @tc.level      : Level 3
583     */
584    it('testNativeWindowNativeObjectUnreferenceNullptr', 3, async (done: Function) => {
585      let result: number = nativeWindow.testNativeWindowNativeObjectUnreferenceNullptr();
586      expect(result).assertEqual(0);
587      done();
588    });
589
590
591    /**
592     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0705
593     * @tc.name       : testNativeWindowNativeObjectUnreferenceNormal
594     * @tc.desc       : testNativeWindowNativeObjectUnreferenceNormal
595     * @tc.size       : MediumTest
596     * @tc.type       : Function
597     * @tc.level      : Level 3
598     */
599    it('testNativeWindowNativeObjectUnreferenceNormal', 3, async (done: Function) => {
600      let result: number = nativeWindow.testNativeWindowNativeObjectUnreferenceNormal();
601      expect(result).assertEqual(0);
602      done();
603    });
604
605
606    /**
607     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0800
608     * @tc.name       : testNativeWindowNativeWindowAttachBufferNullptr
609     * @tc.desc       : testNativeWindowNativeWindowAttachBufferNullptr
610     * @tc.size       : MediumTest
611     * @tc.type       : Function
612     * @tc.level      : Level 3
613     */
614    it('testNativeWindowNativeWindowAttachBufferNullptr', 3, async (done: Function) => {
615      let result: number = nativeWindow.testNativeWindowNativeWindowAttachBufferNullptr();
616      expect(result).assertEqual(0);
617      done();
618    });
619
620
621    /**
622     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0801
623     * @tc.name       : testNativeWindowNativeWindowDetachBufferNullptr
624     * @tc.desc       : testNativeWindowNativeWindowDetachBufferNullptr
625     * @tc.size       : MediumTest
626     * @tc.type       : Function
627     * @tc.level      : Level 3
628     */
629    it('testNativeWindowNativeWindowDetachBufferNullptr', 3, async (done: Function) => {
630      let result: number = nativeWindow.testNativeWindowNativeWindowDetachBufferNullptr();
631      expect(result).assertEqual(0);
632      done();
633    });
634
635
636    /**
637     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0803
638     * @tc.name       : testNativeWindowNativeWindowDetachBufferNormal
639     * @tc.desc       : testNativeWindowNativeWindowDetachBufferNormal
640     * @tc.size       : MediumTest
641     * @tc.type       : Function
642     * @tc.level      : Level 0
643     */
644    it('testNativeWindowNativeWindowDetachBufferNormal', 0, async (done: Function) => {
645      let result: number = nativeWindow.testNativeWindowNativeWindowDetachBufferNormal();
646      expect(result).assertEqual(0);
647      done();
648    });
649
650
651    /**
652     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0807
653     * @tc.name       : testNativeWindowNativeWindowAttachBufferErrorCode
654     * @tc.desc       : testNativeWindowNativeWindowAttachBufferErrorCode
655     * @tc.size       : MediumTest
656     * @tc.type       : Function
657     * @tc.level      : Level 2
658     */
659    it('testNativeWindowNativeWindowAttachBufferErrorCode', 2, async (done: Function) => {
660      let result: number = nativeWindow.testNativeWindowNativeWindowAttachBufferErrorCode();
661      expect(result).assertEqual(0);
662      done();
663    });
664
665
666    /**
667     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0802
668     * @tc.name       : testNativeWindowNativeWindowAttachBufferNormal
669     * @tc.desc       : testNativeWindowNativeWindowAttachBufferNormal
670     * @tc.size       : MediumTest
671     * @tc.type       : Function
672     * @tc.level      : Level 0
673     */
674    it('testNativeWindowNativeWindowAttachBufferNormal', 0, async (done: Function) => {
675      let result: number = nativeWindow.testNativeWindowNativeWindowAttachBufferNormal();
676      expect(result).assertEqual(0);
677      done();
678    });
679
680
681    /**
682     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0807
683     * @tc.name       : testNativeWindowNativeWindowDetachBufferErrorCode
684     * @tc.desc       : testNativeWindowNativeWindowDetachBufferErrorCode
685     * @tc.size       : MediumTest
686     * @tc.type       : Function
687     * @tc.level      : Level 2
688     */
689    it('testNativeWindowNativeWindowDetachBufferErrorCode', 2, async (done: Function) => {
690      let result: number = nativeWindow.testNativeWindowNativeWindowDetachBufferErrorCode();
691      expect(result).assertEqual(0);
692      done();
693    });
694
695
696    /**
697     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0804
698     * @tc.name       : testNativeWindowNativeWindowAtDetachDifferentBufferNormal
699     * @tc.desc       : testNativeWindowNativeWindowAtDetachDifferentBufferNormal
700     * @tc.size       : MediumTest
701     * @tc.type       : Function
702     * @tc.level      : Level 1
703     */
704    it('testNativeWindowNativeWindowAtDetachDifferentBufferNormal', 1, async (done: Function) => {
705      let result: number = nativeWindow.testNativeWindowNativeWindowAtDetachDifferentBufferNormal();
706      expect(result).assertEqual(0);
707      done();
708    });
709
710
711    /**
712     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0805
713     * @tc.name       : testNativeWindowNativeWindowAtDetachDifferentBufferAbnormal
714     * @tc.desc       : testNativeWindowNativeWindowAtDetachDifferentBufferAbnormal
715     * @tc.size       : MediumTest
716     * @tc.type       : Function
717     * @tc.level      : Level 2
718     */
719    it('testNativeWindowNativeWindowAtDetachDifferentBufferAbnormal', 2, async (done: Function) => {
720      let result: number = nativeWindow.testNativeWindowNativeWindowAtDetachDifferentBufferAbnormal();
721      expect(result).assertEqual(0);
722      done();
723    });
724
725
726    /**
727     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0900
728     * @tc.name       : testNativeWindowNativeWindowHandleOptNullptr
729     * @tc.desc       : testNativeWindowNativeWindowHandleOptNullptr
730     * @tc.size       : MediumTest
731     * @tc.type       : Function
732     * @tc.level      : Level 4
733     */
734    it('testNativeWindowNativeWindowHandleOptNullptr', 4, async (done: Function) => {
735      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptNullptr();
736      expect(result).assertEqual(0);
737      done();
738    });
739
740
741    /**
742     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0901
743     * @tc.name       : testNativeWindowNativeWindowHandleOptSetGetBufferGeometryNormal
744     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetGetBufferGeometryNormal
745     * @tc.size       : MediumTest
746     * @tc.type       : Function
747     * @tc.level      : Level 0
748     */
749    it('testNativeWindowNativeWindowHandleOptSetGetBufferGeometryNormal', 0, async (done: Function) => {
750      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetGetBufferGeometryNormal();
751      expect(result).assertEqual(0);
752      done();
753    });
754
755
756    /**
757     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0902
758     * @tc.name       : testNativeWindowNativeWindowHandleOptSetGetBufferGeometryAbnormal
759     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetGetBufferGeometryAbnormal
760     * @tc.size       : MediumTest
761     * @tc.type       : Function
762     * @tc.level      : Level 3
763     */
764    it('testNativeWindowNativeWindowHandleOptSetGetBufferGeometryAbnormal', 3, async (done: Function) => {
765      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetGetBufferGeometryAbnormal();
766      expect(result).assertEqual(0);
767      done();
768    });
769
770
771    /**
772     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0903
773     * @tc.name       : testNativeWindowNativeWindowHandleOptSetGetFormatNormal
774     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetGetFormatNormal
775     * @tc.size       : MediumTest
776     * @tc.type       : Function
777     * @tc.level      : Level 3
778     */
779    it('testNativeWindowNativeWindowHandleOptSetGetFormatNormal', 3, async (done: Function) => {
780      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetGetFormatNormal();
781      expect(result).assertEqual(0);
782      done();
783    });
784
785
786    /**
787     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0904
788     * @tc.name       : testNativeWindowNativeWindowHandleOptSetGetFormatAbnormal
789     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetGetFormatAbnormal
790     * @tc.size       : MediumTest
791     * @tc.type       : Function
792     * @tc.level      : Level 3
793     */
794    it('testNativeWindowNativeWindowHandleOptSetGetFormatAbnormal', 3, async (done: Function) => {
795      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetGetFormatAbnormal();
796      expect(result).assertEqual(0);
797      done();
798    });
799
800
801    /**
802     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0905
803     * @tc.name       : testNativeWindowNativeWindowHandleOptSetGetUsageNormal
804     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetGetUsageNormal
805     * @tc.size       : MediumTest
806     * @tc.type       : Function
807     * @tc.level      : Level 3
808     */
809    it('testNativeWindowNativeWindowHandleOptSetGetUsageNormal', 3, async (done: Function) => {
810      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetGetUsageNormal();
811      expect(result).assertEqual(0);
812      done();
813    });
814
815
816    /**
817     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0906
818     * @tc.name       : testNativeWindowNativeWindowHandleOptSetGetUsageAbnormal
819     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetGetUsageAbnormal
820     * @tc.size       : MediumTest
821     * @tc.type       : Function
822     * @tc.level      : Level 3
823     */
824    it('testNativeWindowNativeWindowHandleOptSetGetUsageAbnormal', 3, async (done: Function) => {
825      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetGetUsageAbnormal();
826      expect(result).assertEqual(0);
827      done();
828    });
829
830
831    /**
832     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0907
833     * @tc.name       : testNativeWindowNativeWindowHandleOptSetGetStrideNormal
834     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetGetStrideNormal
835     * @tc.size       : MediumTest
836     * @tc.type       : Function
837     * @tc.level      : Level 3
838     */
839    it('testNativeWindowNativeWindowHandleOptSetGetStrideNormal', 3, async (done: Function) => {
840      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetGetStrideNormal();
841      expect(result).assertEqual(0);
842      done();
843    });
844
845
846    /**
847     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0908
848     * @tc.name       : testNativeWindowNativeWindowHandleOptSetGetStrideAbnormal
849     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetGetStrideAbnormal
850     * @tc.size       : MediumTest
851     * @tc.type       : Function
852     * @tc.level      : Level 3
853     */
854    it('testNativeWindowNativeWindowHandleOptSetGetStrideAbnormal', 3, async (done: Function) => {
855      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetGetStrideAbnormal();
856      expect(result).assertEqual(0);
857      done();
858    });
859
860
861    /**
862     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0909
863     * @tc.name       : testNativeWindowNativeWindowHandleOptSetGetSwapIntervalNormal
864     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetGetSwapIntervalNormal
865     * @tc.size       : MediumTest
866     * @tc.type       : Function
867     * @tc.level      : Level 3
868     */
869    it('testNativeWindowNativeWindowHandleOptSetGetSwapIntervalNormal', 3, async (done: Function) => {
870      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetGetSwapIntervalNormal();
871      expect(result).assertEqual(0);
872      done();
873    });
874
875
876    /**
877     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0910
878     * @tc.name       : testNativeWindowNativeWindowHandleOptSetGetSwapIntervalAbnormal
879     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetGetSwapIntervalAbnormal
880     * @tc.size       : MediumTest
881     * @tc.type       : Function
882     * @tc.level      : Level 3
883     */
884    it('testNativeWindowNativeWindowHandleOptSetGetSwapIntervalAbnormal', 3, async (done: Function) => {
885      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetGetSwapIntervalAbnormal();
886      expect(result).assertEqual(0);
887      done();
888    });
889
890
891    /**
892     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0911
893     * @tc.name       : testNativeWindowNativeWindowHandleOptSetGetColorGamutNormal
894     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetGetColorGamutNormal
895     * @tc.size       : MediumTest
896     * @tc.type       : Function
897     * @tc.level      : Level 3
898     */
899    it('testNativeWindowNativeWindowHandleOptSetGetColorGamutNormal', 3, async (done: Function) => {
900      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetGetColorGamutNormal();
901      expect(result).assertEqual(0);
902      done();
903    });
904
905
906    /**
907     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0912
908     * @tc.name       : testNativeWindowNativeWindowHandleOptSetGetColorGamutAbnormal
909     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetGetColorGamutAbnormal
910     * @tc.size       : MediumTest
911     * @tc.type       : Function
912     * @tc.level      : Level 3
913     */
914    it('testNativeWindowNativeWindowHandleOptSetGetColorGamutAbnormal', 3, async (done: Function) => {
915      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetGetColorGamutAbnormal();
916      expect(result).assertEqual(0);
917      done();
918    });
919
920
921    /**
922     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0913
923     * @tc.name       : testNativeWindowNativeWindowHandleOptSetGetTransformNormal
924     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetGetTransformNormal
925     * @tc.size       : MediumTest
926     * @tc.type       : Function
927     * @tc.level      : Level 3
928     */
929    it('testNativeWindowNativeWindowHandleOptSetGetTransformNormal', 3, async (done: Function) => {
930      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetGetTransformNormal();
931      expect(result).assertEqual(0);
932      done();
933    });
934
935
936    /**
937     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0914
938     * @tc.name       : testNativeWindowNativeWindowHandleOptSetGetTransformAbnormal
939     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetGetTransformAbnormal
940     * @tc.size       : MediumTest
941     * @tc.type       : Function
942     * @tc.level      : Level 3
943     */
944    it('testNativeWindowNativeWindowHandleOptSetGetTransformAbnormal', 3, async (done: Function) => {
945      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetGetTransformAbnormal();
946      expect(result).assertEqual(0);
947      done();
948    });
949
950
951    /**
952     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0915
953     * @tc.name       : testNativeWindowNativeWindowHandleOptSetUiTimeStampNormal
954     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetUiTimeStampNormal
955     * @tc.size       : MediumTest
956     * @tc.type       : Function
957     * @tc.level      : Level 3
958     */
959    it('testNativeWindowNativeWindowHandleOptSetUiTimeStampNormal', 3, async (done: Function) => {
960      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetUiTimeStampNormal();
961      expect(result).assertEqual(0);
962      done();
963    });
964
965
966    /**
967     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0916
968     * @tc.name       : testNativeWindowNativeWindowHandleOptSetUiTimeStampAbnormal
969     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetUiTimeStampAbnormal
970     * @tc.size       : MediumTest
971     * @tc.type       : Function
972     * @tc.level      : Level 3
973     */
974    it('testNativeWindowNativeWindowHandleOptSetUiTimeStampAbnormal', 3, async (done: Function) => {
975      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetUiTimeStampAbnormal();
976      expect(result).assertEqual(0);
977      done();
978    });
979
980
981    /**
982     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0917
983     * @tc.name       : testNativeWindowNativeWindowHandleOptGetBufferQueueSize
984     * @tc.desc       : testNativeWindowNativeWindowHandleOptGetBufferQueueSize
985     * @tc.size       : MediumTest
986     * @tc.type       : Function
987     * @tc.level      : Level 2
988     */
989    it('testNativeWindowNativeWindowHandleOptGetBufferQueueSize', 2, async (done: Function) => {
990      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptGetBufferQueueSize();
991      expect(result).assertEqual(0);
992      done();
993    });
994
995
996    /**
997     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0918
998     * @tc.name       : testNativeWindowNativeWindowHandleOptSetHdrWhitePointBrightnessNormal
999     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetHdrWhitePointBrightnessNormal
1000     * @tc.size       : MediumTest
1001     * @tc.type       : Function
1002     * @tc.level      : Level 3
1003     */
1004    it('testNativeWindowNativeWindowHandleOptSetHdrWhitePointBrightnessNormal', 3, async (done: Function) => {
1005      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetHdrWhitePointBrightnessNormal();
1006      expect(result).assertEqual(0);
1007      done();
1008    });
1009
1010
1011    /**
1012     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0919
1013     * @tc.name       : testNativeWindowNativeWindowHandleOptSetHdrWhitePointBrightnessAbnormal
1014     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetHdrWhitePointBrightnessAbnormal
1015     * @tc.size       : MediumTest
1016     * @tc.type       : Function
1017     * @tc.level      : Level 2
1018     */
1019    it('testNativeWindowNativeWindowHandleOptSetHdrWhitePointBrightnessAbnormal', 2, async (done: Function) => {
1020      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetHdrWhitePointBrightnessAbnormal();
1021      expect(result).assertEqual(0);
1022      done();
1023    });
1024
1025
1026    /**
1027     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0920
1028     * @tc.name       : testNativeWindowNativeWindowHandleOptSetSdrWhitePointBrightnessNormal
1029     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetSdrWhitePointBrightnessNormal
1030     * @tc.size       : MediumTest
1031     * @tc.type       : Function
1032     * @tc.level      : Level 3
1033     */
1034    it('testNativeWindowNativeWindowHandleOptSetSdrWhitePointBrightnessNormal', 3, async (done: Function) => {
1035      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetSdrWhitePointBrightnessNormal();
1036      expect(result).assertEqual(0);
1037      done();
1038    });
1039
1040
1041    /**
1042     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0921
1043     * @tc.name       : testNativeWindowNativeWindowHandleOptSetSdrWhitePointBrightnessAbnormal
1044     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetSdrWhitePointBrightnessAbnormal
1045     * @tc.size       : MediumTest
1046     * @tc.type       : Function
1047     * @tc.level      : Level 2
1048     */
1049    it('testNativeWindowNativeWindowHandleOptSetSdrWhitePointBrightnessAbnormal', 2, async (done: Function) => {
1050      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetSdrWhitePointBrightnessAbnormal();
1051      expect(result).assertEqual(0);
1052      done();
1053    });
1054
1055
1056    /**
1057     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0922
1058     * @tc.name       : testNativeWindowNativeWindowHandleOptSetGetSourceTypeNormal
1059     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetGetSourceTypeNormal
1060     * @tc.size       : MediumTest
1061     * @tc.type       : Function
1062     * @tc.level      : Level 3
1063     */
1064    it('testNativeWindowNativeWindowHandleOptSetGetSourceTypeNormal', 3, async (done: Function) => {
1065      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetGetSourceTypeNormal();
1066      expect(result).assertEqual(0);
1067      done();
1068    });
1069
1070
1071    /**
1072     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0923
1073     * @tc.name       : testNativeWindowNativeWindowHandleOptSetGetSourceTypeAbnormal
1074     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetGetSourceTypeAbnormal
1075     * @tc.size       : MediumTest
1076     * @tc.type       : Function
1077     * @tc.level      : Level 3
1078     */
1079    it('testNativeWindowNativeWindowHandleOptSetGetSourceTypeAbnormal', 3, async (done: Function) => {
1080      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetGetSourceTypeAbnormal();
1081      expect(result).assertEqual(0);
1082      done();
1083    });
1084
1085
1086    /**
1087     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0924
1088     * @tc.name       : testNativeWindowNativeWindowHandleOptSetGetAppFrameworkTypeNormal
1089     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetGetAppFrameworkTypeNormal
1090     * @tc.size       : MediumTest
1091     * @tc.type       : Function
1092     * @tc.level      : Level 2
1093     */
1094    it('testNativeWindowNativeWindowHandleOptSetGetAppFrameworkTypeNormal', 2, async (done: Function) => {
1095      let result: number | string = nativeWindow.testNativeWindowNativeWindowHandleOptSetGetAppFrameworkTypeNormal();
1096      expect(result).assertEqual(0);
1097      done();
1098    });
1099
1100
1101    /**
1102     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_0925
1103     * @tc.name       : testNativeWindowNativeWindowHandleOptSetGetAppFrameworkTypeAbnormal
1104     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetGetAppFrameworkTypeAbnormal
1105     * @tc.size       : MediumTest
1106     * @tc.type       : Function
1107     * @tc.level      : Level 3
1108     */
1109    it('testNativeWindowNativeWindowHandleOptSetGetAppFrameworkTypeAbnormal', 3, async (done: Function) => {
1110      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetGetAppFrameworkTypeAbnormal();
1111      expect(result).assertEqual(0);
1112      done();
1113    });
1114
1115
1116    /**
1117     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1300
1118     * @tc.name       : testNativeWindowNativeWindowSetSetScalingModeV2Nullptr
1119     * @tc.desc       : testNativeWindowNativeWindowSetSetScalingModeV2Nullptr
1120     * @tc.size       : MediumTest
1121     * @tc.type       : Function
1122     * @tc.level      : Level 3
1123     */
1124    it('testNativeWindowNativeWindowSetSetScalingModeV2Nullptr', 3, async (done: Function) => {
1125      let result: number = nativeWindow.testNativeWindowNativeWindowSetSetScalingModeV2Nullptr();
1126      expect(result).assertEqual(0);
1127      done();
1128    });
1129
1130
1131    /**
1132     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1301
1133     * @tc.name       : testNativeWindowNativeWindowSetScalingModeV2ScalingMode
1134     * @tc.desc       : testNativeWindowNativeWindowSetScalingModeV2ScalingMode
1135     * @tc.size       : MediumTest
1136     * @tc.type       : Function
1137     * @tc.level      : Level 0
1138     */
1139    it('testNativeWindowNativeWindowSetScalingModeV2ScalingMode', 0, async (done: Function) => {
1140      let result: number = nativeWindow.testNativeWindowNativeWindowSetScalingModeV2ScalingMode();
1141      expect(result).assertEqual(0);
1142      done();
1143    });
1144
1145
1146    /**
1147     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1500
1148     * @tc.name       : testNativeWindowGetColorSpaceFirst
1149     * @tc.desc       : testNativeWindowGetColorSpaceFirst
1150     * @tc.size       : MediumTest
1151     * @tc.type       : Function
1152     * @tc.level      : Level 3
1153     */
1154    it('testNativeWindowGetColorSpaceFirst', 3, async (done: Function) => {
1155      let result: number = nativeWindow.testNativeWindowGetColorSpaceFirst();
1156      expect(result).assertEqual(0);
1157      done();
1158    });
1159
1160
1161    /**
1162     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1501
1163     * @tc.name       : testNativeWindowSetColorSpaceNormal
1164     * @tc.desc       : testNativeWindowSetColorSpaceNormal
1165     * @tc.size       : MediumTest
1166     * @tc.type       : Function
1167     * @tc.level      : Level 3
1168     */
1169    it('testNativeWindowSetColorSpaceNormal', 3, async (done: Function) => {
1170      let result: number = nativeWindow.testNativeWindowSetColorSpaceNormal();
1171      expect(result).assertEqual(0);
1172      done();
1173    });
1174
1175
1176    /**
1177     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1502
1178     * @tc.name       : testNativeWindowSetColorSpaceNullptr
1179     * @tc.desc       : testNativeWindowSetColorSpaceNullptr
1180     * @tc.size       : MediumTest
1181     * @tc.type       : Function
1182     * @tc.level      : Level 3
1183     */
1184    it('testNativeWindowSetColorSpaceNullptr', 3, async (done: Function) => {
1185      let result: number = nativeWindow.testNativeWindowSetColorSpaceNullptr();
1186      expect(result).assertEqual(0);
1187      done();
1188    });
1189
1190
1191    /**
1192     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1503
1193     * @tc.name       : testNativeWindowSetColorSpaceAbnormal
1194     * @tc.desc       : testNativeWindowSetColorSpaceAbnormal
1195     * @tc.size       : MediumTest
1196     * @tc.type       : Function
1197     * @tc.level      : Level 4
1198     */
1199    it('testNativeWindowSetColorSpaceAbnormal', 4, async (done: Function) => {
1200      let result: number = nativeWindow.testNativeWindowSetColorSpaceAbnormal();
1201      expect(result).assertEqual(0);
1202      done();
1203    });
1204
1205
1206    /**
1207     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1504
1208     * @tc.name       : testNativeWindowGetColorSpaceNullptr
1209     * @tc.desc       : testNativeWindowGetColorSpaceNullptr
1210     * @tc.size       : MediumTest
1211     * @tc.type       : Function
1212     * @tc.level      : Level 3
1213     */
1214    it('testNativeWindowGetColorSpaceNullptr', 3, async (done: Function) => {
1215      let result: number = nativeWindow.testNativeWindowGetColorSpaceNullptr();
1216      expect(result).assertEqual(0);
1217      done();
1218    });
1219
1220
1221    /**
1222     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1505
1223     * @tc.name       : testNativeWindowGetMetadataValueFirst
1224     * @tc.desc       : testNativeWindowGetMetadataValueFirst
1225     * @tc.size       : MediumTest
1226     * @tc.type       : Function
1227     * @tc.level      : Level 3
1228     */
1229    it('testNativeWindowGetMetadataValueFirst', 3, async (done: Function) => {
1230      let result: number = nativeWindow.testNativeWindowGetMetadataValueFirst();
1231      expect(result).assertEqual(0);
1232      done();
1233    });
1234
1235
1236    /**
1237     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1506
1238     * @tc.name       : testNativeWindowSetDynamicMetadataValue
1239     * @tc.desc       : testNativeWindowSetDynamicMetadataValue
1240     * @tc.size       : MediumTest
1241     * @tc.type       : Function
1242     * @tc.level      : Level 0
1243     */
1244    it('testNativeWindowSetDynamicMetadataValue', 0, async (done: Function) => {
1245      let result: number = nativeWindow.testNativeWindowSetDynamicMetadataValue();
1246      expect(result).assertEqual(0);
1247      done();
1248    });
1249
1250
1251    /**
1252     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1507
1253     * @tc.name       : testNativeWindowSetMetadataValueTimes
1254     * @tc.desc       : testNativeWindowSetMetadataValueTimes
1255     * @tc.size       : MediumTest
1256     * @tc.type       : Function
1257     * @tc.level      : Level 3
1258     */
1259    it('testNativeWindowSetMetadataValueTimes', 3, async (done: Function) => {
1260      let result: number = nativeWindow.testNativeWindowSetMetadataValueTimes();
1261      expect(result).assertEqual(0);
1262      done();
1263    });
1264
1265
1266    /**
1267     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1508
1268     * @tc.name       : testNativeWindowSetStaticMetadataValue
1269     * @tc.desc       : testNativeWindowSetStaticMetadataValue
1270     * @tc.size       : MediumTest
1271     * @tc.type       : Function
1272     * @tc.level      : Level 1
1273     */
1274    it('testNativeWindowSetStaticMetadataValue', 1, async (done: Function) => {
1275      let result: number = nativeWindow.testNativeWindowSetStaticMetadataValue();
1276      expect(result).assertEqual(0);
1277      done();
1278    });
1279
1280
1281    /**
1282     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1509
1283     * @tc.name       : testNativeWindowSetMetadataValue
1284     * @tc.desc       : testNativeWindowSetMetadataValue
1285     * @tc.size       : MediumTest
1286     * @tc.type       : Function
1287     * @tc.level      : Level 1
1288     */
1289    it('testNativeWindowSetMetadataValue', 1, async (done: Function) => {
1290      let result: number = nativeWindow.testNativeWindowSetMetadataValue();
1291      expect(result).assertEqual(0);
1292      done();
1293    });
1294
1295
1296    /**
1297     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1510
1298     * @tc.name       : testNativeWindowSetNullMetadataValue
1299     * @tc.desc       : testNativeWindowSetNullMetadataValue
1300     * @tc.size       : MediumTest
1301     * @tc.type       : Function
1302     * @tc.level      : Level 4
1303     */
1304    it('testNativeWindowSetNullMetadataValue', 4, async (done: Function) => {
1305      let result: number = nativeWindow.testNativeWindowSetNullMetadataValue();
1306      expect(result).assertEqual(0);
1307      done();
1308    });
1309
1310
1311    /**
1312     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1511
1313     * @tc.name       : testNativeWindowSetMetadataValueNullptr
1314     * @tc.desc       : testNativeWindowSetMetadataValueNullptr
1315     * @tc.size       : MediumTest
1316     * @tc.type       : Function
1317     * @tc.level      : Level 3
1318     */
1319    it('testNativeWindowSetMetadataValueNullptr', 3, async (done: Function) => {
1320      let result: number = nativeWindow.testNativeWindowSetMetadataValueNullptr();
1321      expect(result).assertEqual(0);
1322      done();
1323    });
1324
1325
1326    /**
1327     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1512
1328     * @tc.name       : testNativeWindowGetMetadataValueAbnormal
1329     * @tc.desc       : testNativeWindowGetMetadataValueAbnormal
1330     * @tc.size       : MediumTest
1331     * @tc.type       : Function
1332     * @tc.level      : Level 4
1333     */
1334    it('testNativeWindowGetMetadataValueAbnormal', 4, async (done: Function) => {
1335      let result: number = nativeWindow.testNativeWindowGetMetadataValueAbnormal();
1336      expect(result).assertEqual(0);
1337      done();
1338    });
1339
1340
1341    /**
1342     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1513
1343     * @tc.name       : testNativeWindowGetMetadataValueNullptr
1344     * @tc.desc       : testNativeWindowGetMetadataValueNullptr
1345     * @tc.size       : MediumTest
1346     * @tc.type       : Function
1347     * @tc.level      : Level 3
1348     */
1349    it('testNativeWindowGetMetadataValueNullptr', 3, async (done: Function) => {
1350      let result: number = nativeWindow.testNativeWindowGetMetadataValueNullptr();
1351      expect(result).assertEqual(0);
1352      done();
1353    });
1354
1355
1356    /**
1357     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1514
1358     * @tc.name       : testNativeWindowNativeWindowHandleOptSetDesiredPresentTimeStampNormal
1359     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetDesiredPresentTimeStampNormal
1360     * @tc.size       : MediumTest
1361     * @tc.type       : Function
1362     * @tc.level      : Level 3
1363     */
1364    it('testNativeWindowNativeWindowHandleOptSetDesiredPresentTimeStampNormal', 3, async (done: Function) => {
1365      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetDesiredPresentTimeStampNormal();
1366      expect(result).assertEqual(0);
1367      done();
1368    });
1369
1370
1371    /**
1372     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1515
1373     * @tc.name       : testNativeWindowNativeWindowHandleOptSetDesiredPresentTimeStampAbNormal
1374     * @tc.desc       : testNativeWindowNativeWindowHandleOptSetDesiredPresentTimeStampAbNormal
1375     * @tc.size       : MediumTest
1376     * @tc.type       : Function
1377     * @tc.level      : Level 3
1378     */
1379    it('testNativeWindowNativeWindowHandleOptSetDesiredPresentTimeStampAbNormal', 3, async (done: Function) => {
1380      let result: number = nativeWindow.testNativeWindowNativeWindowHandleOptSetDesiredPresentTimeStampAbNormal();
1381      expect(result).assertEqual(0);
1382      done();
1383    });
1384
1385
1386    /**
1387     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1516
1388     * @tc.name       : testNativeWindowSetMetadataValue_metadata_type
1389     * @tc.desc       : testNativeWindowSetMetadataValue_metadata_type
1390     * @tc.size       : MediumTest
1391     * @tc.type       : Function
1392     * @tc.level      : Level 3
1393     */
1394    it('testNativeWindowSetMetadataValue_metadata_type', 3, async (done: Function) => {
1395      let result: number = nativeWindow.testNativeWindowSetMetadataValue_metadata_type();
1396      expect(result).assertEqual(0);
1397      done();
1398    });
1399
1400    /**
1401     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1517
1402     * @tc.name       : testNativeWindowCreateNativeWindow
1403     * @tc.desc       : testNativeWindowCreateNativeWindow
1404     * @tc.size       : MediumTest
1405     * @tc.type       : Function
1406     * @tc.level      : Level 3
1407     */
1408    it('testNativeWindowCreateNativeWindow', 3, async (done: Function) => {
1409      let result: number = nativeWindow.testNativeWindowCreateNativeWindow();
1410      expect(result).assertEqual(0);
1411      done();
1412    });
1413
1414    /**
1415     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1518
1416     * @tc.name       : testNativeWindowNativeWindowSetSetScalingMode
1417     * @tc.desc       : testNativeWindowNativeWindowSetSetScalingMode
1418     * @tc.size       : MediumTest
1419     * @tc.type       : Function
1420     * @tc.level      : Level 3
1421     */
1422    it('testNativeWindowNativeWindowSetSetScalingMode', 3, async (done: Function) => {
1423      let result: number = nativeWindow.testNativeWindowNativeWindowSetSetScalingMode();
1424      expect(result).assertEqual(0);
1425      done();
1426    });
1427
1428    /**
1429     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1519
1430     * @tc.name       : testNativeWindowNativeWindowSetMetaData
1431     * @tc.desc       : testNativeWindowNativeWindowSetMetaData
1432     * @tc.size       : MediumTest
1433     * @tc.type       : Function
1434     * @tc.level      : Level 3
1435     */
1436    it('testNativeWindowNativeWindowSetMetaData', 3, async (done: Function) => {
1437      let result: number = nativeWindow.testNativeWindowNativeWindowSetMetaData();
1438      expect(result).assertEqual(0);
1439      done();
1440    });
1441
1442    /**
1443     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1520
1444     * @tc.name       : testNativeWindowNativeWindowSetMetaDataSet
1445     * @tc.desc       : testNativeWindowNativeWindowSetMetaDataSet
1446     * @tc.size       : MediumTest
1447     * @tc.type       : Function
1448     * @tc.level      : Level 3
1449     */
1450    it('testNativeWindowNativeWindowSetMetaDataSet', 3, async (done: Function) => {
1451      let result: number = nativeWindow.testNativeWindowNativeWindowSetMetaDataSet();
1452      expect(result).assertEqual(0);
1453      done();
1454    });
1455
1456    /**
1457     * @tc.number     : SUB_BASIC_GRAPHICS_SPECIAL_API_C_NATIVE_WINDOW_1521
1458     * @tc.name       : testNativeWindowNativeWindowSetMetaDataSet
1459     * @tc.desc       : testNativeWindowNativeWindowSetMetaDataSet
1460     * @tc.size       : MediumTest
1461     * @tc.type       : Function
1462     * @tc.level      : Level 3
1463     */
1464    it('testNativeWindowNativeWindowSetTunnelHandle', 3, async (done: Function) => {
1465      let result: number = nativeWindow.testNativeWindowNativeWindowSetTunnelHandle();
1466      expect(result).assertEqual(0);
1467      done();
1468    });
1469  })
1470}
1471