Home
last modified time | relevance | path

Searched refs:addr (Results 1 – 25 of 55) sorted by relevance

123

/test/xts/acts/kernel_lite/utils/
DKernelConstants.h67 #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/
Dattest_utils_memleak.c74 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()
Dattest_utils.c231 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/
Dattest_utils_memleak.c74 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()
Dattest_utils.c251 void *addr = malloc(size); in AttestMemAlloc() local
252 if (addr == NULL) { in AttestMemAlloc()
255 int32_t ret = memset_s(addr, size, 0, size); in AttestMemAlloc()
257 free(addr); in AttestMemAlloc()
261 (void)AddMemInfo(addr, file, line, func); in AttestMemAlloc()
263 return addr; in AttestMemAlloc()
/test/xts/device_attest/services/core/include/utils/
Dattest_utils_memleak.h36 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_lite/services/core/include/utils/
Dattest_utils_memleak.h36 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/
Dinetndk.cpp92 struct in_addr addr; in InetLnaof() local
93 addr.s_addr = valueZero; in InetLnaof()
95 in_addr_t ret = inet_lnaof(addr); in InetLnaof()
124 in_addr_t addr = inet_netof(inp); in InetNetof() local
126 napi_create_int32(env, addr, &result); in InetNetof()
136 in_addr_t addr = FALSE; in InetNetwork() local
138 addr = inet_network("10.1.59.80"); in InetNetwork()
141 addr = inet_network("192.168.100.1"); in InetNetwork()
144 addr = inet_network("192.168.1.100"); in InetNetwork()
147 napi_create_int32(env, addr, &result); in InetNetwork()
/test/xts/acts/communication_lite/lwip_posix/src/
DActsLwipTest.cpp169 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/
DActsNetTest.cpp191 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/
Dhdi_stream_uttest.cpp64 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void* addr, uint32_t si… in __anon263fd80c0102() argument
65 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in __anon263fd80c0102()
108 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void* addr, uint32_t si… in __anon263fd80c0202() argument
109 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in __anon263fd80c0202()
148 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void* addr, uint32_t si… in __anon263fd80c0302() argument
149 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in __anon263fd80c0302()
183 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void* addr, uint32_t si… in __anon263fd80c0402() argument
184 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in __anon263fd80c0402()
221 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void* addr, uint32_t si… in __anon263fd80c0502() argument
222 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in __anon263fd80c0502()
[all …]
Dcommon.cpp177 … streamInfoPre->bufferQueue_ = consumer_pre->CreateProducerSeq([this](void* addr, uint32_t size) { in StartStream() argument
178 DumpImageFile(streamIdPreview, "yuv", addr, size); in StartStream()
193 …streamInfoVideo->bufferQueue_ = consumer_video->CreateProducerSeq([this](void* addr, uint32_t size… in StartStream() argument
194 DumpImageFile(streamIdPreview, "yuv", addr, size); in StartStream()
209 …streamInfoAnalyze->bufferQueue_ = consumer_analyze->CreateProducerSeq([this](void* addr, uint32_t … in StartStream() argument
210 common_metadata_header_t *data = static_cast<common_metadata_header_t *>(addr); in StartStream()
241 …streamInfoCapture->bufferQueue_ = consumer_capture->CreateProducerSeq([this](void* addr, uint32_t … in StartStream() argument
242 DumpImageFile(streamIdPreview, "yuv", addr, size); in StartStream()
349 void* addr = buffer->GetVirAddr(); in CreateProducer() local
363 callback_(addr, gotSize); in CreateProducer()
[all …]
/test/xts/acts/telephony/networkmanager/socket/sockettest/entry/src/main/ets/test/
DMulticastSocket.test.ets28 let addr: socket.NetAddress = {
75 multicast.addMembership(addr, async (err: BusinessError) => {
81 await multicast.dropMembership(addr);
107 let addr: socket.NetAddress = {
110 multicast.addMembership(addr, async (err: BusinessError) => {
116 await multicast.dropMembership(addr);
142 let addr: socket.NetAddress = {
147 multicast.addMembership(addr, async (err: BusinessError) => {
153 await multicast.dropMembership(addr);
179 let addr: socket.NetAddress = {
[all …]
DTLSSocket.test.ets37 let addr: socket.NetAddress = {
43 address: addr,
58 address: addr,
113 tlsSocket.bind(addr, (err: BusinessError) => {
145 let addr: socket.NetAddress = {
148 tlsSocket.bind(addr, (err: BusinessError) => {
179 let addr: socket.NetAddress = {
184 tlsSocket.bind(addr, (err: BusinessError) => {
215 let addr: socket.NetAddress = {
220 tlsSocket.bind(addr, (err: BusinessError) => {
[all …]
/test/testfwk/developer_test/aw/cxx/distributed/
Ddistributed_agent.cpp87 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()
Ddistributed_major.cpp100 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/
Dhdf_camera_benchmark_test.cpp175 … streamInfoPre->bufferQueue_ = consumer_pre->CreateProducerSeq([this](void* addr, uint32_t size) { in BENCHMARK_F() argument
214 … streamInfoPre->bufferQueue_ = consumer_pre->CreateProducerSeq([this](void* addr, uint32_t size) { in BENCHMARK_F() argument
455 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void* addr, uint32_t si… in BENCHMARK_F() argument
456 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in BENCHMARK_F()
501 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void* addr, uint32_t siz… in BENCHMARK_F() argument
502 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in BENCHMARK_F()
519 …meraTest->streamInfoSnapshot->bufferQueue_ = snapshotConsumer->CreateProducerSeq([this](void* addr, in BENCHMARK_F()
521 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in BENCHMARK_F()
533 …HOS::sptr<OHOS::IBufferProducer> producerTemp = preview_consumer->CreateProducer([this](void* addr, in BENCHMARK_F() argument
535 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in BENCHMARK_F()
[all …]
Dbenchmark_common.cpp151 … 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/
Dlwip_func_test.c250 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/
Dhdi_stream_uttest.cpp165 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void *addr, uint32_t siz… in __anon157778e40102() argument
166 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in __anon157778e40102()
215 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void *addr, uint32_t siz… in __anon157778e40202() argument
216 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in __anon157778e40202()
261 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void *addr, uint32_t siz… in __anon157778e40302() argument
262 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in __anon157778e40302()
311 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void *addr, uint32_t siz… in __anon157778e40402() argument
312 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in __anon157778e40402()
357 …cameraTest->streamInfo->bufferQueue_ = consumer->CreateProducerSeq([this](void *addr, uint32_t siz… in __anon157778e40502() argument
358 cameraTest->DumpImageFile(cameraTest->streamIdPreview, "yuv", addr, size); in __anon157778e40502()
[all …]
Dcommon.cpp157 … streamInfoPre->bufferQueue_ = consumer_pre->CreateProducerSeq([this](void* addr, uint32_t size) { in StartStream() argument
158 DumpImageFile(streamIdPreview, "yuv", addr, size); in StartStream()
173 …streamInfoVideo->bufferQueue_ = consumer_video->CreateProducerSeq([this](void* addr, uint32_t size… in StartStream() argument
174 DumpImageFile(streamIdPreview, "yuv", addr, size); in StartStream()
189 …streamInfoAnalyze->bufferQueue_ = consumer_analyze->CreateProducerSeq([this](void* addr, uint32_t … in StartStream() argument
190 common_metadata_header_t *data = static_cast<common_metadata_header_t *>(addr); in StartStream()
221 …streamInfoCapture->bufferQueue_ = consumer_capture->CreateProducerSeq([this](void* addr, uint32_t … in StartStream() argument
222 DumpImageFile(streamIdPreview, "yuv", addr, size); in StartStream()
329 void* addr = buffer->GetVirAddr(); in CreateProducer() local
343 callback_(addr, gotSize); in CreateProducer()
[all …]
/test/xts/hats/hdf/camera/cameraBenchmarkTest/v1_1/src/
Dbenchmark_common.cpp176 …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/hats/hdf/camera/cameraMg_additional/v1_1/src/
Dhdi_common_v1_1.cpp178 infos->v1_0.bufferQueue_ = consumer_pre->CreateProducerSeq([this](void* addr, uint32_t size) { in DefaultInfosPreview() argument
179 DumpImageFile(streamIdPreview, "yuv", addr, size); in DefaultInfosPreview()
190 … infos->v1_0.bufferQueue_ = consumer_capture->CreateProducerSeq([this](void* addr, uint32_t size) { in DefaultInfosCapture() argument
191 DumpImageFile(streamIdCapture, "jpeg", addr, size); in DefaultInfosCapture()
209 infos->v1_0.bufferQueue_ = consumer_video->CreateProducerSeq([this](void* addr, uint32_t size) { in DefaultInfosVideo() argument
210 DumpImageFile(streamIdPreview, "yuv", addr, size); in DefaultInfosVideo()
228 … infos->v1_0.bufferQueue_ = consumer_analyze->CreateProducerSeq([this](void* addr, uint32_t size) { in DefaultInfosAnalyze() argument
229 common_metadata_header_t *data = static_cast<common_metadata_header_t *>(addr); in DefaultInfosAnalyze()
415 void* addr = buffer->GetVirAddr(); in CreateProducer() local
430 callback_(addr, gotSize); in CreateProducer()
[all …]
/test/xts/hats/hdf/camera/cameraMg/v1_1/src/
Dhdi_common_v1_1.cpp178 infos->v1_0.bufferQueue_ = consumer_pre->CreateProducerSeq([this](void* addr, uint32_t size) { in DefaultInfosPreview() argument
179 DumpImageFile(streamIdPreview, "yuv", addr, size); in DefaultInfosPreview()
190 … infos->v1_0.bufferQueue_ = consumer_capture->CreateProducerSeq([this](void* addr, uint32_t size) { in DefaultInfosCapture() argument
191 DumpImageFile(streamIdCapture, "jpeg", addr, size); in DefaultInfosCapture()
209 infos->v1_0.bufferQueue_ = consumer_video->CreateProducerSeq([this](void* addr, uint32_t size) { in DefaultInfosVideo() argument
210 DumpImageFile(streamIdPreview, "yuv", addr, size); in DefaultInfosVideo()
228 … infos->v1_0.bufferQueue_ = consumer_analyze->CreateProducerSeq([this](void* addr, uint32_t size) { in DefaultInfosAnalyze() argument
229 common_metadata_header_t *data = static_cast<common_metadata_header_t *>(addr); in DefaultInfosAnalyze()
415 void* addr = buffer->GetVirAddr(); in CreateProducer() local
430 callback_(addr, gotSize); in CreateProducer()
[all …]
/test/xts/dcts/distributedhardware/distributedcameratest/
Dstream_customer.h60 void* addr = buff->GetVirAddr(); in OnBufferAvailable() local
63 callback_(addr, size); in OnBufferAvailable()

123