Home
last modified time | relevance | path

Searched refs:buffer (Results 1 - 25 of 1424) sorted by relevance

12345678910>>...57

/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
H A Dcomplexndk.cpp89 char buffer[20]; in Conj() local
91 sprintf(buffer, "%.2f", getRealAndImage); in Conj()
92 strcat(backParam, buffer); in Conj()
95 sprintf(buffer, "%.2f", getRealAndImage); in Conj()
96 strcat(backParam, buffer); in Conj()
117 char buffer[20]; in ConjF() local
119 sprintf(buffer, "%.2f", getRealAndImage); in ConjF()
120 strcat(backParam, buffer); in ConjF()
123 sprintf(buffer, "%.2f", getRealAndImage); in ConjF()
124 strcat(backParam, buffer); in ConjF()
142 char buffer[20]; ConjL() local
169 char buffer[20]; CPow() local
198 char buffer[20]; CPowF() local
225 char buffer[20]; CPowL() local
250 char buffer[20]; CProj() local
278 char buffer[20]; CProjF() local
303 char buffer[20]; CProjL() local
328 char buffer[20]; CSin() local
353 char buffer[20]; CSinF() local
378 char buffer[20]; CSinL() local
403 char buffer[20]; CSinH() local
428 char buffer[20]; CSinHf() local
453 char buffer[20]; CSinHl() local
478 char buffer[20]; CSqrt() local
503 char buffer[20]; CSqrtF() local
528 char buffer[20]; CSqrtL() local
553 char buffer[20]; CTan() local
578 char buffer[20]; CTanF() local
603 char buffer[20]; CTanL() local
628 char buffer[20]; CTanH() local
653 char buffer[20]; CTanHf() local
678 char buffer[20]; CTanHl() local
749 char buffer[20]; Cacos() local
775 char buffer[20]; Cacosl() local
801 char buffer[20]; Cacosf() local
827 char buffer[20]; Cacosh() local
853 char buffer[20]; Cacoshf() local
879 char buffer[20]; Cacoshl() local
962 char buffer[20]; Casin() local
988 char buffer[20]; Casinl() local
1014 char buffer[20]; Casinf() local
1040 char buffer[20]; Casinh() local
1066 char buffer[20]; Casinhf() local
1092 char buffer[20]; Casinhl() local
1118 char buffer[20]; Catan() local
1144 char buffer[20]; Catanl() local
1170 char buffer[20]; Catanf() local
1196 char buffer[20]; Catanh() local
1222 char buffer[20]; Catanhf() local
1248 char buffer[20]; Catanhl() local
1274 char buffer[20]; Ccos() local
1300 char buffer[20]; Ccosl() local
1326 char buffer[20]; Ccosf() local
1352 char buffer[20]; Ccosh() local
1378 char buffer[20]; Ccoshf() local
1404 char buffer[20]; Ccoshl() local
1430 char buffer[20]; Cexp() local
1456 char buffer[20]; Cexpl() local
1482 char buffer[20]; Cexpf() local
1508 char buffer[20]; Clog() local
1534 char buffer[20]; Clogf() local
1560 char buffer[20]; Clogl() local
[all...]
/test/xts/acts/multimedia_lite/media_lite_posix/audio_native/src/
H A DActsMediaAudioTest.cpp66 uint8_t *buffer; in HWTEST_F() local
68 audioCapturer->Read(buffer, framesize, false); in HWTEST_F()
69 EXPECT_TRUE(sizeof(buffer) > 0); in HWTEST_F()
92 uint8_t *buffer; in HWTEST_F() local
95 audioCapturer->Read(buffer, framesize, false); in HWTEST_F()
96 EXPECT_TRUE(sizeof(buffer) > 0); in HWTEST_F()
119 uint8_t *buffer; in HWTEST_F() local
122 audioCapturer->Read(buffer, framesize, false); in HWTEST_F()
123 EXPECT_TRUE(sizeof(buffer) > 0); in HWTEST_F()
146 uint8_t *buffer; in HWTEST_F() local
173 uint8_t *buffer; HWTEST_F() local
200 uint8_t *buffer; HWTEST_F() local
227 uint8_t *buffer; HWTEST_F() local
254 uint8_t *buffer; HWTEST_F() local
281 uint8_t *buffer; HWTEST_F() local
308 uint8_t *buffer; HWTEST_F() local
335 uint8_t *buffer; HWTEST_F() local
362 uint8_t *buffer; HWTEST_F() local
389 uint8_t *buffer; HWTEST_F() local
416 uint8_t *buffer; HWTEST_F() local
443 uint8_t *buffer; HWTEST_F() local
470 uint8_t *buffer; HWTEST_F() local
497 uint8_t *buffer; HWTEST_F() local
524 uint8_t *buffer; HWTEST_F() local
551 uint8_t *buffer; HWTEST_F() local
578 uint8_t *buffer; HWTEST_F() local
605 uint8_t *buffer; HWTEST_F() local
632 uint8_t *buffer; HWTEST_F() local
659 uint8_t *buffer; HWTEST_F() local
686 uint8_t *buffer; HWTEST_F() local
713 uint8_t *buffer; HWTEST_F() local
740 uint8_t *buffer; HWTEST_F() local
767 uint8_t *buffer; HWTEST_F() local
794 uint8_t *buffer; HWTEST_F() local
821 uint8_t *buffer; HWTEST_F() local
848 uint8_t *buffer; HWTEST_F() local
875 uint8_t *buffer; HWTEST_F() local
902 uint8_t *buffer; HWTEST_F() local
929 uint8_t *buffer; HWTEST_F() local
956 uint8_t *buffer; HWTEST_F() local
983 uint8_t *buffer; HWTEST_F() local
1010 uint8_t *buffer; HWTEST_F() local
1037 uint8_t *buffer; HWTEST_F() local
1064 uint8_t *buffer; HWTEST_F() local
1091 uint8_t *buffer; HWTEST_F() local
1118 uint8_t *buffer; HWTEST_F() local
1145 uint8_t *buffer; HWTEST_F() local
1172 uint8_t *buffer; HWTEST_F() local
1199 uint8_t *buffer; HWTEST_F() local
1226 uint8_t *buffer; HWTEST_F() local
1253 uint8_t *buffer; HWTEST_F() local
1280 uint8_t *buffer; HWTEST_F() local
1307 uint8_t *buffer; HWTEST_F() local
1334 uint8_t *buffer; HWTEST_F() local
1361 uint8_t *buffer; HWTEST_F() local
1388 uint8_t *buffer; HWTEST_F() local
1415 uint8_t *buffer; HWTEST_F() local
1442 uint8_t *buffer; HWTEST_F() local
1469 uint8_t *buffer; HWTEST_F() local
1496 uint8_t *buffer; HWTEST_F() local
1523 uint8_t *buffer; HWTEST_F() local
1550 uint8_t *buffer; HWTEST_F() local
1577 uint8_t *buffer; HWTEST_F() local
1604 uint8_t *buffer; HWTEST_F() local
1631 uint8_t *buffer; HWTEST_F() local
1658 uint8_t *buffer; HWTEST_F() local
1685 uint8_t *buffer; HWTEST_F() local
1712 uint8_t *buffer; HWTEST_F() local
1739 uint8_t *buffer; HWTEST_F() local
1766 uint8_t *buffer; HWTEST_F() local
1793 uint8_t *buffer; HWTEST_F() local
1820 uint8_t *buffer; HWTEST_F() local
1847 uint8_t *buffer; HWTEST_F() local
1874 uint8_t *buffer; HWTEST_F() local
1901 uint8_t *buffer; HWTEST_F() local
1928 uint8_t *buffer; HWTEST_F() local
1955 uint8_t *buffer; HWTEST_F() local
1982 uint8_t *buffer; HWTEST_F() local
2009 uint8_t *buffer; HWTEST_F() local
2036 uint8_t *buffer; HWTEST_F() local
2063 uint8_t *buffer; HWTEST_F() local
2090 uint8_t *buffer; HWTEST_F() local
2117 uint8_t *buffer; HWTEST_F() local
2144 uint8_t *buffer; HWTEST_F() local
2171 uint8_t *buffer; HWTEST_F() local
2198 uint8_t *buffer; HWTEST_F() local
[all...]
/test/xts/hats/kernel/dmabuffer/
H A Ddmabuf_alloc.cpp85 DmabufHeapBuffer buffer = { .size = BUFFER_SIZE, .heapFlags = 0 }; in HWTEST_F() local
86 ASSERT_EQ(0, DmabufHeapBufferAlloc(heapFd, &buffer)); in HWTEST_F()
88 void *ptr = mmap(nullptr, BUFFER_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, buffer.fd, 0); in HWTEST_F()
91 ASSERT_EQ(0, DmabufHeapBufferSyncStart(buffer.fd, DMA_BUF_HEAP_BUF_SYNC_RW)); in HWTEST_F()
95 ASSERT_EQ(0, DmabufHeapBufferSyncEnd(buffer.fd, DMA_BUF_HEAP_BUF_SYNC_RW)); in HWTEST_F()
101 ASSERT_EQ(0, DmabufHeapBufferFree(&buffer)); in HWTEST_F()
113 DmabufHeapBuffer buffer = { .size = BUFFER_SIZE, .heapFlags = 0 }; in HWTEST_F() local
114 ASSERT_EQ(0, DmabufHeapBufferAlloc(heapFd, &buffer)); in HWTEST_F()
116 void *ptr = mmap(nullptr, BUFFER_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, buffer.fd, 0); in HWTEST_F()
119 ASSERT_EQ(0, DmabufHeapBufferSyncStart(buffer in HWTEST_F()
183 DmabufHeapBuffer buffer = { .size = 0 }; HWTEST_F() local
198 DmabufHeapBuffer buffer = { .size = BUFFER_SIZE, .heapFlags = 0 }; HWTEST_F() local
224 DmabufHeapBuffer buffer = { .size = BUFFER_SIZE, .heapFlags = 0 }; HWTEST_F() local
248 DmabufHeapBuffer buffer = { .size = BUFFER_SIZE, .heapFlags = 0 }; HWTEST_F() local
280 DmabufHeapBuffer buffer = { .size = BUFFER_SIZE, .heapFlags = 0 }; HWTEST_F() local
[all...]
/test/xts/hats/kernel/syscalls/fileio/preadv/
H A DPreadvApiTest.cpp75 char buffer[MAX_LEN] = { 0 }; in HWTEST_F() local
78 .iov_base = buffer, in HWTEST_F()
81 .iov_base = &buffer[TEST_LEN], in HWTEST_F()
94 memset_s(buffer, sizeof(buffer), 0, sizeof(buffer)); in HWTEST_F()
100 memset_s(buffer, sizeof(buffer), 0, sizeof(buffer)); in HWTEST_F()
118 char buffer[MAX_LE in HWTEST_F() local
140 char buffer[MAX_LEN] = { 0 }; HWTEST_F() local
164 char buffer[MAX_LEN] = { 0 }; HWTEST_F() local
199 char buffer[MAX_LEN] = { 0 }; HWTEST_F() local
[all...]
/test/xts/acts/graphic/graphicnapitest/
H A DNativeBufferTest.cpp49 static inline OH_NativeBuffer* buffer = nullptr; member in OHOS::Rosen::NativeBufferTest
54 buffer = nullptr; in SetUpTestCase()
59 buffer = nullptr; in TearDownTestCase()
71 buffer = OH_NativeBuffer_Alloc(nullptr); in HWTEST_F()
72 ASSERT_EQ(buffer, nullptr); in HWTEST_F()
84 buffer = OH_NativeBuffer_Alloc(&config); in HWTEST_F()
85 ASSERT_NE(buffer, nullptr); in HWTEST_F()
110 uint32_t id = OH_NativeBuffer_GetSeqNum(buffer); in HWTEST_F()
123 OH_NativeBuffer_GetConfig(buffer, &checkConfig); in HWTEST_F()
169 int32_t ret = OH_NativeBuffer_Reference(buffer); in HWTEST_F()
564 OH_NativeBuffer *buffer = (OH_NativeBuffer *)0xFFFFFFFF; HWTEST_F() local
[all...]
/test/xts/acts/distributed_schedule_lite/distributed_schedule_posix/src/
H A DMsgParserFuncTest.cpp26 static int8_t RunTest(const uint8_t *buffer, uint16_t bufferLen, const TlvParseCallback onTlvParseDone, in RunTest() argument
36 interInfo.payload = buffer; in RunTest()
69 uint8_t buffer[] = { in HWTEST_F() local
88 RunTest(buffer, sizeof(buffer), onTlvParseDone, nullptr); in HWTEST_F()
98 uint8_t buffer[] = { in HWTEST_F() local
111 int8_t resultCode = RunTest(nullptr, sizeof(buffer), onTlvParseDone, nullptr); in HWTEST_F()
121 uint8_t buffer[] = { in HWTEST_F() local
129 int8_t resultCode = RunTest(buffer, sizeof(buffer), onTlvParseDon in HWTEST_F()
139 uint8_t buffer[] = { HWTEST_F() local
162 uint8_t buffer[] = { }; HWTEST_F() local
179 uint8_t buffer[] = { HWTEST_F() local
197 uint8_t buffer[] = { HWTEST_F() local
217 uint8_t buffer[] = { HWTEST_F() local
238 uint8_t buffer[] = { HWTEST_F() local
262 uint8_t buffer[] = { HWTEST_F() local
283 uint8_t buffer[] = { HWTEST_F() local
304 uint8_t buffer[] = { HWTEST_F() local
327 uint8_t buffer[] = { HWTEST_F() local
352 uint8_t buffer[] = { HWTEST_F() local
377 uint8_t buffer[] = { HWTEST_F() local
401 uint8_t buffer[] = { HWTEST_F() local
420 uint8_t buffer[] = { HWTEST_F() local
441 uint8_t buffer[] = { HWTEST_F() local
464 uint8_t buffer[] = { HWTEST_F() local
488 uint8_t buffer[] = { HWTEST_F() local
510 uint8_t buffer[] = { HWTEST_F() local
533 uint8_t buffer[] = { HWTEST_F() local
556 uint8_t buffer[] = { HWTEST_F() local
573 uint8_t buffer[] = { HWTEST_F() local
593 uint8_t buffer[] = { HWTEST_F() local
615 uint8_t buffer[] = { HWTEST_F() local
639 uint8_t buffer[] = { HWTEST_F() local
662 uint8_t buffer[] = { HWTEST_F() local
685 uint8_t buffer[] = { HWTEST_F() local
708 uint8_t buffer[] = { HWTEST_F() local
[all...]
/test/xts/hats/hdf/camera/cameraHdi/buffer_manager/
H A Dbuffer_manager_utest.cpp66 OHOS::SurfaceBuffer* buffer = consumer->AcquireBuffer(); in HWTEST_F()
67 if (buffer != nullptr) { in HWTEST_F()
68 consumer->ReleaseBuffer(buffer); in HWTEST_F()
69 std::cout << "receive a buffer ..." << std::endl; in HWTEST_F()
87 sptr<SurfaceBuffer> buffer = nullptr; in HWTEST_F()
88 consumer->AcquireBuffer(buffer, flushFence, timestamp, damage); in HWTEST_F()
89 if (buffer != nullptr) { in HWTEST_F()
90 SurfaceError ret = consumer->ReleaseBuffer(buffer, -1); in HWTEST_F()
92 std::cout << "receive a buffer ..." << std::endl; in HWTEST_F()
161 std::shared_ptr<IBuffer> buffer; in HWTEST_F() local
228 auto buffer = bufferPool->AcquireBuffer(); HWTEST_F() local
282 std::shared_ptr<IBuffer> buffer = std::make_shared<ImageBuffer>(); HWTEST_F() local
573 std::shared_ptr<IBuffer> buffer = nullptr; EnqueueBufferNonBlock() local
594 DequeueBuffer(std::shared_ptr<IBuffer>& buffer) DequeueBuffer() argument
730 DeliverBuffer(std::shared_ptr<IBuffer>& buffer) DeliverBuffer() argument
783 Deliver(std::shared_ptr<IBuffer>& buffer) Deliver() argument
792 Receive(std::shared_ptr<IBuffer>& buffer) Receive() argument
805 Process(std::shared_ptr<IBuffer>& buffer) Process() argument
818 Deliver(std::shared_ptr<IBuffer>& buffer) Deliver() argument
827 Process(std::shared_ptr<IBuffer>& buffer) Process() argument
[all...]
/test/testfwk/developer_test/aw/cxx/hwext/
H A Dperf.cpp310 char buffer[ID_PROPERTY_LENGTH] = {0}; in SaveResult() local
319 (void)memset_s(buffer, sizeof(buffer), 0, sizeof(buffer)); in SaveResult()
320 if (snprintf_s(buffer, sizeof(buffer), sizeof(buffer) - 1, "%g", m_dbBaseLine) > 0) { in SaveResult()
321 m_pTester->RecordProperty("baseline", buffer); in SaveResult()
324 (void)memset_s(buffer, sizeof(buffer), in SaveResult()
[all...]
/test/xts/hats/kernel/syscalls/fileio/lsetxattr/
H A DLsetxattrApiTest.cpp62 int GetExtendedAttribute(const char* linkPath, const char* attrName, char* buffer, size_t bufferSize) in GetExtendedAttribute() argument
64 ssize_t ret = lgetxattr(linkPath, attrName, buffer, bufferSize); in GetExtendedAttribute()
68 buffer[ret] = '\0'; in GetExtendedAttribute()
108 char buffer[64] = {0}; in HWTEST_F() local
109 ret = GetExtendedAttribute(targetFilePath, attrName, buffer, sizeof(buffer)); in HWTEST_F()
112 ret = strncmp(attrValue, buffer, strlen(attrValue)); in HWTEST_F()
141 char buffer[64] = {0}; in HWTEST_F() local
142 ret = GetExtendedAttribute(targetFilePath, attrName1, buffer, sizeof(buffer)); in HWTEST_F()
187 char buffer[64] = {0}; HWTEST_F() local
257 char buffer[64] = {0}; HWTEST_F() local
593 char buffer[64] = {0}; HWTEST_F() local
[all...]
/test/xts/hats/ai/nnrt/hdi/v1_0/common/
H A Dhdi_nnrt_test_utils.cpp122 printf("[NNRtTest] [ConvertModel] allocate tensor buffer failed after get const tensor size,"\ in ConvertModel()
146 OHOS::HDI::Nnrt::V1_0::SharedBuffer buffer{NNRT_INVALID_FD, 0, 0, 0}; in CreateIOTensor()
147 int ret = device->AllocateBuffer(ADDEND_BUFFER_LENGTH, buffer); in CreateIOTensor()
148 if (ret != HDF_SUCCESS || buffer.fd == NNRT_INVALID_FD) { in CreateIOTensor()
149 printf("[NNRtTest] [CreateIOTensor] allocate buffer error. ret: %d, fd: %d\n", ret, buffer.fd); in CreateIOTensor()
155 .data = buffer}; in CreateIOTensor()
165 OHOS::HDI::Nnrt::V1_0::SharedBuffer buffer{NNRT_INVALID_FD, 0, 0, 0}; in CreateInputIOTensor()
166 auto ret = device->AllocateBuffer(length, buffer); in CreateInputIOTensor()
168 if (ret != HDF_SUCCESS || buffer in CreateInputIOTensor()
219 UnmapMemory(float* buffer) UnmapMemory() argument
228 SetData(float* buffer, size_t length, float* data) SetData() argument
288 PrintTensor(const float *buffer, size_t length) PrintTensor() argument
[all...]
/test/xts/hats/ai/nnrt/hdi/v2_0/common/
H A Dhdi_nnrt_test_utils.cpp122 printf("[NNRtTest] [ConvertModel] allocate tensor buffer failed after get const tensor size,"\ in ConvertModel()
146 OHOS::HDI::Nnrt::V2_0::SharedBuffer buffer{NNRT_INVALID_FD, 0, 0, 0}; in CreateIOTensor()
147 int ret = device->AllocateBuffer(ADDEND_BUFFER_LENGTH, buffer); in CreateIOTensor()
148 if (ret != HDF_SUCCESS || buffer.fd == NNRT_INVALID_FD) { in CreateIOTensor()
149 printf("[NNRtTest] [CreateIOTensor] allocate buffer error. ret: %d, fd: %d\n", ret, buffer.fd); in CreateIOTensor()
155 .data = buffer}; in CreateIOTensor()
165 OHOS::HDI::Nnrt::V2_0::SharedBuffer buffer{NNRT_INVALID_FD, 0, 0, 0}; in CreateInputIOTensor()
166 auto ret = device->AllocateBuffer(length, buffer); in CreateInputIOTensor()
168 if (ret != HDF_SUCCESS || buffer in CreateInputIOTensor()
219 UnmapMemory(float* buffer) UnmapMemory() argument
228 SetData(float* buffer, size_t length, float* data) SetData() argument
288 PrintTensor(const float *buffer, size_t length) PrintTensor() argument
[all...]
/test/xts/acts/ai/neural_network_runtime/v2_0/common/
H A Dmock_idevice.cpp238 int32_t MockIDevice::AllocateBuffer(uint32_t length, SharedBuffer &buffer) in AllocateBuffer() argument
241 buffer.fd = AshmemCreate("allocateBuffer", length); in AllocateBuffer()
242 buffer.bufferSize = AshmemGetSize(buffer.fd); in AllocateBuffer()
243 buffer.offset = 0; in AllocateBuffer()
244 buffer.dataSize = length; in AllocateBuffer()
246 AshmemSetProt(buffer.fd, PROT_READ | PROT_WRITE); in AllocateBuffer()
247 m_fds.emplace(buffer.fd); in AllocateBuffer()
248 m_bufferFd = buffer.fd; in AllocateBuffer()
252 int32_t MockIDevice::ReleaseBuffer(const SharedBuffer &buffer) in ReleaseBuffer() argument
315 SharedBuffer buffer; ExportModelCache() local
[all...]
/test/xts/acts/ai/nncore/opstest/src/
H A Dmock_idevice.cpp236 int32_t MockIDevice::AllocateBuffer(uint32_t length, SharedBuffer &buffer) in AllocateBuffer() argument
239 buffer.fd = AshmemCreate("allocateBuffer", length); in AllocateBuffer()
240 buffer.bufferSize = AshmemGetSize(buffer.fd); in AllocateBuffer()
241 buffer.offset = 0; in AllocateBuffer()
242 buffer.dataSize = length; in AllocateBuffer()
244 AshmemSetProt(buffer.fd, PROT_READ | PROT_WRITE); in AllocateBuffer()
245 m_fds.emplace(buffer.fd); in AllocateBuffer()
246 m_bufferFd = buffer.fd; in AllocateBuffer()
250 int32_t MockIDevice::ReleaseBuffer(const SharedBuffer &buffer) in ReleaseBuffer() argument
315 SharedBuffer buffer; ExportModelCache() local
[all...]
/test/xts/acts/ai/neural_network_runtime/v1_0/common/
H A Dmock_idevice.cpp220 int32_t MockIDevice::AllocateBuffer(uint32_t length, SharedBuffer &buffer) in AllocateBuffer() argument
223 buffer.fd = AshmemCreate("allocateBuffer", length); in AllocateBuffer()
224 buffer.bufferSize = AshmemGetSize(buffer.fd); in AllocateBuffer()
225 buffer.offset = 0; in AllocateBuffer()
226 buffer.dataSize = length; in AllocateBuffer()
228 AshmemSetProt(buffer.fd, PROT_READ | PROT_WRITE); in AllocateBuffer()
229 m_fds.emplace(buffer.fd); in AllocateBuffer()
230 m_bufferFd = buffer.fd; in AllocateBuffer()
234 int32_t MockIDevice::ReleaseBuffer(const SharedBuffer &buffer) in ReleaseBuffer() argument
290 SharedBuffer buffer; ExportModelCache() local
[all...]
/test/xts/acts/ai/nncore/common/
H A Dmock_idevice.cpp236 int32_t MockIDevice::AllocateBuffer(uint32_t length, SharedBuffer &buffer) in AllocateBuffer() argument
239 buffer.fd = AshmemCreate("allocateBuffer", length); in AllocateBuffer()
240 buffer.bufferSize = AshmemGetSize(buffer.fd); in AllocateBuffer()
241 buffer.offset = 0; in AllocateBuffer()
242 buffer.dataSize = length; in AllocateBuffer()
244 AshmemSetProt(buffer.fd, PROT_READ | PROT_WRITE); in AllocateBuffer()
245 m_fds.emplace(buffer.fd); in AllocateBuffer()
246 m_bufferFd = buffer.fd; in AllocateBuffer()
250 int32_t MockIDevice::ReleaseBuffer(const SharedBuffer &buffer) in ReleaseBuffer() argument
291 SharedBuffer buffer; ExportModelCache() local
[all...]
/test/ostest/wukong/common/include/
H A Dspecial_test_object.h55 char buffer[50]; in toString() local
58 result = sprintf_s(buffer, sizeof(buffer), "Swap: (%d, %d) -> (%d, %d)", endX_, endY_, startX_, startY_); in toString()
60 result = sprintf_s(buffer, sizeof(buffer), "Swap: (%d, %d) -> (%d, %d)", startX_, startY_, endX_, endY_); in toString()
65 return std::string(buffer); in toString()
84 char buffer[50]; in toString() local
85 int result = sprintf_s(buffer, sizeof(buffer), "Point: (%d, %d)", x_, y_); in toString()
89 return std::string(buffer); in toString()
104 char buffer[50]; toString() local
[all...]
/test/xts/device_attest/services/core/adapter/
H A Dattest_adapter.c51 int32_t AttestReadAuthStatus(char* buffer, uint32_t bufferLen) in AttestReadAuthStatus() argument
53 return OEMReadAuthStatus(buffer, bufferLen); in AttestReadAuthStatus()
89 int32_t AttestWriteNetworkConfig(const char* buffer, uint32_t bufferLen) in AttestWriteNetworkConfig() argument
91 return OEMWriteNetworkConfig(buffer, bufferLen); in AttestWriteNetworkConfig()
94 int32_t AttestReadNetworkConfig(char* buffer, uint32_t bufferLen) in AttestReadNetworkConfig() argument
96 return OEMReadNetworkConfig(buffer, bufferLen); in AttestReadNetworkConfig()
99 int32_t AttestReadDefaultNetworkConfig(char* buffer, uint32_t bufferLen) in AttestReadDefaultNetworkConfig() argument
101 return OEMReadDefaultNetworkConfig(buffer, bufferLen); in AttestReadDefaultNetworkConfig()
109 int32_t AttestReadAuthResultCode(char* buffer, uint32_t bufferLen) in AttestReadAuthResultCode() argument
111 return OEMReadAuthResultCode(buffer, bufferLe in AttestReadAuthResultCode()
119 AttestReadFullLoadStatus(char* buffer, uint32_t bufferLen) AttestReadFullLoadStatus() argument
[all...]
H A Dattest_adapter_oem.c58 int32_t OEMReadAuthStatus(char* buffer, uint32_t bufferLen) in OEMReadAuthStatus() argument
60 return ReadFile(AUTH_RESULT_PATH, AUTH_STATUS_FILE_NAME, buffer, bufferLen); in OEMReadAuthStatus()
105 int32_t OEMWriteNetworkConfig(const char* buffer, uint32_t bufferLen) in OEMWriteNetworkConfig() argument
107 (void)buffer; in OEMWriteNetworkConfig()
113 int32_t OEMReadNetworkConfig(char* buffer, uint32_t bufferLen) in OEMReadNetworkConfig() argument
115 (void)buffer; in OEMReadNetworkConfig()
121 int32_t OEMReadDefaultNetworkConfig(char* buffer, uint32_t bufferLen) in OEMReadDefaultNetworkConfig() argument
123 (void)buffer; in OEMReadDefaultNetworkConfig()
138 int32_t OEMReadAuthResultCode(char* buffer, uint32_t bufferLen) in OEMReadAuthResultCode() argument
140 return ReadFile(AUTH_RESULT_PATH, AUTH_RESULT_CODE_FILE_NAME, buffer, bufferLe in OEMReadAuthResultCode()
153 OEMReadFullLoadStatus(char* buffer, uint32_t bufferLen) OEMReadFullLoadStatus() argument
[all...]
/test/xts/acts/graphic/nativebuffer/entry/src/main/cpp/
H A Dnativebuffer.cpp93 OH_NativeBuffer *buffer = OH_NativeBuffer_Alloc(&config); in getBuffer() local
94 return buffer; in getBuffer()
101 OH_NativeBuffer *buffer = getBuffer(); in OHNativeBufferAlloc() local
102 if (buffer != nullptr) { in OHNativeBufferAlloc()
106 OH_NativeBuffer_Unreference(buffer); in OHNativeBufferAlloc()
113 OH_NativeBuffer *buffer = OH_NativeBuffer_Alloc(nullptr); in OHNativeBufferAllocAbnormal() local
115 if (buffer != nullptr) { in OHNativeBufferAllocAbnormal()
119 OH_NativeBuffer_Unreference(buffer); in OHNativeBufferAllocAbnormal()
125 OH_NativeBuffer *buffer = getBuffer(); in OHNativeBufferReference() local
126 if (buffer ! in OHNativeBufferReference()
149 OH_NativeBuffer *buffer = getBuffer(); OHNativeBufferUnreference() local
177 OH_NativeBuffer *buffer = getBuffer(); OHNativeBufferGetConfig() local
198 OH_NativeBuffer *buffer = getBuffer(); OHNativeBufferMap() local
225 OH_NativeBuffer *buffer = getBuffer(); OHNativeBufferUnmap() local
250 OH_NativeBuffer *buffer = getBuffer(); OHNativeBufferGetSeqNum() local
432 OH_NativeBuffer *buffer = OH_NativeBuffer_Alloc(&nativeBufferConfig); OHNativeBufferFromNativeWindowBufferNullptr() local
466 OH_NativeBuffer *buffer = nullptr; OHNativeBufferFromNativeWindowBufferNormal() local
873 uint8_t *buffer; OHNativeBufferSetDynamicMetadataValue1() local
921 uint8_t *buffer; OHNativeBufferSetDynamicMetadataValue2() local
968 uint8_t *buffer; OHNativeBufferSetDynamicMetadataValue3() local
1084 uint8_t *buffer; OHNativeBufferSetStaticMetadataValue1() local
1132 uint8_t *buffer; OHNativeBufferSetStaticMetadataValue2() local
1179 uint8_t *buffer; OHNativeBufferSetStaticMetadataValue3() local
1258 uint8_t *buffer; OHNativeBufferSetMetadataValue1() local
1308 uint8_t *buffer; OHNativeBufferSetMetadataValue2() local
1356 uint8_t *buffer; OHNativeBufferSetMetadataValue3() local
1400 uint8_t *buffer; OHNativeBufferSetMetadataValue4() local
1533 uint8_t *buffer = new uint8_t[NUMBER_60]; OHNativeBufferGetMetadataValueNullptr() local
[all...]
/test/xts/device_attest_lite/test/tdd/gtest/src/
H A Dattest_tdd_mock_hal.c105 int32_t AttestReadAuthStatus(char* buffer, uint32_t bufferLen) in AttestReadAuthStatus() argument
107 int32_t ret = memcpy_s(buffer, bufferLen, ATTEST_MOCK_HAL_STATUS, ATTEST_MOCK_HAL_STATUS_LEN); in AttestReadAuthStatus()
118 int32_t AttestReadAuthResultCode(char* buffer, uint32_t bufferLen) in AttestReadAuthResultCode() argument
120 int32_t ret = memcpy_s(buffer, bufferLen, ATTEST_RESULT_CODE, ATTEST_RESULT_CODE_LEN); in AttestReadAuthResultCode()
129 int32_t AttestWriteNetworkConfig(const char* buffer, uint32_t bufferLen) in AttestWriteNetworkConfig() argument
131 (void)buffer; in AttestWriteNetworkConfig()
136 int32_t AttestReadNetworkConfig(char* buffer, uint32_t bufferLen) in AttestReadNetworkConfig() argument
138 if (buffer == NULL) { in AttestReadNetworkConfig()
145 ret = memcpy_s(buffer, bufferLen, in AttestReadNetworkConfig()
149 ret = memcpy_s(buffer, bufferLe in AttestReadNetworkConfig()
161 AttestReadDefaultNetworkConfig(char* buffer, uint32_t bufferLen) AttestReadDefaultNetworkConfig() argument
[all...]
/test/xts/hats/kernel/syscall_ipc/msg_handle/
H A DMsgHandleApiTest.cpp76 struct MsgBuf buffer = { in HWTEST_F() local
84 ret = msgsnd(msqid, &buffer, MAX_LEN, IPC_NOWAIT); in HWTEST_F()
87 memset_s(&buffer, sizeof(buffer), 0, sizeof(buffer)); in HWTEST_F()
89 ret = msgrcv(msqid, &buffer, MAX_LEN, MSG_TYPE, IPC_NOWAIT); in HWTEST_F()
91 EXPECT_STREQ(buffer.text, "Hello, world!"); in HWTEST_F()
109 struct MsgBuf buffer = { in HWTEST_F() local
115 ret = msgsnd(-1, &buffer, MAX_LEN, IPC_NOWAIT); in HWTEST_F()
120 ret = msgrcv(-1, &buffer, MAX_LE in HWTEST_F()
138 struct MsgBuf buffer = { HWTEST_F() local
[all...]
/test/xts/acts/kernel_lite/time_posix/src/
H A DTimeUtilsTest.cpp253 char buffer[80] = {0}; in HWTEST_F() local
260 size_t ftime = strftime(buffer, sizeof(buffer) - 1, "%Ex %EX %A", localTime); in HWTEST_F()
262 EXPECT_STREQ(buffer, "01/01/70 05:14:40 Thursday") << "buffer return error!"; in HWTEST_F()
267 ftime = strftime(buffer, sizeof(buffer) - 1, "%y-%m-%d %H:%M:%S", localTime); in HWTEST_F()
268 EXPECT_STREQ(buffer, "38-01-19 03:14:07") << "buffer return error!"; in HWTEST_F()
273 ftime = strftime(buffer, sizeo in HWTEST_F()
295 char buffer[80] = {0}; HWTEST_F() local
[all...]
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/native/
H A Dnative.cpp34 char buffer[50]; in native_002() local
38 auto result = OH_ArkUI_GetNavigationId(nullptr,buffer,SMALL_BUFFER_LEN,&resLen); in native_002()
44 char buffer[50]; in native_003() local
48 auto result = OH_ArkUI_GetNavDestinationName(nullptr,buffer,SMALL_BUFFER_LEN,&resLen); in native_003()
54 char buffer[50]; in native_005() local
59 auto result = OH_ArkUI_GetNavDestinationNameByIndex(nullptr,10000,buffer,SMALL_BUFFER_LEN,&resLen); in native_005()
65 char buffer[50]; in native_006() local
69 auto result = OH_ArkUI_GetNavDestinationId(nullptr,buffer,SMALL_BUFFER_LEN,&resLen); in native_006()
102 char buffer[50]; in native_011() local
106 auto result = OH_ArkUI_GetRouterPageName(nullptr,buffer,SMALL_BUFFER_LE in native_011()
112 char buffer[50]; native_012() local
128 char buffer[50]; native_014() local
[all...]
/test/xts/acts/ability/ability_runtime/capiabilityruntime/entry/src/main/cpp/
H A Dnapi_init.cpp47 char buffer[BUF_SIZE]; in GetBundleName() local
49 AbilityRuntime_ErrorCode code = OH_AbilityRuntime_ApplicationContextGetBundleName(buffer, BUF_SIZE, &writeLength); in GetBundleName()
55 OH_LOG_DEBUG(LOG_APP, "result: %{public}s", buffer); in GetBundleName()
57 napi_create_string_utf8(env, buffer, writeLength, &result); in GetBundleName()
63 char buffer[BUF_SIZE]; in GetCacheDir() local
65 AbilityRuntime_ErrorCode code = OH_AbilityRuntime_ApplicationContextGetCacheDir(buffer, BUF_SIZE, &writeLength); in GetCacheDir()
71 OH_LOG_DEBUG(LOG_APP, "result: %{public}s", buffer); in GetCacheDir()
73 napi_create_string_utf8(env, buffer, writeLength, &result); in GetCacheDir()
117 char buffer[BUF_SIZE]; in TestGetBundleName() local
140 code = OH_AbilityRuntime_ApplicationContextGetBundleName(buffer, BUF_SIZ in TestGetBundleName()
230 char buffer[BUF_SIZE]; TestGetCacheDir() local
[all...]
/test/xts/hats/kernel/syscalls/net/data_handle/
H A DDataHandleApiTest.cpp112 char buffer[BUFFER_SIZE] = { 0 }; in TcpClient() local
131 size = recv(clientFd, static_cast<void *>(buffer), BUFFER_SIZE, 0); in TcpClient()
133 EXPECT_STREQ(buffer, TEST_EXIT); in TcpClient()
143 char buffer[BUFFER_SIZE] = { 0 }; in UdpClient() local
163 size = recvfrom(clientFd, static_cast<void *>(buffer), BUFFER_SIZE, 0, in UdpClient()
166 EXPECT_STREQ(buffer, TEST_EXIT); in UdpClient()
168 size = recvfrom(clientFd, static_cast<void *>(buffer), BUFFER_SIZE, 0, in UdpClient()
189 char buffer[BUFFER_SIZE] = { 0 }; in HWTEST_F() local
196 size = recvfrom(g_udpFd, static_cast<void *>(buffer), BUFFER_SIZE, 0, in HWTEST_F()
199 EXPECT_STREQ(buffer, TEST_BUFFE in HWTEST_F()
219 char buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local
317 char buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local
354 char buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local
400 char buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local
436 char buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local
524 char buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local
[all...]

Completed in 21 milliseconds

12345678910>>...57