Home
last modified time | relevance | path

Searched refs:kBufSize (Results 1 – 25 of 81) sorted by relevance

1234

/external/compiler-rt/test/asan/TestCases/Linux/
Drecvfrom.cc26 const int kBufSize = 10; variable
31 const char buf[kBufSize / 2] = {0, }; in client_thread_udp()
33 const char buf[kBufSize] = {0, }; in client_thread_udp()
41 succeeded = sendto(sockfd, buf, kBufSize, 0, (struct sockaddr *)&serveraddr, in client_thread_udp()
51 char buf[kBufSize / 2]; in main()
53 char buf[kBufSize]; in main()
73 recvfrom(sockfd, buf, kBufSize, 0, NULL, NULL); // BOOM in main()
/external/llvm-project/compiler-rt/test/asan/TestCases/Linux/
Drecvfrom.cpp26 const int kBufSize = 10; variable
31 const char buf[kBufSize / 2] = {0, }; in client_thread_udp()
33 const char buf[kBufSize] = {0, }; in client_thread_udp()
41 succeeded = sendto(sockfd, buf, kBufSize, 0, (struct sockaddr *)&serveraddr, in client_thread_udp()
51 char buf[kBufSize / 2]; in main()
53 char buf[kBufSize]; in main()
73 recvfrom(sockfd, buf, kBufSize, 0, NULL, NULL); // BOOM in main()
/external/tensorflow/tensorflow/core/graph/
Doptimizer_cse.cc124 static constexpr size_t kBufSize = 228; member in tensorflow::Hasher::HashingOutputStream
127 if (i_ == kBufSize) { in Next()
129 Mix(buf_, kBufSize); in Next()
131 *size = kBufSize; in Next()
134 *size = kBufSize - i_; in Next()
138 i_ = kBufSize; in Next()
149 const auto remaining = kBufSize - i_; in WriteAliasedRaw()
157 i_ = kBufSize; in WriteAliasedRaw()
161 if (i_ == kBufSize) { in WriteAliasedRaw()
162 Mix(buf_, kBufSize); in WriteAliasedRaw()
[all …]
/external/perfetto/src/profiling/memory/
Dshared_ring_buffer_unittest.cc149 constexpr auto kBufSize = base::kPageSize * 4; in TEST() local
150 base::Optional<SharedRingBuffer> wr = SharedRingBuffer::Create(kBufSize); in TEST()
160 constexpr auto kBufSize = base::kPageSize * 4; in TEST() local
161 base::Optional<SharedRingBuffer> rd = SharedRingBuffer::Create(kBufSize); in TEST()
176 constexpr auto kBufSize = base::kPageSize * 4; in TEST() local
177 base::Optional<SharedRingBuffer> buf = SharedRingBuffer::Create(kBufSize); in TEST()
182 constexpr auto kBufSize = base::kPageSize * 4; in TEST() local
183 base::Optional<SharedRingBuffer> buf1 = SharedRingBuffer::Create(kBufSize); in TEST()
190 constexpr auto kBufSize = base::kPageSize * 1024; // 4 MB in TEST() local
191 SharedRingBuffer rd = *SharedRingBuffer::Create(kBufSize); in TEST()
[all …]
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_virtual_mem_allocator_test.cc66 constexpr size_t kBufSize{256}; in TEST() local
67 void* host_mem[2] = {GpuDriver::HostAllocate(gpu_context, kBufSize), in TEST()
68 GpuDriver::HostAllocate(gpu_context, kBufSize)}; in TEST()
69 std::memset(host_mem[0], 'z', kBufSize); in TEST()
70 std::memset(host_mem[1], 0, kBufSize); in TEST()
74 kBufSize) in TEST()
77 kBufSize) in TEST()
79 for (int i = 0; i < kBufSize; ++i) { in TEST()
/external/perfetto/src/base/
Dfile_utils.cc42 constexpr size_t kBufSize = 2048; variable
65 if (out->size() < i + kBufSize) in ReadFileDescriptor()
66 out->resize(out->size() + kBufSize); in ReadFileDescriptor()
68 bytes_read = Read(fd, &((*out)[i]), kBufSize); in ReadFileDescriptor()
84 if (out->size() < i + kBufSize) in ReadPlatformHandle()
85 out->resize(out->size() + kBufSize); in ReadPlatformHandle()
87 auto res = ::ReadFile(h, &((*out)[i]), kBufSize, &bytes_read, nullptr); in ReadPlatformHandle()
/external/ruy/ruy/profiler/
Dinstrumentation.cc49 static constexpr int kBufSize = 256; in Formatted() local
50 char buf[kBufSize]; in Formatted()
55 snprintf(buf, kBufSize, format_, args_[0]); in Formatted()
57 snprintf(buf, kBufSize, format_, args_[0], args_[1]); in Formatted()
59 snprintf(buf, kBufSize, format_, args_[0], args_[1], args_[2]); in Formatted()
61 snprintf(buf, kBufSize, format_, args_[0], args_[1], args_[2], args_[3]); in Formatted()
/external/compiler-rt/test/msan/Linux/
Dsendmsg.cc28 const int kBufSize = 10; variable
33 char buf[kBufSize] = {0}; in main()
67 ret = send(sockfd, buf, kBufSize, 0); in main()
72 sendto(sockfd, buf, kBufSize, 0, (struct sockaddr *)&serveraddr, addrlen); in main()
/external/pdfium/samples/
Dpdfium_test_dump_helper.cc49 static const size_t kBufSize = 1024; in DumpChildStructure() local
50 unsigned short buf[kBufSize]; in DumpChildStructure()
51 unsigned long len = FPDF_StructElement_GetType(child, buf, kBufSize); in DumpChildStructure()
55 len = FPDF_StructElement_GetTitle(child, buf, kBufSize); in DumpChildStructure()
60 len = FPDF_StructElement_GetAltText(child, buf, kBufSize); in DumpChildStructure()
/external/libaom/libaom/test/
Dintra_edge_test.cc37 static const int kBufSize = 2 * 64 + 32; member in __anon745c3d920111::UpsampleTest
56 T edge_ref_data_[kBufSize];
57 T edge_tst_data_[kBufSize];
92 while (i < kBufSize) { in TEST_P()
144 while (i < kBufSize) { in TEST_P()
166 static const int kBufSize = kMaxEdge + 32; member in __anon745c3d920111::FilterEdgeTest
184 T edge_ref_data_[kBufSize];
185 T edge_tst_data_[kBufSize];
Dblend_a64_mask_test.cc40 static const int kBufSize = kMaxWidth * kMaxHeight; member in __anonc3c2443a0111::BlendA64MaskTest
131 DstPixel dst_ref_[kBufSize];
132 DstPixel dst_tst_[kBufSize];
136 SrcPixel src0_[kBufSize];
140 SrcPixel src1_[kBufSize];
197 for (int i = 0; i < kBufSize; ++i) { in TEST_P()
215 for (int i = 0; i < kBufSize; ++i) { in TEST_P()
231 for (int i = 0; i < kBufSize; ++i) { in TEST_P()
311 for (int i = 0; i < kBufSize; ++i) { in TEST_P()
329 for (int i = 0; i < kBufSize; ++i) { in TEST_P()
[all …]
Dblend_a64_mask_1d_test.cc40 static const int kBufSize = kMaxWidth * kMaxHeight; member in __anonf2fde9ae0111::BlendA64Mask1DTest
94 T dst_ref_[kBufSize];
95 T dst_tst_[kBufSize];
99 T src0_[kBufSize];
103 T src1_[kBufSize];
136 for (int i = 0; i < kBufSize; ++i) { in TEST_P()
153 for (int i = 0; i < kBufSize; ++i) { in TEST_P()
255 for (int i = 0; i < kBufSize; ++i) { in TEST_P()
280 for (int i = 0; i < kBufSize; ++i) { in TEST_P()
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/
Ddecorate_proc_maps.cpp16 const size_t kBufSize = 0x10000; in CopyFdToFd() local
17 static char buf[kBufSize]; in CopyFdToFd()
19 ssize_t got = read(in_fd, buf, kBufSize); in CopyFdToFd()
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/
Ddecorate_proc_maps.cc13 const size_t kBufSize = 0x10000; in CopyFdToFd() local
14 static char buf[kBufSize]; in CopyFdToFd()
16 ssize_t got = read(in_fd, buf, kBufSize); in CopyFdToFd()
/external/llvm-project/compiler-rt/test/hwasan/TestCases/Linux/
Ddecorate-proc-maps.c31 const size_t kBufSize = 0x10000; in CopyFdToFd() local
32 static char buf[kBufSize]; in CopyFdToFd()
34 ssize_t got = read(in_fd, UNTAG(buf), kBufSize); in CopyFdToFd()
/external/lzma/CPP/Windows/
DCommonDialog.cpp114 const unsigned kBufSize = MAX_PATH * 2; in MyGetOpenFileName() local
121 CHAR buf[kBufSize]; in MyGetOpenFileName()
139 p.nMaxFile = kBufSize; in MyGetOpenFileName()
151 WCHAR buf[kBufSize]; in MyGetOpenFileName()
170 p.nMaxFile = kBufSize; in MyGetOpenFileName()
DRegistry.cpp80 const UInt32 kBufSize = MAX_PATH + 1; // 256 in ATL in RecurseDeleteKey() local
81 DWORD size = kBufSize; in RecurseDeleteKey()
82 TCHAR buffer[kBufSize]; in RecurseDeleteKey()
88 size = kBufSize; in RecurseDeleteKey()
322 const unsigned kBufSize = MAX_PATH + 1; // 256 in ATL in EnumKeys() local
324 UInt32 nameSize = kBufSize; in EnumKeys()
325 LONG result = ::RegEnumKeyEx(_object, index, keyName.GetBuf(kBufSize), in EnumKeys()
327 keyName.ReleaseBuf_CalcLen(kBufSize); in EnumKeys()
/external/angle/src/tests/gl_tests/
DProgramInterfaceTest.cpp570 constexpr int kBufSize = 256; in TEST_P() local
571 GLint params[kBufSize]; in TEST_P()
590 glGetProgramResourceiv(program, GL_UNIFORM_BLOCK, index, propCount, props, kBufSize, &length, in TEST_P()
744 constexpr int kBufSize = 256; in TEST_P() local
745 GLint params[kBufSize]; in TEST_P()
747 glGetProgramResourceiv(program, GL_BUFFER_VARIABLE, index, propCount, props, kBufSize, &length, in TEST_P()
777 glGetProgramResourceiv(program, GL_BUFFER_VARIABLE, index, propCount, props, kBufSize, &length, in TEST_P()
860 constexpr int kBufSize = 256; in TEST_P() local
861 GLint params[kBufSize]; in TEST_P()
863 glGetProgramResourceiv(program, GL_BUFFER_VARIABLE, index, propCount, props, kBufSize, &length, in TEST_P()
[all …]
DMemorySizeTest.cpp89 constexpr GLsizeiptr kBufSize = 16; in TEST_P() local
90 std::array<uint8_t, kBufSize> buf; in TEST_P()
91 glBufferData(GL_ARRAY_BUFFER, kBufSize, buf.data(), GL_STATIC_DRAW); in TEST_P()
/external/tensorflow/tensorflow/compiler/aot/
Dbenchmark.cc74 const int kBufSize = 1000; in DumpStatsToStdout() local
75 char buf[kBufSize]; in DumpStatsToStdout()
76 snprintf(buf, kBufSize, "Mean with %2.0f%% trimmed:", trim_ratio * 100); in DumpStatsToStdout()
78 snprintf(buf, kBufSize, "Mean of %2.0f%% best:", best_ratio * 100); in DumpStatsToStdout()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCharsetDetector.java97 private static final int kBufSize = 8000; field in CharsetDetector
117 fInputStream.mark(kBufSize); in setText()
118 fRawInput = new byte[kBufSize]; // Always make a new buffer because the in setText()
122 int remainingLength = kBufSize; in setText()
394 if (limit > kBufSize) { in MungeInput()
395 limit = kBufSize; in MungeInput()
429 new byte[kBufSize]; // removed if appropriate.
/external/icu/android_icu4j/src/main/java/android/icu/text/
DCharsetDetector.java92 private static final int kBufSize = 8000; field in CharsetDetector
110 fInputStream.mark(kBufSize); in setText()
111 fRawInput = new byte[kBufSize]; // Always make a new buffer because the in setText()
115 int remainingLength = kBufSize; in setText()
373 if (limit > kBufSize) { in MungeInput()
374 limit = kBufSize; in MungeInput()
408 new byte[kBufSize]; // removed if appropriate.
/external/tensorflow/tensorflow/lite/toco/graph_transformations/tests/
Dunpack_quantize_test.cc51 const int kBufSize = 4; in PrepareModel() local
52 static float in_buf[kBufSize] = {0.0, 1.0, 2.0, 3.0}; in PrepareModel()
67 in_array_buffer.data.resize(kBufSize); in PrepareModel()
69 std::copy(in_buf, in_buf + kBufSize, buf_ptr); in PrepareModel()
Dresolve_constant_concatenation_test.cc117 const int kBufSize = 8; in PrepareModel() local
119 static float in_buf[kNumArrays][kBufSize] = { in PrepareModel()
137 in_array_buffer.data.resize(kBufSize); in PrepareModel()
140 std::copy(in_buf[cnt], in_buf[cnt] + kBufSize, buf_ptr); in PrepareModel()
/external/llvm-project/compiler-rt/test/msan/Linux/
Dsendmsg.cpp31 const int kBufSize = 10; variable
38 char buf[kBufSize] = {0}; in main()
77 sent = send(sockfd[0], buf, kBufSize, 0); in main()
85 sent = sendto(sockfd[0], buf, kBufSize, 0, nullptr, 0); in main()

1234