/test/xts/acts/graphic/acts_drawing_native/ |
H A D | DrawingNativeCanvasTestPart2.cpp | 65 // 3. Create src and dst using OH_Drawing_RectCreate in HWTEST_F() 68 OH_Drawing_Rect *dst = OH_Drawing_RectCreate(0, 0, 100, 100); in HWTEST_F() local 69 EXPECT_NE(dst, nullptr); in HWTEST_F() 82 OH_Drawing_CanvasDrawPixelMapRect(canvas, drPixelMap, src, dst, options); in HWTEST_F() 89 OH_Drawing_RectDestroy(dst); in HWTEST_F() 110 OH_Drawing_Rect *dst = OH_Drawing_RectCreate(0, 0, 100, 100); in HWTEST_F() local 111 EXPECT_NE(dst, nullptr); in HWTEST_F() 115 OH_Drawing_CanvasDrawPixelMapRect(nullptr, drPixelMap, src, dst, sampleOptions); in HWTEST_F() 116 OH_Drawing_CanvasDrawPixelMapRect(canvas, nullptr, src, dst, sampleOptions); in HWTEST_F() 117 OH_Drawing_CanvasDrawPixelMapRect(canvas, drPixelMap, nullptr, dst, sampleOption in HWTEST_F() 130 OH_Drawing_Rect *dst = HWTEST_F() local 161 OH_Drawing_Rect *dst = OH_Drawing_RectCreate(0, 0, 100, 100); HWTEST_F() local 222 OH_Drawing_Rect *dst = OH_Drawing_RectCreate(0, 0, 100, 100); HWTEST_F() local 270 OH_Drawing_Rect *dst = OH_Drawing_RectCreate(0, 0, 100, 100); HWTEST_F() local 996 OH_Drawing_Rect *dst = OH_Drawing_RectCreate(0, 0, 100, 100); HWTEST_F() local 1062 OH_Drawing_Rect *dst = OH_Drawing_RectCreate(0, 0, 200, 200); HWTEST_F() local 1142 OH_Drawing_Rect *dst = OH_Drawing_RectCreate(-100, -100, -50, -50); HWTEST_F() local 1204 OH_Drawing_Rect *dst = OH_Drawing_RectCreate(0, 0, 200, 200); HWTEST_F() local 1261 OH_Drawing_Rect *dst = OH_Drawing_RectCreate(0, 0, 100, 100); HWTEST_F() local [all...] |
H A D | DrawingNativeMatrixTestPart2.cpp | 379 OH_Drawing_Point2D dst[] = {{0, 0}, {100, 30}, {100, 70}, {0, 100}, {0, 100}}; in HWTEST_F() local 380 OH_Drawing_MatrixSetPolyToPoly(matrix, src, dst, 1); in HWTEST_F() 388 OH_Drawing_Point2D dst[i]; in HWTEST_F() local 392 dst[j] = {dis(gen), dis(gen)}; in HWTEST_F() 394 OH_Drawing_MatrixSetPolyToPoly(matrix, src, dst, i); in HWTEST_F() 414 OH_Drawing_Point2D dst[] = {{0, 0}, {100, 30}, {100, 70}, {0, 100}, {0, 100}}; in HWTEST_F() local 415 OH_Drawing_MatrixSetPolyToPoly(nullptr, src, dst, 5); in HWTEST_F() 419 OH_Drawing_MatrixSetPolyToPoly(matrix, nullptr, dst, 5); in HWTEST_F() 442 OH_Drawing_Point2D dst[] = {{0, 0}, {100, 30}, {100, 70}, {0, 100}}; in HWTEST_F() local 443 OH_Drawing_MatrixSetPolyToPoly(matrix, src, dst, in HWTEST_F() 469 OH_Drawing_Point2D dst[2] = {{dis(gen), dis(gen)}, {dis(gen), dis(gen)}}; HWTEST_F() local 488 OH_Drawing_Point2D dst[] = {{0, 0}, {100, 30}, {100, 70}, {0, 100}, {0, 100}}; HWTEST_F() local 511 OH_Drawing_Point2D dst[] = {{0, 0}, {100, 30}, {100, 70}, {0, 100}, {0, 100}}; HWTEST_F() local 540 OH_Drawing_Point2D dst[] = {{0, 0}, {100, 30}, {100, 70}, {0, 100}, {0, 100}}; HWTEST_F() local 560 OH_Drawing_Point2D dst[] = {{0, 0}, {100, 30}, {100, 70}, {0, 100}, {0, 100}}; HWTEST_F() local 582 OH_Drawing_Rect *dst = OH_Drawing_RectCreate(0, 0, 100, 100); HWTEST_F() local 609 OH_Drawing_Rect *dst = OH_Drawing_RectCreate(0, 0, 100, 100); HWTEST_F() local 641 OH_Drawing_Rect *dst = OH_Drawing_RectCreate(0, 0, dis(gen), dis(gen)); HWTEST_F() local [all...] |
H A D | DrawingNativePathTestPart2.cpp | 966 // 3. Create a path object dst using OH_Drawing_PathCreate. in HWTEST_F() 967 OH_Drawing_Path *dst = OH_Drawing_PathCreate(); in HWTEST_F() local 973 OH_Drawing_PathTransformWithPerspectiveClip(src, matrix, dst, true); in HWTEST_F() 976 OH_Drawing_PathDestroy(dst); in HWTEST_F() 993 // 3. Create a path object dst using OH_Drawing_PathCreate. in HWTEST_F() 994 OH_Drawing_Path *dst = OH_Drawing_PathCreate(); in HWTEST_F() local 1000 OH_Drawing_PathTransformWithPerspectiveClip(src, matrix, dst, false); in HWTEST_F() 1003 OH_Drawing_PathDestroy(dst); in HWTEST_F() 1020 // 3. Create a path object dst using OH_Drawing_PathCreate. in HWTEST_F() 1021 OH_Drawing_Path *dst in HWTEST_F() local 1290 OH_Drawing_Path *dst = OH_Drawing_PathCreate(); HWTEST_F() local 1314 OH_Drawing_Path *dst = OH_Drawing_PathCreate(); HWTEST_F() local 1342 OH_Drawing_Path *dst = OH_Drawing_PathCreate(); HWTEST_F() local 1368 OH_Drawing_Path *dst = OH_Drawing_PathCreate(); HWTEST_F() local [all...] |
H A D | DrawingNativeRegionTest.cpp | 222 // 2. OH_Drawing_RegionCreate returns a pointer value dst in HWTEST_F() 223 OH_Drawing_Region *dst = OH_Drawing_RegionCreate(); in HWTEST_F() local 224 EXPECT_NE(dst, nullptr); in HWTEST_F() 225 OH_Drawing_RegionSetRect(dst, rect); in HWTEST_F() 226 // 3. OH_Drawing_RegionOp takes regionObject, dst, and op: perform OH_Drawing_RegionOpMode operations in sequence in HWTEST_F() 232 OH_Drawing_RegionOp(regionObject, dst, mode); in HWTEST_F() 237 OH_Drawing_RegionDestroy(dst); in HWTEST_F() 249 // 1. OH_Drawing_RegionCreate returns a pointer value dst in HWTEST_F() 250 OH_Drawing_Region *dst = OH_Drawing_RegionCreate(); in HWTEST_F() local 251 EXPECT_NE(dst, nullpt in HWTEST_F() [all...] |
H A D | DrawingNativeRectTest.cpp | 811 // 2. Call OH_Drawing_RectCreate to create a rectangle object dst in HWTEST_F() 812 OH_Drawing_Rect *dst = OH_Drawing_RectCreate(0, 0, 0, 0); in HWTEST_F() local 821 // 7. Call OH_Drawing_RectCopy to copy the source rectangle object src to the destination rectangle object dst in HWTEST_F() 822 OH_Drawing_RectCopy(src, dst); in HWTEST_F() 823 // 8. Call OH_Drawing_RectGetLeft to get the x-coordinate of the top-left corner of dst, which should be the same as in HWTEST_F() 825 float left = OH_Drawing_RectGetLeft(dst); in HWTEST_F() 827 // 9. Call OH_Drawing_RectGetTop to get the y-coordinate of the top-left corner of dst, which should be the same as in HWTEST_F() 829 float top = OH_Drawing_RectGetTop(dst); in HWTEST_F() 831 // 10. Call OH_Drawing_RectGetRight to get the x-coordinate of the bottom-right corner of dst, which should be the in HWTEST_F() 833 float right = OH_Drawing_RectGetRight(dst); in HWTEST_F() 868 OH_Drawing_Rect *dst = OH_Drawing_RectCreate(0, 0, 0, 0); HWTEST_F() local [all...] |
/test/testfwk/xdevice/plugins/ohos/src/ohos/testkit/ |
H A D | kit.py | 139 src, dst = files[0].strip(), files[1].strip() 140 if not dst.startswith("/"): 141 dst = Props.dest_root + dst 142 LOG.debug("Trying to push the file local {} to remote{}".format(src, dst)) 147 device.push_file(real_src_path, dst) 148 LOG.debug("Push file finished from {} to {}".format(src, dst)) 248 src, dst = files[0].strip(), files[1].strip() 249 if not dst.startswith("/"): 250 dst [all...] |
/test/testfwk/developer_test/src/core/config/ |
H A D | resource_manager.py | 173 dst = push_value[pos + len(find_key):len(push_value)].strip() 177 dst = dst.rstrip("/") + "/" + dir_name 178 device.execute_shell_command("mkdir -p %s" % dst) 179 device.push_file(src, dst) 185 dst = push_value[pos + len(find_key):len(push_value)].strip() 186 device.pull_file(src, dst) 205 dst = copy_value[pos + len(find_key):len(copy_value)].strip() 206 shutil.copy(src, dst) 213 dst [all...] |
/test/xts/acts/graphic/graphicnapidrawingtest/ |
H A D | NativeDrawingMatrixTest.cpp | 676 OH_Drawing_Point2D dst[] = {{0, 0}, {100, 30}, {100, 70}, {0, 100}, {0, 100}}; in HWTEST_F() local 677 EXPECT_TRUE(OH_Drawing_MatrixSetPolyToPoly(matrix, src, dst, 0)); in HWTEST_F() 698 OH_Drawing_Point2D dst[] = {{0, 0}, {100, 30}, {100, 70}, {0, 100}}; in HWTEST_F() local 699 EXPECT_TRUE(OH_Drawing_MatrixSetPolyToPoly(matrix, src, dst, 1)); in HWTEST_F() 720 OH_Drawing_Point2D dst[] = {{0, 0}, {100, 30}, {100, 70}, {0, 100}, {0, 100}}; in HWTEST_F() local 721 EXPECT_TRUE(OH_Drawing_MatrixSetPolyToPoly(matrix, src, dst, 4)); in HWTEST_F() 742 OH_Drawing_Point2D dst[] = {{0, 0}, {100, 30}, {100, 70}, {0, 100}, {0, 100}}; in HWTEST_F() local 743 EXPECT_FALSE(OH_Drawing_MatrixSetPolyToPoly(matrix, src, dst, 5)); in HWTEST_F() 820 * @tc.desc: test for maps the src point array to the dst point array by matrix transformation. 829 OH_Drawing_Point2D dst[MAPPOINTS_SIZ in HWTEST_F() local 851 OH_Drawing_Rect* dst = OH_Drawing_RectCreate(0, 0, 0, 0); HWTEST_F() local [all...] |
H A D | NativeDrawingCanvasLargeValueTest.cpp | 154 OH_Drawing_Rect* dst = OH_Drawing_RectCreate(0, 0, 200, 200); in HWTEST_F() local 155 EXPECT_NE(dst, nullptr); in HWTEST_F() 159 OH_Drawing_CanvasDrawBitmapRect(canvas_, bitmap, src, dst, options); in HWTEST_F() 160 OH_Drawing_CanvasDrawBitmapRect(canvas_, bitmap, src, dst, nullptr); in HWTEST_F()
|
/test/xts/acts/multimedia/av_codec/vcodec/encoder/src/ |
H A D | videoenc_api11_sample.cpp | 445 uint32_t VEncAPI11Sample::ReadOneFrameYUV420SP(uint8_t *dst) in ReadOneFrameYUV420SP() argument 447 uint8_t *start = dst; in ReadOneFrameYUV420SP() 450 inFile_->read(reinterpret_cast<char *>(dst), DEFAULT_WIDTH); in ReadOneFrameYUV420SP() 453 dst += stride_; in ReadOneFrameYUV420SP() 457 inFile_->read(reinterpret_cast<char *>(dst), DEFAULT_WIDTH); in ReadOneFrameYUV420SP() 460 dst += stride_; in ReadOneFrameYUV420SP() 462 return dst - start; in ReadOneFrameYUV420SP() 465 void VEncAPI11Sample::ReadOneFrameRGBA8888(uint8_t *dst) in ReadOneFrameRGBA8888() argument 468 inFile_->read(reinterpret_cast<char *>(dst), DEFAULT_WIDTH * RGBA_SIZE); in ReadOneFrameRGBA8888() 469 dst in ReadOneFrameRGBA8888() 523 uint8_t *dst = (uint8_t *)virAddr; InputFuncSurface() local [all...] |
H A D | videoenc_ndk_sample.cpp | 415 uint32_t VEncNdkSample::ReadOneFrameYUV420SP(uint8_t *dst) in ReadOneFrameYUV420SP() argument 417 uint8_t *start = dst; in ReadOneFrameYUV420SP() 420 inFile_->read(reinterpret_cast<char *>(dst), DEFAULT_WIDTH); in ReadOneFrameYUV420SP() 423 dst += stride_; in ReadOneFrameYUV420SP() 427 inFile_->read(reinterpret_cast<char *>(dst), DEFAULT_WIDTH); in ReadOneFrameYUV420SP() 430 dst += stride_; in ReadOneFrameYUV420SP() 432 return dst - start; in ReadOneFrameYUV420SP() 435 void VEncNdkSample::ReadOneFrameRGBA8888(uint8_t *dst) in ReadOneFrameRGBA8888() argument 438 inFile_->read(reinterpret_cast<char *>(dst), DEFAULT_WIDTH * RGBA_SIZE); in ReadOneFrameRGBA8888() 439 dst in ReadOneFrameRGBA8888() 497 uint8_t *dst = (uint8_t *)virAddr; InputFuncSurface() local [all...] |
/test/testfwk/xdevice/src/xdevice/_core/config/ |
H A D | resource_manager.py | 111 dst = push_value[pos + len(find_key):len(push_value)].strip() 113 device.execute_shell_command("mkdir -p %s" % dst) 114 device.push_file(src, dst) 121 dst = push_value[pos + len(find_key):len(push_value)].strip() 123 device.pull_file(src, dst)
|
/test/xts/device_attest_lite/services/core/mini/adapter/ |
H A D | attest_adapter_network_config.c | 31 static int32_t CopyNVData(char *dst, int32_t dstLen, unsigned char *src, int32_t srcLen) in CopyNVData() argument 33 if (dst == NULL || src == NULL) { in CopyNVData() 39 dst[i] = (char)src[i]; in CopyNVData()
|
/test/xts/hats/hdf/display/composer/common/ |
H A D | display_test_utils.cpp | 120 uint32_t dst; in GetUint32() local 121 uint8_t *data = reinterpret_cast<uint8_t *>(&dst); in GetUint32() 125 return dst; in GetUint32() 157 void SetUint32(uint32_t &dst, uint32_t value) in SetUint32() argument 159 uint8_t *data = reinterpret_cast<uint8_t *>(&dst); in SetUint32()
|
H A D | hdi_test_render_utils.cpp | 22 void SetUint32(uint32_t& dst, uint32_t value) in SetUint32() argument 24 uint8_t* data = reinterpret_cast<uint8_t *>(&dst); in SetUint32()
|
/test/xts/acts/ai/nncore/opstest/src/ |
H A D | quant_dtype_cast_test.cpp | 37 OHNNOperandTest dst = {OH_NN_INT64, OH_NN_QUANT_DTYPE_CAST_DST_T, {1}, &dstValue, sizeof(int64_t)};
member 39 .operands = {input, output, axis, src, dst},
57 OHNNOperandTest dst = {OH_NN_INT64, OH_NN_QUANT_DTYPE_CAST_DST_T, {1}, &dstValue, sizeof(int64_t)};
member 59 .operands = {input, output, axis, src, dst},
77 OHNNOperandTest dst = {OH_NN_INT64, OH_NN_QUANT_DTYPE_CAST_DST_T, {1}, &dstValue, sizeof(int64_t)};
member 79 .operands = {input, output, axis, src, dst},
185 quantDTypeCastModel.axis, quantDTypeCastModel.src, quantDTypeCastModel.dst};
in HWTEST_F() 207 quantDTypeCastModel.axis, quantDTypeCastModel.src, quantDTypeCastModel.dst};
in HWTEST_F() 231 graphArgs.operands = {quantDTypeCastModel.input, quantDTypeCastModel.output, quantDTypeCastModel.dst,
in HWTEST_F()
|
/test/xts/acts/ai/mindspore/mindsporectest/src/ |
H A D | ohos_common.cpp | 432 void PackNCHWToNHWCFp32(const char *src, char *dst, int batch, int plane, int channel) { in PackNCHWToNHWCFp32() argument 438 dst[nhwc_index * 4] = src[nchw_index * 4]; in PackNCHWToNHWCFp32() 439 dst[nhwc_index * 4 + 1] = src[nchw_index * 4 + 1]; in PackNCHWToNHWCFp32() 440 dst[nhwc_index * 4 + 2] = src[nchw_index * 4 + 2]; in PackNCHWToNHWCFp32() 441 dst[nhwc_index * 4 + 3] = src[nchw_index * 4 + 3]; in PackNCHWToNHWCFp32()
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | uiondk.cpp | 227 char dst[256] = "";
in ProcessVmReadV() local 232 local.iov_base = dst;
in ProcessVmReadV() 249 char dst[256] = "";
in ProcessVmWriteV() local 251 struct iovec remote = {.iov_base = dst, .iov_len = sizeof(dst)};
in ProcessVmWriteV()
|
H A D | wcharndk1.cpp | 333 wchar_t dst[TEST_BUFFER_SIZE];
in Mbstowcs_One() local 334 memset(dst, ZERO, sizeof(wchar_t) * TEST_BUFFER_SIZE);
in Mbstowcs_One() 335 size_t ret = mbstowcs(dst, src, strlen(src));
in Mbstowcs_One() 450 wchar_t dst[PARAM_14] = {PARAM_0};
in Wcpcpy_One() local 451 wcpcpy(dst, src);
in Wcpcpy_One() 453 napi_create_int32(env, wcscmp(src, dst) == ERRON_0, &result);
in Wcpcpy_One() 460 wchar_t dst[PARAM_18] = {PARAM_0};
in Wcpncpy_One() local 462 wcpncpy(dst, src, src_len + PARAM_1);
in Wcpncpy_One() 464 napi_create_int32(env, wcscmp(src, dst) == ERRON_0, &result);
in Wcpncpy_One() 672 wchar_t dst[PARAM_3 in Wcsncat_One() local [all...] |
/test/xts/acts/security_lite/huks/liteos_m_adapter/ |
H A D | hks_mac_test.c | 50 static int32_t BufferToAscii(uint8_t* src, uint32_t src_size, char* dst, uint32_t* dst_size) in BufferToAscii() argument 58 dst[2 * i] = IntToAscii(src[i] >> 4);/* take 4 high-order digits*/ in BufferToAscii() 59 dst[2 * i + 1] = IntToAscii(src[i] & 0b00001111); /*take 4 low-order digits*/ in BufferToAscii() 62 dst[ascii_len - 1] = '\0'; in BufferToAscii()
|
/test/xts/acts/multimedia/av_codec/vcodec/encoder/include/ |
H A D | videoenc_api11_sample.h | 112 uint32_t ReadOneFrameYUV420SP(uint8_t *dst); 113 void ReadOneFrameRGBA8888(uint8_t *dst);
|
H A D | videoenc_ndk_sample.h | 103 uint32_t ReadOneFrameYUV420SP(uint8_t *dst); 104 void ReadOneFrameRGBA8888(uint8_t *dst);
|
/test/xts/acts/kernel_lite/mem_posix/src/ |
H A D | MemApiTest.cpp | 643 char dst[1024]; 651 memcpy(dst, src, len); 654 if (dst[i] != src[i]) { 659 ASSERT_TRUE(failure == 0) << "dst[i] != src[i], dst[i] = " << dst[i] << " src[i] = " << src[i];
|
/test/testfwk/xdevice/src/xdevice/_core/ |
H A D | constants.py | 66 dst = "distributedtest" variable in TestType 90 "DST": TestType.dst,
|
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/ |
H A D | ltp_posix_driver.py | 106 for dst in dsts: 108 "shell chmod -R 777 {}".format(dst))
|