/test/xts/acts/ai/neural_network_runtime/v2_0/common/ |
H A D | mock_idevice.cpp | 314 uint32_t size = sizeof(bufferData); in ExportModelCache() local 316 buffer.fd = AshmemCreate("cache", size); in ExportModelCache() 319 buffer.dataSize = size; in ExportModelCache() 322 void* data = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_SHARED, buffer.fd, 0); in ExportModelCache() 328 auto memRet = memcpy_s(data, size, bufferData, size); in ExportModelCache() 329 auto unmapResult = munmap(data, size); in ExportModelCache()
|
/test/xts/acts/ai/nncore/opstest/src/ |
H A D | mock_idevice.cpp | 314 uint32_t size = sizeof(bufferData); in ExportModelCache() local 316 buffer.fd = AshmemCreate("cache", size); in ExportModelCache() 319 buffer.dataSize = size; in ExportModelCache() 323 void* data = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_SHARED, buffer.fd, 0); in ExportModelCache() 329 auto memRet = memcpy_s(data, size, bufferData, size); in ExportModelCache() 330 auto unmapResult = munmap(data, size); in ExportModelCache()
|
/test/xts/acts/ai/neural_network_runtime/v1_0/common/ |
H A D | mock_idevice.cpp | 289 uint32_t size = sizeof(bufferData); in ExportModelCache() local 291 buffer.fd = AshmemCreate("cache", size); in ExportModelCache() 294 buffer.dataSize = size; in ExportModelCache() 297 void* data = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_SHARED, buffer.fd, 0); in ExportModelCache() 303 auto memRet = memcpy_s(data, size, bufferData, size); in ExportModelCache() 304 auto unmapResult = munmap(data, size); in ExportModelCache()
|
/test/xts/acts/ai/nncore/common/ |
H A D | mock_idevice.cpp | 290 uint32_t size = sizeof(bufferData); in ExportModelCache() local 292 buffer.fd = AshmemCreate("cache", size); in ExportModelCache() 295 buffer.dataSize = size; in ExportModelCache() 298 void* data = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_SHARED, buffer.fd, 0); in ExportModelCache() 304 auto memRet = memcpy_s(data, size, bufferData, size); in ExportModelCache() 305 auto unmapResult = munmap(data, size); in ExportModelCache()
|
/test/xts/device_attest_lite/framework/small/src/client/ |
H A D | attest_framework_client_proxy.c | 93 size_t size = sizeof(attestResult->softwareResultDetail); in ReadAttestResultInfo() local 94 if (softwareResultDetail == NULL || (len != (size / sizeof(int32_t)))) { in ReadAttestResultInfo() 98 if (memcpy_s(attestResult->softwareResultDetail, size, softwareResultDetail, size) != 0) { in ReadAttestResultInfo() 169 static void *CreateClient(const char *service, const char *feature, uint32 size) in CreateClient() argument 173 uint32 len = size + sizeof(AttestClientEntry); in CreateClient() 179 AttestClientEntry *entry = (AttestClientEntry *)&client[size]; in CreateClient()
|
/test/xts/hats/hdf/camera/cameraHdi/v4l2/src/ |
H A D | double_preview_test.cpp | 43 constexpr uint32_t BUFFER_QUEUE_SIZE = 8; // set bufferQueue size in SetStreamInfo() 114 streamCustomerPreview_->ReceiveFrameOn([this](const unsigned char *addr, const uint32_t size) { in StartCapture() 115 CAMERA_LOGI("preview size = %{public}u", size); in StartCapture() 118 streamCustomerPreviewDouble_->ReceiveFrameOn([this](const unsigned char *addr, const uint32_t size) { in StartCapture() 119 CAMERA_LOGI("preview double size = %{public}u", size); in StartCapture() 165 * @tc.size: MediumTest 196 * @tc.size: MediumTest 225 captureSetting->addEntry(OHOS_JPEG_GPS_COORDINATES, gps.data(), gps.size()); in HWTEST_F() [all...] |
/test/xts/hats/kernel/dmabuffer/ |
H A D | dmabuf_alloc.cpp | 85 DmabufHeapBuffer buffer = { .size = BUFFER_SIZE, .heapFlags = 0 };
in HWTEST_F() 113 DmabufHeapBuffer buffer = { .size = BUFFER_SIZE, .heapFlags = 0 };
in HWTEST_F() 183 DmabufHeapBuffer buffer = { .size = 0 };
in HWTEST_F() 198 DmabufHeapBuffer buffer = { .size = BUFFER_SIZE, .heapFlags = 0 };
in HWTEST_F() 224 DmabufHeapBuffer buffer = { .size = BUFFER_SIZE, .heapFlags = 0 };
in HWTEST_F() 248 DmabufHeapBuffer buffer = { .size = BUFFER_SIZE, .heapFlags = 0 };
in HWTEST_F() 280 DmabufHeapBuffer buffer = { .size = BUFFER_SIZE, .heapFlags = 0 };
in HWTEST_F()
|
/test/xts/tools/lite/hctest/src/ |
H A D | hctest.c | 54 int16 size = VECTOR_Size(&(testSuite->test_cases)); in RunSingleTestSuite() local 55 if (size < 0) { in RunSingleTestSuite() 67 for (i = size - 1; i >= 0; i--) { in RunSingleTestSuite() 84 int16 size = VECTOR_Size(&(testMgr->test_suites)); in GetTestSuite() local 86 for (i = 0; i < size; i++) { in GetTestSuite() 155 int16 size = VECTOR_Size(&(g_testSuiteManager.test_suites)); in RunSpecialTestSuite() local 157 for (i = 0; i < size; i++) { in RunSpecialTestSuite()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/color_space_convert/smp/ |
H A D | smp_color_space_convert.c | 142 uint32_t size = 1;
in IveCalStride() local 151 size = sizeof(HI_U8);
in IveCalStride() 155 size = sizeof(HI_U16);
in IveCalStride() 159 size = sizeof(uint32_t);
in IveCalStride() 163 size = sizeof(uint64_t);
in IveCalStride() 170 return HiAlign16(width * size);
in IveCalStride() 172 return HiAlign32(width * size);
in IveCalStride() 181 * Create IVE image buffer based on type and size
188 uint32_t size;
in IveImgCreate() local 202 size in IveImgCreate() [all...] |
/test/xts/acts/multimedia/av_codec/vcodec/hwdecoder/src/ |
H A D | videodec_ndk_sample.cpp | 483 return signal_->inIdxQueue_.size() > 0; in InputFuncTest() 560 int32_t size = OH_AVMemory_GetSize(buffer); in SendData() local 561 if (size < bufferSize + START_CODE_SIZE) { in SendData() 573 if (memcpy_s(avBuffer, size, fileBuffer, bufferSize + START_CODE_SIZE) != EOK) { in SendData() 579 attr.size = bufferSize + START_CODE_SIZE; in SendData() 646 return signal_->outIdxQueue_.size() > 0; in OutputFuncTest() 679 uint32_t size = OH_AVMemory_GetSize(buffer); in ProcessOutputData() local 680 if (size >= DEFAULT_WIDTH * DEFAULT_HEIGHT * THREE >> 1) { in ProcessOutputData() 681 uint8_t *cropBuffer = new uint8_t[size]; in ProcessOutputData() 682 if (memcpy_s(cropBuffer, size, OH_AVMemory_GetAdd in ProcessOutputData() [all...] |
/test/xts/acts/multimedia/media/media_cpp_standard/audioDecEncNdk/src/ |
H A D | ADecEncNdkSample.cpp | 63 acodecSignal_->sizeQueueDec_.push(attr->size); in AdecAsyncNewOutputData() 102 acodecSignal_->sizeQueueEnc_.push(attr->size); in AencAsyncNewOutputData() 360 attr.size = 0; in PushInbufferDec() 364 attr.size = bufferSize; in PushInbufferDec() 376 acodecSignal_->inCondDec_.wait(lock, [this]() {return acodecSignal_->inQueueDec_.size() > 0; }); in InputFuncDec() 617 attr.size = sizeDecOut; in PushInbufferEnc() 655 return (acodecSignal_->inQueueEnc_.size() > 0 && acodecSignal_->outQueueDec_.size() > 0); in InputFuncEnc() 696 uint32_t size = acodecSignal_->sizeQueueEnc_.front(); in WriteToFile() local 702 fwrite(OH_AVMemory_GetAddr(buffer), 1, size, outFil in WriteToFile() local [all...] |
/test/xts/hats/hdf/camera/cameraMg/v1_2/src/ |
H A D | hdi_common_v1_2.cpp | 32 int32_t Test::DumpImageFile(int streamId, std::string suffix, const void* buffer, int32_t size)
in DumpImageFile() argument 61 ret = write(imgFd, buffer, size);
in DumpImageFile() 90 if (cameraIds.size() <= CAMERA_ID_NUM) {
in Init() 131 if (cameraIds.size() <= CAMERA_ID_NUM) {
in Open() 137 EXPECT_NE(cameraIds.size(), 0);
in Open() 158 if (cameraIds.size() <= CAMERA_ID_NUM) {
in OpenCameraV1_2() 164 EXPECT_NE(cameraIds.size(), 0);
in OpenCameraV1_2() 244 infos->v1_0.bufferQueue_ = consumer_pre->CreateProducerSeq([this](void* addr, uint32_t size) {
in DefaultInfosSketch() 245 DumpImageFile(streamIdSketch, "yuv", addr, size);
in DefaultInfosSketch() 256 infos->v1_0.bufferQueue_ = consumer_pre->CreateProducerSeq([this](void* addr, uint32_t size) {
in DefaultInfosPreviewV1_2() [all...] |
/device/qemu/riscv32_virt/liteos_m/board/driver/cfiflash/ |
H A D | cfiflash_fs_hal.c | 107 lfs_off_t off, void *buffer, lfs_size_t size)
in LittlefsRead() 113 return CfiFlashRead(devid, p, addr, size);
in LittlefsRead() 117 lfs_off_t off, const void *buffer, lfs_size_t size)
in LittlefsProg() 123 return CfiFlashWrite(devid, p, addr, size);
in LittlefsProg() 106 LittlefsRead(const struct lfs_config *cfg, lfs_block_t block, lfs_off_t off, void *buffer, lfs_size_t size) LittlefsRead() argument 116 LittlefsProg(const struct lfs_config *cfg, lfs_block_t block, lfs_off_t off, const void *buffer, lfs_size_t size) LittlefsProg() argument
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/libcoap/include/coap2/ |
H A D | address.h | 66 socklen_t size; /**< size of addr */ member 101 * particular, the member size must be initialized to the available size for 116 dst->size = src->size; in coap_address_copy() 125 memcpy( &dst->addr, &src->addr, src->size ); in coap_address_copy()
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/lwip_sack/include/lwip/priv/ |
H A D | memp_std.h | 22 The pools are a little bigger to provide 'size' as the amount of user data. */ 23 #define LWIP_MALLOC_MEMPOOL(num, size) LWIP_MEMPOOL(POOL_##size, num, (size + LWIP_MEM_ALIGN_SIZE(sizeof(struct memp_malloc_helper))), "MALLOC_"#size) 30 * Allocates buffers for a pbuf struct AND a payload size */ 137 * (Example: pbuf_payload_size=0 allocates only size for the struct)
|
/device/soc/rockchip/rk2206/adapter/hals/communication/wifi_lite/wifiservice/source/ |
H A D | wifi_hotspot.c | 153 WifiErrorCode GetStationList(StationInfo* result, unsigned int* size) in GetStationList() argument 155 if (result == NULL || size == NULL || *size == 0) { in GetStationList() 243 WifiErrorCode GetHotspotInterfaceName(char* result, int size) in GetHotspotInterfaceName() argument
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/ |
H A D | mali_kbase_fence.c | 58 kbase_fence_fence_value_str(struct fence *fence, char *str, int size)
in kbase_fence_fence_value_str() argument 60 kbase_fence_fence_value_str(struct dma_fence *fence, char *str, int size)
in kbase_fence_fence_value_str() 64 snprintf(str, size, "%u", fence->seqno);
in kbase_fence_fence_value_str() 66 snprintf(str, size, "%llu", fence->seqno);
in kbase_fence_fence_value_str()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/linux/ |
H A D | mali_memory_ump.c | 75 MALI_DEBUG_PRINT(7, ("Mapping in 0x%08x size %d\n", ump_blocks[i].addr , ump_blocks[i].size)); in mali_mem_ump_map() 78 ump_blocks[i].size, MALI_MMU_FLAGS_DEFAULT); in mali_mem_ump_map() 80 offset += ump_blocks[i].size; in mali_mem_ump_map() 119 ("Requested to map ump memory with secure id %d into virtual memory 0x%08X, size 0x%08X\n", in mali_mem_bind_ump_buf() 120 secure_id, alloc->mali_vma_node.vm_node.start, alloc->mali_vma_node.vm_node.size)); in mali_mem_bind_ump_buf()
|
H A D | mali_osk_notification.c | 54 _mali_osk_notification_t *_mali_osk_notification_create(u32 type, u32 size) in _mali_osk_notification_create() argument 59 notification = (_mali_osk_notification_wrapper_t *)kmalloc(sizeof(_mali_osk_notification_wrapper_t) + size, in _mali_osk_notification_create() 69 if (0 != size) { in _mali_osk_notification_create() 77 notification->data.result_buffer_size = size; in _mali_osk_notification_create()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_mem_linux.h | 35 size_t size; member 64 * for the region or the size of the region or the flags associated 122 * kbase_mem_commit - Change the physical backing size of a region 133 * kbase_mem_shrink - Shrink the physical backing size of a region 228 size_t size; member 237 * @size: Size of VA range 272 void *kbase_vmap_prot(struct kbase_context *kctx, u64 gpu_addr, size_t size, 280 * @size: Size of VA range 299 void *kbase_vmap(struct kbase_context *kctx, u64 gpu_addr, size_t size,
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/ |
H A D | mali_memory_ump.c | 77 ("Mapping in 0x%08x size %d\n", ump_blocks[i].addr, ump_blocks[i].size)); in mali_mem_ump_map() 79 mali_mmu_pagedir_update(pagedir, virt, ump_blocks[i].addr, ump_blocks[i].size, MALI_MMU_FLAGS_DEFAULT); in mali_mem_ump_map() 81 offset += ump_blocks[i].size; in mali_mem_ump_map() 119 ("Requested to map ump memory with secure id %d into virtual memory 0x%08X, size 0x%08X\n", in mali_mem_bind_ump_buf() 120 secure_id, alloc->mali_vma_node.vm_node.start, alloc->mali_vma_node.vm_node.size)); in mali_mem_bind_ump_buf()
|
H A D | mali_osk_notification.c | 57 _mali_osk_notification_t *_mali_osk_notification_create(u32 type, u32 size) in _mali_osk_notification_create() argument 62 notification = (_mali_osk_notification_wrapper_t *)kmalloc(sizeof(_mali_osk_notification_wrapper_t) + size, in _mali_osk_notification_create() 72 if (size != 0) { in _mali_osk_notification_create() 80 notification->data.result_buffer_size = size; in _mali_osk_notification_create()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_mem_linux.h | 33 size_t size; member 64 * for the region or the size of the region or the flags associated 119 * kbase_mem_commit - Change the physical backing size of a region 130 * kbase_mem_shrink - Shrink the physical backing size of a region 227 size_t size; member 237 * @size: Size of VA range 272 void *kbase_vmap_prot(struct kbase_context *kctx, u64 gpu_addr, size_t size, 279 * @size: Size of VA range 298 void *kbase_vmap(struct kbase_context *kctx, u64 gpu_addr, size_t size,
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/ |
H A D | mali_kbase_fence.c | 60 kbase_fence_fence_value_str(struct fence *fence, char *str, int size) in kbase_fence_fence_value_str() argument 62 kbase_fence_fence_value_str(struct dma_fence *fence, char *str, int size) in kbase_fence_fence_value_str() 66 snprintf(str, size, "%u", fence->seqno); in kbase_fence_fence_value_str() 68 snprintf(str, size, "%llu", fence->seqno); in kbase_fence_fence_value_str()
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | malloc1ndk.cpp | 42 size_t size = malloc_usable_size(memory);
in Malloc() local 43 if (size == PARAM_0) {
in Malloc() 73 size_t size = malloc_usable_size(buff);
in Memalign() local 74 if (size == PARAM_0) {
in Memalign()
|