/test/xts/acts/kernel_lite/utils/ |
D | KernelConstants.h | 67 #define MEM_PAGESTART(addr) ((addr) & ~(PAGE_SIZE - 1)) argument 68 #define MEM_PAGEOFFSET(addr) ((addr) & (PAGE_SIZE - 1)) argument 69 #define MEM_PAGEALIGN(addr) (((addr) + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1)) argument
|
/test/xts/device_attest_lite/services/core/utils/ |
D | attest_utils_memleak.c | 74 memNode->addr = NULL; // 引用其他指针值,不在该处释放内存,只做记录功能。 in FreeMemNode() 152 int32_t AddMemInfo(void* addr, const char* file, uint32_t line, const char* func) in AddMemInfo() argument 154 if (addr == NULL || file == NULL || func == NULL) { in AddMemInfo() 164 memNode->addr = addr; in AddMemInfo() 179 int32_t RemoveMemInfo(const void* addr) in RemoveMemInfo() argument 181 if (addr == NULL) { in RemoveMemInfo() 201 if (addr == data->addr) { in RemoveMemInfo() 227 data->addr, data->func, data->file, data->line); in PrintMemNode()
|
D | attest_utils.c | 231 void *addr = malloc(size); in AttestMemAlloc() local 232 if (addr == NULL) { in AttestMemAlloc() 235 int32_t ret = memset_s(addr, size, 0, size); in AttestMemAlloc() 237 free(addr); in AttestMemAlloc() 241 (void)AddMemInfo(addr, file, line, func); in AttestMemAlloc() 243 return addr; in AttestMemAlloc()
|
/test/xts/device_attest/services/core/utils/ |
D | attest_utils_memleak.c | 74 memNode->addr = NULL; // 引用其他指针值,不在该处释放内存,只做记录功能。 in FreeMemNode() 154 int32_t AddMemInfo(void* addr, const char* file, uint32_t line, const char* func) in AddMemInfo() argument 156 if (addr == NULL || file == NULL || func == NULL) { in AddMemInfo() 166 memNode->addr = addr; in AddMemInfo() 181 int32_t RemoveMemInfo(const void* addr) in RemoveMemInfo() argument 183 if (addr == NULL) { in RemoveMemInfo() 203 if (addr == data->addr) { in RemoveMemInfo() 229 data->addr, data->func, data->file, data->line); in PrintMemNode()
|
D | attest_utils.c | 228 void *addr = malloc(size); in AttestMemAlloc() local 229 if (addr == NULL) { in AttestMemAlloc() 232 int32_t ret = memset_s(addr, size, 0, size); in AttestMemAlloc() 234 free(addr); in AttestMemAlloc() 238 (void)AddMemInfo(addr, file, line, func); in AttestMemAlloc() 240 return addr; in AttestMemAlloc()
|
/test/xts/device_attest_lite/services/core/include/utils/ |
D | attest_utils_memleak.h | 36 void* addr; member 46 int32_t AddMemInfo(void* addr, const char* file, uint32_t line, const char* func); 48 int32_t RemoveMemInfo(const void* addr);
|
/test/xts/device_attest/services/core/include/utils/ |
D | attest_utils_memleak.h | 36 void* addr; member 46 int32_t AddMemInfo(void* addr, const char* file, uint32_t line, const char* func); 48 int32_t RemoveMemInfo(const void* addr);
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
D | socketndk.cpp | 75 struct sockaddr_in addr = {PARAM_0}; in Sendmsg() local 80 if (connect(sockfd, (struct sockaddr *)&addr, sizeof(addr)) == MINUSONE) { in Sendmsg() 92 struct sockaddr_in addr = {PARAM_0}; in Send() local 94 int sign = connect(sockfd, (struct sockaddr *)&addr, sizeof(addr)); in Send() 111 struct sockaddr_in addr = {PARAM_0}; in Sendto() local 113 int sign = connect(sockfd, (struct sockaddr *)&addr, sizeof(addr)); in Sendto() 131 struct sockaddr_in addr = {PARAM_0}; in Sendmmsg() local 139 addr.sin_family = AF_INET; in Sendmmsg() 140 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in Sendmmsg() 141 addr.sin_port = htons(VALUE1234); in Sendmmsg() [all …]
|
D | inetndk.cpp | 77 struct in_addr addr; in InetLnaof() local 78 addr.s_addr = valueZero; in InetLnaof() 80 in_addr_t ret = inet_lnaof(addr); in InetLnaof() 109 in_addr_t addr = inet_netof(inp); in InetNetof() local 111 napi_create_int32(env, addr, &result); in InetNetof() 123 in_addr_t addr = inet_network(cp); in InetNetwork() local 125 napi_create_int32(env, addr, &result); in InetNetwork()
|
/test/xts/acts/communication_lite/lwip_posix/src/ |
D | ActsLwipTest.cpp | 169 struct sockaddr addr = {0}; in SampleTcpServerTask() local 170 socklen_t addrLen = sizeof(addr); in SampleTcpServerTask() 171 int ret = getsockname(clnFd, &addr, &addrLen); in SampleTcpServerTask() 172 printf("[tcp server]getsockname %s:%d\n", inet_ntoa(((struct sockaddr_in*)&addr)->sin_addr), in SampleTcpServerTask() 173 ntohs(((struct sockaddr_in*)&addr)->sin_port)); in SampleTcpServerTask() 175 EXPECT_EQ(inet_addr(g_localHost), ((struct sockaddr_in*)&addr)->sin_addr.s_addr); in SampleTcpServerTask() 177 ret = getpeername(clnFd, &addr, &addrLen); in SampleTcpServerTask() 178 printf("[tcp server]getpeername %s:%d\n", inet_ntoa(((struct sockaddr_in*)&addr)->sin_addr), in SampleTcpServerTask() 179 ntohs(((struct sockaddr_in*)&addr)->sin_port)); in SampleTcpServerTask() 181 EXPECT_EQ(inet_addr(g_localHost), ((struct sockaddr_in*)&addr)->sin_addr.s_addr); in SampleTcpServerTask() [all …]
|
/test/xts/acts/kernel_lite/net_posix/src/ |
D | ActsNetTest.cpp | 191 struct sockaddr addr = {0}; in SampleTcpServerTask() local 192 socklen_t addrLen = sizeof(addr); in SampleTcpServerTask() 193 int ret = getsockname(clnFd, &addr, &addrLen); in SampleTcpServerTask() 194 printf("[tcp server]getsockname %s:%d\n", inet_ntoa(((struct sockaddr_in*)&addr)->sin_addr), in SampleTcpServerTask() 195 ntohs(((struct sockaddr_in*)&addr)->sin_port)); in SampleTcpServerTask() 197 EXPECT_EQ(inet_addr(g_localHost), ((struct sockaddr_in*)&addr)->sin_addr.s_addr); in SampleTcpServerTask() 199 ret = getpeername(clnFd, &addr, &addrLen); in SampleTcpServerTask() 200 printf("[tcp server]getpeername %s:%d\n", inet_ntoa(((struct sockaddr_in*)&addr)->sin_addr), in SampleTcpServerTask() 201 ntohs(((struct sockaddr_in*)&addr)->sin_port)); in SampleTcpServerTask() 203 EXPECT_EQ(inet_addr(g_localHost), ((struct sockaddr_in*)&addr)->sin_addr.s_addr); in SampleTcpServerTask() [all …]
|
/test/xts/hats/hdf/camera/cameraMg/v1_0/src/ |
D | hdi_stream_uttest.cpp | 64 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void* addr, uint32_t si… in __anon39891d000102() argument 65 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in __anon39891d000102() 108 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void* addr, uint32_t si… in __anon39891d000202() argument 109 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in __anon39891d000202() 148 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void* addr, uint32_t si… in __anon39891d000302() argument 149 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in __anon39891d000302() 183 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void* addr, uint32_t si… in __anon39891d000402() argument 184 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in __anon39891d000402() 221 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void* addr, uint32_t si… in __anon39891d000502() argument 222 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in __anon39891d000502() [all …]
|
D | common.cpp | 151 … streamInfoPre->bufferQueue_ = consumer_pre->CreateProducerSeq([this](void* addr, uint32_t size) { in StartStream() argument 152 DumpImageFile(streamIdPreview, "yuv", addr, size); in StartStream() 167 …streamInfoVideo->bufferQueue_ = consumer_video->CreateProducerSeq([this](void* addr, uint32_t size… in StartStream() argument 168 DumpImageFile(streamIdPreview, "yuv", addr, size); in StartStream() 183 …streamInfoAnalyze->bufferQueue_ = consumer_analyze->CreateProducerSeq([this](void* addr, uint32_t … in StartStream() argument 184 common_metadata_header_t *data = static_cast<common_metadata_header_t *>(addr); in StartStream() 215 …streamInfoCapture->bufferQueue_ = consumer_capture->CreateProducerSeq([this](void* addr, uint32_t … in StartStream() argument 216 DumpImageFile(streamIdPreview, "yuv", addr, size); in StartStream() 323 void* addr = buffer->GetVirAddr(); in CreateProducer() local 337 callback_(addr, gotSize); in CreateProducer() [all …]
|
/test/testfwk/developer_test/aw/cxx/distributed/ |
D | distributed_agent.cpp | 87 struct sockaddr_in addr; in InitAgentServer() local 89 ret = memset_s(&addr, sizeof(addr), 0, sizeof(addr)); in InitAgentServer() 93 addr.sin_family = AF_INET; in InitAgentServer() 95 inet_pton(AF_INET, agentIpAddr_.c_str(), &addr.sin_addr); in InitAgentServer() 97 addr.sin_addr.s_addr = htonl(INADDR_ANY); in InitAgentServer() 100 addr.sin_port = htons(agentPort_); in InitAgentServer() 101 int err = ::bind(serverSockFd, reinterpret_cast<struct sockaddr *>(&addr), sizeof(addr)); in InitAgentServer()
|
D | distributed_major.cpp | 100 struct sockaddr_in addr; in AddClient() local 101 if (inet_pton(AF_INET, ipAddr.c_str(), &addr.sin_addr) == 1) { in AddClient() 120 struct sockaddr_in addr; in ConnectAgent() local 125 bzero(&addr, sizeof(addr)); in ConnectAgent() 126 addr.sin_family = AF_INET; in ConnectAgent() 127 inet_pton(AF_INET, serverIp.c_str(), &addr.sin_addr); in ConnectAgent() 128 addr.sin_port = htons(serverPort_); in ConnectAgent() 131 if (!connect(clientSockFd, reinterpret_cast<struct sockaddr *>(&addr), sizeof(addr))) { in ConnectAgent()
|
/test/xts/hats/hdf/camera/cameraBenchmarkTest/v1_0/src/ |
D | hdf_camera_benchmark_test.cpp | 177 … streamInfoPre->bufferQueue_ = consumer_pre->CreateProducerSeq([this](void* addr, uint32_t size) { in BENCHMARK_F() argument 216 … streamInfoPre->bufferQueue_ = consumer_pre->CreateProducerSeq([this](void* addr, uint32_t size) { in BENCHMARK_F() argument 457 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void* addr, uint32_t si… in BENCHMARK_F() argument 458 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in BENCHMARK_F() 503 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void* addr, uint32_t siz… in BENCHMARK_F() argument 504 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in BENCHMARK_F() 521 …meraTest->streamInfoSnapshot->bufferQueue_ = snapshotConsumer->CreateProducerSeq([this](void* addr, in BENCHMARK_F() 523 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in BENCHMARK_F() 535 …HOS::sptr<OHOS::IBufferProducer> producerTemp = preview_consumer->CreateProducer([this](void* addr, in BENCHMARK_F() argument 537 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in BENCHMARK_F() [all …]
|
D | benchmark_common.cpp | 151 … streamInfoPre->bufferQueue_ = consumer_pre->CreateProducerSeq([this](void* addr, uint32_t size) { in StartStream() argument 152 DumpImageFile(streamIdPreview, "yuv", addr, size); in StartStream() 167 …streamInfoVideo->bufferQueue_ = consumer_video->CreateProducerSeq([this](void* addr, uint32_t size… in StartStream() argument 168 DumpImageFile(streamIdPreview, "yuv", addr, size); in StartStream() 183 …streamInfoAnalyze->bufferQueue_ = consumer_analyze->CreateProducerSeq([this](void* addr, uint32_t … in StartStream() argument 184 common_metadata_header_t *data = static_cast<common_metadata_header_t *>(addr); in StartStream() 215 …streamInfoCapture->bufferQueue_ = consumer_capture->CreateProducerSeq([this](void* addr, uint32_t … in StartStream() argument 216 DumpImageFile(streamIdPreview, "yuv", addr, size); in StartStream() 323 void* addr = buffer->GetVirAddr(); in CreateProducer() local 337 callback_(addr, gotSize); in CreateProducer() [all …]
|
/test/xts/acts/communication_lite/lwip_hal/src/ |
D | lwip_func_test.c | 250 struct sockaddr addr; in SampleTcpClientTask() local 251 socklen_t addrLen = sizeof(addr); in SampleTcpClientTask() 270 ret = getpeername(clientFd, &addr, &addrLen); in SampleTcpClientTask() 271 …printf("[tcp client]getpeername %s:%d, ret=%d\n", inet_ntoa(((struct sockaddr_in*)&addr)->sin_addr… in SampleTcpClientTask() 272 ntohs(((struct sockaddr_in*)&addr)->sin_port), ret); in SampleTcpClientTask() 275 TEST_ASSERT_EQUAL_INT(inet_addr(PEER_IP), ((struct sockaddr_in*)&addr)->sin_addr.s_addr); in SampleTcpClientTask() 277 ret = getsockname(clientFd, &addr, &addrLen); in SampleTcpClientTask() 278 …printf("[tcp client]getsockname %s:%d, ret=%d\n", inet_ntoa(((struct sockaddr_in*)&addr)->sin_addr… in SampleTcpClientTask() 279 ntohs(((struct sockaddr_in*)&addr)->sin_port), ret); in SampleTcpClientTask() 282 TEST_ASSERT_EQUAL_INT(inet_addr(STACK_IP), ((struct sockaddr_in*)&addr)->sin_addr.s_addr); in SampleTcpClientTask() [all …]
|
/test/xts/hats/hdf/camera/cameraMg_additional/v1_0/src/ |
D | hdi_stream_uttest.cpp | 164 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void *addr, uint32_t siz… in __anon35e33d580102() argument 165 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in __anon35e33d580102() 210 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void *addr, uint32_t siz… in __anon35e33d580202() argument 211 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in __anon35e33d580202() 256 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void *addr, uint32_t siz… in __anon35e33d580302() argument 257 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in __anon35e33d580302() 302 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void *addr, uint32_t siz… in __anon35e33d580402() argument 303 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in __anon35e33d580402() 348 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void *addr, uint32_t siz… in __anon35e33d580502() argument 349 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in __anon35e33d580502() [all …]
|
D | common.cpp | 152 … streamInfoPre->bufferQueue_ = consumer_pre->CreateProducerSeq([this](void* addr, uint32_t size) { in StartStream() argument 153 DumpImageFile(streamIdPreview, "yuv", addr, size); in StartStream() 168 …streamInfoVideo->bufferQueue_ = consumer_video->CreateProducerSeq([this](void* addr, uint32_t size… in StartStream() argument 169 DumpImageFile(streamIdPreview, "yuv", addr, size); in StartStream() 184 …streamInfoAnalyze->bufferQueue_ = consumer_analyze->CreateProducerSeq([this](void* addr, uint32_t … in StartStream() argument 185 common_metadata_header_t *data = static_cast<common_metadata_header_t *>(addr); in StartStream() 216 …streamInfoCapture->bufferQueue_ = consumer_capture->CreateProducerSeq([this](void* addr, uint32_t … in StartStream() argument 217 DumpImageFile(streamIdPreview, "yuv", addr, size); in StartStream() 324 void* addr = buffer->GetVirAddr(); in CreateProducer() local 338 callback_(addr, gotSize); in CreateProducer() [all …]
|
/test/xts/hats/hdf/camera/cameraBenchmarkTest/v1_1/src/ |
D | benchmark_common.cpp | 176 …streamInfoPre->v1_0.bufferQueue_ = consumer_pre->CreateProducerSeq([this](void* addr, uint32_t siz… in StartStream() argument 177 DumpImageFile(streamIdPreview, "yuv", addr, size); in StartStream() 192 …nfoVideo->v1_0.bufferQueue_ = consumer_video->CreateProducerSeq([this](void* addr, uint32_t size) { in StartStream() argument 193 DumpImageFile(streamIdPreview, "yuv", addr, size); in StartStream() 209 consumer_analyze->CreateProducerSeq([this](void* addr, uint32_t size) { in StartStream() argument 210 common_metadata_header_t *data = static_cast<common_metadata_header_t *>(addr); in StartStream() 242 consumer_capture->CreateProducerSeq([this](void* addr, uint32_t size) { in StartStream() argument 243 DumpImageFile(streamIdPreview, "yuv", addr, size); in StartStream() 362 void* addr = buffer->GetVirAddr(); in CreateProducer() local 376 callback_(addr, gotSize); in CreateProducer() [all …]
|
/test/xts/dcts/distributedhardware/distributedcameratest/ |
D | stream_customer.h | 60 void* addr = buff->GetVirAddr(); in OnBufferAvailable() local 63 callback_(addr, size); in OnBufferAvailable()
|
/test/xts/hats/hdf/camera/cameraMg/v1_1/src/ |
D | hdi_common_v1_1.cpp | 173 infos->v1_0.bufferQueue_ = consumer_pre->CreateProducerSeq([this](void* addr, uint32_t size) { in DefaultInfosPreview() argument 174 DumpImageFile(streamIdPreview, "yuv", addr, size); in DefaultInfosPreview() 185 … infos->v1_0.bufferQueue_ = consumer_capture->CreateProducerSeq([this](void* addr, uint32_t size) { in DefaultInfosCapture() argument 186 DumpImageFile(streamIdCapture, "jpeg", addr, size); in DefaultInfosCapture() 204 infos->v1_0.bufferQueue_ = consumer_video->CreateProducerSeq([this](void* addr, uint32_t size) { in DefaultInfosVideo() argument 205 DumpImageFile(streamIdPreview, "yuv", addr, size); in DefaultInfosVideo() 223 … infos->v1_0.bufferQueue_ = consumer_analyze->CreateProducerSeq([this](void* addr, uint32_t size) { in DefaultInfosAnalyze() argument 224 common_metadata_header_t *data = static_cast<common_metadata_header_t *>(addr); in DefaultInfosAnalyze() 410 void* addr = buffer->GetVirAddr(); in CreateProducer() local 425 callback_(addr, gotSize); in CreateProducer() [all …]
|
D | camera_hdi_uttest_v1_1.cpp | 204 consumer->CreateProducerSeq([this](void* addr, uint32_t size) { in __anon51fb43d40102() argument 205 cameraTest->DumpImageFile(111, "yuv", addr, size); in __anon51fb43d40102() 274 … extendedStreamInfo.bufferQueue = consumer2->CreateProducerSeq([this](void *addr, uint32_t size) { in __anon51fb43d40202() argument 275 cameraTest->DumpImageFile(105, "yuv", addr, size); in __anon51fb43d40202() 332 … extendedStreamInfo.bufferQueue = consumer2->CreateProducerSeq([this](void *addr, uint32_t size) { in __anon51fb43d40302() argument 333 cameraTest->DumpImageFile(105, "yuv", addr, size); in __anon51fb43d40302() 389 … extendedStreamInfo.bufferQueue = consumer2->CreateProducerSeq([this](void *addr, uint32_t size) { in __anon51fb43d40402() argument 390 cameraTest->DumpImageFile(105, "yuv", addr, 40); in __anon51fb43d40402() 444 … extendedStreamInfo.bufferQueue = consumer2->CreateProducerSeq([this](void *addr, uint32_t size) { in __anon51fb43d40502() argument 445 cameraTest->DumpImageFile(105, "yuv", addr, 40); in __anon51fb43d40502() [all …]
|
/test/xts/hats/hdf/camera/cameraMg_additional/v1_1/src/ |
D | hdi_common_v1_1.cpp | 173 infos->v1_0.bufferQueue_ = consumer_pre->CreateProducerSeq([this](void* addr, uint32_t size) { in DefaultInfosPreview() argument 174 DumpImageFile(streamIdPreview, "yuv", addr, size); in DefaultInfosPreview() 185 … infos->v1_0.bufferQueue_ = consumer_capture->CreateProducerSeq([this](void* addr, uint32_t size) { in DefaultInfosCapture() argument 186 DumpImageFile(streamIdCapture, "jpeg", addr, size); in DefaultInfosCapture() 204 infos->v1_0.bufferQueue_ = consumer_video->CreateProducerSeq([this](void* addr, uint32_t size) { in DefaultInfosVideo() argument 205 DumpImageFile(streamIdPreview, "yuv", addr, size); in DefaultInfosVideo() 223 … infos->v1_0.bufferQueue_ = consumer_analyze->CreateProducerSeq([this](void* addr, uint32_t size) { in DefaultInfosAnalyze() argument 224 common_metadata_header_t *data = static_cast<common_metadata_header_t *>(addr); in DefaultInfosAnalyze() 410 void* addr = buffer->GetVirAddr(); in CreateProducer() local 425 callback_(addr, gotSize); in CreateProducer() [all …]
|