/external/chromium_org/sandbox/win/sandbox_poc/pocdll/ |
handles.cc | 42 DWORD buffer_size = 0; local 46 &buffer_size); 47 if (!buffer_size) { 54 reinterpret_cast<SYSTEM_HANDLE_INFORMATION_EX*>(new BYTE[buffer_size]); 57 buffer_size, &buffer_size);
|
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/xa/ |
xa_renderer.c | 77 int num_verts = r->buffer_size / (r->attrs_per_vertex * NUM_COMPONENTS); 79 if (!r->buffer_size) 86 r->buffer_size = 0; 92 if (r->buffer_size + next_batch >= XA_VB_SIZE || 93 (next_batch == 0 && r->buffer_size)) { 128 float *vertex = r->buffer + r->buffer_size; 140 r->buffer_size += 8; 146 float *vertex = r->buffer + r->buffer_size; 158 r->buffer_size += 8; 165 float *vertex = r->buffer + r->buffer_size; [all...] |
/external/mesa3d/src/gallium/state_trackers/xa/ |
xa_renderer.c | 77 int num_verts = r->buffer_size / (r->attrs_per_vertex * NUM_COMPONENTS); 79 if (!r->buffer_size) 86 r->buffer_size = 0; 92 if (r->buffer_size + next_batch >= XA_VB_SIZE || 93 (next_batch == 0 && r->buffer_size)) { 128 float *vertex = r->buffer + r->buffer_size; 140 r->buffer_size += 8; 146 float *vertex = r->buffer + r->buffer_size; 158 r->buffer_size += 8; 165 float *vertex = r->buffer + r->buffer_size; [all...] |
/device/lge/mako/camera/QCamera/HAL/core/src/ |
QCameraHWI_Mem.cpp | 105 MemPool::MemPool(int buffer_size, int num_buffers, 108 mBufferSize(buffer_size), 114 mAlignedBufferSize = (buffer_size + page_size_minus_1) & (~page_size_minus_1); 134 AshmemPool::AshmemPool(int buffer_size, int num_buffers, 137 MemPool(buffer_size, 146 num_buffers, frame_size, buffer_size); 149 int ashmem_size = buffer_size * num_buffers; 234 int buffer_size, int num_buffers, 237 MemPool(buffer_size,num_buffers,frame_size,name), 246 buffer_size); [all...] |
/device/lge/mako/camera/ |
QCameraHWI_Mem.cpp | 105 MemPool::MemPool(int buffer_size, int num_buffers, 108 mBufferSize(buffer_size), 114 mAlignedBufferSize = (buffer_size + page_size_minus_1) & (~page_size_minus_1); 134 AshmemPool::AshmemPool(int buffer_size, int num_buffers, 137 MemPool(buffer_size, 146 num_buffers, frame_size, buffer_size); 149 int ashmem_size = buffer_size * num_buffers; 236 int buffer_size, int num_buffers, 239 MemPool(buffer_size,num_buffers,frame_size,name), 248 buffer_size); [all...] |
/external/chromium_org/content/browser/fileapi/ |
file_system_url_request_job_unittest.cc | 213 const size_t buffer_size = 4000; local 214 scoped_ptr<char[]> buffer(new char[buffer_size]); 215 FillBuffer(buffer.get(), buffer_size); 216 WriteFile("bigfile", buffer.get(), buffer_size); 219 const size_t last_byte_position = buffer_size - first_byte_position; 237 const size_t buffer_size = 4000; local 238 scoped_ptr<char[]> buffer(new char[buffer_size]); 239 FillBuffer(buffer.get(), buffer_size); 240 WriteFile("bigfile", buffer.get(), buffer_size); 244 buffer.get() + buffer_size); [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/tests/unit/ |
translate_test.c | 56 unsigned buffer_size = 4096; local 137 buffer[i] = align_malloc(buffer_size, 4096); 139 byte_buffer = align_malloc(buffer_size, 4096); 140 float_buffer = align_malloc(buffer_size, 4096); 141 double_buffer = align_malloc(buffer_size, 4096); 142 half_buffer = align_malloc(buffer_size, 4096); 156 for (i = 0; i < buffer_size; ++i) 159 for (i = 0; i < buffer_size / sizeof(float); ++i) 162 for (i = 0; i < buffer_size / sizeof(double); ++i) 165 for (i = 0; i < buffer_size / sizeof(double); ++i [all...] |
/external/mesa3d/src/gallium/tests/unit/ |
translate_test.c | 56 unsigned buffer_size = 4096; local 137 buffer[i] = align_malloc(buffer_size, 4096); 139 byte_buffer = align_malloc(buffer_size, 4096); 140 float_buffer = align_malloc(buffer_size, 4096); 141 double_buffer = align_malloc(buffer_size, 4096); 142 half_buffer = align_malloc(buffer_size, 4096); 156 for (i = 0; i < buffer_size; ++i) 159 for (i = 0; i < buffer_size / sizeof(float); ++i) 162 for (i = 0; i < buffer_size / sizeof(double); ++i) 165 for (i = 0; i < buffer_size / sizeof(double); ++i [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/xorg/ |
xorg_renderer.c | 48 int num_verts = r->buffer_size/(r->attrs_per_vertex * NUM_COMPONENTS); 50 if (!r->buffer_size) 57 r->buffer_size = 0; 64 if (r->buffer_size + next_batch >= BUF_SIZE || 65 (next_batch == 0 && r->buffer_size)) { 104 float *vertex = r->buffer + r->buffer_size; 116 r->buffer_size += 8; 123 float *vertex = r->buffer + r->buffer_size; 135 r->buffer_size += 8; 188 float *vertex = r->buffer + r->buffer_size; [all...] |
/external/mesa3d/src/gallium/state_trackers/xorg/ |
xorg_renderer.c | 48 int num_verts = r->buffer_size/(r->attrs_per_vertex * NUM_COMPONENTS); 50 if (!r->buffer_size) 57 r->buffer_size = 0; 64 if (r->buffer_size + next_batch >= BUF_SIZE || 65 (next_batch == 0 && r->buffer_size)) { 104 float *vertex = r->buffer + r->buffer_size; 116 r->buffer_size += 8; 123 float *vertex = r->buffer + r->buffer_size; 135 r->buffer_size += 8; 188 float *vertex = r->buffer + r->buffer_size; [all...] |
/frameworks/wilhelm/tests/sandbox/streamSource/ |
slesTestPlayStream.cpp | 38 #define BUFFER_SIZE (20*MPEG2_TS_BLOCK_SIZE) 42 char dataCache[BUFFER_SIZE * NB_BUFFERS]; 83 // assert(BUFFER_SIZE <= dataSize); 108 size_t nbRead = fread((void*)dataCache, 1, BUFFER_SIZE*(NB_BUFFERS/2), file); 109 if (nbRead == BUFFER_SIZE*(NB_BUFFERS/2)) { 112 dataCache + i*BUFFER_SIZE, 113 BUFFER_SIZE, NULL, 0); 150 size_t nbRead = fread((void*)pBufferData, 1, BUFFER_SIZE, file); 297 if (fread(dataCache, 1, BUFFER_SIZE * NB_BUFFERS, file) <= 0) { 305 dataCache + i*BUFFER_SIZE, BUFFER_SIZE, NULL, 0) [all...] |
/external/chromium/net/base/ |
filter.cc | 73 int buffer_size) { 80 buffer_size, filter_list); 350 Filter* Filter::InitGZipFilter(FilterType type_id, int buffer_size) { 352 gz_filter->InitBuffer(buffer_size); 359 int buffer_size) { 361 sdch_filter->InitBuffer(buffer_size); 368 int buffer_size, 375 first_filter.reset(InitGZipFilter(type_id, buffer_size)); 379 first_filter.reset(InitSdchFilter(type_id, filter_context, buffer_size)); 392 void Filter::InitBuffer(int buffer_size) { [all...] |
/external/chromium_org/content/browser/ |
byte_stream_unittest.cc | 31 // Create a new IO buffer of the given |buffer_size|. Details of the 34 scoped_refptr<net::IOBuffer> NewIOBuffer(size_t buffer_size) { 35 scoped_refptr<net::IOBuffer> buffer(new net::IOBuffer(buffer_size)); 37 for (size_t i = 0; i < buffer_size; i++) 40 length_queue_.push_back(buffer_size); 47 // Separate function to avoid duplication of buffer_size in test 49 bool Write(ByteStreamWriter* byte_stream_input, size_t buffer_size) { 50 return byte_stream_input->Write(NewIOBuffer(buffer_size), buffer_size); 58 scoped_refptr<net::IOBuffer> buffer, size_t buffer_size) { [all...] |
/external/chromium_org/jingle/glue/ |
pseudotcp_adapter.cc | 31 int Read(net::IOBuffer* buffer, int buffer_size, 33 int Write(net::IOBuffer* buffer, int buffer_size, 126 int PseudoTcpAdapter::Core::Read(net::IOBuffer* buffer, int buffer_size, 133 int result = pseudo_tcp_.Recv(buffer->data(), buffer_size); 141 read_buffer_size_ = buffer_size; 150 int PseudoTcpAdapter::Core::Write(net::IOBuffer* buffer, int buffer_size, 157 int result = pseudo_tcp_.Send(buffer->data(), buffer_size); local 167 write_buffer_size_ = buffer_size; 182 write_buffer_size_ = buffer_size; 475 int PseudoTcpAdapter::Read(net::IOBuffer* buffer, int buffer_size, [all...] |
channel_socket_adapter.cc | 45 int buffer_size, 59 read_buffer_size_ = buffer_size; 66 int buffer_size, 80 result = channel_->SendPacket(buffer->data(), buffer_size, 96 write_buffer_size_ = buffer_size;
|
/external/chromium_org/net/base/ |
filter.cc | 67 int buffer_size) { 74 buffer_size, filter_list); 343 Filter* Filter::InitGZipFilter(FilterType type_id, int buffer_size) { 345 gz_filter->InitBuffer(buffer_size); 352 int buffer_size) { 354 sdch_filter->InitBuffer(buffer_size); 361 int buffer_size, 368 first_filter.reset(InitGZipFilter(type_id, buffer_size)); 372 first_filter.reset(InitSdchFilter(type_id, filter_context, buffer_size)); 385 void Filter::InitBuffer(int buffer_size) { [all...] |
/frameworks/wilhelm/tests/native-media/jni/ |
native-media-jni.c | 60 #define BUFFER_SIZE (BLOCKS_PER_BUFFER*MPEG2_TS_BLOCK_SIZE) 64 char dataCache[BUFFER_SIZE * NB_BUFFERS]; 142 assert(BUFFER_SIZE == dataSize); 144 &dataCache[BUFFER_SIZE * NB_BUFFERS]); 145 assert(0 == (((char *) pBufferData - dataCache) % BUFFER_SIZE)); 193 nbRead = fread(pBufferData, BUFFER_SIZE, 1, file); 198 nbRead * BUFFER_SIZE /*dataLength*/, 301 nbRead = fread(dataCache, BUFFER_SIZE, NB_BUFFERS, file); 308 ALOGV("Initially queueing %u buffers of %u bytes each", nbRead, BUFFER_SIZE); 324 dataCache + i*BUFFER_SIZE, BUFFER_SIZE, items /*pMsg*/ [all...] |
/system/core/adb/ |
services.c | 426 static void connect_device(char* host, char* buffer, int buffer_size) 437 snprintf(buffer, buffer_size, "bad host name %s", host); 443 snprintf(buffer, buffer_size, "bad port number %s", portstr); 454 snprintf(buffer, buffer_size, "unable to connect to %s:%d", host, port); 465 snprintf(buffer, buffer_size, "already connected to %s", serial); 467 snprintf(buffer, buffer_size, "connected to %s", serial); 471 void connect_emulator(char* port_spec, char* buffer, int buffer_size) 475 snprintf(buffer, buffer_size, 487 snprintf(buffer, buffer_size, 502 snprintf(buffer, buffer_size, [all...] |
/external/protobuf/src/google/protobuf/io/ |
gzip_stream.cc | 50 ZeroCopyInputStream* sub_stream, Format format, int buffer_size) 60 if (buffer_size == -1) { 63 output_buffer_length_ = buffer_size; 173 buffer_size(kDefaultBufferSize), 187 ZeroCopyOutputStream* sub_stream, Format format, int buffer_size) { 190 if (buffer_size != -1) { 191 options.buffer_size = buffer_size; 202 input_buffer_length_ = options.buffer_size;
|
/external/chromium_org/chrome/browser/extensions/api/sockets_tcp/ |
tcp_socket_event_dispatcher.cc | 104 int buffer_size = socket->buffer_size(); local 105 if (buffer_size <= 0) 106 buffer_size = kDefaultBufferSize; 107 socket->Read(buffer_size,
|
/external/chromium_org/sandbox/win/tools/finder/ |
finder_kernel.cc | 10 #define BUFFER_SIZE 0x800 94 // TODO(nsylvain): Do not use BUFFER_SIZE. Try to get the size 99 BUFFER_SIZE); 110 BUFFER_SIZE, 120 BUFFER_SIZE, TRUE, FALSE, &object_index,
|
/libcore/luni/src/test/java/libcore/java/io/ |
InterruptedStreamTest.java | 45 private static final int BUFFER_SIZE = 1024 * 1024; 145 channel.read(ByteBuffer.allocate(BUFFER_SIZE)); 158 out.write(new byte[BUFFER_SIZE]); 171 writer.write(new char[BUFFER_SIZE]); 184 channel.write(ByteBuffer.allocate(BUFFER_SIZE));
|
/external/stlport/stlport/stl/ |
_deque.c | 49 size_t __num_nodes = __num_elements / this->buffer_size() + 1 ; 65 this->_M_finish._M_cur = this->_M_finish._M_first + __num_elements % this->buffer_size(); 74 *__cur = _M_map_size.allocate(this->buffer_size()); 83 _M_map_size.deallocate(*__n, this->buffer_size()); 350 _STLP_STD::_Destroy_Range(*__node, *__node + this->buffer_size()); 351 this->_M_map_size.deallocate(*__node, this->buffer_size()); 357 this->_M_map_size.deallocate(this->_M_finish._M_first, this->buffer_size()); 373 uninitialized_fill(*__cur, *__cur + this->buffer_size(), __val); 384 *(this->_M_finish._M_node + 1) = this->_M_map_size.allocate(this->buffer_size()); 391 this->buffer_size())) [all...] |
/ndk/sources/cxx-stl/stlport/stlport/stl/ |
_deque.c | 49 size_t __num_nodes = __num_elements / this->buffer_size() + 1 ; 65 this->_M_finish._M_cur = this->_M_finish._M_first + __num_elements % this->buffer_size(); 74 *__cur = _M_map_size.allocate(this->buffer_size()); 83 _M_map_size.deallocate(*__n, this->buffer_size()); 350 _STLP_STD::_Destroy_Range(*__node, *__node + this->buffer_size()); 351 this->_M_map_size.deallocate(*__node, this->buffer_size()); 357 this->_M_map_size.deallocate(this->_M_finish._M_first, this->buffer_size()); 373 uninitialized_fill(*__cur, *__cur + this->buffer_size(), __val); 384 *(this->_M_finish._M_node + 1) = this->_M_map_size.allocate(this->buffer_size()); 391 this->buffer_size())) [all...] |
/prebuilts/ndk/5/sources/cxx-stl/stlport/stlport/stl/ |
_deque.c | 49 size_t __num_nodes = __num_elements / this->buffer_size() + 1 ; 65 this->_M_finish._M_cur = this->_M_finish._M_first + __num_elements % this->buffer_size(); 74 *__cur = _M_map_size.allocate(this->buffer_size()); 83 _M_map_size.deallocate(*__n, this->buffer_size()); 350 _STLP_STD::_Destroy_Range(*__node, *__node + this->buffer_size()); 351 this->_M_map_size.deallocate(*__node, this->buffer_size()); 357 this->_M_map_size.deallocate(this->_M_finish._M_first, this->buffer_size()); 373 uninitialized_fill(*__cur, *__cur + this->buffer_size(), __val); 384 *(this->_M_finish._M_node + 1) = this->_M_map_size.allocate(this->buffer_size()); 391 this->buffer_size())) [all...] |