Home
last modified time | relevance | path

Searched refs:BUFFER_SIZE (Results 1 - 24 of 24) sorted by relevance

/test/xts/hats/kernel/dmabuffer/
H A Ddmabuf_alloc.cpp36 const int BUFFER_SIZE = 128; member
85 DmabufHeapBuffer buffer = { .size = BUFFER_SIZE, .heapFlags = 0 }; in HWTEST_F()
88 void *ptr = mmap(nullptr, BUFFER_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, buffer.fd, 0); in HWTEST_F()
93 ASSERT_GE(sprintf_s((char *)ptr, BUFFER_SIZE, "libdmabufheap"), 0); in HWTEST_F()
99 ASSERT_EQ(0, munmap(ptr, BUFFER_SIZE)); in HWTEST_F()
113 DmabufHeapBuffer buffer = { .size = BUFFER_SIZE, .heapFlags = 0 }; in HWTEST_F()
116 void *ptr = mmap(nullptr, BUFFER_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, buffer.fd, 0); in HWTEST_F()
121 ASSERT_GE(sprintf_s((char *)ptr, BUFFER_SIZE, "parent"), 0); in HWTEST_F()
129 ptr = mmap(nullptr, BUFFER_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, buffer.fd, 0); in HWTEST_F()
136 ASSERT_GE(sprintf_s((char *)ptr, BUFFER_SIZE, "chil in HWTEST_F()
[all...]
/test/xts/hats/kernel/syscalls/fileio/lsetxattr/
H A DLsetxattrApiTest.cpp82 const int BUFFER_SIZE = 128; variable
95 char targetFilePath[BUFFER_SIZE] = {0}; in HWTEST_F()
96 int num = sprintf_s(targetFilePath, BUFFER_SIZE, "%s/%s", OPEN_API_TEST_FILE, targetFile); in HWTEST_F()
129 char targetFilePath[BUFFER_SIZE] = {0}; in HWTEST_F()
130 int num = sprintf_s(targetFilePath, BUFFER_SIZE, "%s/%s", OPEN_API_TEST_FILE, targetFile); in HWTEST_F()
174 char targetFilePath[BUFFER_SIZE] = {0}; in HWTEST_F()
175 int num = sprintf_s(targetFilePath, BUFFER_SIZE, "%s/%s", OPEN_API_TEST_FILE, targetFile); in HWTEST_F()
208 char targetFilePath[BUFFER_SIZE] = {0}; in HWTEST_F()
209 int num = sprintf_s(targetFilePath, BUFFER_SIZE, "%s/%s", OPEN_API_TEST_FILE, targetFile); in HWTEST_F()
240 char targetFilePath[BUFFER_SIZE] in HWTEST_F()
[all...]
/test/xts/hats/kernel/syscalls/net/data_handle/
H A DDataHandleApiTest.cpp35 static const int BUFFER_SIZE = 1024; variable
112 char buffer[BUFFER_SIZE] = { 0 }; in TcpClient()
131 size = recv(clientFd, static_cast<void *>(buffer), BUFFER_SIZE, 0); in TcpClient()
143 char buffer[BUFFER_SIZE] = { 0 }; in UdpClient()
163 size = recvfrom(clientFd, static_cast<void *>(buffer), BUFFER_SIZE, 0, in UdpClient()
168 size = recvfrom(clientFd, static_cast<void *>(buffer), BUFFER_SIZE, 0, in UdpClient()
189 char buffer[BUFFER_SIZE] = { 0 }; in HWTEST_F()
196 size = recvfrom(g_udpFd, static_cast<void *>(buffer), BUFFER_SIZE, 0, in HWTEST_F()
219 char buffer[BUFFER_SIZE] = { 0 }; in HWTEST_F()
226 size = recvfrom(BAD_SOCKET_FD, static_cast<void *>(buffer), BUFFER_SIZE, in HWTEST_F()
[all...]
/test/xts/hats/kernel/syscalls/fileio/lremovexattr/
H A DLremovexattrApiTest.cpp53 const int BUFFER_SIZE = 128; variable
103 char tmpPath[BUFFER_SIZE] = {0}; in HWTEST_F()
104 int num = sprintf_s(tmpPath, BUFFER_SIZE, "%s/non_existing_dir", OPEN_API_TEST_FILE); in HWTEST_F()
123 char tmpPath[BUFFER_SIZE] = {0}; in HWTEST_F()
124 int num = sprintf_s(tmpPath, BUFFER_SIZE, "%s/existing_file.txt", OPEN_API_TEST_FILE); in HWTEST_F()
155 char tmpPath[BUFFER_SIZE] = {0}; in HWTEST_F()
156 int num = sprintf_s(tmpPath, BUFFER_SIZE, "%s/existing_file.txt", OPEN_API_TEST_FILE); in HWTEST_F()
181 char tmpPath[BUFFER_SIZE] = {0}; in HWTEST_F()
182 int num = sprintf_s(tmpPath, BUFFER_SIZE, "%s/non_existing_file.txt", OPEN_API_TEST_FILE); in HWTEST_F()
/test/xts/hats/kernel/syscalls/fileio/llistxattr/
H A DLlistxattrApiTest.cpp53 const int BUFFER_SIZE = 128; variable
87 char tmpPath[BUFFER_SIZE] = {0}; in HWTEST_F()
88 int num = sprintf_s(tmpPath, BUFFER_SIZE, "%s/existing_file.txt", OPEN_API_TEST_FILE); in HWTEST_F()
118 char tmpPath[BUFFER_SIZE] = {0}; in HWTEST_F()
119 int num = sprintf_s(tmpPath, BUFFER_SIZE, "%s/non_existing_file.txt", OPEN_API_TEST_FILE); in HWTEST_F()
/test/xts/hats/kernel/syscalls/fileio/fgetxattr/
H A DFgetxattrApiTest.cpp33 #define BUFFER_SIZE 128 macro
73 char buf[BUFFER_SIZE] = {0}; in HWTEST_F()
98 char buf[BUFFER_SIZE] = {0}; in HWTEST_F()
116 char buf[BUFFER_SIZE] = {0}; in HWTEST_F()
140 char buf[BUFFER_SIZE] = {0}; in HWTEST_F()
/test/xts/hats/kernel/syscalls/fileio/fsetxattr/
H A DFsetxattrApiTest.cpp33 static const int BUFFER_SIZE = 128; variable
73 char buf[BUFFER_SIZE] = {0}; in HWTEST_F()
117 char buf[BUFFER_SIZE] = {0}; in HWTEST_F()
146 char buf[BUFFER_SIZE] = {0}; in HWTEST_F()
/test/xts/hats/kernel/syscalls/fileio/getcwd/
H A DGetcwdApiTest.cpp51 const int BUFFER_SIZE = 128; variable
62 char buff[BUFFER_SIZE] = {0}; in HWTEST_F()
/test/xts/hats/hdf/codec/hdi_component_additional/
H A Dcodec_component_test.cpp52 constexpr int32_t BUFFER_SIZE = WIDTH * HEIGHT * 3; member in __anon451::PortIndex
78 buffer.allocLen = BUFFER_SIZE; in InitOmxCodecBuffer()
1936 auto eglImage = std::make_unique<int8_t[]>(BUFFER_SIZE); in HWTEST_F()
1939 eglImageVec.assign(eglImage.get(), eglImage.get() + BUFFER_SIZE); in HWTEST_F()
1956 auto eglImage = std::make_unique<int8_t[]>(BUFFER_SIZE); in HWTEST_F()
1959 eglImageVec.assign(eglImage.get(), eglImage.get() + BUFFER_SIZE); in HWTEST_F()
1976 auto eglImage = std::make_unique<int8_t[]>(BUFFER_SIZE); in HWTEST_F()
1979 eglImageVec.assign(eglImage.get(), eglImage.get() + BUFFER_SIZE); in HWTEST_F()
1996 auto eglImage = std::make_unique<int8_t[]>(BUFFER_SIZE); in HWTEST_F()
1999 eglImageVec.assign(eglImage.get(), eglImage.get() + BUFFER_SIZE); in HWTEST_F()
[all...]
/test/xts/hats/kernel/syscalls/net/get_info/
H A DGetInfoApiTest.cpp35 static const int BUFFER_SIZE = 1024; variable
90 char buffer[BUFFER_SIZE] = { 0 }; in ClientConnect()
104 size = recv(clientFd, static_cast<void *>(buffer), BUFFER_SIZE, 0); in ClientConnect()
/test/xts/tools/lite/checksum/src/
H A Dchecksum_file.c31 #define BUFFER_SIZE 4096 macro
146 unsigned char buffer[BUFFER_SIZE]; in CalcSingleFileSha256()
148 size_t size = fread(buffer, 1, BUFFER_SIZE, fp); in CalcSingleFileSha256()
H A Dmain.c30 #define BUFFER_SIZE 4096 macro
/test/xts/hats/kernel/syscalls/fileio/getxattr/
H A DGetxattrApiTest.cpp32 static const int BUFFER_SIZE = 128; variable
92 char value[BUFFER_SIZE] = {0}; in HWTEST_F()
/test/xts/hats/kernel/syscalls/process/prctl/
H A DPrctlApiTest.cpp26 static const int BUFFER_SIZE = 1024; variable
63 char buffer[BUFFER_SIZE] = { 0 }; in HWTEST_F()
/test/xts/hats/hdf/codec/benchmarktest/
H A Dcodec_benchmark_omx_test.cpp54 constexpr int32_t BUFFER_SIZE = WIDTH * HEIGHT * 3; member
80 buffer.allocLen = BUFFER_SIZE; in InitOmxCodecBuffer()
354 auto eglImage = std::make_unique<int8_t[]>(BUFFER_SIZE); in BENCHMARK_F()
357 eglImageVec.assign(eglImage.get(), eglImage.get() + BUFFER_SIZE); in BENCHMARK_F()
/test/xts/acts/multimedia_lite/camera_lite_posix/camera_native/src/
H A DActsMediaCameraTest.h29 const int32_t BUFFER_SIZE = 1024; member
H A DActsMediaCameraTest.cpp346 surface->SetSize(BUFFER_SIZE * BUFFER_SIZE); in StartRecord()
/test/xts/hats/hdf/codec/hdi_omx/
H A Dcodec_hdi_omx_test.cpp48 constexpr int32_t BUFFER_SIZE = WIDTH * HEIGHT * 3; member
60 buffer.allocLen = BUFFER_SIZE; in InitCodecBuffer()
1082 buffer.allocLen = BUFFER_SIZE; in HWTEST_F()
1088 auto eglImage = std::make_unique<int8_t[]>(BUFFER_SIZE); in HWTEST_F()
1091 BUFFER_SIZE); in HWTEST_F()
1152 allocBuffer.allocLen = BUFFER_SIZE; in HWTEST_F()
1173 allocBuffer.allocLen = BUFFER_SIZE; in HWTEST_F()
1260 allocBuffer.allocLen = BUFFER_SIZE; in HWTEST_F()
1304 allocBuffer.allocLen = BUFFER_SIZE; in HWTEST_F()
/test/xts/hats/hdf/codec/hdi_idlomx/
H A Dcodec_function_utils.h40 constexpr int32_t BUFFER_SIZE = WIDTH * HEIGHT * 3; variable
H A Dcodec_hdi_omx_enc_test.cpp750 auto eglImage = std::make_unique<int8_t[]>(BUFFER_SIZE); in HWTEST_F()
753 eglImageVec.assign(eglImage.get(), eglImage.get() + BUFFER_SIZE); in HWTEST_F()
H A Dcodec_function_utils.cpp52 buffer.allocLen = BUFFER_SIZE; in InitOmxCodecBuffer()
/test/xts/acts/bundlemanager/zlib/actszlibtest/
H A DActsZlibTest.cpp42 static unsigned BUFFER_SIZE = 8192; member
801 err = gzbuffer(file, BUFFER_SIZE); in HWTEST_F()
/test/xts/acts/bundlemanager/zlib/actszlibndktest/entry/src/main/cpp/
H A Dzlibndk.cpp54 static unsigned BUFFER_SIZE = 8192; variable
1508 err = gzbuffer(file, BUFFER_SIZE); in GzClearErr()
1538 err = gzbuffer(file, BUFFER_SIZE); in GzBuffer()
/test/xts/acts/multimedia_lite/media_lite_posix/audio_native/src/
H A DActsMediaAudioTest.cpp25 const int32_t BUFFER_SIZE = 1024; member

Completed in 32 milliseconds