| /external/chromium_org/mojo/android/system/src/org/chromium/mojo/system/impl/ |
| CoreImpl.java | 82 // Allocate a direct buffer to allow native code not to reach back to java. Buffer will 84 ByteBuffer buffer = allocateDirectBuffer(handles.size() * 8); local 87 buffer.putInt(HANDLE_SIZE * index, getMojoHandle(handle.first)); 88 buffer.putInt(HANDLE_SIZE * handles.size() + FLAG_SIZE * index, 92 int code = nativeWaitMany(buffer, deadline); 400 void unmap(ByteBuffer buffer) { 401 int result = nativeUnmap(buffer); 445 ByteBuffer buffer = ByteBuffer.allocateDirect(capacity); local 446 buffer.order(ByteOrder.nativeOrder()) [all...] |
| /external/chromium_org/third_party/mesa/src/src/gallium/drivers/r600/ |
| evergreen_compute.c | 66 CONST0 is binding smaller input parameter buffer, and for constant indexing, 90 struct pipe_resource * buffer) 96 vb->buffer = buffer; 177 /* The kernel parameters are stored a vtx buffer (ID=0), besides the explicit 179 * in the vertex buffer as well. Here is how these parameters are organized in 180 * the buffer: 344 /* Emit vertex buffer state */ 478 struct r600_resource_global *buffer = local 486 buffer->chunk->start_in_dw*4 793 struct r600_resource_global* buffer = (struct r600_resource_global*)res; local 813 struct r600_resource_global* buffer = local 836 struct r600_resource_global* buffer = local [all...] |
| /external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/dri/drm/ |
| dri2.c | 256 /* use only the first depth/stencil buffer */ 296 struct dri2_buffer *buffer; local 334 buffer = CALLOC_STRUCT(dri2_buffer); 335 if (!buffer) 348 buffer->resource = 350 if (!buffer->resource) { 351 FREE(buffer); 358 buffer->resource, &whandle); 360 buffer->base.attachment = attachment; 361 buffer->base.name = whandle.handle 371 struct dri2_buffer *buffer = dri2_buffer(bPriv); local [all...] |
| /external/chromium_org/third_party/protobuf/src/google/protobuf/io/ |
| coded_stream.cc | 38 // will not cross the end of the buffer, since we can avoid a lot 103 // The limit position is in the current buffer. We must adjust 104 // the buffer size accordingly. 184 // Just skipping within the current buffer. Easy. 190 // We hit a limit inside this buffer. Advance to the limit and fail. 223 bool CodedInputStream::ReadRaw(void* buffer, int size) { 226 // Reading past end of buffer. Copy what we have, then refresh. 227 memcpy(buffer, buffer_, current_buffer_size); 228 buffer = reinterpret_cast<uint8*>(buffer) + current_buffer_size [all...] |
| /external/chromium_org/third_party/webrtc/base/ |
| schanneladapter.cc | 199 //DescribeBuffers(LS_VERBOSE, "Input Buffer ", sb_in.desc()); 224 // DescribeBuffers(LS_VERBOSE, "Input Buffer ", sbd_in); 226 // DescribeBuffers(LS_VERBOSE, "Output Buffer ", sbd_out); 245 SecBuffer& buffer = sbd_in->pBuffers[i]; local 246 if (buffer.BufferType == SECBUFFER_EXTRA) { 247 extra += buffer.cbBuffer; 253 SecBuffer& buffer = sbd_out->pBuffers[i]; local 254 if (buffer.BufferType == SECBUFFER_EXTRA) { 255 extra += buffer.cbBuffer; 256 } else if (buffer.BufferType == SECBUFFER_TOKEN) 413 char buffer[4096]; local [all...] |
| /external/lldb/source/Core/ |
| SearchFilter.cpp | 431 char buffer[2048]; local 432 m_module_spec.GetPath(buffer, 2047); 433 s->PutCString(buffer); 584 char buffer[2048]; local 585 m_module_spec_list.GetFileSpecAtIndex(0).GetPath(buffer, 2047); 586 s->PutCString(buffer); 600 char buffer[2048]; local 601 m_module_spec_list.GetFileSpecAtIndex(i).GetPath(buffer, 2047); 602 s->PutCString(buffer); 775 char buffer[2048] local 791 char buffer[2048]; local [all...] |
| /external/mesa3d/src/gallium/drivers/r600/ |
| evergreen_compute.c | 66 CONST0 is binding smaller input parameter buffer, and for constant indexing, 90 struct pipe_resource * buffer) 96 vb->buffer = buffer; 177 /* The kernel parameters are stored a vtx buffer (ID=0), besides the explicit 179 * in the vertex buffer as well. Here is how these parameters are organized in 180 * the buffer: 344 /* Emit vertex buffer state */ 478 struct r600_resource_global *buffer = local 486 buffer->chunk->start_in_dw*4 793 struct r600_resource_global* buffer = (struct r600_resource_global*)res; local 813 struct r600_resource_global* buffer = local 836 struct r600_resource_global* buffer = local [all...] |
| /external/mesa3d/src/gallium/state_trackers/dri/drm/ |
| dri2.c | 256 /* use only the first depth/stencil buffer */ 296 struct dri2_buffer *buffer; local 334 buffer = CALLOC_STRUCT(dri2_buffer); 335 if (!buffer) 348 buffer->resource = 350 if (!buffer->resource) { 351 FREE(buffer); 358 buffer->resource, &whandle); 360 buffer->base.attachment = attachment; 361 buffer->base.name = whandle.handle 371 struct dri2_buffer *buffer = dri2_buffer(bPriv); local [all...] |
| /external/opencv/cxcore/src/ |
| cxsvd.cpp | 236 double* buffer ) 252 e = buffer; 257 temp = buffer + nm; 631 float* buffer ) 647 e = buffer; 653 temp = buffer + nm; 1027 double* x, int ldx, double* buffer ) 1099 memset( buffer, 0, nb*sizeof(buffer[0])); 1100 icvMatrAXPY_64f( m, nb, b, ldb, uT, buffer, 0 ) 1214 uchar* buffer = 0; local 1454 uchar* buffer = 0; local [all...] |
| /external/icu/icu4c/source/test/cintltst/ |
| capitst.c | 44 static char* U_EXPORT2 ucol_sortKeyToString(const UCollator *coll, const uint8_t *sortkey, char *buffer, uint32_t len) { 49 position += sprintf(buffer + position, "["); 52 position += sprintf(buffer + position, "%02X . ", b); 54 position += sprintf(buffer + position, "%02X ", b); 58 position += sprintf(buffer + position, "%02X]", b); 59 return buffer; 381 UChar *buffer = (UChar *)malloc(200000*sizeof(UChar)); local 383 buffer[0] = '\0'; 385 tempLength = ucol_getRulesEx(col,UCOL_TAILORING_ONLY,buffer,bufLen ); 390 tempLength=ucol_getRulesEx(col,UCOL_FULL_RULES,buffer,bufLen ) 646 uint8_t buffer [CLONETEST_COLLATOR_COUNT] [U_COL_SAFECLONE_BUFFERSIZE]; local 798 uint8_t * buffer; local 1509 UChar buffer[512]; local 1896 UChar buffer[256]; local 2095 UChar buffer[65536]; local 2195 UChar buffer[65536]; local [all...] |
| /external/chromium_org/third_party/icu/source/test/iotest/ |
| iotest.cpp | 43 char buffer[4000]; local 44 message.extract(0, message.length(), buffer, sizeof(buffer)); 45 buffer[3999] = 0; /* NULL terminate */ 46 log_err(buffer); 50 char buffer[4000]; local 51 message.extract(0, message.length(), buffer, sizeof(buffer)); 52 buffer[3999] = 0; /* NULL terminate */ 53 log_info(buffer); 57 char buffer[4000]; local [all...] |
| /external/icu/icu4c/source/test/iotest/ |
| iotest.cpp | 43 char buffer[4000]; local 44 message.extract(0, message.length(), buffer, sizeof(buffer)); 45 buffer[3999] = 0; /* NULL terminate */ 46 log_err(buffer); 50 char buffer[4000]; local 51 message.extract(0, message.length(), buffer, sizeof(buffer)); 52 buffer[3999] = 0; /* NULL terminate */ 53 log_info(buffer); 57 char buffer[4000]; local [all...] |
| /external/chromium_org/base/files/ |
| file_proxy_unittest.cc | 284 char buffer[10]; local 285 EXPECT_EQ(data_bytes, base::ReadFile(test_path(), buffer, data_bytes)); 287 EXPECT_EQ(data[i], buffer[i]); 335 char buffer[7]; local 336 EXPECT_EQ(7, base::ReadFile(test_path(), buffer, 7)); 339 EXPECT_EQ(kTestData[i], buffer[i]); 361 char buffer[53]; local 362 EXPECT_EQ(53, base::ReadFile(test_path(), buffer, 53)); 365 EXPECT_EQ(kTestData[i], buffer[i]); 367 EXPECT_EQ(0, buffer[i]) [all...] |
| /external/chromium_org/media/base/ |
| seekable_buffer_unittest.cc | 59 << "Incorrect buffer full reported"; 82 // Write until buffer is full. 86 << "Incorrect buffer full reported"; 162 // Write and expect the buffer to be not full. 168 // Write until we have kMaxWriteSize bytes in the buffer. Buffer is full in 175 // Read until the buffer is empty. 205 // Write into buffer until it's full. 211 // Read until buffer is empty. 231 scoped_refptr<DataBuffer> buffer = DataBuffer::CopyFrom(data_, kWriteSize) [all...] |
| /external/chromium_org/third_party/android_crazy_linker/src/tests/ |
| test_util.h | 236 char buffer[8192]; local 238 size_t read = fread(buffer, 1, sizeof buffer, src_file.file()); 240 size_t written = fwrite(buffer, 1, read, dst_file.file()); 247 if (read < sizeof buffer) 257 char buffer[1]; local 258 buffer[0] = 0; 260 iov.iov_base = buffer; 292 char buffer[1]; local 295 iov.iov_base = buffer; [all...] |
| /external/chromium_org/third_party/libjingle/source/talk/app/webrtc/objctests/ |
| RTCPeerConnectionSyncObserver.m | 137 RTCDataBuffer* buffer = [[RTCDataBuffer alloc] initWithData:message 139 [_expectedMessages addObject:buffer]; 239 didReceiveMessageWithBuffer:(RTCDataBuffer*)buffer { 243 NSAssert(expectedBuffer.isBinary == buffer.isBinary, 244 @"Buffer isBinary should match"); 245 NSAssert([expectedBuffer.data isEqual:buffer.data], 246 @"Buffer data should match");
|
| /external/chromium_org/third_party/libjpeg_turbo/ |
| rdppm.c | 56 #define ReadOK(file,buffer,len) (JFREAD(file,buffer,len) == ((size_t) (len))) 62 * allocate the buffer in near data space, because we are assuming small-data 75 U_CHAR *iobuffer; /* non-FAR pointer to I/O buffer */ 77 size_t buffer_width; /* width of I/O buffer */ 151 ptr = source->pub.buffer[0]; 169 ptr = source->pub.buffer[0]; 191 ptr = source->pub.buffer[0]; 212 ptr = source->pub.buffer[0]; 226 * In this case we just read right into the JSAMPLE buffer! [all...] |
| /external/chromium_org/third_party/skia/platform_tools/android/third_party/cpufeatures/ |
| cpu-features.c | 39 * Dynamically allocate the buffer that hold the content 122 char buffer[256]; local 131 int ret = read(fd, buffer, sizeof buffer); 147 /* Read the content of /proc/cpuinfo into a user-provided buffer. 153 read_file(const char* pathname, char* buffer, size_t buffsize) 164 int ret = read(fd, buffer + count, buffsize - count); 188 extract_cpuinfo_field(char* buffer, int buflen, const char* field) 191 char* bufend = buffer + buflen; 197 p = buffer; [all...] |
| /external/chromium_org/third_party/skia/src/images/ |
| SkImageDecoder_libico.cpp | 31 //read bytes starting from the begin-th index in the buffer 34 #define readByte(buffer,begin) buffer[begin] 35 #define read2Bytes(buffer,begin) buffer[begin]+(buffer[begin+1]<<8) 36 #define read4Bytes(buffer,begin) buffer[begin]+(buffer[begin+1]<<8)+(buffer[begin+2]<<16)+(buffer[begin+3]<<24 [all...] |
| /external/chromium_org/third_party/webrtc/modules/video_capture/linux/ |
| video_capture_linux.cc | 356 _pool = new Buffer[rbuffer.count]; 360 struct v4l2_buffer buffer; local 361 memset(&buffer, 0, sizeof(v4l2_buffer)); 362 buffer.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; 363 buffer.memory = V4L2_MEMORY_MMAP; 364 buffer.index = i; 366 if (ioctl(_deviceFd, VIDIOC_QUERYBUF, &buffer) < 0) 371 _pool[i].start = mmap(NULL, buffer.length, PROT_READ | PROT_WRITE, MAP_SHARED, 372 _deviceFd, buffer.m.offset); 381 _pool[i].length = buffer.length [all...] |
| /external/deqp/framework/opengl/simplereference/ |
| sglrContextWrapper.cpp | 224 void ContextWrapper::glBindBuffer (deUint32 target, deUint32 buffer) 226 m_curCtx->bindBuffer(target, buffer); 269 void ContextWrapper::glClearBufferiv (deUint32 buffer, int drawbuffer, const int* value) 271 m_curCtx->clearBufferiv(buffer, drawbuffer, value); 274 void ContextWrapper::glClearBufferfv (deUint32 buffer, int drawbuffer, const float* value) 276 m_curCtx->clearBufferfv(buffer, drawbuffer, value); 279 void ContextWrapper::glClearBufferuiv (deUint32 buffer, int drawbuffer, const deUint32* value) 281 m_curCtx->clearBufferuiv(buffer, drawbuffer, value); 284 void ContextWrapper::glClearBufferfi (deUint32 buffer, int drawbuffer, float depth, int stencil) 286 m_curCtx->clearBufferfi(buffer, drawbuffer, depth, stencil) [all...] |
| /external/iptables/extensions/ |
| libxt_multiport.c | 87 char *buffer, *cp, *next; local 90 buffer = strdup(portstring); 91 if (!buffer) xtables_error(OTHER_PROBLEM, "strdup failed"); 93 for (cp=buffer, i=0; cp && i<XT_MULTI_PORTS; cp=next,i++) 100 free(buffer); 109 char *buffer, *cp, *next, *range; local 113 buffer = strdup(portstring); 114 if (!buffer) xtables_error(OTHER_PROBLEM, "strdup failed"); 119 for (cp=buffer, i=0; cp && i<XT_MULTI_PORTS; cp=next, i++) { 141 free(buffer); [all...] |
| /external/jpeg/ |
| rdppm.c | 55 #define ReadOK(file,buffer,len) (JFREAD(file,buffer,len) == ((size_t) (len))) 61 * allocate the buffer in near data space, because we are assuming small-data 74 U_CHAR *iobuffer; /* non-FAR pointer to I/O buffer */ 76 size_t buffer_width; /* width of I/O buffer */ 150 ptr = source->pub.buffer[0]; 168 ptr = source->pub.buffer[0]; 190 ptr = source->pub.buffer[0]; 211 ptr = source->pub.buffer[0]; 225 * In this case we just read right into the JSAMPLE buffer! [all...] |
| /external/libedit/src/ |
| emacs.c | 60 if (el->el_line.cursor == el->el_line.buffer) { 115 * Paste cut buffer at cursor position 151 * Cut the entire line and save in cut buffer 160 cp = el->el_line.buffer; 166 el->el_line.lastchar = el->el_line.buffer; 167 el->el_line.cursor = el->el_line.buffer; 173 * Cut area between mark and cursor and save in cut buffer 206 * Copy area between mark and cursor to cut buffer 243 if (el->el_line.cursor > &el->el_line.buffer[1]) { 444 if (el->el_line.cursor == el->el_line.buffer) [all...] |
| /external/lldb/tools/driver/ |
| IOChannel.cpp | 60 // cleared the buffer. In that case the cursor will be pointing at the newline. That's 65 return line_info->cursor != line_info->buffer; 76 el_deletestr(m_edit_line, line_info->cursor - line_info->buffer); 108 int num_completions = m_driver->GetDebugger().GetCommandInterpreter().HandleCompletion (line_info->buffer, 122 el_deletestr (m_edit_line, line_info->cursor - line_info->buffer); 550 IOChannel::OutWrite (const char *buffer, size_t len, bool asynchronous) 552 if (len == 0 || buffer == NULL) 568 ::fwrite (buffer, 1, len, m_out_file); 574 IOChannel::ErrWrite (const char *buffer, size_t len, bool asynchronous) 576 if (len == 0 || buffer == NULL [all...] |