/test/xts/acts/multimedia/media/media_js_standard/ |
H A D | AVPlayerTestBase.js | 256 avPlayer.surfaceId = surfaceID; 431 avPlayer.surfaceId = surfaceID; 523 avPlayer.surfaceId = surfaceID; 581 avPlayer.surfaceId = surfaceID; 641 avPlayer.surfaceId = surfaceID; 687 avPlayer.surfaceId = surfaceID; 751 avPlayer.surfaceId = surfaceID; 827 avPlayer.surfaceId = surfaceID; 882 avPlayer.surfaceId = surfaceID; 1007 avPlayer.surfaceId [all...] |
H A D | AVRecorderTestBase.js | 99 await avRecorder.getInputSurface().then((surfaceId) => { 101 surfaceID = surfaceId; 112 avRecorder.getInputSurface((err, surfaceId) => { 115 surfaceID = surfaceId; 1580 await avRecorder.getInputSurface().then((surfaceId) => { 1582 surfaceID = surfaceId; 1877 await avRecorder.getInputSurface().then((surfaceId) => { 1879 surfaceID = surfaceId; 2296 await avRecorder.getInputSurface((err, surfaceId) => { 2299 surfaceID = surfaceId; [all...] |
/test/xts/acts/graphic/graphicnapitest/ |
H A D | NativeWindowTest.cpp | 159 uint64_t surfaceId = 0; in HWTEST_F() local 160 int32_t ret = OH_NativeWindow_GetSurfaceId(nativeWindow, &surfaceId); in HWTEST_F() 162 ASSERT_EQ(surfaceId, pSurface->GetUniqueId()); in HWTEST_F() 174 uint64_t surfaceId = static_cast<uint64_t>(pSurface->GetUniqueId()); in HWTEST_F() local 176 int32_t ret = OH_NativeWindow_CreateNativeWindowFromSurfaceId(surfaceId, &window); in HWTEST_F() 178 surfaceId = 0; in HWTEST_F() 179 ret = OH_NativeWindow_GetSurfaceId(window, &surfaceId); in HWTEST_F() 181 ASSERT_EQ(surfaceId, pSurface->GetUniqueId()); in HWTEST_F() 215 uint64_t surfaceId = static_cast<uint64_t>(pSurfaceTmp->GetUniqueId()); in HWTEST_F() local 217 utils->Add(surfaceId, pSurfaceTm in HWTEST_F() [all...] |
H A D | NativeImageTest.cpp | 708 uint64_t surfaceId; in HWTEST_F() local 709 int32_t ret = OH_NativeImage_GetSurfaceId(image, &surfaceId); in HWTEST_F() 1217 uint64_t surfaceId = 999999999; in HWTEST_F() local 1218 ret = OH_NativeImage_GetSurfaceId(newImage, &surfaceId); in HWTEST_F() 1219 ASSERT_NE(surfaceId, 999999999); in HWTEST_F()
|
/test/xts/acts/graphic/nativewindow/entry/src/main/cpp/ |
H A D | nativewindow1.cpp | 128 // 设置OH_NativeWindow_CreateNativeWindowFromSurfaceId()的surfaceId=nullptr,其他参数正常调用该接口
in testNativeWindowCreateNativeWindowFromSurfaceIdNullptr() 140 uint64_t surfaceId;
in testNativeWindowCreateNativeWindowFromSurfaceIdNullptr() local 141 OH_NativeWindow_GetSurfaceId(_nativeWindow, &surfaceId);
in testNativeWindowCreateNativeWindowFromSurfaceIdNullptr() 143 flag = OH_NativeWindow_CreateNativeWindowFromSurfaceId(surfaceId, nullptr);
in testNativeWindowCreateNativeWindowFromSurfaceIdNullptr() 164 uint64_t surfaceId;
in testNativeWindowCreateNativeWindowFromSurfaceIdNormal() local 165 OH_NativeWindow_GetSurfaceId(_nativeWindow, &surfaceId);
in testNativeWindowCreateNativeWindowFromSurfaceIdNormal() 169 auto flag = OH_NativeWindow_CreateNativeWindowFromSurfaceId(surfaceId, &nativeWindow);
in testNativeWindowCreateNativeWindowFromSurfaceIdNormal() 179 // 接口调用成功,返回错误码0 | get获取surfaceId2与surfaceId一致
in testNativeWindowCreateNativeWindowFromSurfaceIdNormal() 180 if (flag != 0 || surfaceId2 != surfaceId) {
in testNativeWindowCreateNativeWindowFromSurfaceIdNormal() 202 uint64_t surfaceId;
in testNativeWindowCreateNativeWindowFromSurfaceIdSurfaceId() local [all...] |
/test/xts/acts/multimedia/camera/camera_ndk_xts/OHCameraNdk/entry/src/main/cpp/ |
H A D | mian.cpp | 44 char *surfaceId = nullptr; in InitCamera() local 49 surfaceId = new char[typeLen + 1]; in InitCamera() 50 napi_get_value_string_utf8(env, args[0], surfaceId, typeLen + 1, &typeLen); in InitCamera() 55 ndkCamera = new NDKCamera(surfaceId, index); in InitCamera() 324 char *surfaceId = nullptr; in OHCameraManagerCreatePhotoOutput() local 329 surfaceId = new char[typeLen + 1]; in OHCameraManagerCreatePhotoOutput() 330 napi_get_value_string_utf8(env, args[0], surfaceId, typeLen + 1, &typeLen); in OHCameraManagerCreatePhotoOutput() 334 LOG("创建一个拍照输出实例. %{public}s====%{public}d", surfaceId, index); in OHCameraManagerCreatePhotoOutput() 335 Camera_ErrorCode ret = ndkCamera->CreatePhotoOutput(surfaceId, index); in OHCameraManagerCreatePhotoOutput()
|
/test/xts/acts/multimedia/image/image_js_standard/imageReceiverNDK/entry/src/main/cpp/napi/ |
H A D | module_test.cpp | 49 char* surfaceId = nullptr; in InitCamera() local 54 surfaceId = new char[typeLen + 1]; in InitCamera() 55 napi_get_value_string_utf8(env, args[0], surfaceId, typeLen + 1, &typeLen); in InitCamera() 60 ndkCamera_ = new NDKCamera(surfaceId); in InitCamera() 242 std::string surfaceId = std::to_string(id); in CreatePhotoOutput() local 244 Camera_ErrorCode ret = ndkCamera_->CreatePhotoOutput(surfaceId.c_str()); in CreatePhotoOutput()
|
H A D | image_receiver_module_test.h | 36 Image_ErrorCode GetImageReceiverSurfaceId(uint64_t *surfaceId);
|
H A D | image_receiver_module_test.cpp | 121 Image_ErrorCode ImageReceiverModuleTest::GetImageReceiverSurfaceId(uint64_t *surfaceId) in GetImageReceiverSurfaceId() argument 124 Image_ErrorCode ret = OH_ImageReceiverNative_GetReceivingSurfaceId(imageReceiver_, surfaceId); in GetImageReceiverSurfaceId() 240 IMG_TST_LOGI("Image Receiver surfaceId = %{public}llu.", static_cast<unsigned long long>(id)); in VerifyImageReceiver()
|
H A D | image_receiver_test.cpp | 489 std::string surfaceId = std::to_string(id); in JsGetReceivingSurfaceId() local 491 napi_create_string_utf8(env, surfaceId.c_str(), NAPI_AUTO_LENGTH, &result); in JsGetReceivingSurfaceId()
|
/test/xts/acts/multimedia/camera/camera_ndk_test/src/main/cpp/ |
H A D | main.cpp | 42 char* surfaceId = nullptr; in InitCamera() local 47 surfaceId = new char[typeLen + 1]; in InitCamera() 48 napi_get_value_string_utf8(env, args[0], surfaceId, typeLen + 1, &typeLen); in InitCamera() 53 ndkCamera_ = new NDKCamera(surfaceId); in InitCamera() 204 char* surfaceId = nullptr; in CreatePhotoOutput() local 209 surfaceId = new char[typeLen + 1]; in CreatePhotoOutput() 210 napi_get_value_string_utf8(env, args[0], surfaceId, typeLen + 1, &typeLen); in CreatePhotoOutput() 211 Camera_ErrorCode ret = ndkCamera_->CreatePhotoOutput(surfaceId); in CreatePhotoOutput() 1273 char *surfaceId = nullptr; in OHCameraManagerCreatePhotoOutputUsedInPreconfig() local 1278 surfaceId in OHCameraManagerCreatePhotoOutputUsedInPreconfig() [all...] |
/test/xts/acts/graphic/nativeimage/entry/src/main/cpp/ |
H A D | nativeimage.cpp | 671 uint64_t surfaceId = NUMBER_99999;
in OHNativeImageGetSurfaceIdNullptr() local 672 int res1 = OH_NativeImage_GetSurfaceId(nullptr, &surfaceId);
in OHNativeImageGetSurfaceIdNullptr() 673 if (res1 != 0 && surfaceId == NUMBER_99999) {
in OHNativeImageGetSurfaceIdNullptr() 681 if (res2 != 0 && surfaceId == NUMBER_99999) {
in OHNativeImageGetSurfaceIdNullptr() 696 uint64_t surfaceId = NUMBER_99999;
in OHNativeGetSurfaceIdNormal() local 697 int res = OH_NativeImage_GetSurfaceId(nativeImage, &surfaceId);
in OHNativeGetSurfaceIdNormal() 698 if (res == 0 && surfaceId != NUMBER_99999) {
in OHNativeGetSurfaceIdNormal()
|