/external/compiler-rt/test/asan/TestCases/Linux/ |
D | recvfrom.cc | 26 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/ |
D | recvfrom.cpp | 26 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/ |
D | optimizer_cse.cc | 124 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/ |
D | shared_ring_buffer_unittest.cc | 149 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/ |
D | gpu_virtual_mem_allocator_test.cc | 66 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/ |
D | file_utils.cc | 42 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/ |
D | instrumentation.cc | 49 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/ |
D | sendmsg.cc | 28 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/ |
D | pdfium_test_dump_helper.cc | 49 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/ |
D | intra_edge_test.cc | 37 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];
|
D | blend_a64_mask_test.cc | 40 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 …]
|
D | blend_a64_mask_1d_test.cc | 40 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/ |
D | decorate_proc_maps.cpp | 16 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/ |
D | decorate_proc_maps.cc | 13 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/ |
D | decorate-proc-maps.c | 31 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/ |
D | CommonDialog.cpp | 114 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()
|
D | Registry.cpp | 80 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/ |
D | ProgramInterfaceTest.cpp | 570 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 …]
|
D | MemorySizeTest.cpp | 89 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/ |
D | benchmark.cc | 74 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/ |
D | CharsetDetector.java | 97 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/ |
D | CharsetDetector.java | 92 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/ |
D | unpack_quantize_test.cc | 51 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()
|
D | resolve_constant_concatenation_test.cc | 117 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/ |
D | sendmsg.cpp | 31 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()
|