/external/syslinux/com32/gpllib/disk/ |
D | labels.c | 15 int buffer_size = (80 * sizeof(char)); in get_label() local 16 char *buffer = malloc(buffer_size); in get_label() 21 strlcpy(buffer, "DOS 12-bit fat", buffer_size); in get_label() 24 strlcpy(buffer, "XENIX root", buffer_size); in get_label() 27 strlcpy(buffer, "XENIX /usr", buffer_size); in get_label() 30 strlcpy(buffer, "DOS 3.0+ 16-bit FAT (up to 32M)", buffer_size); in get_label() 33 strlcpy(buffer, "DOS 3.3+ Extended Partition", buffer_size); in get_label() 36 strlcpy(buffer, "DOS 3.31+ 16-bit FAT (over 32M)", buffer_size); in get_label() 39 strlcpy(buffer, "NTFS/exFAT/HPFS", buffer_size); in get_label() 45 strlcpy(buffer, "AIX", buffer_size); in get_label() [all …]
|
D | mbrs.c | 23 void get_mbr_string(const uint32_t label, char *buffer, const int buffer_size) in get_mbr_string() argument 31 strlcpy(buffer, "No bootloader", buffer_size - 1); in get_mbr_string() 34 strlcpy(buffer, "ThinkPad", buffer_size - 1); in get_mbr_string() 37 strlcpy(buffer, "Acer 3", buffer_size - 1); in get_mbr_string() 42 strlcpy(buffer, "Windows", buffer_size - 1); in get_mbr_string() 44 strlcpy(buffer, "DiskCryptor", buffer_size - 1); in get_mbr_string() 46 strlcpy(buffer, "Syslinux", buffer_size - 1); in get_mbr_string() 48 strlcpy(buffer, "Unknown mbr", buffer_size - 1); in get_mbr_string() 51 strlcpy(buffer, "Syslinux ISOhybrid", buffer_size - 1); in get_mbr_string() 54 strlcpy(buffer, "HP/Gateway", buffer_size - 1); in get_mbr_string() [all …]
|
D | bootloaders.c | 26 char *buffer, const int buffer_size) in get_bootloader_string() argument 34 strlcpy(buffer, "SYSLINUX", buffer_size - 1); in get_bootloader_string() 36 strlcpy(buffer, "EXTLINUX", buffer_size - 1); in get_bootloader_string() 38 strlcpy(buffer, "MSWIN4.1", buffer_size - 1); in get_bootloader_string() 43 buffer[buffer_size - 1] = '\0'; in get_bootloader_string()
|
/external/pdfium/fpdfsdk/ |
D | fpdfview_embeddertest.cpp | 128 long buffer_size; in TEST_F() local 133 buffer_size = 2000000; // Absurdly large, check not used for this case. in TEST_F() 134 dest = FPDF_GetNamedDest(document(), 0, nullptr, &buffer_size); in TEST_F() 136 EXPECT_EQ(12, buffer_size); in TEST_F() 139 buffer_size = 10; in TEST_F() 140 dest = FPDF_GetNamedDest(document(), 0, fixed_buffer, &buffer_size); in TEST_F() 142 EXPECT_EQ(-1, buffer_size); in TEST_F() 146 buffer_size = 12; in TEST_F() 147 dest = FPDF_GetNamedDest(document(), 0, fixed_buffer, &buffer_size); in TEST_F() 149 EXPECT_EQ(12, buffer_size); in TEST_F() [all …]
|
/external/libmojo/mojo/public/c/system/tests/ |
D | core_unittest.cc | 36 uint32_t buffer_size; in TEST() local 58 buffer_size = static_cast<uint32_t>(sizeof(buffer)); in TEST() 60 MojoReadMessage(h0, buffer, &buffer_size, nullptr, nullptr, in TEST() 64 buffer_size = static_cast<uint32_t>(sizeof(buffer)); in TEST() 66 MojoWriteData(h0, buffer, &buffer_size, MOJO_WRITE_DATA_FLAG_NONE)); in TEST() 69 MojoBeginWriteData(h0, &write_pointer, &buffer_size, in TEST() 72 buffer_size = static_cast<uint32_t>(sizeof(buffer)); in TEST() 74 MojoReadData(h0, buffer, &buffer_size, MOJO_READ_DATA_FLAG_NONE)); in TEST() 77 MojoBeginReadData(h0, &read_pointer, &buffer_size, in TEST() 93 uint32_t buffer_size; in TEST() local [all …]
|
/external/libmojo/mojo/edk/system/ |
D | message_pipe_unittest.cc | 80 uint32_t buffer_size; in TEST_F() local 85 buffer_size = kBufferSize; in TEST_F() 86 ASSERT_EQ(MOJO_RESULT_SHOULD_WAIT, ReadMessage(pipe0_, buffer, &buffer_size)); in TEST_F() 87 ASSERT_EQ(kBufferSize, buffer_size); in TEST_F() 94 buffer_size = kBufferSize; in TEST_F() 95 ASSERT_EQ(MOJO_RESULT_SHOULD_WAIT, ReadMessage(pipe1_, buffer, &buffer_size)); in TEST_F() 109 buffer_size = kBufferSize; in TEST_F() 110 ASSERT_EQ(MOJO_RESULT_OK, ReadMessage(pipe0_, buffer, &buffer_size)); in TEST_F() 111 ASSERT_EQ(static_cast<uint32_t>(sizeof(buffer[0])), buffer_size); in TEST_F() 116 buffer_size = kBufferSize; in TEST_F() [all …]
|
/external/webrtc/webrtc/modules/video_coding/codecs/h264/ |
D | h264_video_toolbox_nalu_unittest.cc | 92 const size_t buffer_size = 1; in TEST() local 93 rtc::scoped_ptr<uint8_t[]> buffer(new uint8_t[buffer_size]); in TEST() 94 memset(buffer.get(), 0, buffer_size); in TEST() 106 const size_t buffer_size = arraysize(NALU_TEST_DATA_0) + 4; in TEST() local 107 rtc::scoped_ptr<uint8_t[]> buffer(new uint8_t[buffer_size]); in TEST() 108 AvccBufferWriter writer(buffer.get(), buffer_size); in TEST() 109 EXPECT_EQ(buffer_size, writer.BytesRemaining()); in TEST() 124 const size_t buffer_size = in TEST() local 126 rtc::scoped_ptr<uint8_t[]> buffer(new uint8_t[buffer_size]); in TEST() 127 AvccBufferWriter writer(buffer.get(), buffer_size); in TEST() [all …]
|
/external/libmojo/mojo/android/system/ |
D | core_impl.cc | 83 const size_t buffer_size = env->GetDirectBufferCapacity(buffer); in WaitMany() local 84 DCHECK_EQ((buffer_size - 4) % size_per_handle, 0u); in WaitMany() 86 const size_t nb_handles = (buffer_size - 4) / size_per_handle; in WaitMany() 109 const size_t buffer_size = env->GetDirectBufferCapacity(options_buffer); in CreateMessagePipe() local 110 DCHECK_EQ(buffer_size, sizeof(MojoCreateMessagePipeOptions)); in CreateMessagePipe() 112 DCHECK_EQ(options->struct_size, buffer_size); in CreateMessagePipe() 129 const size_t buffer_size = env->GetDirectBufferCapacity(options_buffer); in CreateDataPipe() local 130 DCHECK_EQ(buffer_size, sizeof(MojoCreateDataPipeOptions)); in CreateDataPipe() 132 DCHECK_EQ(options->struct_size, buffer_size); in CreateDataPipe() 150 const size_t buffer_size = env->GetDirectBufferCapacity(options_buffer); in CreateSharedBuffer() local [all …]
|
/external/parameter-framework/asio-1.10.6/include/asio/detail/ |
D | buffer_sequence_adapter.hpp | 48 iov.iov_len = asio::buffer_size(buffer); in init_native_buffer() 56 iov.iov_len = asio::buffer_size(buffer); in init_native_buffer() 75 total_buffer_size_ += asio::buffer_size(buffer); in buffer_sequence_adapter() 100 if (asio::buffer_size(Buffer(*iter)) > 0) in all_empty() 123 if (asio::buffer_size(buffer) != 0) in first() 144 total_buffer_size_ = asio::buffer_size(buffer_sequence); in buffer_sequence_adapter() 164 return asio::buffer_size(buffer_sequence) == 0; in all_empty() 191 total_buffer_size_ = asio::buffer_size(buffer_sequence); in buffer_sequence_adapter() 211 return asio::buffer_size(buffer_sequence) == 0; in all_empty() 239 total_buffer_size_ = asio::buffer_size(buffer_sequence[0]) in buffer_sequence_adapter() [all …]
|
D | consuming_buffers.hpp | 113 || offset_ + buffer_size(first_) >= max_size_) in increment() 119 offset_ += buffer_size(first_); in increment() 132 && buffer_size(first_) == buffer_size(other.first_) in equal() 228 if (buffer_size(first_) <= size) in consume() 230 size -= buffer_size(first_); in consume() 244 while (!at_end_ && buffer_size(first_) == 0) in consume()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_draw.c | 60 unsigned buffer_size; in util_draw_max_index() local 70 buffer_size = buffer->buffer->width0; in util_draw_max_index() 78 if (buffer->buffer_offset >= buffer_size) { in util_draw_max_index() 83 buffer_size -= buffer->buffer_offset; in util_draw_max_index() 85 if (element->src_offset >= buffer_size) { in util_draw_max_index() 90 buffer_size -= element->src_offset; in util_draw_max_index() 92 if (format_size > buffer_size) { in util_draw_max_index() 97 buffer_size -= format_size; in util_draw_max_index() 102 buffer_max_index = buffer_size / buffer->stride; in util_draw_max_index()
|
/external/google-breakpad/src/common/tests/ |
D | file_utils.cc | 99 bool ReadFile(const char* path, void* buffer, ssize_t* buffer_size) { in ReadFile() argument 107 if (buffer && buffer_size && *buffer_size > 0) { in ReadFile() 108 memset(buffer, 0, sizeof(*buffer_size)); in ReadFile() 109 *buffer_size = HANDLE_EINTR(read(fd, buffer, *buffer_size)); in ReadFile() 110 if (*buffer_size == -1) { in ReadFile() 122 bool WriteFile(const char* path, const void* buffer, size_t buffer_size) { in WriteFile() argument 134 while (bytes_written_total < buffer_size) { in WriteFile() 137 buffer_size - bytes_written_total)); in WriteFile()
|
/external/syslinux/com32/lib/libpng/ |
D | pngpread.c | 32 png_bytep buffer, png_size_t buffer_size) in png_process_data() argument 37 png_push_restore_buffer(png_ptr, buffer, buffer_size); in png_process_data() 39 while (png_ptr->buffer_size) in png_process_data() 106 png_ptr->buffer_size = 0; in png_process_some_data() 124 if (png_ptr->buffer_size < num_to_check) in png_push_read_sig() 126 num_to_check = png_ptr->buffer_size; in png_push_read_sig() 221 if (png_ptr->buffer_size < 8) in png_push_read_chunk() 244 if (png_ptr->push_length + 4 > png_ptr->buffer_size) in png_push_read_chunk() 255 if (png_ptr->push_length + 4 > png_ptr->buffer_size) in png_push_read_chunk() 270 if (png_ptr->push_length + 4 > png_ptr->buffer_size) in png_push_read_chunk() [all …]
|
/external/webrtc/webrtc/base/ |
D | filerotatingstream_unittest.cc | 268 const size_t buffer_size = 1024 * 1024; in TEST_F() local 269 scoped_ptr<uint8_t[]> buffer(new uint8_t[buffer_size]); in TEST_F() 271 memset(buffer.get(), i, buffer_size); in TEST_F() 273 stream_->WriteAll(buffer.get(), buffer_size, nullptr, nullptr)); in TEST_F() 278 scoped_ptr<uint8_t[]> expected_buffer(new uint8_t[buffer_size]); in TEST_F() 281 memset(expected_buffer.get(), expected_vals[i], buffer_size); in TEST_F() 283 stream_->ReadAll(buffer.get(), buffer_size, nullptr, nullptr)); in TEST_F() 284 EXPECT_EQ(0, memcmp(buffer.get(), expected_buffer.get(), buffer_size)); in TEST_F() 295 const size_t buffer_size = 1024 * 1024; in TEST_F() local 296 scoped_ptr<uint8_t[]> buffer(new uint8_t[buffer_size]); in TEST_F() [all …]
|
/external/webrtc/webrtc/modules/audio_processing/vad/ |
D | vad_circular_buffer.cc | 18 VadCircularBuffer::VadCircularBuffer(int buffer_size) in VadCircularBuffer() argument 19 : buffer_(new double[buffer_size]), in VadCircularBuffer() 22 buffer_size_(buffer_size), in VadCircularBuffer() 35 VadCircularBuffer* VadCircularBuffer::Create(int buffer_size) { in Create() argument 36 if (buffer_size <= 0) in Create() 38 return new VadCircularBuffer(buffer_size); in Create()
|
/external/zlib/src/contrib/iostream3/ |
D | zfstream.cc | 23 buffer(NULL), buffer_size(BIGBUFSIZE), own_buffer(true) in gzfilebuf() 197 int bytes_read = gzread(file, buffer, buffer_size); in underflow() 281 buffer_size = 0; in setbuf() 290 buffer_size = n; in setbuf() 314 if (buffer_size > 0) in enable_buffer() 317 buffer = new char_type[buffer_size]; in enable_buffer() 324 this->setp(buffer, buffer + buffer_size - 1); in enable_buffer() 329 buffer_size = SMALLBUFSIZE; in enable_buffer() 330 buffer = new char_type[buffer_size]; in enable_buffer() 341 this->setp(buffer, buffer + buffer_size - 1); in enable_buffer() [all …]
|
/external/sfntly/cpp/src/test/ |
D | font_data_test.cc | 151 int32_t buffer_size, in ReadFontDataWithBuffer() argument 153 ByteVector buffer(buffer_size); in ReadFontDataWithBuffer() 188 int32_t buffer_size) { in WriteFontDataWithBuffer() argument 189 ByteVector buffer(buffer_size); in WriteFontDataWithBuffer() 227 for (int32_t buffer_size = 1; buffer_size <= length; in ReadComparison() local 228 buffer_size += increments) { in ReadComparison() 233 ReadFontDataWithBuffer(rfd1, buffer_size, &b1); in ReadComparison() 234 ReadFontDataWithBuffer(rfd2, buffer_size, &b2); in ReadComparison() 284 for (int32_t buffer_size = 1; buffer_size < length; in SlicingWriteTest() local 285 buffer_size += increments) { in SlicingWriteTest() [all …]
|
/external/webrtc/webrtc/common_audio/ |
D | ring_buffer_unittest.cc | 60 const int buffer_size = std::max(rand() % kMaxBufferSize, 1); in RandomStressTest() local 61 rtc::scoped_ptr<int[]> write_data(new int[buffer_size]); in RandomStressTest() 62 rtc::scoped_ptr<int[]> read_data(new int[buffer_size]); in RandomStressTest() 63 scoped_ring_buffer buffer(WebRtc_CreateBuffer(buffer_size, sizeof(int))); in RandomStressTest() 71 const int num_elements = rand() % buffer_size; in RandomStressTest() 73 const int buffer_available = buffer_size - buffer_consumed; in RandomStressTest() 83 buffer_size); in RandomStressTest()
|
/external/parameter-framework/asio-1.10.6/include/asio/ |
D | buffer.hpp | 288 inline std::size_t buffer_size(const mutable_buffer& b) in buffer_size() function 294 inline std::size_t buffer_size(const mutable_buffers_1& b) in buffer_size() function 300 inline std::size_t buffer_size(const const_buffer& b) in buffer_size() function 306 inline std::size_t buffer_size(const const_buffers_1& b) in buffer_size() function 317 inline std::size_t buffer_size(const BufferSequence& b) in buffer_size() function 375 if (start > buffer_size(b)) in operator +() 378 std::size_t new_size = buffer_size(b) - start; in operator +() 389 if (start > buffer_size(b)) in operator +() 392 std::size_t new_size = buffer_size(b) - start; in operator +() 403 if (start > buffer_size(b)) in operator +() [all …]
|
/external/mesa3d/src/gallium/tests/unit/ |
D | translate_test.c | 56 unsigned buffer_size = 4096; in main() local 137 buffer[i] = align_malloc(buffer_size, 4096); in main() 139 byte_buffer = align_malloc(buffer_size, 4096); in main() 140 float_buffer = align_malloc(buffer_size, 4096); in main() 141 double_buffer = align_malloc(buffer_size, 4096); in main() 142 half_buffer = align_malloc(buffer_size, 4096); in main() 156 for (i = 0; i < buffer_size; ++i) in main() 159 for (i = 0; i < buffer_size / sizeof(float); ++i) in main() 162 for (i = 0; i < buffer_size / sizeof(double); ++i) in main() 165 for (i = 0; i < buffer_size / sizeof(double); ++i) in main()
|
/external/webrtc/webrtc/modules/audio_processing/aec/ |
D | system_delay_unittest.cc | 123 size_t buffer_size = 0; in BufferFillUp() local 126 buffer_size += samples_per_frame_; in BufferFillUp() 127 EXPECT_EQ(static_cast<int>(buffer_size), in BufferFillUp() 130 return buffer_size; in BufferFillUp() 137 size_t buffer_size = BufferFillUp(); in RunStableStartup() local 144 buffer_size += samples_per_frame_; in RunStableStartup() 152 buffer_size += samples_per_frame_; in RunStableStartup() 162 EXPECT_GE(static_cast<int>(buffer_size), in RunStableStartup() 274 size_t buffer_size = BufferFillUp(); in TEST_F() local 282 buffer_size += samples_per_frame_; in TEST_F() [all …]
|
/external/libchrome/base/ |
D | rand_util_unittest.cc | 45 const size_t buffer_size = 50; in TEST() local 46 char buffer[buffer_size]; in TEST() 47 memset(buffer, 0, buffer_size); in TEST() 48 base::RandBytes(buffer, buffer_size); in TEST() 49 std::sort(buffer, buffer + buffer_size); in TEST() 52 EXPECT_GT(std::unique(buffer, buffer + buffer_size) - buffer, 25); in TEST()
|
/external/tinycompress/ |
D | cplay.c | 92 unsigned long buffer_size, unsigned int frag); 155 unsigned long buffer_size = 0; in main() local 170 buffer_size = strtol(optarg, NULL, 0); in main() 193 play_samples(file, card, device, buffer_size, frag); in main() 200 unsigned long buffer_size, unsigned int frag) in play_samples() argument 241 if ((buffer_size != 0) && (frag != 0)) { in play_samples() 242 config.fragment_size = buffer_size/frag; in play_samples() 284 name, card, device, buffer_size); in play_samples()
|
/external/vixl/benchmarks/aarch64/ |
D | bench-dataop.cc | 58 const unsigned buffer_size = 256 * KBytes; in main() local 59 const unsigned buffer_instruction_count = buffer_size / kInstructionSize; in main() 62 MacroAssembler masm(buffer_size); in main() 69 ExactAssemblyScope scope(&masm, buffer_size); in main()
|
/external/mesa3d/src/gallium/state_trackers/xa/ |
D | xa_renderer.c | 77 int num_verts = r->buffer_size / (r->attrs_per_vertex * NUM_COMPONENTS); in renderer_draw() 79 if (!r->buffer_size) in renderer_draw() 86 r->buffer_size = 0; in renderer_draw() 92 if (r->buffer_size + next_batch >= XA_VB_SIZE || in renderer_draw_conditional() 93 (next_batch == 0 && r->buffer_size)) { in renderer_draw_conditional() 128 float *vertex = r->buffer + r->buffer_size; in add_vertex_color() 140 r->buffer_size += 8; in add_vertex_color() 146 float *vertex = r->buffer + r->buffer_size; in add_vertex_1tex() 158 r->buffer_size += 8; in add_vertex_1tex() 165 float *vertex = r->buffer + r->buffer_size; in add_vertex_2tex() [all …]
|