/test/xts/acts/graphic/nativewindow/entry/src/main/cpp/ |
H A D | nativewindow1.cpp | 298 auto nativeWindowBuffer = OH_NativeWindow_CreateNativeWindowBufferFromNativeBuffer(buffer);
in testNativeWindowCreateNativeWindowBufferFromNativeBufferNormal() local 300 if (nativeWindowBuffer == nullptr) {
in testNativeWindowCreateNativeWindowBufferFromNativeBufferNormal() 306 auto bufferHandle = OH_NativeWindow_GetBufferHandleFromNative(nativeWindowBuffer);
in testNativeWindowCreateNativeWindowBufferFromNativeBufferNormal() 313 OH_NativeWindow_DestroyNativeWindowBuffer(nativeWindowBuffer);
in testNativeWindowCreateNativeWindowBufferFromNativeBufferNormal() 316 bufferHandle = OH_NativeWindow_GetBufferHandleFromNative(nativeWindowBuffer);
in testNativeWindowCreateNativeWindowBufferFromNativeBufferNormal() 413 OHNativeWindowBuffer *nativeWindowBuffer = nullptr;
in testNativeWindowNativeWindowRequestAbortBufferNormal() local 417 auto flag = OH_NativeWindow_NativeWindowRequestBuffer(nativeWindow, &nativeWindowBuffer, &fenceFd);
in testNativeWindowNativeWindowRequestAbortBufferNormal() 418 if (flag != 0 || nativeWindowBuffer == nullptr) {
in testNativeWindowNativeWindowRequestAbortBufferNormal() 424 flag = OH_NativeWindow_NativeWindowAbortBuffer(nativeWindow, nativeWindowBuffer);
in testNativeWindowNativeWindowRequestAbortBufferNormal() 430 OH_NativeWindow_DestroyNativeWindowBuffer(nativeWindowBuffer);
in testNativeWindowNativeWindowRequestAbortBufferNormal() 443 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; testNativeWindowNativeWindowRequestAbortBufferAbnormal() local 480 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; testNativeWindowNativeWindowRequestBufferFenceFdNormal() local 511 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; testNativeWindowNativeWindowRequestBufferFenceFdAbnormal() local 540 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; testNativeWindowNativeWindowRequestAbortBufferMax() local 570 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; testNativeWindowNativeWindowRequestAbortBufferErrorCode() local 794 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; testNativeWindowNativeWindowFlushBufferNullptr() local 832 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; testNativeWindowNativeWindowFlushBufferNormal() local 873 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; testNativeWindowNativeWindowFlushBufferAbnormal() local 902 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; testNativeWindowNativeWindowFlushBufferErrorCode() local 942 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; testNativeWindowGetLastFlushedBufferV2Nullptr() local 971 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; testNativeWindowGetLastFlushedBufferNullptr() local 999 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; testNativeWindowGetLastFlushedBufferV2Normal() local 1028 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; testNativeWindowGetLastFlushedBufferNormal() local 1086 OHNativeWindowBuffer *nativeWindowBuffer; testNativeWindowGetNativeObjectMagicNormal() local 1129 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; testNativeWindowNativeObjectReferenceNullptr() local 1155 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; testNativeWindowNativeObjectReferenceNormal() local 1180 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; testNativeWindowNativeObjectUnreferenceNullptr() local 1205 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; testNativeWindowNativeObjectUnreferenceNormal() local 1234 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; testNativeWindowNativeWindowAttachBufferNullptr() local 1262 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; testNativeWindowNativeWindowDetachBufferNullptr() local 1291 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; testNativeWindowNativeWindowDetachBufferNormal() local 1359 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; testNativeWindowNativeWindowAttachBufferNormal() local 1400 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; testNativeWindowNativeWindowDetachBufferErrorCode() local [all...] |
H A D | nativewindow2.cpp | 1033 OHNativeWindowBuffer *nativeWindowBuffer = nullptr;
in testNativeWindowSetColorSpaceNormal() local 1035 auto res = OH_NativeWindow_NativeWindowRequestBuffer(nativeWindow, &nativeWindowBuffer, &fenceFd);
in testNativeWindowSetColorSpaceNormal() 1043 res = OH_NativeWindow_NativeWindowFlushBuffer(nativeWindow, nativeWindowBuffer, fenceFd, region);
in testNativeWindowSetColorSpaceNormal() 1289 OHNativeWindowBuffer *nativeWindowBuffer = nullptr;
in testNativeWindowSetDynamicMetadataValue() local 1291 auto res = OH_NativeWindow_NativeWindowRequestBuffer(nativeWindow, &nativeWindowBuffer, &fenceFd);
in testNativeWindowSetDynamicMetadataValue() 1294 res = OH_NativeWindow_NativeWindowFlushBuffer(nativeWindow, nativeWindowBuffer, fenceFd, region);
in testNativeWindowSetDynamicMetadataValue() 1326 OHNativeWindowBuffer *nativeWindowBuffer = nullptr;
in testNativeWindowSetMetadataValueTimes() local 1328 auto res = OH_NativeWindow_NativeWindowRequestBuffer(nativeWindow, &nativeWindowBuffer, &fenceFd);
in testNativeWindowSetMetadataValueTimes() 1336 res = OH_NativeWindow_NativeWindowFlushBuffer(nativeWindow, nativeWindowBuffer, fenceFd, region);
in testNativeWindowSetMetadataValueTimes() 1521 OHNativeWindowBuffer *nativeWindowBuffer in testNativeWindowSetStaticMetadataValue() local 1705 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; testNativeWindowSetMetadataValue() local [all...] |
/test/xts/acts/graphic/graphicnapitest/ |
H A D | NativeImageTest.cpp | 359 NativeWindowBuffer* nativeWindowBuffer = nullptr; in HWTEST_F() local 361 ret = OH_NativeWindow_NativeWindowRequestBuffer(nativeWindow, &nativeWindowBuffer, &fenceFd); in HWTEST_F() 371 ret = OH_NativeWindow_NativeWindowFlushBuffer(nativeWindow, nativeWindowBuffer, fenceFd, *region); in HWTEST_F() 491 NativeWindowBuffer* nativeWindowBuffer = nullptr; in HWTEST_F() local 499 ret = OH_NativeWindow_NativeWindowRequestBuffer(nativeWindow, &nativeWindowBuffer, &fenceFd); in HWTEST_F() 507 ret = OH_NativeWindow_NativeWindowFlushBuffer(nativeWindow, nativeWindowBuffer, fenceFd, *region); in HWTEST_F() 565 NativeWindowBuffer* nativeWindowBuffer = nullptr; in HWTEST_F() local 573 ret = OH_NativeWindow_NativeWindowRequestBuffer(nativeWindow, &nativeWindowBuffer, &fenceFd); in HWTEST_F() 581 ret = OH_NativeWindow_NativeWindowFlushBuffer(nativeWindow, nativeWindowBuffer, fenceFd, *region); in HWTEST_F() 619 NativeWindowBuffer* nativeWindowBuffer in HWTEST_F() local 674 NativeWindowBuffer* nativeWindowBuffer = nullptr; HWTEST_F() local 738 NativeWindowBuffer* nativeWindowBuffer = nullptr; HWTEST_F() local 820 OHNativeWindowBuffer* nativeWindowBuffer = nullptr; HWTEST_F() local 861 OHNativeWindowBuffer *nativeWindowBuffer = nullptr; HWTEST_F() local 903 OHNativeWindowBuffer* nativeWindowBuffer = nullptr; HWTEST_F() local 949 OHNativeWindowBuffer* nativeWindowBuffer = 0; HWTEST_F() local 991 OHNativeWindowBuffer* nativeWindowBuffer = nullptr; HWTEST_F() local 1034 OHNativeWindowBuffer* nativeWindowBuffer = nullptr; HWTEST_F() local 1077 OHNativeWindowBuffer* nativeWindowBuffer = nullptr; HWTEST_F() local 1120 OHNativeWindowBuffer* nativeWindowBuffer = nullptr; HWTEST_F() local 1162 OHNativeWindowBuffer* nativeWindowBuffer = nullptr; HWTEST_F() local [all...] |
H A D | NativeBufferTest.cpp | 518 NativeWindowBuffer* nativeWindowBuffer = OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(&sBuffer); in HWTEST_F() local 519 ASSERT_NE(nativeWindowBuffer, nullptr); in HWTEST_F() 521 int32_t ret = OH_NativeBuffer_FromNativeWindowBuffer(nativeWindowBuffer, nullptr); in HWTEST_F() 524 ret = OH_NativeBuffer_FromNativeWindowBuffer(nativeWindowBuffer, &nativeBufferTmp); in HWTEST_F() 532 nativeWindowBuffer = nullptr; in HWTEST_F() 547 NativeWindowBuffer nativeWindowBuffer; in HWTEST_F() local 548 ret = OH_NativeBuffer_FromNativeWindowBuffer(&nativeWindowBuffer, nullptr); in HWTEST_F() 596 NativeWindowBuffer* nativeWindowBuffer; in HWTEST_F() local 602 nativeWindowBuffer = OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(&sBuffer); in HWTEST_F() 603 ASSERT_NE(nativeWindowBuffer, nullpt in HWTEST_F() 636 NativeWindowBuffer* nativeWindowBuffer; HWTEST_F() local [all...] |
H A D | NativeWindowTest.cpp | 86 static inline NativeWindowBuffer* nativeWindowBuffer = nullptr; member in OHOS::Rosen::NativeWindowTest 122 nativeWindowBuffer = nullptr; in TearDownTestCase() 572 NativeWindowBuffer *nativeWindowBuffer = nullptr; in HWTEST_F() local 574 int32_t ret = OH_NativeWindow_NativeWindowRequestBuffer(nativeWindowTmp, &nativeWindowBuffer, &fenceFd); in HWTEST_F() 582 ASSERT_EQ(OH_NativeWindow_NativeWindowDetachBuffer(nativeWindowTmp, nativeWindowBuffer), NATIVE_ERROR_OK); in HWTEST_F() 584 ASSERT_EQ(OH_NativeWindow_NativeWindowAttachBuffer(nativeWindow, nativeWindowBuffer), NATIVE_ERROR_OK); in HWTEST_F() 586 ASSERT_EQ(OH_NativeWindow_NativeWindowDetachBuffer(nativeWindow, nativeWindowBuffer), NATIVE_ERROR_OK); in HWTEST_F() 588 ASSERT_EQ(OH_NativeWindow_NativeWindowAttachBuffer(nativeWindowTmp, nativeWindowBuffer), NATIVE_ERROR_OK); in HWTEST_F() 591 ASSERT_EQ(OH_NativeWindow_NativeWindowAttachBuffer(nativeWindowTmp, nativeWindowBuffer), NATIVE_ERROR_BUFFER_IN_CACHE); in HWTEST_F() 600 ret = OH_NativeWindow_NativeWindowFlushBuffer(nativeWindowTmp, nativeWindowBuffer, fenceF in HWTEST_F() 711 NativeWindowBuffer *nativeWindowBuffer = nullptr; HWTEST_F() local 754 NativeWindowBuffer *nativeWindowBuffer = nullptr; HWTEST_F() local 997 NativeWindowBuffer *nativeWindowBuffer = nullptr; HWTEST_F() local 1037 NativeWindowBuffer* nativeWindowBuffer = nullptr; HWTEST_F() local [all...] |
/test/xts/acts/graphic/nativebuffer/entry/src/main/cpp/ |
H A D | nativebuffer.cpp | 436 OHNativeWindowBuffer *nativeWindowBuffer = nullptr;
in OHNativeBufferFromNativeWindowBufferNullptr() local 449 int ret0 = OH_NativeWindow_NativeWindowRequestBuffer(nativeWindow, &nativeWindowBuffer, &fenceFd);
in OHNativeBufferFromNativeWindowBufferNullptr() 451 ret = OH_NativeBuffer_FromNativeWindowBuffer(nativeWindowBuffer, nullptr);
in OHNativeBufferFromNativeWindowBufferNullptr() 467 OHNativeWindowBuffer *nativeWindowBuffer = nullptr;
in OHNativeBufferFromNativeWindowBufferNormal() local 481 int ret0 = OH_NativeWindow_NativeWindowRequestBuffer(nativeWindow, &nativeWindowBuffer, &fenceFd);
in OHNativeBufferFromNativeWindowBufferNormal() 482 ret = OH_NativeBuffer_FromNativeWindowBuffer(nativeWindowBuffer, &buffer);
in OHNativeBufferFromNativeWindowBufferNormal() 486 // nativeWindowBuffer和nativeBuffer是否一致 一致返回success,失败返回fail
in OHNativeBufferFromNativeWindowBufferNormal() 494 ret = OH_NativeBuffer_FromNativeWindowBuffer(nativeWindowBuffer, &buffer);
in OHNativeBufferFromNativeWindowBufferNormal()
|