/cts/suite/audio_quality/test/ |
BufferTest.cpp | 39 const int BUFFER_SIZE = 32; 41 UniquePtr<Buffer> buffer(new Buffer(BUFFER_SIZE, BUFFER_SIZE, true)); 45 for (int i = 0; i < BUFFER_SIZE/4; i++) { 54 ASSERT_TRUE(bufferRead->getSize() == (size_t)BUFFER_SIZE); 57 for (int i = 0; i < BUFFER_SIZE/4; i++) { 64 const int BUFFER_SIZE = 8; 66 UniquePtr<Buffer> buffer(new Buffer(BUFFER_SIZE, BUFFER_SIZE, true)); 70 for (int i = 0; i < BUFFER_SIZE/2; i++) [all...] |
/external/chromium_org/media/base/ |
data_buffer.cc | 11 DataBuffer::DataBuffer(int buffer_size) 12 : buffer_size_(buffer_size), 14 CHECK_GE(buffer_size, 0); 18 DataBuffer::DataBuffer(scoped_ptr<uint8[]> buffer, int buffer_size) 20 buffer_size_(buffer_size), 21 data_size_(buffer_size) { 23 CHECK_GE(buffer_size, 0);
|
container_names.cc | 53 size_t buffer_size, 56 return (prefix_size <= buffer_size && 63 size_t buffer_size, 66 return (prefix_size <= buffer_size && 94 static bool CheckAac(const uint8* buffer, int buffer_size) { 97 RCHECK(buffer_size > 6); 100 while (offset + 6 < buffer_size) { 133 static bool CheckAc3(const uint8* buffer, int buffer_size) { 139 RCHECK(buffer_size > 6); 142 while (offset + 6 < buffer_size) { [all...] |
/external/skia/tools/ |
win_lcid.cpp | 4 #define BUFFER_SIZE 512 6 WCHAR wcBuffer[BUFFER_SIZE]; 9 bufferSize = GetLocaleInfoEx(pStr, LOCALE_SENGLANGUAGE, wcBuffer, BUFFER_SIZE);
|
/external/chromium/net/websockets/ |
websocket_frame_handler.cc | 39 int buffer_size = 0; local 42 buffer_size = 44 if (buffer_size <= 0) 45 return buffer_size; 47 original_current_buffer_size_ = buffer_size; 52 buffer_size = buffer->size(); 56 current_buffer_size_ = buffer_size; 57 return buffer_size; 67 int buffer_size = remaining_size; local 70 buffer_size += next_buffer->size() 92 int buffer_size = 0; local [all...] |
/external/chromium_org/mojo/system/ |
message_pipe_unittest.cc | 35 uint32_t buffer_size; local 40 buffer_size = kBufferSize; 43 buffer, &buffer_size, 46 EXPECT_EQ(kBufferSize, buffer_size); 53 buffer_size = kBufferSize; 56 buffer, &buffer_size, 72 buffer_size = kBufferSize; 75 buffer, &buffer_size, 78 EXPECT_EQ(static_cast<uint32_t>(sizeof(buffer[0])), buffer_size); 83 buffer_size = kBufferSize 214 uint32_t buffer_size; local 245 uint32_t buffer_size; local 364 uint32_t buffer_size; local [all...] |
remote_message_pipe_posix_unittest.cc | 172 uint32_t buffer_size = static_cast<uint32_t>(sizeof(buffer)); local 209 buffer, &buffer_size, 212 EXPECT_EQ(sizeof(hello), static_cast<size_t>(buffer_size)); 230 buffer_size = static_cast<uint32_t>(sizeof(buffer)); 233 buffer, &buffer_size, 236 EXPECT_EQ(sizeof(world), static_cast<size_t>(buffer_size)); 263 uint32_t buffer_size = static_cast<uint32_t>(sizeof(buffer)); local 302 buffer_size = static_cast<uint32_t>(sizeof(buffer)); 305 buffer, &buffer_size, 308 buffer_size = static_cast<uint32_t>(sizeof(buffer)) 379 uint32_t buffer_size = static_cast<uint32_t>(sizeof(buffer)); local [all...] |
message_pipe_dispatcher_unittest.cc | 38 uint32_t buffer_size; local 82 buffer_size = kBufferSize; 84 d_0->ReadMessage(buffer, &buffer_size, 87 EXPECT_EQ(kBufferSize, buffer_size); 141 uint32_t buffer_size = 1; local 143 d_0->ReadMessage(NULL, &buffer_size, 155 uint32_t buffer_size; local 187 buffer_size = kBufferSize; 189 d_1->ReadMessage(buffer, &buffer_size, 203 buffer_size = kBufferSize 260 uint32_t buffer_size; local 476 uint32_t buffer_size = static_cast<uint32_t>(sizeof(buffer)); variable [all...] |
/external/chromium_org/mojo/public/tests/ |
system_core_unittest.cc | 26 uint32_t buffer_size; local 41 buffer_size = static_cast<uint32_t>(sizeof(buffer)); 44 buffer, &buffer_size, 62 buffer, &buffer_size, 69 buffer_size = static_cast<uint32_t>(sizeof(hello)); 72 hello, buffer_size, 83 buffer_size = static_cast<uint32_t>(sizeof(buffer)); 86 buffer, &buffer_size, 89 EXPECT_EQ(static_cast<uint32_t>(sizeof(hello)), buffer_size);
|
/external/chromium_org/chrome/common/ |
partial_circular_buffer.cc | 20 uint32 buffer_size) 22 memory_buffer_size_(buffer_size), 38 uint32 buffer_size, 42 memory_buffer_size_(buffer_size), 64 uint32 PartialCircularBuffer::Read(void* buffer, uint32 buffer_size) { 76 uint32 to_read = Min3(buffer_size, to_wrap_pos, to_eow); 88 if (read >= buffer_size) { 89 DCHECK_EQ(read, buffer_size); 102 uint32 remaining_buffer_size = buffer_size - read; 114 if (read >= buffer_size) { [all...] |
/frameworks/compile/libbcc/bcinfo/Wrap/ |
file_wrapper_output.cpp | 38 bool FileWrapperOutput::Write(const uint8_t* buffer, size_t buffer_size) { 43 if (buffer_size > 0) { 44 return buffer_size == fwrite(buffer, 1, buffer_size, _file);
|
wrapper_output.cpp | 19 bool WrapperOutput::Write(const uint8_t* buffer, size_t buffer_size) { 21 for (size_t i = 0; i < buffer_size; ++i) {
|
/cts/suite/cts/deviceTests/filesystemperf/src/com/android/cts/filesystemperf/ |
SequentialRWTest.java | 36 private static final int BUFFER_SIZE = 10 * 1024 * 1024; 48 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); 52 final int numberOfFiles =(int)(fileSize / BUFFER_SIZE); 55 final byte[] data = FileUtil.generateRandomData(BUFFER_SIZE); 67 double[] mbps = ReportLog.calcRatePerSecArray((double)BUFFER_SIZE / 1024 / 1024, times); 79 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); 85 BUFFER_SIZE, NUMBER_REPETITION); 90 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); 104 final byte[] data = new byte[BUFFER_SIZE]; 113 read += BUFFER_SIZE; [all...] |
/external/oprofile/gui/ |
oprof_start_config.cpp | 38 buffer_size(OP_DEFAULT_BUF_SIZE), 66 buffer_size = OP_DEFAULT_BUF_SIZE; 74 buffer_size = op_lexical_cast<unsigned int>(val); 75 if (buffer_size < OP_DEFAULT_BUF_SIZE) 76 buffer_size = OP_DEFAULT_BUF_SIZE;
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
u_draw.c | 60 unsigned buffer_size; local 70 buffer_size = buffer->buffer->width0; 78 if (buffer->buffer_offset >= buffer_size) { 83 buffer_size -= buffer->buffer_offset; 85 if (element->src_offset >= buffer_size) { 90 buffer_size -= element->src_offset; 92 if (format_size > buffer_size) { 97 buffer_size -= format_size; 102 buffer_max_index = buffer_size / buffer->stride;
|
/external/mesa3d/src/gallium/auxiliary/util/ |
u_draw.c | 60 unsigned buffer_size; local 70 buffer_size = buffer->buffer->width0; 78 if (buffer->buffer_offset >= buffer_size) { 83 buffer_size -= buffer->buffer_offset; 85 if (element->src_offset >= buffer_size) { 90 buffer_size -= element->src_offset; 92 if (format_size > buffer_size) { 97 buffer_size -= format_size; 102 buffer_max_index = buffer_size / buffer->stride;
|
/external/chromium_org/media/webm/chromeos/ |
ebml_writer.cc | 28 int buffer_size, 30 glob->serialize_cb.Run(buffer, buffer_size, len);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/io/ |
Streams.java | 10 private static int BUFFER_SIZE = 512; 15 byte[] bs = new byte[BUFFER_SIZE]; 62 byte[] bs = new byte[BUFFER_SIZE]; 74 byte[] bs = new byte[BUFFER_SIZE];
|
/external/chromium_org/media/audio/ |
fake_audio_manager.cc | 60 int buffer_size = kDefaultOutputBufferSize; local 68 buffer_size = std::min(input_params.frames_per_buffer(), buffer_size); 73 sample_rate, bits_per_sample, buffer_size, AudioParameters::NO_EFFECTS);
|
/external/chromium/net/tools/flip_server/ |
ring_buffer.cc | 10 RingBuffer::RingBuffer(int buffer_size) 11 : buffer_(new char[buffer_size]), 12 buffer_size_(buffer_size), 246 void RingBuffer::Resize(int buffer_size) { 247 CHECK_GE(buffer_size, 0); 248 if (buffer_size == buffer_size_) return; 250 char* new_buffer = new char[buffer_size]; 251 if (buffer_size < bytes_used_) { 253 AdvanceReadablePtr(bytes_used_ - buffer_size); 263 if (size > buffer_size) { [all...] |
/external/chromium_org/net/tools/flip_server/ |
ring_buffer.cc | 10 RingBuffer::RingBuffer(int buffer_size) 11 : buffer_(new char[buffer_size]), 12 buffer_size_(buffer_size), 207 void RingBuffer::Resize(int buffer_size) { 208 CHECK_GE(buffer_size, 0); 209 if (buffer_size == buffer_size_) 212 char* new_buffer = new char[buffer_size]; 213 if (buffer_size < bytes_used_) { 215 AdvanceReadablePtr(bytes_used_ - buffer_size); 226 if (size > buffer_size) { [all...] |
/external/icu4c/samples/csdet/ |
csdet.c | 14 #define BUFFER_SIZE 8192 18 static char buffer[BUFFER_SIZE]; 47 inputLength = (int32_t) fread(buffer, 1, BUFFER_SIZE, file);
|
/external/qemu/ |
buffered_file.c | 35 size_t buffer_size; member in struct:QEMUFileBuffered 51 if (size > (s->buffer_capacity - s->buffer_size)) { 68 memcpy(s->buffer + s->buffer_size, buf, size); 69 s->buffer_size += size; 81 DPRINTF("flushing %zu byte(s) of data\n", s->buffer_size); 83 while (offset < s->buffer_size) { 87 s->buffer_size - offset); 104 DPRINTF("flushed %zu of %zu byte(s)\n", offset, s->buffer_size); 105 memmove(s->buffer, s->buffer + offset, s->buffer_size - offset); 106 s->buffer_size -= offset [all...] |
/external/chromium_org/chrome/renderer/net/ |
predictor_queue_unittest.cc | 78 const int buffer_size = 3; // Just room for 2 digts plus '\0' plus blank. local 80 DnsQueue buffer(buffer_size); 100 const int buffer_size = 100; local 103 DnsQueue buffer(buffer_size); 127 const int buffer_size = 100; local 130 DnsQueue buffer(buffer_size); 154 const size_t buffer_size = 1000; local 156 DnsQueue buffer(buffer_size); 160 for (write_success = 0; write_success < buffer_size; write_success++) { 171 EXPECT_LE(byte_usage_counter, buffer_size) 192 const size_t buffer_size = 1000; local 236 const int buffer_size = prime_number - 1; local [all...] |
/external/chromium_org/content/common/gpu/media/ |
gpu_video_encode_accelerator.cc | 147 uint32 buffer_size, 150 << ", buffer_size=" << buffer_size 163 if (!shm->Map(buffer_size)) { 178 buffer_size, 203 uint32 buffer_size) { 206 << ", buffer_size=" << buffer_size; local 215 if (buffer_size < output_buffer_size_) { 222 media::BitstreamBuffer(buffer_id, buffer_handle, buffer_size)); [all...] |